Oops, changelog for last patch.
[binutils-gdb.git] / ld / ChangeLog
1 2001-12-17 Alan Modra <amodra@bigpond.net.au>
2
3 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
4 section_tail when fiddling with section list.
5 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
6 broken into separate strings to make translation easier.
7 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
8 fiddling with section list.
9 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
10
11 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
12
13 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
14
15 2001-12-15 Alan Modra <amodra@bigpond.net.au>
16
17 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
18
19 2001-12-13 Jakub Jelinek <jakub@redhat.com>
20
21 * emultempl/elf32.em (finish): Supply output_bfd
22 to bfd_elf*_discard_info.
23 (OPTION_EH_FRAME_HDR): Define.
24 (longopts): Add --eh-frame-hdr.
25 (parse_args): Handle it.
26 (list_options): Add --eh-frame-hdr to help.
27 * emultempl/hppaelf.em (finish): Supply output_bfd
28 to bfd_elf*_discard_info.
29 * scripttempl/elf.sc (.eh_frame_hdr): Add.
30
31 2001-12-13 Alan Modra <amodra@bigpond.net.au>
32
33 * lexsup.c (parse_args): Don't pass shortopts to second call to
34 getopt functions. Restore optind rather than decrementing before
35 second call. Remove errind as it now duplicates last_optind.
36
37 2001-12-11 Christopher Faylor <cgf@redhat.com>
38
39 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
40
41 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
42 Richard Henderson <rth@redhat.com>
43
44 * Makefile.am: Add support for xstormy16.
45 * configure.tgt: Add support for xstormy16.
46 * Makefile.in: Regenerate.
47 * emulparams/elf32xstormy16.sh: New file.
48 * scripttempl/xstormy16.sc: New file.
49
50 2001-10-01 Christopher Faylor <cgf@cygnus.com>
51
52 * Makefile.in (LIB_PATH): Make configurable.
53 (GENSCRIPTS): Set LIB_PATH in environment.
54 * configure.in: Substitute LIB_PATH.
55 * configure: Regenerate.
56 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
57 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
58
59 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
60
61 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
62 describing the -N option so that it is easier to translate into
63 foreign languages.
64
65 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
66
67 * emultempl/pe.em (..._list_options): Replace multiple fprintf
68 statements describing a single option with a single, newline
69 escaped fprintf. This allows better translation into other
70 languages.
71
72 * ldmain.c (add_archive_element): Combine multiple strings
73 into a single string to permit better translation into other
74 languages.
75
76 2001-12-05 Tom Rix <trix@redhat.com>
77
78 * Makefile.am: Remove eaixppc64.
79 * Makefile.in: Regenerate.
80
81 2001-12-04 Tom Rix <trix@redhat.com>
82
83 * emultempl/aix.em (choose_target): Change default target to
84 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
85 warning.
86 (gld*_read_file): Fix typo.
87 (change_symbol_mode): Add prototype.
88 (is_syscall): Same.
89
90 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
91 * emulparams/aixrs6.sh : Same.
92 * emulparams/ppcmacos.sh : Same.
93 * emulparams/aixppc64.sh : Delete file.
94 * emultempl/aix.em : Formatting changes.
95
96 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
97
98 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
99 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
100 __Sbss.
101 (OTHER_END_SYMBOLS): Fix formatting.
102 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
103 (OTHER_END_SYMBOLS): Fix formatting.
104
105 2001-12-04 Alan Modra <amodra@bigpond.net.au>
106
107 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
108
109 2001-12-02 Tom Rix <trix@redhat.com>
110
111 * configure.tgt : Remove eaixppc64 emulations.
112 * Makefile.in : Remove eaixppc64.c
113 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
114 (ldemul_default_target): Same.
115 * emultempl/gld960.em (gld960_choose_target): Same.
116 * emultempl/gld960c.em (gld960_choose_target): Same.
117 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
118 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
119 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
120 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
121 * emultempl/aix.em (choose_target): New function. Handle emulation of
122 -b32 and -b64.
123
124 2001-11-27 H.J. Lu <hjl@gnu.org>
125
126 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
127 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
128 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
129 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
130 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
131 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
132 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
133 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
134
135 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
136 is not empty.
137 (SDATA): Likewise.
138 (REL_SDATA): Likewise.
139 (REL_SBSS): Likewise.
140 (REL_SDATA2): Likewise.
141 (REL_SBSS2): Likewise.
142 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
143 (SDATA2): Likewise.
144
145 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
146
147 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
148 destructor in rom.
149 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
150
151 2001-11-22 H.J. Lu <hjl@gnu.org>
152
153 * Makefile.in: Regenerated with automake based on automake
154 1.4-8 in RedHat 7.1.
155
156 2001-11-22 Alan Modra <amodra@bigpond.net.au>
157
158 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
159 (config.status): Delete rule.
160 Add extra dependencies to cover sourced emulparams files.
161 * Makefile.in: Regenerate.
162
163 * scripttempl/elf.sc: Order <section>, <section>.* and
164 corresponding linkonce sections as seen in input files.
165 Formatting fixes. Zero vma of all sections if not relocating.
166 (STACK): Define and insert if STACK_ADDR defined.
167 (OTHER_RELOCATING_SECTIONS): Delete.
168 (OTHER_END_SYMBOLS): Define.
169 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
170 (OTHER_READWRITE_SECTIONS): Likewise.
171 (OTHER_GOT_SECTIONS): Likewise.
172 (OTHER_SDATA_SECTIONS): Likewise.
173 (OTHER_BSS_SECTIONS): Likewise.
174 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
175 (OTHER_READWRITE_SECTIONS): Likewise.
176 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
177 (OTHER_READWRITE_SECTIONS): Likewise
178
179 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
180 (STACK_ADDR): Define.
181 * emulparams/armelf_oabi.sh: As for armelf.sh.
182 * emulparams/elf32mcore.sh: As for armelf.sh.
183 * emulparams/h8300elf.sh: As for armelf.sh.
184 * emulparams/mn10200.sh: As for armelf.sh.
185 * emulparams/shelf.sh: As for armelf.sh.
186
187 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
188 (OTHER_END_SYMBOLS): Define.
189 * emulparams/m32relf.sh: As for elf32fr30.sh.
190 * emulparams/h8300helf.sh: As for elf32fr30.sh.
191 * emulparams/h8300self.sh: As for elf32fr30.sh.
192
193 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
194 defines with RELOCATING test.
195 (OTHER_SDATA_SECTIONS): Likewise.
196 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
197 (OTHER_END_SYMBOLS): ..this.
198 * emulparams/crislinux.sh: As for criself.sh.
199
200 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
201 if not relocating.
202 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
203 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
204 normal and linkonce sections as seen in input files.
205 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
206 (TEXT_DYNAMIC): Likewise.
207 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
208 (OTHER_SDATA_SECTIONS): Likewise.
209 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
210 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
211 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
212 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
213 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
214 (OTHER_PLT_RELOC_SECTIONS): Likewise.
215 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
216 sections as seen in input files.
217 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
218 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
219 if not relocating.
220 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
221 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
222 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
223 (OTHER_SECTIONS): Instead, use this..
224 (OTHER_END_SYMBOLS): ..and this.
225
226 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
227 * emulparams/elf32bsmip.sh: Likewise.
228 * emulparams/elf32btsmip.sh: Likewise.
229 * emulparams/elf32ebmip.sh: Likewise.
230 * emulparams/elf32lmip.sh: Likewise.
231 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
232 * emulparams/elf32lsmip.sh: Likewise.
233 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
234 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
235 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
236 * emulparams/elf64btsmip.sh: Likewise.
237 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
238 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
239 * emulparams/elf32ppclinux.sh: Likewise.
240 * emulparams/elf32ppcsim.sh: Likewise.
241 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
242 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
243 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
244 * emulparams/h8300self.sh: Likewise.
245 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
246 * emulparams/sh.sh: Comment.
247 * emulparams/shl.sh: Source sh.sh, remove duplicates.
248 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
249 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
250
251 2001-11-21 David Heine <dlheine@tensilica.com>
252 Alan Modra <amodra@bigpond.net.au>
253
254 * ldlang.c (map_input_to_output_sections): Replace "break"
255 accidentally removed with 2001-08-03 change.
256 (lang_gc_sections_1): Likewise.
257
258 2001-11-21 Alan Modra <amodra@bigpond.net.au>
259
260 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
261
262 2001-11-20 Angela Marie Thomas <angela@redhat.com>
263
264 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
265 of false when calling lang_size_sections.
266 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
267
268 2001-11-15 Alan Modra <amodra@bigpond.net.au>
269
270 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
271 function when LDEMUL_FINISH isn't set to the same name. Don't
272 call ${LDEMUL_FINISH}.
273 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
274 * emultempl/armelf.em (arm_elf_finish): Call
275 gld${EMULATION_NAME}_finish.
276 * emultempl/hppaelf.em (hppaelf_finish): Rename to
277 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
278 hppaelf_layout_sections_again if necessary.
279 (need_laying_out): New var.
280 (hppaelf_layaout_sections_again): Rename to
281 hppaelf_layout_sections_again. Clear need_laying_out.
282 (PARSE_AND_LIST_OPTIONS): Format text.
283
284 2001-11-14 H.J. Lu <hjl@gnu.org>
285
286 * emultempl/armelf.em (arm_elf_finish): Renamed from
287 gld${EMULATION_NAME}_finish.
288 (LDEMUL_FINISH): Set to arm_elf_finish.
289
290 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
291
292 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
293 (struct ld_emulation_xfer_struct): Use it.
294
295 Tue Nov 13 11:27:14 2001 Ross Alexander <ross.alexander@uk.neceur.com>
296
297 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
298 additional symbols referenced by newer crt0.o files from HP.
299
300 2001-11-12 Anthony Green <green@redhat.com>
301
302 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
303
304 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
305
306 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
307 * Makefile.in: Regenerate.
308
309 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
310
311 * ld.texinfo: Use @command for commands, @option for options.
312 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
313 the page man title.
314 * Makefile.in: Rebuild.
315
316 2001-11-04 Chris Demetriou <cgd@broadcom.com>
317
318 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
319 Add support for targets.
320
321 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
322
323 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
324 * configure: Regernate.
325 * po/fr.po: New file.
326 * po/sv.po: New file.
327
328 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
329
330 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
331 as little endian default and to support big endian.
332
333 2001-11-01 Chris Demetriou <cgd@broadcom.com>
334
335 * ld.texinfo (Options): Document new option, -nostdlib.
336 * lexsup.c (OPTION_NOSTDLIB): New definition.
337 (ld_options): Add entry for "nostdlib".
338 (parse_args): Handle OPTIONS_NOSTDLIB.
339 * ldfile.c (ldfile_add_library_path): Don't add directories
340 to the search path if they weren't specified on the command line
341 and -nostdlib was specified.
342 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
343
344 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
345
346 * lexsup.c (parse_args): Prevent infinite parsing loop when
347 "-rpath.a" is specified on the command line.
348 Replace calls to fprintf with calls to einfo.
349
350 2001-10-31 John Marshall <jmarshall@acm.org>
351
352 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
353 appear only once across all the linker scripts involved in a link
354 invocation no longer applies. Make the documentation reflect
355 that.
356
357 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
358
359 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
360 targets.
361 (sh-*-linux*): Added targ_extra_libpath.
362
363 2001-10-31 David Heine <dlheine@tensilica.com>
364
365 * ldlang.c (lang_size_sections): Keep a valid output_offset field
366 for padding statements.
367
368 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
369
370 * configure.tgt (mmix-*-*): New target.
371 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
372 Add dependencies to match.
373 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
374 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
375 scripttempl/mmo.sc: New files.
376 * gen-doc.texi: @set MMIX.
377 * ld.texinfo: Ditto.
378 [MMIX] Add MMIX node.
379 * Makefile.in: Regenerate.
380
381 2001-10-29 Kazu Hirata <kazu@hxi.com>
382
383 * ldlang.c: Fix a comment typo.
384
385 2001-10-23 Alan Modra <amodra@bigpond.net.au>
386
387 * configure.host: Move alpha*-*-linux-gnu* entry to generic
388 entries, and match *-*-linux*.
389
390 2001-10-20 Alan Modra <amodra@bigpond.net.au>
391
392 * ldgram.y (mri_script_command): Surround processing of INCLUDE
393 with ldlex_script, ldlex_popstate.
394 (ifile_p1): Likewise.
395 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
396 correct slot.
397 (lex_push_file): Save current lineno to lineno_stack. Set lineno
398 to 1. Don't BEGIN(SCRIPT).
399 (lex_redirect): Similarly.
400 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
401
402 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
403
404 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
405 __EH_FRAME_END__ and accept eh frames into data section.
406 Add ctor and dtor sections.
407
408 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
409
410 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
411 (auto-export): Fix indentation.
412
413 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
414
415 * pe-dll.c (autofilter_objectlist): Add startup objects
416 for profiling.
417 (auto-export): Constify char * p.
418 Extract file basename and use strcmp rather than ststr
419 for object lookup.
420
421 2001-10-18 Chris Demetriou <cgd@broadcom.com>
422
423 * ldmain.c (get_emulation): Improve comment about the handling
424 of -mipsN options.
425
426 2001-10-17 Alan Modra <amodra@bigpond.net.au>
427
428 * po/POTFILES.in: Regenerate.
429
430 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
431
432 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
433 -z nocopyreloc and -z nocombreloc usage strings.
434
435 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
436
437 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
438 in usage.
439
440 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
441
442 * scripttempl/armaout.sc: Place .bss section after end of aligned
443 data section to match behaviour of aout code in constructrion of
444 header.
445
446 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
447
448 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
449 startup files for mingw32 dlls to list.
450
451 2001-10-10 Chris Demetriou <cgd@broadcom.com>
452
453 * emultempl/elf32.em: Fix shell 'if' usage for portability.
454
455 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
456
457 * configure.tgt (targ): Add arm9e-*-elf.
458
459 2001-10-05 H.J. Lu <hjl@gnu.org>
460
461 * genscripts.sh: Fix a typo in the last change.
462
463 2001-10-05 Jakub Jelinek <jakub@redhat.com>
464
465 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
466 -z nocombreloc in usage.
467
468 2001-10-03 Jim Blandy <jimb@redhat.com>
469
470 * genscripts.sh: Include a comment at the top of each generated
471 script, explaining its purpose.
472
473 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
474
475 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
476 * NEWS: Mention -z nocopyreloc.
477 * ld.texinfo (Options): Describe nocopyreloc.
478
479 2001-10-03 Alan Modra <amodra@bigpond.net.au>
480
481 * configure: Regenerate.
482
483 2001-10-02 Alan Modra <amodra@bigpond.net.au>
484
485 * ldver.h (ld_program_version): Remove declaration.
486 * lexsup.c (parse_args): Move printing of copyright message..
487 * ldver.c (ldversion): .. to here.
488 Use BFD_VERSION_STRING in place of BFD_VERSION.
489 (ld_program_version): Remove.
490 * Makefile.am (Makefile): Depend on bfd/configure.in.
491 Run "make dep-am".
492 * Makefile.in: Regenerate.
493
494 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
495
496 * Makefile.am: Update dependencies with "make dep-am".
497 * Makefile.in: Regenerate.
498
499 2001-09-29 John Reiser <jreiser@BitWagon.com>
500
501 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
502 * lexsup.c: Add --no-define-common commandline option.
503 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
504 * ldlex.l: Likewise.
505 * ld.h: Add command_line.inhibit_common_definition.
506 * ldmain.c (main): Initialize.
507 * ld.texinfo: Document.
508
509 2001-09-26 Alan Modra <amodra@bigpond.net.au>
510
511 * ldmisc.c (USE_STDARG): Remove.
512 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
513 (einfo): Likewise.
514 (minfo): Likewise.
515 (lfinfo): Likewise.
516
517 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
518 declarations. Update copyright.
519
520 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
521
522 * pe-dll.c: Remove obsoleted declaration of
523 pe_get_data_import_dll_name.
524 (pe_create_import_fixup): Fix thinko.
525
526 * ld.texinfo(enable-auto-import): Clarify the explanation.
527
528 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
529
530 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
531 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
532 DLL_SUPPORT controlled code.
533
534 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
535
536 * emultempl/pe.em(pe_data_import_dll): Make static.
537 (pe_get_data_import_dll_name): New accessor function.
538 * pe-dll.c(pe_create_import_fixup): call
539 pe_get_data_import_dll_name() from pe.em, instead of
540 directly accessing pe_data_import_dll variable from pe.em.
541
542 2001-09-18 Bruno Haible <haible@clisp.cons.org>
543
544 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
545 (def_file_add_directive): Use ISSPACE instead of isspace.
546 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
547 isdigit/isxdigit/isalpha/isalnum.
548 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
549 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
550 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
551 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
552 isalnum.
553 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
554 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
555 isupper/tolower.
556 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
557 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
558 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
559 (ctor_prio): Use ISDIGIT instead of isdigit.
560 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
561 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
562 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
563 isupper/tolower.
564 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
565 (stricpy): Use TOLOWER instead of isupper/tolower.
566 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
567 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
568 (lex_warn_invalid): Use ISPRINT instead of isprint.
569 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
570 (main): For gettext, also set the LC_CTYPE locate facet.
571 (add_keepsyms_file): Use ISSPACE instead of isspace.
572 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
573 (is_num, parse_args): Use ISDIGIT instead of isdigit.
574 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
575 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
576 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
577 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
578 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
579 (quoteput): Use ISSPACE instead of isspace.
580 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
581 instead of isalnum.
582
583 2001-09-18 Alan Modra <amodra@bigpond.net.au>
584
585 * deffilep.y (def_stash_module): Constify "name" param.
586
587 * pe-dll.c: Replace CONST with const throughout.
588 (quick_symbol): Constify "n1", "n2", "n3" params.
589 (make_singleton_name_thunk): Constify "import" param. Make
590 "buffer_len" a size_t.
591 (make_import_fixup_entry): Constify "name", "fixup_name",
592 "dll_symname" params.
593 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
594 (pe_get32): Likewise.
595 (pe_implied_import_dll): Likewise.
596
597 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
598 (sort_by_section_name): Likewise.
599
600 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
601 (make_import_fixup): Cast printf arg, rel->address to long rather
602 than int.
603 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
604
605 2001-09-15 Alan Modra <amodra@bigpond.net.au>
606
607 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
608 defines BufferSize. Increase buffer size by one.
609
610 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
611
612 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
613
614 2001-09-14 Kevin Lo <kevlo@openbsd.org>
615
616 * configure.tgt: Add arm-openbsd target.
617
618 2001-09-12 H.J. Lu <hjl@gnu.org>
619
620 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
621 eelf64lppc.o to ...
622 (ALL_64_EMULATIONS): Here.
623 * Makefile.in: Regenerated.
624
625 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
626
627 * emultempl/pe.em(make_import_fixup): change signature to
628 take asection as well as arelec; we need this for proper
629 error reporting. Only call pe_create_import_fixup() if
630 there is no attempt to add a constant addend to the reloc;
631 otherwise, report error condition.
632 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
633 since final argument is a pointer to make_import_fixup().
634 Change call to cb() to match make_import_fixup() signature.
635 (make_import_fixup_mark): make buffer_len unsigned.
636 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
637
638 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
639
640 * ld.texinfo: add verbose documentation for auto-import
641 direct-addressing workaround, to compliment the terse
642 error message.
643
644 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
645
646 * scripttempl/v850.sc: Add gcc_except_table sections.
647
648 Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
649
650 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
651 * emulparams/h8300self.sh: Similarly.
652
653 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
654
655 * ld.texinfo (Options, --stack): Correct default value for stack
656 reserve.
657
658 2001-09-05 Tom Rix <trix@redhat.com>
659
660 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
661
662 2001-09-03 Andreas Jaeger <aj@suse.de>
663
664 * emultempl/beos.em: Declare prototypes for comparions functions,
665 adjust definitions.
666
667 2001-09-02 Andreas Jaeger <aj@suse.de>
668
669 * emultempl/aix.em: Add missing prototype.
670 * emultempl/lnk960.em: Likewise.
671 * emultempl/vanilla.em: Likewise.
672 * emultempl/armcoff.em: Likewise.
673 * emultempl/armelf_oabi.em: Likewise.
674 * emultempl/beos.em: Likewise.
675 * emultempl/gld960c.em: Likewise.
676 * emultempl/gld960.em: Likewise.
677
678 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
679 for prototype declaration.
680
681 2001-08-31 Eric Christopher <echristo@redhat.com>
682 Jason Eckhardt <jle@redhat.com>
683
684 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
685
686 2001-08-31 Andreas Jaeger <aj@suse.de>
687
688 * emultempl/pe.em: Add missing prototypes.
689 (gld_${EMULATION_NAME}_after_open): Remove extra args to
690 pe_find_data_imports.
691 (pr_sym): Add unused attribute.
692
693 2001-08-29 Joel Sherrill <joel@OARcorp.com>
694
695 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
696 default from coff to elf.
697
698 2001-08-29 Jeff Law <law@redhat.com>
699
700 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
701 ARCH specification.
702 * emulparams/h8300self.sh: Similarly.
703
704 Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
705
706 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
707 eh8300self.o .
708 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
709 * configure.tgt (h8300-*-elf*): New case.
710 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
711 * emulparams/h8300self.sh: New file.
712 * Makefile.in: Regenerated.
713
714 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
715
716 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
717 with macro name.
718
719 2001-08-27 Linus Nordberg <linus@swox.com>
720 Alan Modra <amodra@bigpond.net.au>
721
722 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
723 (eelf64ppc.c, eelf64lppc.c): Add make targets.
724 Run "make dep-am"
725 * Makefile.in: Regenerate.
726 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
727 entries to correct alphabetical position.
728 * emulparams/elf64ppc.sh: New.
729 * emulparams/elf64lppc.sh: New.
730
731 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
732
733 * ldmain.c (main): Declare BSIZE as static.
734
735 2001-08-23 Jakub Jelinek <jakub@redhat.com>
736
737 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
738 into .rel.dyn resp. .rela.dyn if combreloc.
739 (get_script): If .x linker script is equal to .xn, only put it
740 once into the binary.
741 Add .xc and .xsc scripts.
742 (parse_args): Handle -z combreloc and -z nocombreloc.
743 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
744 For .xc and .xsc scripts put all .rel* or .rela* input sections
745 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
746 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
747 is elf.
748 Strip trailing whitespace from script.
749 Generate .xc and .xsc scripts if requested.
750 * ldmain.c (main): Initialize link_info.combreloc and
751 link_info.spare_dynamic_tags.
752 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
753 (ld_options): Add --spare-dynamic-tags option.
754 (parse_args): Likewise.
755 * ld.texinfo: Document -z combreloc and -z nocombreloc.
756 * ldint.texinfo: Document .xc and .xsc linker scripts.
757 * NEWS: Add notes about -z combreloc and SHF_MERGE.
758
759 2001-08-22 H.J. Lu <hjl@gnu.org>
760
761 * emulparams/elf32fr30.sh: Add a newline.
762
763 2001-08-21 Andreas Jaeger <aj@suse.de>
764
765 * deffilep.y: Add missing prototypes.
766 * pe-dll.c: Likewise.
767
768 2001-08-20 Alan Modra <amodra@bigpond.net.au>
769
770 * ldlang.c (insert_pad): Fix typos in last patch.
771
772 * ldlang.c: When traversing lang_statement_union_type lists,
773 consistently use "header.next" rather than "next".
774 * mpw-eppcmac.c: Likewise.
775 * emultempl/beos.em: Likewise.
776 * emultempl/hppaelf.em: Likewise.
777 * emultempl/pe.em: Likewise.
778 * ldlang.h (union lang_statement_union): Remove "next" field.
779
780 * ldlang.c (insert_pad): Use offsetof macro.
781 (lang_size_sections): Always neuter padding statements.
782 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
783
784 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
785 passed to lang_size_sections.
786 (pe_exe_fill_sections): Likewise.
787 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
788 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
789
790 2001-08-18 Alan Modra <amodra@bigpond.net.au>
791
792 * emultempl/aix.em: Formatting fixes.
793
794 2001-08-18 Alan Modra <amodra@bigpond.net.au>
795
796 * ldlang.c (insert_pad): Make use of an existing pad statement if
797 available. Move code calculating alignment, adjusting section
798 alignment power, and adjusting dot to ..
799 (size_input_section): .. here. Remove unused relax param.
800 (lang_size_sections): Change boolean `relax' param to boolean *.
801 Adjust call to size_input_section. Make use of insert_pad to
802 place pad after the assignment statement. If relaxing, zap
803 padding statements.
804 (reset_memory_regions): Reset output_bfd section sizes too.
805 (relax_again): Move to..
806 (lang_process): ..here. Adjust call to lang_size_sections, and
807 remove duplicated code.
808 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
809
810 2001-08-17 Alan Modra <amodra@bigpond.net.au>
811
812 * ld.texinfo: Document that fill values now use the four least
813 significant bytes.
814 * emulparams/elf32fr30.sh (NOP): Update.
815 * emulparams/elf32mcore.sh: Likewise.
816 * emulparams/elf64_s390.sh: Likewise.
817 * emulparams/elf_i386.sh: Likewise.
818 * emulparams/elf_i386_be.sh: Likewise.
819 * emulparams/elf_i386_chaos.sh: Likewise.
820 * emulparams/elf_i386_ldso.sh: Likewise.
821 * emulparams/elf_s390.sh: Likewise.
822 * emulparams/elf_x86_64.sh: Likewise.
823 * emulparams/i386moss.sh: Likewise.
824 * emulparams/i386nw.sh: Likewise.
825 * emulparams/m68kelf.sh: Likewise.
826 * scripttempl/elf.sc: Update NOP comment.
827 * scripttempl/elfi370.sc: Likewise.
828 * scripttempl/elfm68hc11.sc: Likewise.
829 * scripttempl/elfm68hc12.sc: Likewise.
830 * scripttempl/nw.sc: Likewise.
831
832 2001-08-15 Tom Rix <trix@redhat.com>
833
834 * ldgram.y (saved_script_handle): Initialize to NULL.
835 * ldmain.c (main): Change check on saved_script_handle.
836
837 2001-08-14 Alan Modra <amodra@bigpond.net.au>
838
839 * emultempl/elf32.em: Formatting fixes.
840 (output_prev_sec_find): Test for bfd_ind_section too; do so by
841 looking at sec->owner.
842 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
843 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
844 unused code, and reorganize orphan section placement code.
845
846 * ldlang.c (wild_doit): Rename to lang_add_section.
847 * ldlang.h: Here too.
848 * mpw-elfmips.c: And here.
849 * emultempl/beos.em: And here.
850 * emultempl/elf32.em: And here.
851 * emultempl/hppaelf.em: And here.
852 * emultempl/pe.em: And here.
853
854 2001-08-13 Richard Henderson <rth@redhat.com>
855
856 * emultempl/needrelax.em: New file.
857 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
858 * Makefile.am (eelf64_ia64.c): Depend on it.
859 * Makefile.in: Rebuild.
860
861 2001-08-13 Alan Modra <amodra@bigpond.net.au>
862
863 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
864 output_section is set non-NULL.
865
866 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
867 `true' for SEC_EXCLUDE sections so that the generic code doesn't
868 needlessly create an output_section_statement. Treat a correctly
869 named output_section_statement with NULL bfd_section as compatible.
870
871 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
872
873 * emultempl/generic.em: Support EXTRA_EM_FILE.
874 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
875 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
876 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
877 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
878 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
879 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
880 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
881 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
882 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
883 LDEMUL_FIND_POTENTIAL_LIBRARIES.
884
885 2001-08-12 Richard Henderson <rth@redhat.com>
886
887 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
888 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
889 scripttempl/v850.sc: Keep .jcr data.
890
891 2001-08-12 H.J. Lu <hjl@gnu.org>
892 Andrew Haley <aph@cambridge.redhat.com>
893 Nick Clifton <nickc@redhat.com>
894
895 * ldgram.y (had_script): Change name to saved_script_handle.
896 Change type to file handle.
897 * ld.h (had_script): Rename and retype.
898 * ldfile.c (ldfile_open_command_file): Save the file handle
899 used in saved_script_handle.
900 * lexsup.c (parse_args): Do not allow -c option to alter
901 saved_script_handle.
902 * ldmain.c (main): Print out the linker script used if
903 --verbose is given. Check saved_script_handle to obtain the
904 external linker script used, or if NULL, dump the builtin
905 script.
906 * ld.texinfo: Document that --verbose now dumps the linker
907 script used, regardless of whether it was an internal or an
908 external script.
909
910 2001-08-10 Andreas Jaeger <aj@suse.de>
911
912 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
913 to build warnings.
914 * configure: Regenerate.
915
916 2001-08-09 Alan Modra <amodra@bigpond.net.au>
917
918 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
919
920 * scripttempl/elf.sc: Move non-text .dynamic section before
921 .plt/.got/.sdata* group.
922 (OTHER_GOT_SECTIONS): Move to immediately after .got.
923 (OTHER_SDATA_SECTIONS): Add.
924 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
925 OTHER_GOT_SECTIONS.
926 * emulparams/crislinux.sh: Likewise.
927 * emulparams/elf32b4300.sh: Likewise.
928 * emulparams/elf32bmip.sh: Likewise.
929 * emulparams/elf32bmipn32.sh: Likewise.
930 * emulparams/elf32bsmip.sh: Likewise.
931 * emulparams/elf32btsmip.sh: Likewise.
932 * emulparams/elf32ebmip.sh: Likewise.
933 * emulparams/elf32elmip.sh: Likewise.
934 * emulparams/elf32l4300.sh: Likewise.
935 * emulparams/elf32lmip.sh: Likewise.
936 * emulparams/elf32lsmip.sh: Likewise.
937 * emulparams/elf32ltsmip.sh: Likewise.
938 * emulparams/elf64bmip.sh: Likewise.
939 * emulparams/elf64btsmip.sh: Likewise.
940 * emulparams/elf64ltsmip.sh: Likewise.
941
942 2001-08-08 Alan Modra <amodra@bigpond.net.au>
943
944 * genscripts.sh: Source the emulparams script before each output
945 script is generated so that variables like `RELOCATING' may affect
946 variables defined in the emulparams script.
947
948 2001-08-04 Alan Modra <amodra@bigpond.net.au>
949
950 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
951 order.
952
953 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
954 ie. iterate over wild_statement.section_list.
955 (gld${EMULATION_NAME}_place_orphan): Likewise.
956
957 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
958
959 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
960 .fini[0-4] sections used by _exit
961 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
962 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
963 * scripttempl/elfm68hc11.sc: Likewise.
964
965 2001-08-03 H.J. Lu <hjl@gnu.org>
966
967 * emultempl/beos.em (init): Add the missing initialization.
968
969 2001-08-03 Alan Modra <amodra@bigpond.net.au>
970
971 * ld.texinfo (Input Section Basics): Clarify ordering of output
972 sections.
973 * ldlang.c (callback_t): Add wildcard_list param.
974 (walk_wild_section): Remove "section" param. Rewrite for
975 lang_wild_statement_type change. Remove unique_section_p test.
976 (walk_wild_file): Remove "section" param.
977 (walk_wild): Remove "section" and "file" params.
978 (lang_gc_wild): Likewise.
979 (wild): Likewise. Modify for lang_wild_statement_type change.
980 (wild_sort): Likewise. Add "sec" param.
981 (gc_section_callback): Likewise.
982 (output_section_callback): Likewise. Do unique_section_p test.
983 (map_input_to_output_sections): Modify call to wild.
984 (lang_gc_sections_1): Likewise.
985 (print_wild_statement): Modify for lang_wild_statement_type
986 change.
987 (lang_add_wild): Replace filename, filenames_sorted param with
988 filespec. Replace section_name, sections_sorted,
989 exclude_filename_list with section_list.
990 * ldlang.h (lang_add_wild): Here too.
991 (lang_wild_statement_type): Replace section_name, sections_sorted,
992 and exclude_filename_list with section_list.
993 * ldgram.y (current_file): Delete.
994 (%union): Add wildcard_list.
995 (file_NAME_list): Set type to wildcard_list. Build a linked list
996 rather than calling lang_add_wild for each entry.
997 (input_section_spec_no_keep): Call lang_add_wild here instead.
998 * ld.h (struct wildcard_list): Declare.
999 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1000
1001 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1002
1003 * ldmain.c (main): initialize link_info.pei386_auto_import
1004 * pe-dll.c: new tables for auto-export filtering
1005 (auto_export): change API, pass abfd for contextual filtering.
1006 Loop thru tables of excluded symbols instead of comparing
1007 "by hand".
1008
1009 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1010
1011 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1012 static variable current_sec (static struct sec *). Add
1013 forward declaration for add_bfd_to_link.
1014 (process_def_file): Don't export undefined symbols. Do not
1015 export symbols starting with "_imp__". Call auto_export()
1016 with new API.
1017 (pe_walk_relocs_of_symbol): New function.
1018 (generate_reloc): add optional extra debugging
1019 (pe_dll_generate_def_file): eliminate extraneous initial blank
1020 line in output
1021 (make_one): enlarge symtab to make room for __nm__ symbols
1022 (DATA auto-import support).
1023 (make_singleton_name_thunk): New function.
1024 (make_import_fixup_mark): New function.
1025 (make_import_fixup_entry): New function.
1026 (pe_create_import_fixup): New function.
1027 (add_bfd_to_link): Specify that 'name' argument is a CONST
1028 char *.
1029 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1030 declare new functions pe_walk_relocs_of_symbol and
1031 pe_create_import_fixup.
1032 * emultempl/pe.em: add new options --enable-auto-import,
1033 --disable-auto-import, and --enable-extra-pe-debug.
1034 (make_import_fixup): New function.
1035 (pe_find_data_imports): New function.
1036 (pr_sym): New function.
1037 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1038 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1039 CODE.
1040
1041 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1042
1043 * ld.texinfo: add additional documentation for
1044 --export-all-symbols. Document --out-implib,
1045 --enable-auto-image-base, --disable-auto-image-base,
1046 --dll-search-prefix, --enable-auto-import, and
1047 --disable-auto-import.
1048 * ldint.texinfo: Add detailed documentation on auto-import
1049 implementation.
1050
1051 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1052
1053 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1054 example.
1055
1056 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1057
1058 * Makefile.am: Update dependencies with "make dep-am".
1059 * Makefile.in: Regenerate
1060
1061 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1062
1063 * ldcref.c (check_section_sym_xref): New function.
1064 (check_nocrossrefs): Call it.
1065 (check_nocrossref): Interate over h->refs here instead of..
1066 (check_refs): ..here. Pass in the symbol name, section, and bfd
1067 rather than hash_entry pointers.
1068 (struct check_refs_info): Keep symbol name rather than hash entry.
1069 Remove "same".
1070 (check_reloc_refs): Tweak for above changes in check_refs_info.
1071 Only report references to section syms when symname is NULL to
1072 prevent duplicate messages for the same reloc.
1073
1074 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1075
1076 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1077 available. Do not print NULL trees.
1078 (exp_print_token): Print unknown tokens with values > 126 as
1079 decimal values not ASCII characters.
1080
1081 * ldlang.c (lang_leave_overlay): If a region is specified assign
1082 it to all sections inside the overlay unless they have been
1083 assigned to the own, non-default, memory region.
1084
1085 * README: Add header for consistency with other README files.
1086
1087 2001-07-14 H.J. Lu <hjl@gnu.org>
1088
1089 * emultempl/elf32.em (output_prev_sec_find): Never return
1090 bfd_abs_section_ptr, bfd_com_section_ptr nor
1091 bfd_und_section_ptr.
1092
1093 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1094
1095 * Makefile.am (em32relf.c): Change dependency from generic.em to
1096 elf32.em.
1097 * Makefile.in: Regenerate.
1098
1099 2001-07-14 matthew green <mrg@eterna.com.au>
1100
1101 * configure.tgt (i386-*-netbsdelf*): New target.
1102 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1103
1104 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1105
1106 * emultempl/elf32.em (output_prev_sec_find): New.
1107 (place_orphan): Use it.
1108
1109 2001-07-11 H.J. Lu <hjl@gnu.org>
1110
1111 * ldmain.c (main): Fix typos in the last change.
1112
1113 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1114
1115 * ldmain.c (main): Disallow -F and -f without -shared.
1116
1117 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1118
1119 * emultempl/pe.em (after_open): Check for the output_bfd not
1120 having any coff_data structure allocated to it.
1121
1122 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1123
1124 * emultempl/elf32.em: Do not assuming that contents of the buffer
1125 returned from basename function will remain unchanged accross other
1126 function calls.
1127
1128 2001-07-03 H.J. Lu <hjl@gnu.org>
1129
1130 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1131 2001-07-03. It creates dynamic entries even for static binaries.
1132
1133 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1134
1135 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1136 (DYNAMIC): Use it to reserve few dynamic entries for
1137 post-linking tools.
1138
1139 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1140
1141 * emulparams/hppa64linux.sh: New file.
1142 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1143 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1144 (ehppa64linux.c): Add rule to make it.
1145 Run "make dep-am".
1146 * Makefile.in: Regenerate.
1147
1148 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1149
1150 * ld.texinfo (Options, -r): Mention restrictions when using
1151 different object formats.
1152
1153 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1154
1155 * ldlang.c (lang_check): Emit fatal error if relocatable link
1156 between different object flavours with relocations in input.
1157
1158 2001-06-19 H.J. Lu <hjl@gnu.org>
1159
1160 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1161 (--version-script): Mention the language support.
1162
1163 2001-06-19 H.J. Lu <hjl@gnu.org>
1164
1165 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1166
1167 2001-06-18 H.J. Lu <hjl@gnu.org>
1168
1169 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1170 (diststuff): Add $(MANS).
1171 * Makefile.in: Regenerated.
1172
1173 * ld.1: Removed.
1174
1175 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1176
1177 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1178 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1179 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1180 * ld.h (args_type): Remove member export_dynamic. All users
1181 changed to use struct bfd_link_info member.
1182
1183 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1184 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1185 * Makefile.in: Regenerate.
1186
1187 2001-06-18 H.J. Lu <hjl@gnu.org>
1188
1189 * ldlang.c (init_os): Add the newline to the einfo call.
1190 (lang_check): Likewise.
1191 (lang_do_version_exports_section): Likewise.
1192
1193 2001-06-15 H.J. Lu <hjl@gnu.org>
1194
1195 * lexsup.c (parse_args); Save optind to report unrecognized
1196 option.
1197
1198 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1199
1200 * ldlang.c (lang_check): Emit fatal error if relocatable link
1201 between different object flavours.
1202
1203 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1204 Set new link_info member export_dynamic.
1205 * ldmain.c (main): Initialize new link_info member export_dynamic.
1206
1207 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1208
1209 * ldlang.c (walk_wild): Only call walk_wild_file if
1210 lookup_name returns something.
1211 (lookup_name): If load_symbols fails, return NULL.
1212 (load_symbols): Change to a boolean function.
1213 (open_input_bfds): If load_symbols fails then do not make the
1214 executable.
1215
1216 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1217
1218 * ldlang.c (record_bfd_errors): Remove.
1219
1220 * emultempl/aix.em: Fix copyright dates.
1221
1222 2001-06-07 Andreas Jaeger <aj@suse.de>
1223
1224 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1225 (TEXT_START_ADDR): Likewise.
1226
1227 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1228
1229 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1230
1231 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1232
1233 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1234
1235 2001-05-31 H.J. Lu <hjl@gnu.org>
1236
1237 * ldlang.c (open_input_bfds): Don't change the bfd error
1238 handler whilst loading symbols.
1239
1240 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1241
1242 * configure.tgt: Remove i370-mvs architecture, it is not currently
1243 supported.
1244
1245 2001-05-25 H.J. Lu <hjl@gnu.org>
1246
1247 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1248 like emulparams/aixppc.sh.
1249
1250 2001-05-25 H.J. Lu <hjl@gnu.org>
1251
1252 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1253 setting of output_filename after bfd_scan_arch.
1254 * emultempl/pe.em: Likewise.
1255
1256 2001-05-25 H.J. Lu <hjl@gnu.org>
1257
1258 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1259 like emulparams/aixppc.sh.
1260
1261 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1262 instead of ${srcdir}/emultempl/stringify.sed.
1263
1264 2001-05-25 Timothy Wall <twall@oculustech.com>
1265
1266 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1267 output.
1268
1269 2001-05-25 Alan Modra <amodra@one.net.au>
1270
1271 * configure.host: Replace linuxoldld with linux*oldld.
1272 * configure.tgt: Likewise.
1273
1274 2001-05-24 H.J. Lu <hjl@gnu.org>
1275
1276 * emultempl/stringify.sed: Removed again.
1277
1278 2001-05-24 H.J. Lu <hjl@gnu.org>
1279
1280 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1281 (gld${EMULATION_NAME}_before_parse): Initialize
1282 ldfile_output_architecture, ldfile_output_machine and
1283 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1284 * emultempl/beos.em: Likewise.
1285 * emultempl/elf32.em: Likewise.
1286 * emultempl/linux.em: Likewise.
1287 * emultempl/mipsecoff.em: Likewise.
1288 * emultempl/pe.em: Likewise.
1289 * emultempl/sunos.em: Likewise.
1290
1291 2001-05-24 Tom Rix <trix@redhat.com>
1292
1293 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1294 udate import file format.
1295 (change_symbol_mode) New, same
1296 (is_syscall) New, same
1297 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1298 * emulparams/aixppc64.sh : same
1299 * emulparams/aixrs6.sh : same
1300 * emulparams/ppcmacos.sh : same
1301 * emultempl/aix.em : use strtoull to parse options
1302 * Makefile.am : add eaixppc64 emulation for xcoff64
1303 * Makefile.in : same
1304 * configure.tgt : same
1305
1306 * scripttempl/aix.sc : default text section offset to 0x10000000
1307 default data section offset to 0x20000000
1308 add .sv3264 and .sv64 pseudo sections
1309 loader and debug sections use the currect section offset.
1310
1311 * emultempl/aix.em : Add xcoff64 support
1312 Add -binitfini support
1313 (gld${EMULATION_NAME}_before_parse) -binitfini
1314 (gld${EMULATION_NAME}_parse_args) same
1315 (gld${EMULATION_NAME}_before_allocation) format change for special
1316 sections
1317
1318 * emulparams/aixppc64.sh : New file for xcoff64 support
1319
1320 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1321
1322 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1323 variable to avoid non-portable shell construct.
1324
1325 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1326
1327 * ldmain.c (get_emulation): Add -mips5 command line argument.
1328
1329 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1330
1331 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1332 (ELF_INTERPRETER_NAME): Define it.
1333 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1334 it.
1335 * configure.tgt (targ_emul, targ_extra_emuls)
1336 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1337 as primary, elf_i386 as extra.
1338 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1339 (eelf_i386_ldso.c): New rule.
1340 * Makefile.in: Rebuilt.
1341
1342 2001-05-22 Nick Clifton <nickc@redhat.com>
1343
1344 * lexsup.c (ld_options): Allow -I to be an alias for
1345 --dynamic-linker. This is for Solaris compatability.
1346 * ld.texinfo: Document that -I can be used.
1347 * ld.1: Regenerate.
1348
1349 2001-05-16 Alan Modra <amodra@one.net.au>
1350
1351 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1352 whether an input section is the first one assigned to an output
1353 section.
1354 Assorted formatting fixes.
1355
1356 2001-05-14 DJ Delorie <dj@delorie.com>
1357
1358 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1359 * Makefile.in: Ditto.
1360
1361 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1362
1363 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1364 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1365 output sections.
1366 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1367
1368 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1369
1370 * ldlang.c (lang_process): Call bfd_merge_sections.
1371
1372 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1373
1374 * ldgram.y: Fix typo.
1375
1376 2001-05-03 H.J. Lu <hjl@gnu.org>
1377
1378 * emultempl/elf32.em: Include "libiberty.h".
1379 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1380 basename of the bfd filename.
1381 (gld${EMULATION_NAME}_stat_needed): Likewise.
1382 (gld${EMULATION_NAME}_try_needed): Likewise.
1383 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1384
1385 2001-05-02 H.J. Lu <hjl@gnu.org>
1386
1387 * emultempl/pe.em: Include <ctype.h>.
1388
1389 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1390
1391 * emulparams/elf32openrisc.sh: New file.
1392
1393 * Makefile.am: Add OpenRISC target.
1394 * Makefile.in: Regenerated.
1395
1396 * configure.tgt: Add openrisc-*-* mapping.
1397
1398 2001-05-02 Nick Clifton <nickc@redhat.com>
1399
1400 * emultempl/aix.em: Replace buystring with xstrdup.
1401 * emultempl/beos.em: Replace buystring with xstrdup.
1402
1403 2001-05-02 H.J. Lu <hjl@gnu.org>
1404
1405 * ldfile.c: Include "libiberty.h".
1406 * ldlex.l: Likewise.
1407
1408 * ldmisc.c (buystring): Removed.
1409 * ldmisc.h: Likewise.
1410
1411 * ldfile.c: Replace buystring with xstrdup.
1412 * ldlang.c: Likewise.
1413 * ldlex.l: Likewise.
1414 * ldmain.c: Likewise.
1415 * ldmisc.c: Likewise.
1416 * lexsup.c: Likewise.
1417 * mpw-eppcmac.c: Likewise.
1418
1419 2001-04-30 Andreas Jaeger <aj@suse.de>
1420
1421 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1422
1423 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1424
1425 * ldlang.c (load_symbols): Give emulation a chance
1426 to process unrecognized file before fatal error is
1427 reported, not after.
1428
1429 2001-04-27 Sean McNeil <sean@mcneil.com>
1430
1431 * configure.tgt: Add arm-vxworks target.
1432 * scripttempl/armcoff.sc: Support .text or .data as a section name
1433 prefix.
1434 Define _etext.
1435
1436 2001-04-13 J.T. Conklin <jtc@redback.com>
1437
1438 * ld.texinfo: Document --fatal-warnings.
1439 * ld.1: Regenerate.
1440
1441 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1442 warnings have been turned into errors.
1443 * lexsup.c (OPTION_WARN_FATAL): Define.
1444 (ld_options): Entry for --fatal-warnings.
1445 (parse_args): Handle OPTION_WARN_FATAL.
1446 * ld.h (ld_config_type): Add fatal_warnings field.
1447
1448 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1449
1450 * ldmain.c (main): Default to discard_sec_merge.
1451 * lexsup.c (OPTION_DISCARD_NONE): Define.
1452 (ld_options): Add --discard-none.
1453 (parse_args): Handle OPTION_DISCARD_NONE.
1454 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1455 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1456 all its input sections match.
1457
1458 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1459
1460 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1461 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1462 (eelf32ltsmip.c): New target.
1463 (eelf64btsmip.c): Likewise.
1464 (eelf64ltsmip.c): Likewise.
1465 * Makefile.in: Regenerated.
1466
1467 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1468 target.
1469 (mips*-*-linux-gnu*): Likewise.
1470
1471 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1472 MIPS taget.
1473 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1474 target.
1475 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1476 endian target.
1477
1478 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1479
1480 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1481 correct value of __Stext here.
1482 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1483 .startup section.
1484
1485 * emulparams/crislinux.sh: Remove FIXME.
1486
1487 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1488
1489 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1490 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1491
1492 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1493
1494 * configure.tgt (cris-*-*): Change default emulation to criself.
1495 (cris-*-*aout*): New rule.
1496
1497 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1498
1499 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1500 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1501
1502 2001-03-26 Andreas Jaeger <aj@suse.de>
1503
1504 * ld.texinfo (Overview): Fix syntax in texi code.
1505
1506 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1507
1508 * ld.texinfo: Put @c man indications to generate the ld man page.
1509 When generating man, define all the variables. Define SEEALSO
1510 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1511 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1512 (ld.1): Generate from ld.texinfo.
1513 * Makefile.in: Regenerate.
1514
1515 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1516
1517 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1518 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1519
1520 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1521
1522 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1523 is an absolute path look only for this file and not along the path.
1524
1525 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1526
1527 * emultempl/elf32.em (OPTION_GROUP): New macro.
1528 Add new option Bgroup to longopts.
1529 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1530 (gld*_list_options): Add -Bgroup and -z defs.
1531 * ld.1: Document -Bgroup and -z defs.
1532 * ld.texinfo: Likewise.
1533
1534 2001-03-07 Michael Meissner <meissner@redhat.com>
1535
1536 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1537 with sections created by -fdata-sections.
1538 (.dynbss,.bss): Ditto.
1539
1540 2001-03-05 Alan Modra <alan@linuxcare.com.au>
1541
1542 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1543 after_allocation_default, not gld..._before_allocation.
1544
1545 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1546
1547 * configure.in (BFD_VERSION): New.
1548 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1549 * configure: Regenerate.
1550 * Makefile.am: Run "make dep-am"
1551 * Makefile.in: Regenerate.
1552
1553 2001-02-26 Timothy Wall <twall@cygnus.com>
1554
1555 * emulparams/elf64_aix.sh: Add additional read-only sections;
1556 uncomment lines which are now required.
1557
1558 2001-02-26 H.J. Lu <hjl@gnu.org>
1559
1560 * ldlang.c (open_input_bfds): Set the bfd error handler so
1561 that problems can be caught whilst loading symbols.
1562 (record_bfd_errors): New function: Report BFD errors and mark
1563 the executable output as being invalid.
1564
1565 2001-02-22 Timothy Wall <twall@cygnus.com>
1566
1567 * configure.host: Add configuration for ia64-*-aix*.
1568 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1569 Add dependencies for eelf64_aix.c.
1570 * Makefile.in: Regenerate.
1571 * configure.tgt: Add ia64-*-aix* mapping.
1572 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1573 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1574 AIX-specific test.
1575
1576 2001-02-20 H.J. Lu <hjl@gnu.org>
1577
1578 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1579 false if we found the file.
1580
1581 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1582
1583 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1584 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1585
1586 2001-02-18 lars brinkhoff <lars@nocrew.org>
1587
1588 * Makefile.am: Add PDP-11 target.
1589 * configure.tgt: Likewise.
1590 * emulparams/pdp11.sh: New file.
1591
1592 2001-02-17 David O'Brien <obrien@FreeBSD.org>
1593
1594 * configure.host: Add a generic FreeBSD configuration entry such that
1595 all [modern] FreeBSD systems on all platforms will look the same.
1596
1597 2001-02-14 H.J. Lu <hjl@gnu.org>
1598
1599 * configure.tgt: Remove mention of earmelf_linux26.
1600
1601 2001-02-13 Richard Henderson <rth@redhat.com>
1602
1603 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1604
1605 2001-02-13 H.J. Lu <hjl@gnu.org>
1606
1607 * ldexp.h (node_type): Add etree_provided.
1608 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1609 type to etree_provided if defined by PROVIDE. Allow updating
1610 for etree_provided.
1611 (exp_print_tree): Handle etree_provided.
1612 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1613 etree_provided.
1614
1615 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1616
1617 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1618 .IA_64.unwind.* pattern to unwind table section and
1619 .IA_64.unwind_info* pattern to unwind info section.
1620
1621 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1622
1623 * Makefile.am: Add linux target for S/390.
1624 * Makefile.in: Likewise.
1625 * configure.host: Likewise.
1626 * configure.tgt: Likewise.
1627 * emulparams/elf64_s390.sh: New file.
1628 * emulparams/elf_s390.sh: New file.
1629
1630 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1631
1632 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1633 targ_extra_libpath.
1634 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1635
1636 2001-02-06 Philip Blundell <philb@gnu.org>
1637
1638 * Makefile.am: Remove mention of earmelf_linux26.
1639 * Makefile.in: Regenerate.
1640
1641 2001-02-04 Philip Blundell <philb@gnu.org>
1642
1643 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1644 * emulparams/armelf_linux26.sh: Delete.
1645 * configure.tgt: Remove mention of armelf_linux26 emulation.
1646
1647 2001-02-01 Nick Clifton <nickc@redhat.com>
1648
1649 * ld.1: Replace occurances of -oformat with --oformat.
1650
1651 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1652
1653 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1654 load_base is specified.
1655
1656 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
1657
1658 * emultempl/elf32.em: Correct spelling in comments and listed
1659 options.
1660
1661 2001-01-23 Alan Modra <alan@linuxcare.com.au>
1662
1663 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1664 default for the first section of a group of overlay sections.
1665
1666 2001-01-22 Alan Modra <alan@linuxcare.com.au>
1667
1668 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1669 * Makefile.in: Regenerate.
1670 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1671 Check for null tool_dir.
1672
1673 2001-01-16 Jim Wilson <wilson@redhat.com>
1674
1675 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1676 and IA_64.unwind.info.
1677
1678 2001-01-16 H.J. Lu <hjl@gnu.org>
1679
1680 * ldlang.c (lang_check): Merge the private data only if the
1681 input file has contents.
1682
1683 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1684
1685 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1686
1687 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1688 enabling search for libmilli. On a relocatable link, make .text
1689 sections unique.
1690 (LDEMUL_AFTER_PARSE): Define.
1691 (hppaelf_finish): Correct spelling of relocatable in comments.
1692
1693 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1694 rummage through the script for sections on the unique list.
1695 Correct length of strncmp for ".note".
1696 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1697
1698 * ldlang.c (unique_section_list): New var.
1699 (unique_section_p): New function.
1700 (walk_wild_section): Don't match sections on unique_section_list.
1701 (lang_add_unique): New function.
1702 Correct spelling of relocatable in comments.
1703
1704 * ldlang.h (struct unique_sections): Declare.
1705 (unique_section_list): Declare.
1706 (unique_section_p): Declare.
1707 (lang_add_unique): Declare.
1708
1709 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1710 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1711
1712 * ld.texinfo (--unique): Update.
1713
1714 2001-01-13 Nick Clifton <nickc@redhat.com>
1715
1716 * lexsup.c (parse_args): Remove spurious white space.
1717
1718 2001-01-12 Nick Clifton <nickc@redhat.com>
1719
1720 * lexsup.c (parse_args): Update copyright date.
1721
1722 2001-01-12 Philip Blundell <pb@futuretv.com>
1723
1724 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1725
1726 2001-01-10 Kazu Hirata <kazu@hxi.com>
1727
1728 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1729 * scripttempl/h8300h.sc: Fix formatting.
1730 * scripttempl/h8300s.sc: Likewise.
1731 * scripttempl/h8500.sc: Likewise.
1732 * scripttempl/h8500b.sc: Likewise.
1733 * scripttempl/h8500c.sc: Likewise.
1734 * scripttempl/h8500m.sc: Likewise.
1735 * scripttempl/h8500s.sc: Likewise.
1736
1737 2000-01-07 David O'Brien <obrien@BSDi.com>
1738
1739 * emultempl/elf32.em: Only perform Linux ld hints processing when
1740 targeting Linux.
1741
1742 2001-01-07 Philip Blundell <philb@gnu.org>
1743
1744 * ld.texinfo (Bug Reporting): Update email address for reports.
1745
1746 2000-12-31 Nick Clifton <nickc@redhat.com>
1747
1748 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1749 options by checking for a return value of '?' not -1.
1750
1751 2000-12-28 Nick Clifton <nickc@redhat.com>
1752
1753 * lexsup.c (struct ld_option): Add new enum value:
1754 EXACTLY_TWO_DASHES.
1755 (ld_options[]): Change -omagic, -output and -oformat options
1756 to be EXACTLY_TWO_DASHES.
1757 (OUTPUT_COUNT): Use ARRAY_SIZE.
1758 (parse_args): Change parameter 'argc' to unsigned.
1759 Place EXACTLY_TWO_DASHES options into new really_longopts
1760 array.
1761 If getopt_long_only fails, try calling getopt_long using the
1762 really_longopts array.
1763 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1764 TWO_DASHES options.
1765
1766 * ldlex.h: Fix prototype of parse_args.
1767
1768 * ld.texinfo: Document that long options starting with 'o'
1769 must be preceeded by two dashes. Change example of a single
1770 dashed long option from -oformat to -trace-symbol.
1771
1772 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1773
1774 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1775 (longopts[]): New --no-default-excludes option.
1776 (gld_${EMULATION_NAME}_list_options): Document.
1777 (gld_${EMULATION_NAME}_parse_args): Handle.
1778
1779 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1780
1781 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1782 whitespace, it breaks the K&R C preprocessor.
1783
1784 2000-12-11 DJ Delorie <dj@redhat.com>
1785
1786 * ld.texinfo: Add notes about --whole-archive and gcc.
1787
1788 2000-11-18 Fred Fish <fnf@be.com>
1789
1790 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1791 (ld_options): Entry for --allow-shlib-undefined.
1792 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1793 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1794 to false.
1795 * ld.texinfo: Document new command line switch.
1796
1797 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
1798
1799 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1800 .fixup is actually read/write.
1801 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1802 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1803 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1804
1805 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1806
1807 * NEWS: Add note about x86_64 architecture.
1808
1809 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1810
1811 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1812 Set DWARF2 sections to a VMA of zero.
1813
1814 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1815
1816 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1817 New targets.
1818 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1819 (sparc*-*-rtems*): Switched from a.out to ELF.
1820
1821 2000-11-30 Jan Hubicka <jh@suse.cz>
1822
1823 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1824 (eelf_x86_64.c): New.
1825 * Makefile.in: Regenerate.
1826 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1827 * emulparams/elf_x86_64.sh: New.
1828
1829 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
1830
1831 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1832 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1833
1834 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1835 merging non-a.out sections into CONSTRUCTING.
1836
1837 2000-11-28 Nick Clifton <nickc@redhat.com>
1838
1839 * ld.1 (COPYING): Mention that the GNU Free Documentation
1840 License is present in the sources, but not the output, and
1841 also available from the GNU website.
1842 (GNU Free Documentation License): Comment out this section.
1843
1844 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1845
1846 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1847 does not use them.
1848
1849 2000-11-25 David O'Brien <obrien@FreeBSD.org>
1850
1851 * ld.1: Remove old date so it does not give the impression the manpage
1852 is way out of date.
1853
1854 2000-11-24 Nick Clifton <nickc@redhat.com>
1855
1856 * configure.tgt (xscale-coff): Add target.
1857 (xscale-elf): Add target.
1858
1859 2000-11-24 Fred Fish <fnf@be.com>
1860
1861 * ldmain.c (main): Remove redundant init of config.make_executable
1862 to true.
1863
1864 2000-11-15 Richard Henderson <rth@redhat.com>
1865
1866 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1867
1868 2000-11-14 Kazu Hirata <kazu@hxi.com>
1869
1870 * scripttempl/h8300.sc: Fix formatting.
1871 * scripttempl/h8300h.sc: Likewise.
1872 * scripttempl/h8300s.sc: Likewise.
1873
1874 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1875
1876 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1877
1878 2000-11-09 Philip Blundell <pb@futuretv.com>
1879
1880 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1881 around orphan sections whose names can be represented in C.
1882
1883 2000-11-07 Jim Wilson <wilson@redhat.com>
1884
1885 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1886 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1887
1888 2000-11-06 Nick Clifton <nickc@redhat.com>
1889
1890 * ld.texinfo: Add GNU Free Documentation License.
1891 * ldint.texinfo: Add GNU Free Documentation License.
1892 * ld.1: Add GNU Free Documentation License.
1893
1894 2000-11-05 Alan Modra <alan@linuxcare.com.au>
1895
1896 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1897 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1898
1899 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1900 Move 2000-11-02 Makefile.in changes to this file.
1901 * Makefile.in: Regenerate.
1902
1903 2000-11-03 Nick Clifton <nickc@redhat.com>
1904
1905 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1906 constructors and destructors.
1907 * scripttempl/h8300h.sc: Ditto.
1908 * scripttempl/h8300s.sc: Ditto.
1909 * scripttempl/h8500.sc: Ditto.
1910 * scripttempl/h8500b.sc: Ditto.
1911 * scripttempl/h8500c.sc: Ditto.
1912 * scripttempl/h8500m.sc: Ditto.
1913 * scripttempl/h8500s.sc: Ditto.
1914 * scripttempl/v850.sc: Ditto.
1915 * scripttempl/w65.sc: Ditto.
1916 * scripttempl/z8000.sc: Ditto.
1917
1918 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1919
1920 * Makefile.in (e_i386_chaos.c): New rule.
1921 (ALL_EMULATIONS): Added e_i386_chaos.o.
1922 * emulparams/elf_i386_chaos.sh: New file.
1923 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1924
1925 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1926
1927 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1928 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1929 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1930 library path suffix.
1931 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1932
1933 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1934
1935 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1936 for consecutive sections.
1937
1938 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1939
1940 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1941 options.
1942 * ld.texinfo: Added notes about this new option.
1943
1944 2000-10-16 Nick Clifton <nickc@redhat.com>
1945
1946 * emultempl/pe.em (_after_open): Add tests of return values from
1947 bfd functions. Emit appropriate error messages if necessary.
1948
1949 2000-10-13 Nick Clifton <nickc@redhat.com>
1950
1951 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1952 local variables - they are not used, but leave in the call to
1953 bfd_canonicalize_symtab.
1954 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1955 pe_dll_search_prefix.
1956
1957 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
1958
1959 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1960 (longopts): New --dll-search-prefix option.
1961 (gld_${EMULATION_NAME}_list_options): Document.
1962 (gld_${EMULATION_NAME}_parse_args): Handle.
1963 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1964 dynamically, search for a dll named '<prefix><basename>.dll'
1965 in preference to 'lib<basename>.dll' if --dll-search-prefix
1966 is specified.
1967
1968 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1969
1970 * ldlang.c (section_already_linked): Set kept_section instead of
1971 sec->comdat->sec.
1972
1973 2000-10-10 Kazu Hirata <kazu@hxi.com>
1974
1975 * deffile.h: Fix formatting.
1976 * lexsup.c: Likewise.
1977 * mri.c: Likewise.
1978
1979 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1980
1981 * pe-dll.c (make_one): Do not generate code thunk for DATA
1982 exports.
1983 (process_def_file): deduce DATA flag for auto-export sumbols.
1984
1985 2000-10-09 Kazu Hirata <kazu@hxi.com>
1986
1987 * ld.h: Fix formatting.
1988 * ldcref.c: Likewise.
1989 * ldctor.h: Likewise.
1990 * ldemul.c: Likewise.
1991 * ldemul.h: Likewise.
1992 * ldexp.c: Likewise.
1993 * ldexp.h: Likewise.
1994 * ldfile.c: Likewise.
1995 * ldfile.h: Likewise.
1996 * ldlang.c: Likewise.
1997 * ldlang.h: Likewise.
1998 * ldmain.c: Likewise.
1999 * pe-dll.c: Likewise.
2000
2001 * pe-dll.c: Revert some formatting fixes.
2002
2003 2000-10-08 Kazu Hirata <kazu@hxi.com>
2004
2005 * pe-dll.c: Fix formatting.
2006
2007 2000-10-05 Kazu Hirata <kazu@hxi.com>
2008
2009 * ldlang.c: Fix formatting.
2010
2011 2000-10-03 DJ Delorie <dj@redhat.com>
2012
2013 * pe-dll.c (fill_edata): initialize entire block
2014 (make_one): fill in correct section.
2015
2016 2000-10-03 Kazu Hirata <kazu@hxi.com>
2017
2018 * ldexp.c: Fix formatting.
2019
2020 2000-10-02 DJ Delorie <dj@redhat.com>
2021
2022 * emultempl/pe.em (gld_*_after_open): detect case where there two
2023 import libraries for same dll; rename one to ensure proper link
2024 order.
2025
2026 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2027 typo
2028 (generate_edata): fix typo
2029
2030 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2031
2032 * scripttempl/crisaout.sc (ENTRY): Now __start.
2033 (.text): Add default setting for __start.
2034 Remove CONSTRUCTORS handling.
2035 (/DISCARD/): Add .gnu.warning.*.
2036 * emulparams/crislinux.sh (ENTRY): Now __start.
2037 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2038 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2039 (ENTRY): Now __start.
2040 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2041 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2042
2043 2000-09-29 Kazu Hirata <kazu@hxi.com>
2044
2045 * deffile.h: Fix formatting.
2046 * ld.h: Likewise.
2047 * ldcref.c: Likewise.
2048 * ldctor.c: Likewise.
2049 * ldctor.h: Likewise.
2050 * ldemul.c: Likewise.
2051 * ldemul.h: Likewise.
2052 * ldexp.c: Likewise.
2053 * ldexp.h: Likewise.
2054 * ldfile.c: Likewise.
2055 * ldfile.h: Likewise.
2056 * ldlang.c: Likewise.
2057 * ldlang.h: Likewise.
2058 * lexsup.c: Likewise.
2059 * mri.c: Likewise.
2060 * pe-dll.c: Likewise.
2061
2062 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2063
2064 * pe-dll.c (process_def_file): Uninitialized data wasn't
2065 exported with --export-all-symbols switch.
2066
2067 2000-09-28 DJ Delorie <dj@redhat.com>
2068
2069 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2070 noname work properly.
2071
2072 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2073
2074 * ld.texinfo (HPPA ELF32): New section.
2075
2076 * emultempl/hppaelf.em (group_size): New.
2077 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2078 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2079 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2080 options to prevent abbreviations matching.
2081 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2082 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2083
2084 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2085
2086 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2087 on the m68*-*-elf target. Make it support COFF input objects.
2088
2089 2000-09-21 Kazu Hirata <kazu@hxi.com>
2090
2091 * ldmain.c: Fix formatting.
2092 * ldmisc.c: Likewise.
2093 * ldver.c: Likewise.
2094 * ldwrite.c: Likewise.
2095
2096 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2097
2098 * ldwrite.c (clone_section): Silence gcc warnings.
2099
2100 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2101
2102 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2103 out of memory failure.
2104
2105 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2106 (clone_section): Handle out of memory failures. Rename var to
2107 avoid c++ reserved word.
2108
2109 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2110
2111 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2112 stub_name param to stub_sec_name.
2113 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2114
2115 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2116
2117 * emultempl/m68kelf.em: New file.
2118 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2119 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2120 * Makefile.in: Regenerate.
2121
2122 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2123
2124 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2125 only as needed.
2126
2127 2000-09-13 Nick Clifton <nickc@redhat.com>
2128
2129 * ldmain.c (multiple_definition): Disable relaxation if
2130 multiple symbol definitions are encountered - otherwise the
2131 linker could abort with an assertion failure.
2132
2133 2000-09-10 Nick Clifton <nickc@redhat.com>
2134
2135 * mri.c: Fix formatting.
2136
2137 2000-09-07 H.J. Lu <hjl@gnu.org>
2138
2139 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2140 * configure: Rebuild.
2141
2142 2000-09-07 H.J. Lu <hjl@gnu.org>
2143
2144 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2145 * Makefile.in: Rebuild.
2146
2147 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2148
2149 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2150 broken list handling. Create __start_SECNAME and __stop_SECNAME
2151 when no place-holder. Add some comments. Test both SEC_CODE and
2152 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2153 Handle case where no output section statement created.
2154
2155 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2156
2157 * configure.tgt (sh-*-linux*): Added.
2158 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2159 * Makefile.in: Rebuilt.
2160 * emulparams/shelf_linux.sh: New file.
2161 * emulparams/shlelf_linux.sh: New file.
2162
2163 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2164
2165 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2166 try shuffling sections when the orphan happens to be the place
2167 holder. Keep count of unique section names generated so we speed
2168 the search for a new name.
2169
2170 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2171
2172 * configure: Rebuilt with new libtool.m4.
2173
2174 2000-09-05 Nick Clifton <nickc@redhat.com>
2175
2176 * Makefile.in: Regenerate.
2177 * aclocal.m4: Regenerate.
2178 * configure: Regenerate.
2179 * config.in: Regenerate.
2180 * po/ld.pot: Regenerate.
2181
2182 * ldint.texinfo: Remove CVS revision marker - it foils local
2183 comparisons.
2184
2185 * emultempl/ticoff.em: Remove extraneous comma.
2186
2187 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2188
2189 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2190 to stub section flags.
2191 (hppa_for_each_input_file_wrapper): New.
2192 (hppa_lang_for_each_input_file): New.
2193 (lang_for_each_input_file): Define to call above.
2194 (multi_subspace): New.
2195 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2196 (PARSE_AND_LIST_PROLOGUE): Define.
2197 (PARSE_AND_LIST_LONGOPTS): Define.
2198 (PARSE_AND_LIST_OPTIONS): Define.
2199 (PARSE_AND_LIST_ARGS_CASES): Define.
2200 (hppaelf_finish): Call elf32_hppa_set_gp.
2201 (hppaelf_set_output_arch): Remove.
2202 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2203
2204 * emulparams/hppalinux.sh (ELFSIZE): Define.
2205 (MACHINE): Define.
2206 (OTHER_READONLY_SECTIONS): Define.
2207 (DATA_PLT): Define.
2208 (GENERATE_SHLIB_SCRIPT): Define.
2209
2210 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2211 to const throughout. Change `void *' to `PTR' throughout.
2212 (lang_memory_default): Function is local to file, add `static'.
2213
2214 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2215 (ehppalinux.c): Likewise.
2216 (earmelf.c): Likewise.
2217 (earmelf_linux.c): Likewise.
2218 (earmelf_linux26.c): Likewise.
2219 * Makefile.in: Regenerate.
2220
2221 * ld.h (ld_config_type): Add unique_orphan_sections.
2222 * lexsup.c (OPTION_UNIQUE): Define.
2223 (ld_options): Add "--unique".
2224 (parse_args): Handle it.
2225 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2226 search for an existing output section if unique_orphan_sections is
2227 set. Make use of bfd_get_unique_section_name rather than
2228 duplicating code here.
2229 * ld.texinfo: Describe --unique.
2230
2231 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2232 optional arg to split-by-file.
2233 (parse_args): Handle them.
2234 * ld.texinfo: Update description of these options.
2235 * ldwrite.c (clone_section): Pass in the section name. Replace
2236 local code with bfd_get_unique_section_name.
2237 (split_sections): Tidy code and comments. Use a list traversal
2238 more appropriate to the list construction. Handle cooked section
2239 sizes. Split when split_by_reloc reached rather than exceeded.
2240 Track section size and split when split_by_file reached. Fix
2241 link_order_tail (even though it's not used).
2242 (ldwrite): Modify condition for calling split_sections to suit
2243 changed split_by_reloc and split_by_file.
2244 * ldmain.c (main): Init config.split_by_reloc and
2245 config.split_by_file to -1.
2246 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2247 Change split_by_file to bfd_size_type.
2248
2249 2000-09-02 Nick Clifton <nickc@redhat.com>
2250
2251 * configure.in: Increase version number to 2.10.91.
2252 * NEWS: Mention new ability to support removal of duplicate DWARF2
2253 debug information.
2254 * configure: Regenerate.
2255 * aclocal.m4: Regenerate.
2256 * config.in: Regenerate.
2257
2258 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2259
2260 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2261 sections.
2262 * scripttempl/elf32avr.sc: Ditto.
2263 * scripttempl/elfd10v.sc: Ditto.
2264 * scripttempl/elfd30v.sc: Ditto.
2265 * scripttempl/elfi370.sc: Ditto.
2266 * scripttempl/elfm68hc11.sc: Ditto.
2267 * scripttempl/elfm68hc12.sc: Ditto.
2268 * scripttempl/elfi386beos.sc: Ditto.
2269 * scripttempl/v850.sc: Ditto.
2270
2271 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2272
2273 * acinclude.m4: Include libtool and gettext macros from the
2274 top level.
2275 * aclocal.m4, configure: Rebuilt.
2276
2277 2000-08-25 Nick Clifton <nickc@redhat.com>
2278
2279 * ldlang.c (open_output): When choosing the target for a
2280 particular endianness, do nothing if the target is not
2281 supported.
2282
2283 2000-08-25 H.J. Lu <hjl@gnu.org>
2284
2285 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2286 check -rpath nor LD_RUN_PATH for cross link.
2287 * ld.texinfo: Document the change.
2288
2289 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2290
2291 * NEWS: Mention support for CRIS.
2292
2293 2000-08-23 H.J. Lu <hjl@gnu.org>
2294
2295 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2296 the current runpath list from bfd_elf_get_runpath_list ()
2297 before search.
2298
2299 2000-08-22 H.J. Lu <hjl@gnu.org>
2300
2301 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2302 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2303 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2304 trace_file_tries is non-zero.
2305 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2306 if trace_file_tries is non-zero.
2307
2308 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2309 * NEWS: Mention it.
2310
2311 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2312
2313 * NEWS: Mention i860 support.
2314
2315 2000-08-14 Andreas Schwab <schwab@suse.de>
2316
2317 * scripttempl/elf.sc: Fix last change to use correct comment
2318 syntax.
2319
2320 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2321
2322 * scripttempl/elf.sc: Add a comment giving the correspondence
2323 between sections, per-datum sections, and linkonce sections. Make
2324 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2325 .sbss2.
2326
2327 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2328
2329 * emulparams/elf32_i860.sh: New file.
2330 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2331 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2332 (eelf32_i860.c): New rule.
2333 * Makefile.in: Regenerate.
2334
2335 2000-08-10 Nick Clifton <nickc@cygnus.com>
2336
2337 * emulparams/mipspe.sh (ENTRY): Add definition.
2338
2339 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2340
2341 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2342 in error message.
2343
2344 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2345
2346 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2347 the final size of .bss section.
2348 * scripttempl/elfm68hc12.sc: Likewise.
2349
2350 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2351
2352 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2353 gld${EMULATION_NAME}_parse_args for consistency. Combine
2354 lastoptind and prevoptind vars, and keep track of last optind.
2355 (gld_${EMULATION_NAME}_list_options): Rename to
2356 gld${EMULATION_NAME}_list_options.
2357
2358 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2359
2360 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2361 (i586-sco-sysv5uw7.1.0).
2362
2363 2000-07-27 H.J. Lu <hjl@gnu.org>
2364
2365 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2366 (PARSE_AND_LIST_PROLOGUE): New.
2367 (PARSE_AND_LIST_LONGOPTS): Likewise.
2368 (PARSE_AND_LIST_OPTIONS): Likewise.
2369 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2370 (PARSE_AND_LIST_EPILOGUE): Likewise.
2371
2372 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2373
2374 * emultempl/armelf.em: Elide functions common to elf32.em,
2375 ie. most of the file.
2376 (arm_elf_after_open): New. Do arm specific things then call
2377 gld${EMULATION_NAME}_after_open.
2378 (arm_elf_before_allocation): New. Call
2379 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2380 (PARSE_AND_LIST_PROLOGUE): Define.
2381 (PARSE_AND_LIST_SHORTOPTS): Define.
2382 (PARSE_AND_LIST_LONGOPTS): Define.
2383 (PARSE_AND_LIST_OPTIONS): Define.
2384 (PARSE_AND_LIST_ARGS_CASES): Define.
2385 (LDEMUL_AFTER_OPEN): Define.
2386 (LDEMUL_BEFORE_ALLOCATION): Define.
2387 (LDEMUL_BEFORE_PARSE): Define.
2388 (LDEMUL_FINISH): Define.
2389
2390 * emultempl/hppaelf.em: Similarly zap most of this file.
2391 (hppaelf_add_stub_section): Prototype.
2392 (hppaelf_layaout_sections_again): Prototype.
2393 (hook_in_stub): Prototype.
2394 (LDEMUL_SET_OUTPUT_ARCH): Define.
2395 (LDEMUL_FINISH): Define.
2396 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2397
2398 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2399 (EXTRA_EM_FILE): New.
2400 * emulparams/armelf_linux.sh: Likewise.
2401 * emulparams/armelf_linux26.sh: Likewise.
2402 * emulparams/hppalinux.sh: Likewise.
2403 * emulparams/hppaelf.sh: Likewise.
2404 (NOP): Define.
2405
2406 * emultempl/elf32.em: Fix formatting.
2407 (EXTRA_EM_FILE): Source it.
2408 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2409 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2410 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2411 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2412 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2413 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2414 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2415 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2416 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2417 allow functions in this file to be overridden.
2418 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2419
2420 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2421
2422 * emultempl/elf32.em: Reorganize file.
2423
2424 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2425
2426 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2427 specific option to fit 64-bit executable in the lower
2428 31-bit address range. This is done by changing start
2429 address of .interp (the very first section of executable)
2430 and then setting EF_ALPHA_32BIT elf header flag.
2431
2432 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2433
2434 * emultempl/m68kcoff.em: New file.
2435 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2436 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2437 generic.em.
2438 * Makefile.in: Regenerate.
2439
2440 2000-07-20 H.J. Lu <hjl@gnu.org>
2441
2442 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2443 and "disable-new-dtags" to stop getopt from treating -d/-e as
2444 abbreviations for these options.
2445
2446 2000-07-20 H.J. Lu <hjl@gnu.org>
2447
2448 * ld.texinfo: Add documentation for --disable-new-dtags and
2449 --enable-new-dtags.
2450
2451 * ldmain.c (main): Initialize link_info.new_dtags to false.
2452
2453 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2454 --disable-new-dtags and --enable-new-dtags.
2455 (gld_${EMULATION_NAME}_list_options): Likewise.
2456
2457 2000-07-05 Kenneth Block <krblock@computer.org>
2458
2459 * lexsup.c: Add optional style to demangle switch
2460 * ld.texinfo: Document optional style to demangle switch.
2461
2462 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2463
2464 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2465 ecrislinux.o.
2466 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2467 Regenerate dependencies.
2468 * Makefile.in: Rebuild.
2469 * configure.tgt (cris-*-*): New target.
2470 * emulparams/crisaout.sh, emulparams/criself.sh,
2471 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2472 * po/POTFILES.in, po/ld.pot: Regenerate.
2473
2474 2000-07-20 H.J. Lu <hjl@gnu.org>
2475
2476 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2477 Print out ignored -z options.
2478
2479 2000-07-19 H.J. Lu <hjl@gnu.org>
2480
2481 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2482 (PARSE_AND_LIST_PROLOGUE): New.
2483 (PARSE_AND_LIST_LONGOPTS): Likewise.
2484 (PARSE_AND_LIST_OPTIONS): Likewise.
2485 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2486
2487 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2488
2489 * lexsup.c (ld_options): Comment out 'z'.
2490 (parse_args): Likewise.
2491
2492 * emultempl/elf32.em: Include "elf/common.h".
2493 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2494 options.
2495 (gld_${EMULATION_NAME}_list_options): Likewise.
2496
2497 * ld.texinfo: Add documentation for the recognized -z options.
2498
2499 2000-07-19 H.J. Lu <hjl@gnu.org>
2500
2501 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2502 bfd_elf_set_dt_needed_soname ().
2503
2504 2000-07-18 DJ Delorie <dj@cygnus.com>
2505
2506 * pe-dll.c (pe_dll_id_target): check object target name also
2507
2508 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
2509
2510 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2511 ${INIT_END} if relocating.
2512 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2513
2514 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2515
2516 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2517 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2518 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2519 errors introduced by the old dynamic lib search order.
2520
2521 2000-07-17 DJ Delorie <dj@cygnus.com>
2522
2523 * pe-dll.c (process_def_file): auto-export data items also
2524 (pe_process_import_defs): also see if _imp_ form needed
2525
2526 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2527
2528 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2529 for dll import libraries
2530
2531 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2532
2533 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2534 gcc 2.95.2 and later.
2535
2536 2000-07-11 Kazu Hirata <kazu@hxi.com>
2537
2538 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2539 message.
2540
2541 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2542
2543 * ldemul.h (struct lang_input_statement_struct): Remove forward
2544 declaration.
2545 (struct search_dirs): Likewise.
2546 * ldfile.h (struct lang_input_statement_struct): Likewise.
2547 Protect file from multiple inclusion.
2548 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2549 declaration from macro to file scope.
2550
2551 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2552 * ldgram.y: Likewise here.
2553 * ldlang.c: And here.
2554 * ldmain.c: And here.
2555 * mpw-elfmips.c: And here.
2556 * mpw-eppcmac.c: And here.
2557 * emultempl/aix.em: And here.
2558 * emultempl/armcoff.em: And here.
2559 * emultempl/armelf.em: And here.
2560 * emultempl/armelf_oabi.em: And here.
2561 * emultempl/beos.em: And here.
2562 * emultempl/elf32.em: And here.
2563 * emultempl/hppaelf.em: And here.
2564 * emultempl/linux.em: And here.
2565 * emultempl/lnk960.em: And here.
2566 * emultempl/pe.em: And here.
2567 * emultempl/sunos.em: And here.
2568 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2569 * mpw-idtmips.c: Ditto.
2570 * emultempl/generic.em: Ditto.
2571 * emultempl/gld960.em: Ditto.
2572 * emultempl/gld960c.em: Ditto.
2573 * emultempl/mipsecoff.em: Ditto.
2574 * emultempl/ticoff.em: Ditto.
2575 * emultempl/vanilla.em: Ditto.
2576
2577 * pe-dll.c: Include ldfile.h
2578 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2579
2580 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2581 arguments to bfd_elf32_size_dynamic_sections call.
2582 (gldelf32ebmip_place_orphan): Add missing arguments to
2583 lang_leave_output_section_statement call.
2584
2585 2000-07-10 H.J. Lu <hjl@gnu.org>
2586
2587 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2588 DLL_SUPPORT.
2589 (strhash): Likewise.
2590 (compute_dll_image_base): Likewise.
2591 (pe_undef_found_sym): Likewise.
2592 (pe_undef_cdecl_match): Likewise.
2593 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2594 argument "arch" with ATTRIBUTE_UNUSED.
2595
2596 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2597
2598 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2599
2600 From Ryan Bradetich <rbradetich@uswest.net>
2601 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2602
2603 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2604
2605 Changes to create multiple linker stubs, positioned immediately
2606 before the section where they are required.
2607 * emultempl/hppaelf.em: Include elf32-hppa.h.
2608 (stub_sec, file_chain): Delete.
2609 (hppaelf_create_output_section_statements): Don't make a stub
2610 section here.
2611 (hook_stub_info): New struct.
2612 (hook_in_stub): New function.
2613 (hppaelf_add_stub_section): New function.
2614 (hppaelf_finish): Do nothing for relocateable links. Modify the
2615 call to elf32_hppa_size_stubs. Move code for updating section
2616 layout from here...
2617 (hppaelf_layaout_sections_again): ..to here, a new function.
2618
2619 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2620 broken list handling. Pass in a pointer to the list.
2621 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2622 for above changes.
2623 (hppaelf_before_parse): Prototype.
2624 (hppaelf_set_output_arch): Prototype.
2625 (hppaelf_create_output_section_statements): Prototype.
2626 (hppaelf_delete_padding_statements): Prototype.
2627 (hppaelf_finish): Prototype.
2628
2629 Merge from elf32.em
2630 * emultempl/hppaelf.em: Include ctype.h.
2631 (struct orphan_save): New.
2632 (gld${EMULATION_NAME}_place_orphan): New.
2633 (output_rel_find): New.
2634 (hppaelf_get_script): Update from elf32.em.
2635 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2636 Change emulation_name field to "${EMULATION_NAME}". Add
2637 gld${EMULATION_NAME}_place_orphan.
2638
2639 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2640 ehppalinux.o, sort it. Regenerate dependencies.
2641 (ehppalinux.c): Depend on hppaelf.em
2642 * Makefile.in: Regenerate.
2643
2644 * configure.tgt: targ_emul=hppalinux for hppa*linux
2645
2646 * emulparams/hppalinux.sh: New.
2647 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2648
2649 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2650
2651 * lexsup.c (parse_args): Copy section name.
2652
2653 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
2654
2655 * emultempl/pe.em: institute the following search order for
2656 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2657 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2658 static lib (libfoo.a) if none of the above are found.
2659
2660 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2661
2662 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2663 (longopts): New --{enable,disable}-auto-image-base options.
2664 (gld_${EMULATION_NAME}_list_options): Document.
2665 (gld_${EMULATION_NAME}_parse): Handle.
2666 (strhash): New static function.
2667 (compute_dll_image_base): New static function.
2668 (gld_${EMULATION_NAME}_set_symbols): Use.
2669
2670 2000-07-05 DJ Delorie <dj@redhat.com>
2671
2672 * MAINTAINERS: new
2673
2674 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2675
2676 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2677 * emulparams/elf32btsmip.sh: New file.
2678 * Makefile.am: Add traditional mips target.
2679 * Makefile.in: Rebuild.
2680
2681 2000-07-01 H.J. Lu <hjl@gnu.org>
2682
2683 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2684 automake to use YLWRAP.
2685 * Makefile.in: Rebuild.
2686
2687 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2688
2689 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2690 (CLEANFILES): Add DEPA.
2691 * Makefile.in: Regenerate.
2692
2693 2000-06-30 Timothy Wall <twall@ppc>
2694
2695 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2696 the page in the upper octet of the address.
2697
2698 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2699
2700 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2701
2702 2000-06-24 Alan Modra <alan@linuxcare.com.au>
2703
2704 * NEWS: arm-elf does --gc-sections too.
2705
2706 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2707
2708 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2709 find one.
2710 * Makefile.in: Regenerate.
2711
2712 2000-06-21 H.J. Lu <hjl@gnu.org>
2713
2714 * Makefile.am: Rebuild dependency.
2715 * Makefile.in: Rebuild.
2716
2717 2000-06-20 H.J. Lu <hjl@gnu.org>
2718
2719 * Makefile.am: Rebuild dependency.
2720 * Makefile.in: Rebuild.
2721
2722 2000-06-20 Timothy Wall <twall@cygnus.com>
2723
2724 * scripttempl/tic54xcoff.sc: New.
2725 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2726 * gen-doc.texi: Add flag for TI COFF.
2727 * ld.texinfo: Add documentation for TI COFF handling switches.
2728 * emultempl/ticoff.em: New. TI COFF handling.
2729 * configure.tgt: Add tic54x target.
2730 * Makefile.am: Add tic54x target.
2731 * Makefile.in: Ditto.
2732
2733 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2734
2735 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2736 checking for backslashes.
2737
2738 2000-06-19 Alan Modra <alan@linuxcare.com.au>
2739
2740 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2741
2742 2000-06-18 Alan Modra <alan@linuxcare.com.au>
2743
2744 * NEWS: Update list of targets supporting --gc-sections.
2745
2746 * scripttempl/elf.sc: KEEP .eh_frame contents.
2747 * scripttempl/elfd30v.sc: Same here.
2748
2749 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2750
2751 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2752 and m68hc11 (elf).
2753 * Makefile.in: Rebuild.
2754 * configure.tgt: Recognize m68hc12 and m68hc11.
2755 * scripttempl/elfm68hc12.sc: New file.
2756 * emulparams/m68hc12elfb: New emulation.
2757 * emulparams/m68hc12elf: New emulation.
2758 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2759 (includes a memory.x script to define the ROM and RAM banks).
2760 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2761 New configuration files for support of Motorola 68hc11
2762
2763 2000-06-15 Alan Modra <alan@linuxcare.com.au>
2764
2765 * ldmain.c (main): Only change SEC_READONLY for final link.
2766
2767 2000-06-13 H.J. Lu <hjl@gnu.org>
2768
2769 * configure: Regenerate.
2770
2771 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2772
2773 * configure.in (VERSION): Update to show this is the CVS mainline.
2774
2775 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2776
2777 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2778 input objects to be ECOFF.
2779 (check_sections): einfo takes %B, not %P, to print a BFD name.
2780
2781 2000-06-05 Michael Matz <matz@ifh.de>
2782
2783 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2784 version scripts.
2785
2786 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2787
2788 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2789
2790 * emulparams/avr1200.sh (STACK): Define as 0.
2791 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2792 * emulparams/avr4433.sh (STACK): Likewise.
2793 * emulparams/avr44x4.sh (STACK): Likewise.
2794 * emulparams/avr85xx.sh (STACK): Likewise.
2795 * emulparams/avrmega103.sh (STACK): Likewise.
2796 * emulparams/avrmega161.sh (STACK): Likewise.
2797 * emulparams/avrmega603.sh (STACK): Likewise.
2798 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2799 (__stack): Define from ${STACK} for main().
2800
2801 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2802
2803 * Makefile.am: Update dependencies with "make dep-am"
2804 * Makefile.in: Regenerate.
2805
2806 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2807
2808 * ldmain.c: Include filenames.h.
2809 (set_scripts_dir): Support backslashes in program name.
2810
2811 2000-05-22 Igor Shevlyakov <igor@windriver.com>
2812
2813 * ldmain.c (main): When deciding if ".text" section should be
2814 read-only, don't forget to reset SEC_READONLY because it
2815 could be already set.
2816
2817 2000-05-22 Thomas de Lellis <tdel@windriver.com>
2818
2819 * ld.1: Add documentation for new command line option:
2820 --section-start <sectionname>=<sectionorg>
2821 This is a generic version of -Ttext etc. which accepts
2822 any section name as a parameter instead of just text/data/
2823 bss.
2824 * ld.texinfo: More docs.
2825 * NEWS: More docs.
2826 * lexsup.c: (parse_args): Recognize new command line option.
2827 (ld_options): Add new option.
2828
2829 2000-05-18 H.J. Lu <hjl@gnu.org>
2830
2831 * lexsup.c (parse_args): `i' == `r', not `q'.
2832
2833 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2834
2835 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2836
2837 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2838 Rick Gorton <gorton@scrugs.lkg.dec.com>
2839
2840 Add support for '-q' == '--emit-relocs' switch.
2841 * ldmain.c (main): Default to false.
2842 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2843 * NEWS: Describe the emitrelocations switch.
2844 * ld.texinfo: Describe the emitrelocations switch.
2845
2846 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2847
2848 * emultempl/pe.em (_open_dynamic_archive): New function: Search
2849 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2850 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2851 link options.
2852
2853 2000-05-15 David O'Brien <obrien@FreeBSD.org>
2854
2855 * lexsup.c (parse_args): Update the year in the copyright notice.
2856
2857 2000-05-13 Alan Modra <alan@linuxcare.com.au>
2858
2859 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2860 Replace defines with those from intl/libgettext.h to quieten gcc
2861 warnings.
2862
2863 2000-05-10 H.J. Lu <hjl@gnu.org>
2864
2865 * ldlang.c (open_input_bfds): Don't load the same file within
2866 a group again if the whole archive has been loaded already.
2867
2868 2000-05-03 Alan Modra <alan@linuxcare.com.au>
2869
2870 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2871 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2872 strtoul.
2873
2874 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2875
2876 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2877
2878 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2879 host "ia64-*-linux-gnu*".
2880
2881 2000-04-29 Andreas Jaeger <aj@suse.de>
2882
2883 * ld.h: Correctly check GCC version.
2884
2885 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2886
2887 * Makefile.am: Add PA64 support. Add missing dependencies for
2888 PA32 elf support.
2889 * Makefile.in: Rebuilt.
2890 * configure.tgt: Add PA64 support (currently disabled).
2891
2892 2000-04-25 Alan Modra <alan@linuxcare.com.au>
2893
2894 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2895 (output_rel_find): New function.
2896 (hold_section, hold_use): Delete.
2897 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2898 hold_interp): Make local to place_orphan.
2899 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2900 rather than place_section to find possible previous use of orphan.
2901 Similarly find the place-holder output sections. Use returned
2902 value from lang_enter_output_section_statement rather than calling
2903 lang_output_section_statement_lookup.
2904 * emultempl/armelf.em: Same here.
2905 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2906
2907 * ldlang.c (lang_enter_output_section_statement): Return output
2908 section statement.
2909 * ldlang.h (lang_enter_output_section_statement): Change
2910 declaration too.
2911
2912 * ldlang.h (lang_output_section_statement): Export it.
2913 * ldlang.c (lang_output_section_statement): Ditto.
2914
2915 2000-04-24 Nick Clifton <nickc@cygnus.com>
2916
2917 * ld.texinfo (Output Section Data): Add note that section data
2918 commands cannot appear outside of section directives.
2919
2920 2000-04-2 Matthew Green <mrg@cygnus.com>
2921
2922 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2923
2924 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2925 David Mosberger <davidm@hpl.hp.com>
2926
2927 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2928 (eelf64_ia64.c): New rule.
2929 * Makefile.in: Rebuild.
2930 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2931 * emulparams/elf64_ia64.sh: New file.
2932
2933 2000-04-21 Richard Henderson <rth@cygnus.com>
2934
2935 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2936
2937 2000-04-19 Alan Modra <alan@linuxcare.com.au>
2938
2939 * dep-in.sed: Match space at start of file name, not at end.
2940
2941 2000-04-18 H.J. Lu <hjl@gnu.org>
2942
2943 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2944 lang_leave_output_section_statement () after calling
2945 lang_enter_output_section_statement ().
2946 * emultempl/armelf.em: Likewise.
2947
2948 2000-04-18 Alan Modra <alan@linuxcare.com.au>
2949
2950 * emultempl/elf32.em (struct orphan_save): Add section field.
2951 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2952 better order, and place first orphan section as we did before the
2953 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2954 Don't call make_bfd_section here, let wild_doit do the job for us.
2955 Don't build a statement list when we'll only throw it away.
2956 * emultempl/armelf.em: Ditto.
2957 * emultempl/pe.em: Similarly.
2958
2959 2000-04-14 Geoff Keating <geoffk@cygnus.com>
2960
2961 * scripttempl/elfppc.sc: Remove.
2962 * emulparams/elf32ppc.sh: Use elf.sc.
2963 * emulparams/elf32lppc.sh: Use elf.sc.
2964 * emulparams/elf32ppclinux.sh: Use elf.sc.
2965 * emulparams/elf32ppcsim.sh: New file.
2966 * emulparams/elf32lppcsim.sh: New file.
2967 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2968 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2969 * Makefile.in: Regenerate.
2970 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2971
2972 2000-04-14 Alan Modra <alan@linuxcare.com.au>
2973
2974 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
2975 ~SEC_ALLOC sections too. Init start address of debug sections.
2976 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2977 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2978 Also set all relocateable section start addresses.
2979
2980 2000-04-13 Geoff Keating <geoffk@cygnus.com>
2981
2982 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2983 Add new BSS_PLT variable for when .plt need not be contained in
2984 the file. Move _etext so that it is also after .fini, and provide
2985 both etext and _etext with a leading underscore. Mark the start
2986 and end of .sbss.
2987
2988 2000-04-12 Alan Modra <alan@linuxcare.com.au>
2989
2990 * emultempl/elf32.em (struct orphan_save): New.
2991 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2992 hold_interp): Make them struct orphan_save.
2993 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2994 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2995 the end of the relevant section list. Also add associated section
2996 statements to the end of any previous orphan statements.
2997 * emultempl/armelf.em: Similarly.
2998 * emultempl/pe.em: Similarly.
2999
3000 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3001
3002 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3003
3004 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
3005
3006 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3007 --enable-build-warnings option.
3008 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3009 * Makefile.in, configure: Re-generate.
3010
3011 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3012
3013 * po/ld.pot: Regenerate.
3014
3015 * lexsup.c (help): Restore translated part of bug string.
3016
3017 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3018 (DEP): Quote when passing vars to sub-make. Add warning message
3019 to end.
3020 (DEP1): Rewrite for "gcc -MM".
3021 (CLEANFILES): Add DEP2.
3022 Update dependencies.
3023 * Makefile.in: Regenerate.
3024
3025 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3026
3027 * ld.h: #include "bin-bugs.h"
3028 * lexsup.c (help): Use REPORT_BUGS_TO.
3029
3030 2000-03-27 Denis Chertykov <denisc@overta.ru>
3031
3032 * configure.tgt (avr-*-*): New target support.
3033 * Makefile.am: Likewise.
3034 * scripttempl/elf32avr.sc: New script file.
3035 * emulparams/avr1200.sh: New file.
3036 * emulparams/avr23xx.sh: New file.
3037 * emulparams/avr4433.sh New file.
3038 * emulparams/avr44x4.sh New file.
3039 * emulparams/avr85xx.sh New file.
3040 * emulparams/avrmega103.sh New file.
3041 * emulparams/avrmega161.sh New file.
3042 * emulparams/avrmega603.sh New file.
3043 * Makefile.in: Regenerate.
3044
3045 2000-03-09 Andreas Jaeger <aj@suse.de>
3046
3047 * Makefile.am (check-DEJAGNU): Also unset LANG.
3048 * Makefile.in: Rebuild.
3049
3050 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3051
3052 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3053 archive.
3054
3055 2000-03-02 H.J. Lu <hjl@gnu.org>
3056
3057 * emulparams/elf32mcore.sh: Include "getopt.h".
3058
3059 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3060
3061 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3062
3063 2000-03-01 H.J. Lu <hjl@gnu.org>
3064
3065 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3066 * emulparams/shpe.sh: Likewise.
3067
3068 2000-03-01 Nick Clifton <nickc@cygnus.com>
3069
3070 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3071 to unused parameters.
3072
3073 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3074 functions only used by DLL code.
3075 (_place_orphan): Initialise 'dollar'.
3076
3077 2000-03-01 H.J. Lu <hjl@gnu.org>
3078
3079 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3080 indicate if the undefined symbol is a fatal error or not.
3081 Don't delete the output file if "fatal" is false.
3082
3083 2000-02-29 H.J. Lu <hjl@gnu.org>
3084
3085 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3086 Set LC_COLLATE and LC_ALL to null and export them. It is for
3087 sort which expects the C locale.
3088 Add $(LIBS) to all $(HOSTING_LIBS).
3089 * Makefile.in: Rebuild.
3090
3091 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3092
3093 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3094 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3095 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3096 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3097 find_potential_libraries.
3098
3099 2000-02-28 Jim Blandy <jimb@redhat.com>
3100
3101 * ldgram.y (exclude_name_list): Don't require a comma to separate
3102 list entries; the lexer considers commas to be valid part of a
3103 filename, so in something like `foo, bar' the comma is considered
3104 part of the first filename, `foo,'.
3105 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3106
3107 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3108
3109 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3110 host "i[3456]86-*-freebsdelf*".
3111
3112 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3113
3114 * scripttempl/i386go32.sc: Move misplaced semicolons.
3115
3116 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3117
3118 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3119 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3120 (eelf64hppa.c, ehppaelf.c): Remove targets.
3121 * Makefile.in: Rebuild.
3122
3123 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3124
3125 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3126 GNU/Linux/sparc, but keep the default as 32.
3127
3128 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3129 it default if sparcv9 or sparc64.
3130
3131 2000-02-24 Nick Clifton <nickc@cygnus.com>
3132
3133 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3134 * Makefile.in: Regenerate.
3135 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3136
3137 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3138 find_potential_libraries.
3139 * ldemul.c (ldemul_find_potential_libraries): New function.
3140
3141 * ldfile.c (ldfile_open_file_search): Allow function to be
3142 exported.
3143 (ldfile_open_file): Call ldemul_find_potential_libraries.
3144 * ldfile.h: Add prototype for ldfile_open_file_search.
3145
3146 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3147
3148 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3149 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3150
3151 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3152 (gld_X_find_potential_libraries): New function. Search for
3153 libraries called "*.lib".
3154
3155 * scripttempl/pe.sc: Add .pdata section.
3156
3157 2000-02-23 Richard Henderson <rth@cygnus.com>
3158
3159 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3160 Add and use memory regions.
3161
3162 2000-02-23 Linas Vepstas (linas@linas.org)
3163
3164 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3165
3166 * Makefile.am: Add support for Linux/IBM 370.
3167 * configure.tgt: Likewise.
3168
3169 * Makefile.in: Regenerate.
3170
3171 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3172
3173 * ldlang.c (print_input_section, print_data_statement,
3174 print_reloc_statement, print_padding_statement, insert_pad,
3175 size_input_section, lang_check_section_addresses,
3176 lang_size_sections, lang_do_assignments, lang_set_startof,
3177 lang_one_common): Change `opb' to unsigned.
3178 (lang_do_assignments): Also change `size' to unsigned.
3179
3180 2000-02-16 Richard Henderson <rth@cygnus.com>
3181
3182 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3183
3184 2000-02-16 Timothy Wall <twall@cygnus.com>
3185
3186 * mri.c (mri_draw_tree): Add default LMA region argument to call
3187 to lang_leave_output_section_statement.
3188 * ldlang.h: Update prototypes with LMA region arguments.
3189 * ldlang.c (lang_size_sections): Encapsulate region bounds
3190 checking in os_check_region call.
3191 (os_check_region): New function.
3192 (lang_output_section_statement_lookup): Initialize lma_region.
3193 (lang_leave_output_section_statement): Add LMA region argument.
3194 (lang_leave_overlay): Ditto.
3195 * ldgram.y: Handle LMA region syntax.
3196 * ld.texinfo (Output Section Description): Describe LMA region usage.
3197 * emultempl/armelf.em (gld$place_orphan): Add default value for
3198 lma region in call to lang_leave_output_section_statement.
3199 * emultempl/elf32.em (gld$place_orphan): Add default value for
3200 lma region in call to lang_leave_output_section_statement.
3201 * emultempl/pe.em (gld$place_orphan): Add default value for
3202 lma region in call to lang_leave_output_section_statement.
3203
3204
3205 2000-02-04 Timothy Wall <twall@redhat.com>
3206
3207 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3208 octets when calculating section end addresses.
3209
3210 2000-02-04 Timothy Wall <twall@redhat.com>
3211
3212 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3213
3214 2000-02-03 Timothy Wall <twall@redhat.com>
3215
3216 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3217 octet count.
3218 * ldlang.c (print_input_section, print_data_statement,
3219 print_reloc_statement, print_padding_statement): Print target
3220 address values and section sizes as bytes, not octets.
3221 (insert_pad) Calculate padding size in octets, and adjust "dot"
3222 by bytes.
3223 (size_input_section) Always adjust "dot" by bytes, not octets.
3224 (lang_check_section_addresses, lang_do_assignments) Adjust
3225 "dot" by bytes, not octets. Use the larger of the directive size
3226 or octets_per_byte for the number of octets actually allocated in
3227 the output section.
3228 (lang_set_startof) Make sure STARTOF returns a target address.
3229 (lang_one_common) Record size changes in octets.
3230 (lang_abs_symbol_at_end_of) Section end symbol's value is
3231 recorded in target bytes.
3232 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3233 to be clear about behavior when an octet is smaller than one byte.
3234
3235 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3236
3237 * ldcref.c (output_cref): Don't pass message strings to printf
3238 as format arg.
3239 Update copyright.
3240
3241 * ldmisc.c (vfinfo): Same here.
3242 Update copyright.
3243
3244 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3245
3246 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3247 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3248 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3249 Add missing NULL initialisers, and comments.
3250
3251 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3252
3253 2000-01-21 Nick Clifton <nickc@cygnus.com>
3254
3255 * ldlang.c (lang_size_sections): Fix typo in comment.
3256
3257 2000-01-18 H.J. Lu <hjl@gnu.org>
3258
3259 * ldlang.c (lang_size_sections): Also update the current
3260 address of a region if the SEC_NEVER_LOAD bit is not set.
3261
3262 2000-01-10 Philip Blundell <pb@futuretv.com>
3263
3264 * configure.tgt (arm*-*-conix*): New target.
3265
3266 2000-01-07 Nick Clifton <nickc@cygnus.com>
3267
3268 * ld.texinfo (Options): Remind users to preceed linker command
3269 line switches with -Wl, (or whatever is appropriate) if it is
3270 being invoked by a comnpiler driver program.
3271 Fix description of the behaviour of the -n command line switch.
3272
3273 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
3274
3275 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3276 (name_list): New.
3277 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3278 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3279 (exclude_name_list): New.
3280 ldlang.c (walk_wild_section): Support list of excluded files.
3281 (print_wild_statement): Likewise.
3282 (lang_add_wild): Likewise.
3283 * ldlang.h (lang_wild_statement_type): Likewise.
3284 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3285
3286 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3287
3288 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3289 (process_def_file): Use.
3290 (pe_dll_compat_implib): New variable.
3291 (make_one): Use.
3292
3293 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3294 pe_dll_compat_implib.
3295
3296 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3297 compat-implib options.
3298 (gld_${EMULATION_NAME}_list_options): List new options.
3299 (gld_${EMULATION_NAME}_parse_args): Handle.
3300
3301 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3302 dll.
3303
3304 * deffilep.y (opt_name): Allow "." in name.
3305
3306 For older changes see ChangeLog-9899
3307 \f
3308 Local Variables:
3309 mode: change-log
3310 left-margin: 8
3311 fill-column: 74
3312 version-control: never
3313 End: