* emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
[platform/upstream/binutils.git] / ld / ChangeLog
1 2002-07-19  Hans-Peter Nilsson  <hp@bitrange.com>
2
3         * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
4         output section.
5
6 2002-07-16  Denis Chertykov  <denisc@overta.ru>
7             Nick Clifton  <nickc@redhat.com>
8             Frank Ch. Eigler  <fche@redhat.com>
9             John Healy  <jhealy@redhat.com>
10
11         * configure.tgt: Add support for ip2k-elf.
12         * Makefile.am: Add support for ip2k-elf.
13         * Makefile.in: Regenerate.
14         * emulparams/elf32ip2k.sh: New file.
15         * scripttempl/ip2k.sc: New file
16         * NEWS: Mention support for new port.
17
18 2002-07-16  Nick Clifton  <nickc@cambridge.redhat.com>
19
20         * NEWS: Add 'Changes in 2.13'.
21
22 2002-07-14  H.J. Lu <hjl@gnu.org>
23
24         * ld.texinfo: Document a .symver takes precedence over a
25         version script.
26
27 2002-07-12  Alan Modra  <amodra@bigpond.net.au>
28
29         * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
30         (COMMONPAGESIZE): Define.
31
32 2002-07-09  Alan Modra  <amodra@bigpond.net.au>
33
34         * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
35
36 2002-07-09  Federico G. Schwindt <fgsch@olimpo.com.br>
37
38         * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
39         powerpc-*-openbsd* and sparc64-*-openbsd*.
40         * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
41         * Makefile.in: Regenerate.
42         * emulparams/hppaobsd.sh: New file.
43
44 2002-07-05  Alan Modra  <amodra@bigpond.net.au>
45
46         * ldlang.c (print_wild_statement): Fix output formatting.
47
48 2002-07-04  Alan Modra  <amodra@bigpond.net.au>
49
50         * ldlang.c: (strip_excluded_output_sections): New function.
51         (lang_process): Call it.
52         (lang_size_sections_1): Revert 2002-06-10 change.
53
54 2002-07-03  Alan Modra  <amodra@bigpond.net.au>
55
56         * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
57         Run "make dep-am".
58         * Makefile.in: Regenerate.
59
60 2002-07-02  Alan Modra  <amodra@bigpond.net.au>
61
62         * ldfile.c (ldfile_try_open_bfd): Formatting.
63
64         * ldmisc.c (demangle): Move so that it doesn't intrude between
65         vfinfo comment and body.  Add comment.
66
67 2002-07-01  John David Anglin  <dave@hiauly1.hia.nrc.ca>
68
69         * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
70
71 2002-07-01  Alan Modra  <amodra@bigpond.net.au>
72
73         * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
74         * ldlang.c (entry_sym): Likewise.
75         (ldlang_undef_chain_list_type): Likewise.
76         (lang_finish): Adjust references to entry_symbol.
77         (lang_add_entry): Likewise.
78         (lang_gc_sections): Use link_info.gc_sym_list.
79         (lang_process): Set link_info.gc_sym_list.
80         * ldlex.l: Include bfdlink.h.
81         * ldmain.c (main): Init link_info.gc_sym_list.
82         * emultempl/aix.em: Adjust references to entry_symbol.
83         * emultempl/armcoff.em: Likewise.
84         * emultempl/armelf.em: Likewise.
85         * emultempl/pe.em: Likewise.
86         * emultempl/ppc64elf.em (ppc_after_open): New function.
87         (LDEMUL_AFTER_OPEN): Define.
88         * emulparams/elf64ppc.sh: KEEP .opd sections.
89
90 2002-06-29  Stephane Carrez  <stcarrez@nerim.fr>
91
92         * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
93         * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
94         * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
95         (EEPROM_START_ADDR): Define.
96         (EEPROM_MEMORY): Define.
97         * emulparams/m68hc12elf.sh: Likewise.
98         * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
99         section to put soft registers in .page0.
100         * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
101
102 2002-06-26  John David Anglin  <dave@hiauly1.hia.nrc.ca>
103
104         * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
105         section.  Add ${RELOCATING-0}.
106
107 Wed Jun 26 16:33:58 2002  J"orn Rennecke <joern.rennecke@superh.com>
108
109         * emulparams/shelf.sh (STACK_ADDR): Don't define.
110         (OTHER_SECTIONS): Define.
111         * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
112         (OTHER_SECTIONS): Undef.
113
114 2002-06-26  Alan Modra  <amodra@bigpond.net.au>
115
116         * ldmisc.c (demangle): Restore dots stripped from sym name.
117
118 2002-06-25  H.J. Lu <hjl@gnu.org>
119
120         * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
121         * Makefile.in: Regenerated.
122
123 2002-06-20  Nick Clifton  <nickc@cambridge.redhat.com>
124
125         * ld.texinfo (Bug Reporting): Update text to suggest a limit on
126         the size of attached object files, to allow make the object files
127         available via FTP or HTTP and to mention that the mail will be
128         sent to a mailing list.
129
130 2002-06-20  Nathanael Nerode  <neroden@twcny.rr.com>
131
132         * ld/configure.host (romp): Drop support.
133
134 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
135
136         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
137         section flags for SEC_DATA, rather than for SEC_CODE being unset.
138
139 2002-06-18  Chris Demetriou  <cgd@broadcom.com>
140
141         * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
142         format specifier used to print BFD name.
143
144 2002-06-18  Dave Brolley  <brolley@redhat.com>
145
146         From Catherine Moore, Michael Meissner, Jim Blandy:
147         * emulparams/elf32frv.sh: New file.
148         * configure.tgt: Support frv-*-*.
149         * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
150         (eelf32frv.c): New target.
151
152 2002-06-17  Tom Rix  <trix@redhat.com>
153
154         * emultempl/elf32.em: gld*_get_script:  Check for 
155         GENERATE_COMBRELOC_SCRIPT.
156         * scripttempl/elfd10v.sc : Fix STACK and INSN.
157         * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
158
159 Thu Jun 13 20:18:38 2002  J"orn Rennecke <joern.rennecke@superh.com>
160
161         * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
162
163 2002-06-12  H.J. Lu <hjl@gnu.org>
164
165         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
166         false if xvec doesn't match.
167
168 2002-06-10  Richard Sandiford  <rsandifo@redhat.com>
169
170         * ldlang.c (lang_size_sections_1): Skip removed output sections.
171
172 2002-06-08  Alan Modra  <amodra@bigpond.net.au>
173
174         * ldexp.c: Replace CONST with const.
175         * ldfile.c: Likewise.
176         * ldfile.h: Likewise.
177         * ldlex.l: Likewise.
178         * mri.c: Likewise.
179         * pe-dll.h: Likewise.
180
181 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
182
183         * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
184
185 2002-06-07  Charles Wilson  <cwilson@ece.gatech.edu>
186
187         * ld/ldmain.c (main): initialize link_info.pei386_auto_import
188         to -1 == implicit enable.
189         * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
190         initialize link_info.pei386_auto_import to -1 == implicit
191         enable.
192         (gld_${EMULATION_NAME}_parse_args): When processing
193         --enable-auto-import and --disable-auto-import options, use
194         '1' and '0' instead of 'true' and 'false'.
195         (pe_find_data_imports): Only issue message about auto-import
196         when the feature is implicitly enabled.  Downgrade message to
197         informational instead of warning.
198
199 2002-06-07  Alan Modra  <amodra@bigpond.net.au>
200
201         * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
202
203 2002-06-06  John David Anglin  <dave@hiauly1.hia.nrc.ca>
204
205         * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
206         HOSTING_CRT0 and HOSTING_LIBS.
207
208 2002-06-05  J"orn Rennecke <joern.rennecke@superh.com>
209
210         * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
211
212 2002-06-05  Jason Thorpe  <thorpej@wasabisystems.com>
213
214         * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
215         (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
216
217 2002-06-05  Alan Modra  <amodra@bigpond.net.au>
218
219         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
220         SEC_EXCLUDE sections when doing a relocatable link.
221
222 2002-06-04  Jason Thorpe  <thorpej@wasabisystems.com>
223
224         * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
225         eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
226         (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
227         (eshlelf64_nbsd.c): New rules.
228         * Makefile.in: Regenerate.
229         * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
230         (sh64-*-netbsd*): New targets.
231         * emulparams/shelf32_nbsd.sh: New file.
232         * emulparams/shelf64_nbsd.sh: New file.
233         * emulparams/shlelf32_nbsd.sh: New file.
234         * emulparams/shlelf64_nbsd.sh: New file.
235
236 2002-06-04  Alan Modra  <amodra@bigpond.net.au>
237
238         * ldlang.c (section_already_linked): Call bfd_discard_group.  Typo fix.
239
240 2002-06-02  Marek Michalkiewicz  <marekm@amelek.gda.pl>
241
242         * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
243         C++ constructors/destructors, loosely based on the m68hc11 port.
244
245 2002-05-31  Alan Modra  <amodra@bigpond.net.au>
246
247         * Makefile.in: Regenerate.
248         * aclocal.m4: Regenerate.
249         * config.in: Regenerate.
250         * configure: Regenerate.
251
252 2002-05-31  Graeme Peterson  <gp@qnx.com>
253
254         * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
255         (ei386nto.c): Add rule.
256         * Makefile.in: Regenerate.
257         * configure.tgt: Add i[3456]86-*-nto-qnx*.
258         * emulparams/i386nto.sh: New file.
259
260 2002-05-29  Jason Thorpe  <thorpej@wasabisystems.com>
261
262         * NEWS: Add entry for VAX ELF support.
263
264 2002-05-29  Matt Thomas  <matt@3am-software.com>
265             Jason Thorpe  <thorpej@wasabisystems.com>
266
267         * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
268         (eelf32vax.c)
269         (evaxnbsd.c): New rules.
270         * Makefile.in: Regenerate.
271         * configure.tgt (vax-*-netbsdelf*)
272         (vax-*-netbsdaout*)
273         (vax-*-netbsd*): New targets.
274         * emulparams/elf32vax.sh: New file.
275         * emulparams/vaxnbsd.sh: New file.
276
277 2002-05-29  Adam Nemet  <anemet@lnxw.com>
278
279         * emultempl/armelf.em (arm_elf_after_open): Don't determine
280         bfd_for_interwork, instead add glue sections to each input bfd.
281         (bfd_for_interwork): New global.
282         (arm_elf_set_bfd_for_interworking): New function.
283         (arm_elf_before_allocation): Use it.
284
285 2002-05-28  Kuang Hwa Lin <kuang@sbcglobal.net>
286
287         * Makefile.am: Add DLX make target.
288         * configure.tgt: Add DLX configuration.
289         * Makefile.in: Regenerate.
290         * emulparams/elf32_dlx.sh: New file
291         * scripttempl/dlx.sc: New file
292
293 2002-05-27  Per Lundberg  <per@caleb.dnsalias.org>
294
295         * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
296         * Makefile.in: Regenerate.
297         * emulparams/elf_chaos.sh: Use elf_chaos script.
298         * scripttempl/elf_chaos.sc: New file.
299
300 2002-05-27  Richard Sandiford  <rsandifo@redhat.com>
301
302         * ldlang.c (lang_size_sections_1): Move check for conflicting load
303         addresses and regions from here...
304         (lang_get_regions): ...to this new function.
305         (lang_leave_output_section_statement): Use lang_get_regions.
306         (lang_leave_overlay): Likewise.
307         * mri.c (mri_draw_tree): Pass null as last argument to
308         lang_leave_output_section_statement.
309         * emultempl/elf32.em (gld*_place_orphan): Likewise.
310         * emultempl/mmo.em (mmo_place_orphan): Likewise.
311         * emultempl/pe.em (gld*_place_orphan): Likewise.
312
313 2002-05-26  Jason Thorpe  <thorpej@wasabisystems.com>
314
315         * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
316
317 2002-05-25  Kazu Hirata  <kazu@cs.umass.edu>
318
319         * ldemul.c: Fix formatting.
320         * ldfile.c: Likewise.
321         * pe-dll.c: Likewise.
322         * pe-dll.h: Likewise.
323
324 2002-05-25  Alan Modra  <amodra@bigpond.net.au>
325
326         * ldlang.c (lang_process): Formatting, grammar.
327
328         * ldlex.l: Use #include "" instead of <> for local header files.
329
330 2002-05-24  TAMURA Kent <kent@netbsd.org>
331
332         * configure.tgt: Add a target for i386-netbsdpe.
333
334 2002-05-23  Jakub Jelinek  <jakub@redhat.com>
335
336         * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
337         * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
338         output section if necessary.  Handle .tbss.
339         (lang_size_sections): Clear _raw_size for .tbss section
340         (it allocates space in PT_TLS segment only).
341         * ldwrite.c (build_link_order): Build link order for .tbss too.
342
343 2002-05-23  Alan Modra  <amodra@bigpond.net.au>
344
345         * configure.in: Correct spelling of AC_PREREQ.
346
347 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
348
349         * pe-dll.c (autofilter_liblist): Add more system libs excluded by
350         default.
351         (autofilter_objlist): Add crtbegin.o, crtend.o.
352
353 2002-05-21  Danny Smith  <dannysmith@users.sourceforge.net>
354
355         * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
356         (longopts): Add new option --exclude-libs.
357         (gld_${EMULATION_NAME}_list_options): Give quick help about it.
358         (gld_${EMULATION_NAME}_parse_args): Use it.
359         * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
360         * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
361         from whole archives.
362         (pe_dll_add_excludes): Set excludes->type.
363         (auto_export): Add new variable libname and set to archive basename if
364         abfd.  Use it when filtering default and user-specified libarary
365         excludes.  Let string "ALL" mean all libs when filtering user-specified
366         libs.
367         * ld.texinfo: Document --exclude-libs.
368
369 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
370
371         * ldemul.c (ldemul_new_vers_pattern): New function.
372         * ldemul.h (ldemul_new_vers_pattern): Declare.
373         (struct ld_emulation_xfer_struct): Add new_vers_pattern.
374         * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
375         * emultempl/ppc64elf.em (dotsyms): New static var.
376         (gld${EMULATION_NAME}_new_vers_pattern): New function.
377         (LDEMUL_NEW_VERS_PATTERN): Define.
378         (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
379         (PARSE_AND_LIST_LONGOPTS): Likewise.
380         (PARSE_AND_LIST_ARGS_CASES): Handle them.
381         * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
382         initialiser.
383         * emultempl/armcoff.em: Likewise.
384         * emultempl/armelf_oabi.em: Likewise.
385         * emultempl/beos.em: Likewise.
386         * emultempl/elf32.em: Likewise.
387         * emultempl/generic.em: Likewise.
388         * emultempl/gld960.em: Likewise.
389         * emultempl/gld960c.em: Likewise.
390         * emultempl/linux.em: Likewise.
391         * emultempl/lnk960.em: Likewise.
392         * emultempl/m68kcoff.em: Likewise.
393         * emultempl/mipsecoff.em: Likewise.
394         * emultempl/pe.em: Likewise.
395         * emultempl/sunos.em: Likewise.
396         * emultempl/ticoff.em: Likewise.
397         * emultempl/vanilla.em: Likewise.
398
399 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
400
401         * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
402         and $NATIVE_LIB_DIRS.  Add $tool_lib before other libs.
403         (LIB_SEARCH_DIRS): No need to use "tr".
404         (COMPILE_IN): Only set for native targets.
405         * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
406         here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
407         * configure.tgt (powerpc*): Set tdir_*.
408         (powerpcle*): Correct targ_extra_emuls.
409         * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
410         * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
411
412 2002-05-22  Alan Modra  <amodra@bigpond.net.au>
413
414         * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
415         calling lang_add_entry.
416
417 2002-05-21  H.J. Lu  (hjl@gnu.org)
418
419         * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
420         "-z muldefs".
421         (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
422
423         * ld.texinfo: Updated for --allow-multiple-definition and
424         "-z muldefs".
425
426         * ldmain.c (main): Initialize the allow_multiple_definition
427         field to false.
428
429         * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
430         (ld_options): Add --allow-multiple-definition.
431         (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
432
433 2002-05-21  Jason Thorpe  <thorpej@wasabisystems.com>
434
435         * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
436         (earmelfb_nbsd.c): New rule.
437         * Makefile.in: Regenerate. 
438         * configure.tgt (armeb-*-netbsdelf*): New target.
439         (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls. 
440         (arm-*-netbsd*): Likewise.
441         * emulparams/armelfb_nbsd.sh: New file.
442
443 2002-05-18  Tom Rix  <trix@redhat.com>
444
445         * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib 
446         support.
447
448 2002-05-17  Marek Michalkiewicz  <marekm@amelek.gda.pl>
449
450         * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
451         * Makefile.in: Regenerate.
452         * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
453
454 2002-05-16  Marek Michalkiewicz  <marekm@amelek.gda.pl>
455
456         * emulparams/avr1.sh: New file.
457         * emulparams/avr2.sh: New file.
458         * emulparams/avr3.sh: New file.
459         * emulparams/avr4.sh: New file.
460         * emulparams/avr5.sh: New file.
461         * scripttempl/avr.sc: New file.
462
463 2002-05-15  Alan Modra  <amodra@bigpond.net.au>
464
465         * ldlang.c (section_already_linked): Call bfd_link_just_syms.
466         (lang_place_orphans): Abort if just_syms_flag.
467
468 2002-05-10  Tom Rix  <trix@redhat.com>
469
470         * emultempl/aix.em: (gld*_set_output_arch): New function. Use 
471         architecture and machine information in the output bfd.
472         (gld*_before_parse): Remove old arch and machine code.
473         (choose_target): Rename to gld*_choose_target.
474         (rtld): Change type to int. 
475         * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for 
476         objects in XCOFF archives.
477         * ldfile.h: Update copyright date.
478
479 2002-05-10  Jakub Jelinek  <jakub@redhat.com>
480
481         * ldmain.c (main): Enable -z combreloc by default.
482
483 2002-05-07  Federico G. Schwindt <fgsch@olimpo.com.br>
484
485         * Makefile.am: Honour DESTDIR.
486         * Makefile.in: Regenerate.
487
488 2002-05-07  Richard Sandiford  <rsandifo@redhat.com>
489
490         * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
491         (lang_enter_overlay): Remove the last two parameters.
492         (lang_leave_overlay): Take them here instead.
493         * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
494         (section): Pass LMA and crossref flag to lang_leave_overlay rather
495         than lang_enter_overlay.
496         * ldlang.c (lang_memory_region_lookup): Return null for null names.
497         (lang_output_section_statement_lookup): Initialize update_dot_tree.
498         (lang_size_sections_1): Evaluate it.
499         (lang_leave_output_section_statement): Rework LMA lookup.
500         (overlay_lma, overlay_nocrossrefs): Remove.
501         (lang_enter_overlay): Remove LMA and crossref arguments.
502         (lang_enter_overlay_section): Don't set the LMA here.
503         (lang_leave_overlay): Take LMA and crossref arguments.  Move the '.'
504         assignment to the last section's update_dot_tree.  Unconditionally
505         use the load and run-time regions specified in the OVERLAY statement.
506         Likewise the first section's LMA.  Only set the other sections' LMAs
507         when no load region is given.
508
509 2002-05-06  Nick Clifton <nickc@redhat.com>
510
511         * po/sv.po: New translation.
512
513 2002-05-04  Alan Modra  <amodra@bigpond.net.au>
514
515         * emultempl/hppaelf.em (build_section_lists): New function.
516         (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
517         and build_section_lists.
518
519 2002-05-03  Kazu Hirata  <kazu@cs.umass.edu>
520
521         * ld.h: Fix formatting.
522         * ldexp.c: Likewise.
523         * ldfile.c: Likewise.
524         * ldlang.c: Likewise.
525         * ldmain.c: Likewise.
526         * lexsup.c: Likewise.
527         * pe-dll.c: Likewise.
528
529 2002-05-02  Alan Modra  <amodra@bigpond.net.au>
530
531         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
532         Adjust for ppc64_elf_set_toc change.  #include libbfd.h.
533         (build_section_lists): Do output_section tests here.
534
535 2002-04-30  Tom Rix  <trix@redhat.com>
536
537         * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
538
539 2002-05-01  Alan Modra  <amodra@bigpond.net.au>
540
541         Long branch stubs, multiple stub sections.
542         * emultempl/ppc64elf.em: Include ldctor.h.
543         (stub_file): New var.
544         (group_size): New var.
545         (ppc_create_output_section_statements): New function.
546         (struct hook_stub_info): New.
547         (hook_in_stub): New function.
548         (ppc_add_stub_section): New function.
549         (ppc_layout_sections_again): New function.
550         (build_section_lists): New function.
551         (gld${EMULATION_NAME}_finish): Rewrite.
552         (real_func): New var.
553         (ppc_for_each_input_file_wrapper): New function.
554         (ppc_lang_for_each_input_file): New function.
555         (lang_for_each_input_file): Define.
556         (PARSE_AND_LIST_PROLOGUE): Define.
557         (PARSE_AND_LIST_LONGOPTS): Define.
558         (PARSE_AND_LIST_OPTIONS): Define.
559         (PARSE_AND_LIST_ARGS_CASES): Define.
560         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
561
562 2002-04-30  Tom Rix  <trix@redhat.com>
563
564         * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add 
565         -blibpath, -bnolibpath support. 
566  
567 2002-04-30  Mark Mitchell  <mark@codesourcery.com>
568
569         * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
570         (eelf32ppcwindiss.c): New target.
571         * Makefile.in: Regenerated.
572         * configure.tgt: Add support for powerpc-*-windiss.
573         * emulparams/elf32ppcwindiss.sh: New file.
574         
575 2002-04-30  Richard Sandiford  <rsandifo@redhat.com>
576
577         * ldlang.c (print_assignment): Update print_dot for assignments to ".".
578         * ldexp.c (exp_print_token): Add "infix_p" argument.
579         (exp_print_tree): Update accordingly.
580
581 2002-04-28  Alan Modra  <amodra@bigpond.net.au>
582
583         * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
584         * Makefile.in: Regenerate.
585         * mpw-elfmips.c: Delete.
586         * mpw-eppcmac.c: Delete.
587         * mpw-esh.c: Delete.
588         * mpw-idtmips.c: Delete.
589
590 Wed Apr 17 19:23:14 2002  J"orn Rennecke <joern.rennecke@superh.com>
591
592         * emulparams/shelf32.sh (MACHINE): Now sh5.
593
594 2002-04-17  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
595
596         * ldgram.y: Fix syntax warning.
597
598 2002-04-11  Nick Clifton  <nickc@cambridge.redhat.com>
599
600         * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
601         to prevent "-n" from being taken as an abbreviation for
602         "--no-pipeline-knowledge".
603
604 2002-04-08  Alan Modra  <amodra@bigpond.net.au>
605
606         * ldlang.c (lang_size_sections_1): Don't complain about
607         SEC_NEVER_LOAD sections having no memory region specified.
608
609         * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
610
611 2002-04-07  matthew green  <mrg@redhat.com>
612
613         * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
614
615 2002-04-04  Alan Modra  <amodra@bigpond.net.au>
616
617         * dep-in.sed: Cope with absolute paths.
618         * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
619         Run "make dep-am".
620         * Makefile.in: Regenerate.
621
622 2002-04-04  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
623
624         * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
625
626 2002-04-03  Jakub Jelinek  <jakub@redhat.com>
627
628         * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
629         is smaller than maximum, round dot up to common page boundary.
630
631 2002-03-28  Alan Modra  <amodra@bigpond.net.au>
632
633         * configure.host: Set up for generic hosts first, then tweak as
634         necessary in more specific targets.
635         (HOSTING_LIBS): Include libgcc_eh.a if found.
636
637 2002-03-23  Andreas Jaeger  <aj@suse.de>
638
639         * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
640
641 2002-03-21  Alan Modra  <amodra@bigpond.net.au>
642
643         * Makefile.am: Run "make dep-am".
644         * Makefile.in: Regenerate.
645
646 2002-03-21  Albert Chin-A-Young  <china@thewrittenword.com>
647
648         * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
649
650 2002-03-20  Alan Modra  <amodra@bigpond.net.au>
651
652         * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
653         add the symbol to the linker hash table immediately.
654         (lang_place_undefineds): Split symbol creation out..
655         (insert_undefined): ..to here.
656
657 2002-03-18  David O'Brien  <obrien@FreeBSD.org>
658
659         * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
660         the contents of the buffer returned from basename function will are
661         getting overwritten while still being used.
662
663 Mon Mar 18 17:38:39 CET 2002  Jan Hubicka  <jh@suse.cz>
664                               Andreas Jaeger  <aj@suse.de>
665                               Andreas Schwab  <schwab@suse.de>
666
667         * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
668         * elf_x86_64.sh (ARCH): Set to i386:x86-64
669         set libraries to default to lib64 paths.
670
671 2002-03-18  Tom Rix  <trix@redhat.com>
672
673         * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
674         * configure.tgt : Same.
675         * emulparms/aix5ppc.sh : New file. For eaix5ppc.
676         * emulparms/aix5rs6.sh : New file. For eaix5rs6.
677         * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
678         emulation parameters for better -b32, -b64 support.
679         * emulparms/aixrs6.sh : Same.
680         * emulparms/ppcmacos.sh : Same.
681         * emultempl/aix.em (choose_target) : Use new emulation parameters
682         OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
683         * Makefile.in : Regenerate.
684
685 2002-03-18  Nick Clifton  <nickc@cambridge.redhat.com>
686
687         * po/fr.po: Updated version.
688
689 2002-03-18  Alan Modra  <amodra@bigpond.net.au>
690
691         * ldmain.c (main): Move .text readonly flag fudges from here..
692         * ldlang.c (lang_process): ..to here.
693
694 2002-03-14  Alan Modra  <amodra@bigpond.net.au>
695
696         * ldlang.c (lang_check): Remove the word size check added in last
697         change.  Treat emitrelocations case as for relocatable links.
698
699 2002-03-13  Nick Clifton  <nickc@cambridge.redhat.com>
700
701         * po/fr.po: Updated version.
702
703 2002-03-13  Alan Modra  <amodra@bigpond.net.au>
704
705         * ldlang.c (lang_check): Do relocatable link checks first, so that
706         warn_mismatch can't override.  Check compatible and word size too.
707
708 2002-03-07  Daniel Jacobowitz  <drow@mvista.com>
709
710         * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
711
712 2002-03-05  Jakub Jelinek  <jakub@redhat.com>
713
714         * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
715         DATA_SEGMENT_ALIGN.
716
717 2002-03-04  H.J. Lu <hjl@gnu.org>
718
719         * scripttempl/elf.sc: Put .preinit_array, .init_array and
720         .fini_array in the data segment.
721
722 2002-03-04  Alan Modra  <amodra@bigpond.net.au>
723
724         * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
725
726 2002-03-01  David Mosberger  <davidm@hpl.hp.com>
727
728         * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
729         .init_array, and .fini_array.
730
731 2002-02-20  Andreas Schwab  <schwab@suse.de>
732
733         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
734         .IA64_unwind* in a relocatable link.
735
736 2002-02-20  Nick Clifton  <nickc@cambridge.redhat.com>
737
738         * NEWS: Mark 2.12 branch.
739
740 2002-02-19  Martin Schwidefsky  <schwidefsky@de.ibm.com>
741
742         * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
743         * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
744
745 2002-02-18  Tom Rix  <trix@redhat.com>
746
747         * emultempl/aix.em (gld*_parse_args): Add -brtl support.
748         (gld*_before_allocation): Same.
749         (gld*_create_output_section_statements): Generate
750         __rtinit if run time linking.  Add librtl.a to the link.
751         (gld*_read_file): Clean.
752
753 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
754
755         * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
756
757 2002-02-18  David O'Brien  <obrien@FreeBSD.org>
758
759         * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
760         eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
761         and eelf64alpha_fbsd.
762         * Makefile.in: Regenerate.
763         * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
764         x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
765         use a FreeBSD-specific emulation rather than the psABI one.
766         * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
767         for all FreeBSD ELF systems.
768         * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
769         emulation.
770         * emulparams/elf32ppc_fbsd.sh: Likewise.
771         * emulparams/elf64_ia64_fbsd.sh: Likewise.
772         * emulparams/elf64_sparc_fbsd.sh: Likewise.
773         * emulparams/elf64alpha_fbsd.sh: Likewise.
774         * emulparams/elf_i386_fbsd.sh: Likewise.
775         * emulparams/elf_x86_64_fbsd.sh: Likewise.
776
777 2002-02-18  Nick Clifton  <nickc@cambridge.redhat.com>
778
779         * po/tr.po: Updated version.
780
781 2002-02-18  Alan Modra  <amodra@bigpond.net.au>
782
783         * ld.texinfo (Output Section Fill): Fix amateur texinfo.
784         (FILL): Likewise.
785
786 2002-02-17  Hans-Peter Nilsson  <hp@bitrange.com>
787
788         * emultempl/mmo.em (mmo_after_open): Don't call
789         _bfd_mmix_check_all_relocs when producing ELF output.
790
791 2002-02-15  Richard Henderson  <rth@redhat.com>
792
793         * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
794         definition.  Emit a unop+nop pair.
795
796 2002-02-15  Hans-Peter Nilsson  <hp@bitrange.com>
797
798         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
799         for presence of .MMIX.reg_contents.linker_allocated before early
800         exit.
801
802         * NEWS: Mention support for MMIX.
803
804 2002-02-15  Alan Modra  <amodra@bigpond.net.au>
805
806         Support arbitrary length fill patterns.
807         * ld.texinfo (Output Section Fill): Describe fill expressions.
808         (FILL): Refer to the above.
809         * ldexp.h (etree_value_type): Add "str" field.
810         (union etree_union): Add "str" to "value" struct.
811         (exp_bigintop): Declare.
812         (exp_get_fill): Declare.
813         * ldexp.c: Include "safe-ctype.h".
814         (exp_intop): Set value.str to NULL.
815         (exp_bigintop): New function.
816         (new_rel): Pass in "str", and set new.str from it.
817         (new_rel_from_section): Set new.str to NULL.
818         (fold_name): Adjust calls to new_rel.
819         (exp_fold_tree): Likewise.
820         (exp_get_fill): New function.
821         * ldgram.y (struct big_int bigint, fill_type *fill): New.
822         (INT): Returns a "bigint".  Adjust all code handling INTs.
823         (fill_opt): Returns a "fill".
824         (fill_exp): Split out of fill_opt, use for FILL.
825         * ldlang.h (struct _fill_type): New.
826         (fill_type): Move typedef to ldexp.h.
827         (lang_output_section_statement_type): "fill" is now a pointer.
828         (lang_fill_statement_type): Likewise.
829         (lang_padding_statement_type): Likewise.
830         (lang_add_fill): Now takes a "fill_type *" param.
831         (lang_leave_output_section_statement): Likewise.
832         (lang_do_assignments): Likewise.
833         (lang_size_sections): Likewise.
834         (lang_leave_overlay_section): Likewise.
835         (lang_leave_overlay): Likewise.
836         * ldlang.c: Include ldgram.h after ldexp.h.
837         (lang_output_section_statement_lookup): Adjust for fill_type change.
838         (print_fill_statement): Likewise.
839         (print_padding_statement): Likewise.
840         (insert_pad): Now takes a "fill_type *" arg.
841         (size_input_section): Likewise.
842         (lang_size_sections_1): Likewise.
843         (lang_size_sections): Likewise.
844         (lang_do_assignments): Likewise.
845         (lang_add_fill): Likewise.
846         (lang_leave_output_section_statement): Likewise.
847         (lang_leave_overlay_section): Likewise.
848         (lang_leave_overlay): Likewise.
849         Adjust all callers of the above function.
850         * ldlex.l: Include ldgram.h after ldexp.h.  Allow hex numbers
851         starting with "0X" as well as "0x".  Return bigint.str for hex
852         numbers starting with "0x" or "0X", zero bigint.str otherwise.
853         Always use base 16 for numbers starting with "$".
854         * ldmain.c: Include ldgram.h after ldexp.h.
855         * ldwrite.c (build_link_order): Use bfd_data_link_order in place
856         of bfd_fill_link_order.
857         * pe-dll.c: Adjust lang_do_assignments calls.
858         * emultempl/elf32.em: Likewise.
859         * emultempl/hppaelf.em: Likewise.
860         * emultempl/ppc64elf.em: Likewise.
861         * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
862         lang_add_assignment call.
863         * emultempl/pe.em: Likewise.
864
865 2002-02-14  Phil Edwards  <pme@gcc.gnu.org>
866
867         * ld.texinfo (VERSION scripts):  Symbol names are globbing patterns.
868         * ldgram.y (lang_new_vers_regex):  Rename to lang_new_vers_pattern;
869         the pattern in question is not a regexp.
870         * ldlang.c:  Likewise.
871         * ldlang.h:  Likewise.
872         * ldlex.l (V_IDENTIFIER):  Allow '[', ']', '-', '!', and '^' also.
873
874 2002-02-12  Jakub Jelinek  <jakub@redhat.com>
875
876         * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
877         * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
878         (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
879         * ldexp.c (exp_data_seg): New variable.
880         (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
881         (fold_binary): Handle DATA_SEGMENT_ALIGN.
882         (exp_fold_tree): Handle DATA_SEGMENT_END.
883         Pass allocation_done when recursing instead of hardcoding
884         lang_allocating_phase_enum.
885         * ldexp.h (exp_data_seg): New.
886         * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
887         (lang_size_sections): New.
888         * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
889         * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
890         if COMMONPAGESIZE is defined.
891         * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
892         * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
893         * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
894         * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
895         * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
896         libraries only.
897
898 2002-02-11  Alan Modra  <amodra@bigpond.net.au>
899
900         * Makefile.in: Regenerate.
901
902 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
903
904         * lexsup.c: Remove strtoul declaration.
905
906 2002-02-10  Daniel Jacobowitz  <drow@mvista.com>
907
908         * ldmain.c: Add prototype for main ().
909         * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
910         * emultempl/lnk960.em (lnk960_choose_target): Function should
911         take two arguments.
912
913 2002-02-10  Alan Modra  <amodra@bigpond.net.au>
914
915         * ldlang.c (entry_section): New initialised variable.
916         (lang_finish): Use it.
917         * ldlang.h (entry_section): Declare.
918         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
919         entry_section to ".opd".
920
921 2002-02-09  Chris Demetriou  <cgd@broadcom.com>
922
923         * ld.texinfo (Options): Add back in -nostdlib documentation,
924         which had been inadvertently removed.
925
926 2002-02-09  Hans-Peter Nilsson  <hp@bitrange.com>
927
928         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
929         register section vma to a sane value after emitting error.  Make
930         fatal conditions cause program exit when emitting message.
931
932 2002-02-08  Ivan Guzvinec <ivang@opencores.org>
933
934         * configure.tgt: Add or32-*-rtems target.
935
936 2002-02-08  Alexandre Oliva  <aoliva@redhat.com>
937
938         Contribute sh64-elf.
939         2002-01-24  Alexandre Oliva  <aoliva@redhat.com>
940         * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
941         in OTHER_RELOCATABLE_SECTIONS.
942         2002-01-18  Alexandre Oliva  <aoliva@redhat.com>
943         * emulparams/shelf32.sh (STACK_ADDR): Define.
944         (OTHER_RELOCATABLE_SECTIONS): Renamed to...
945         (OTHER_SECTIONS): this.  Removed stack settings.
946         * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
947         (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
948         2001-03-12  DJ Delorie  <dj@redhat.com>
949         * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
950         relaxing if any shmedia or mixed sections are found.
951         2001-03-07  DJ Delorie  <dj@redhat.com>
952         * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
953         einfo.  Gracefully decline to output to non-elf formats.
954         2001-03-06  Hans-Peter Nilsson  <hpn@redhat.com>
955         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
956         Default to _end aligned to next multiple of 0x40000, plus 0x40000.
957         * emulparams/shelf32.sh: Ditto.
958         2001-01-14  Hans-Peter Nilsson  <hpn@cygnus.com>
959         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
960         comment.
961         2001-01-10  Ben Elliston  <bje@redhat.com>
962         * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
963         non-portable shell constructs. From Hans-Peter Nilsson.
964         2001-01-09  Hans-Peter Nilsson  <hpn@cygnus.com>
965         * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
966         * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
967         dependencies to the shell script include chain.
968         * Makefile.in: Regenerate.
969         2001-01-06  Hans-Peter Nilsson  <hpn@cygnus.com>
970         * emultempl/sh64elf.em: Update and tweak comments.
971         (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
972         make a .cranges section SEC_IN_MEMORY.
973         2000-12-30  Hans-Peter Nilsson  <hpn@cygnus.com>
974         * emultempl/sh64elf.em
975         (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
976         .cranges section found to be necessary; continue and set stored
977         section contents flags for sections with non-mixed contents.
978         Use a struct sh64_section_data container and sh64_elf_section_data
979         to store contents-type flags.
980         Remove unused update of "isec".
981         (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
982         sections marked SHF_SH5_ISA32_MIXED.  Use sh64_elf_section_data to
983         access contents-type flags.  Assert that the associated container
984         is initialized.  Use that container, not elf_gp_size, to hold size
985         of linker-generated cranges contents.
986         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
987         * emultempl/sh64elf.em
988         (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
989         there's already a .cranges section.  When section flag difference
990         is found, don't NULL-check cranges a second time.  Tweak comments.
991         (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
992         merging, not max size, as size of ld-generated .cranges contents.
993         Don't set ELF section flags in output section.  When checking for
994         needed .cranges descriptors, don't use a variable; compare
995         incoming ELF section flags directly to SHF_SH5_ISA32_MIXED.  Tweak
996         comments.
997         2000-12-18  Hans-Peter Nilsson  <hpn@cygnus.com>
998         * emultempl/sh64elf.em: New file.
999         * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1000         * Makefile.in: Regenerate.
1001         * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1002         (OTHER_RELOCATING_SECTIONS): Ditto.
1003         (EXTRA_EM_FILE): New, set to sh64elf if not set.
1004         * emulparams/shlelf32.sh: Stub out all settings except
1005         OUTPUT_FORMAT.  Source shelf32.sh.
1006         * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1007         OTHER_RELOCATING_SECTIONS.
1008         (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1009         * emulparams/shlelf64.sh: Stub out all settings except
1010         OUTPUT_FORMAT.  Source shelf64.sh.
1011         2000-12-15  Hans-Peter Nilsson  <hpn@cygnus.com>
1012         * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1013         .cranges section.
1014         (DATA_START_SYMBOLS): Define, provide ___data.
1015         (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1016         for consecutive .data section.
1017         (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1018         section after .data section.
1019         * emulparams/shlelf64.sh: Ditto.
1020         * emulparams/shelf32.sh: Ditto.
1021         (ALIGNMENT): Define to 8.
1022         * emulparams/shelf32.sh: Ditto.
1023         2000-12-12  Hans-Peter Nilsson  <hpn@cygnus.com>
1024         * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1025         built-in linker scripts.
1026         2000-11-30  Hans-Peter Nilsson  <hpn@cygnus.com>
1027         * emulparams/shlelf64.sh: New.
1028         * emulparams/shelf64.sh: New.
1029         * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1030         targ_extra_emuls.
1031         * Makefile.am: Add support for shlelf64 and shelf64.
1032         * Makefile.in: Regenerate.
1033         2000-11-29  Hans-Peter Nilsson  <hpn@cygnus.com>
1034         * configure.tgt (sh64-*-elf*): Add shelf as default.
1035         Add shlelf to targ_extra_emuls.
1036         2000-11-24  Hans-Peter Nilsson  <hpn@cygnus.com>
1037         * emulparams/shelf32.sh: New file.
1038         * emulparams/shlelf32.sh: New file.
1039         * Makefile.am: Add support for shlelf32 and shelf32.
1040         * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1041         * Makefile.in: Regenerate.
1042
1043 2002-02-05  Hans-Peter Nilsson  <hp@axis.com>
1044
1045         * ldlang.c (lang_reset_memory_regions): Rename from
1046         reset_memory_regions.  Change all callers.  Make public.
1047         * ldlang.h (lang_reset_memory_regions): Prototype.
1048         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1049         lang_reset_memory_regions before lang_size_sections.
1050         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1051         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1052
1053 2002-02-04  Hans-Peter Nilsson  <hp@bitrange.com>
1054
1055         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1056         arithmetic when checking for too many global registers.
1057
1058 2002-02-02  Jason Thorpe  <thorpej@wasabisystems.com>
1059
1060         * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1061         (ehppanbsd.c): New rule.
1062         * Makefile.in: Regenerate.
1063         * configure.tgt (hppa*-*-netbsd*): New target.
1064         * emulparams/hppalinux.sh: Add comment to check other files
1065         that source this file it is modified, and list which
1066         files that do.
1067         * emulparams/hppanbsd.sh: New file.
1068
1069 2002-02-01  Geoffrey Keating  <geoffk@redhat.com>
1070
1071         * scripttempl/xstormy16.sc: Don't allocate extra space for the
1072         stack.
1073
1074 2002-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
1075
1076         Support on-demand global register allocation from
1077         R_MMIX_BASE_PLUS_OFFSET relocs.
1078         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1079         mmix_set_reg_section_vma.  Call
1080         _bfd_mmix_finalize_linker_allocated_gregs.
1081         (mmix_before_allocation): New function.
1082         (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1083         (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1084         * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1085         (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1086         before .MMIX.reg_contents.
1087         * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1088         (mmo_after_open): New function.
1089         (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1090         * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting.  Add
1091         .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1092
1093 2002-01-31  Ivan Guzvinec  <ivang@opencores.org>
1094
1095         * emulparams/or32.sh: New file.
1096         * emulparams/or32elf.sh: New file.
1097         * scripttempl/or32.sc: New file.
1098         * configure.tgt : Add support for or32.
1099         * configure: Regenerate
1100         * Makefile.am: Add support for or32.
1101         * Makefile.in: Regenerate.
1102         * NEWS: Mention support for or32.
1103         * po/ld.pot: Regenerate.
1104
1105 2002-01-29  Chris Demetriou  <cgd@broadcom.com>
1106             Mitch Lichtenberg  <mpl@broadcom.com>
1107
1108         * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1109         * emultempl/mipself.em: New file to handle MIPS ELF embedded
1110         reloc creation (ld --embedded-relocs).
1111
1112 2002-01-27  Daniel Jacobowitz  <drow@mvista.com>
1113
1114         * configure: Regenerated.
1115
1116 2002-01-26  Hans-Peter Nilsson  <hp@bitrange.com>
1117
1118         * Makefile.am (install): Depend on install-info.
1119         * Makefile.in: Regenerate.
1120
1121 2002-01-26  Christian Rose  <menthos@menthos.com>
1122
1123         * ldmain.c (main): Use full sentences to ease translation.
1124
1125 2002-01-26  Nick Clifton  <nickc@cambridge.redhat.com>
1126
1127         * po/fr.po: Updated version.
1128
1129 2002-01-25  Nick Clifton  <nickc@cambridge.redhat.com>
1130
1131         * po/es.po: Updated version.
1132
1133 2002-01-25  Andreas Jaeger  <aj@suse.de>
1134
1135         * ldlex.l (yy_input): Correct error check.
1136
1137 2002-01-25  Alan Modra  <amodra@bigpond.net.au>
1138
1139         * ldmisc.c (demangle): Put back dots when string not demangled.
1140
1141 2002-01-22  Richard Henderson  <rth@redhat.com>
1142
1143         * emulparams/elf64alpha.sh (NOP): Use unop.
1144
1145 2002-01-21  Andreas Jaeger  <aj@suse.de>
1146
1147         * ldlex.l: Use fread instead of read.
1148
1149 2002-01-21  Jason Thorpe  <thorpej@wasabisystems.com>
1150
1151         * configure.tgt (ia64-*-netbsd*): New target.
1152
1153 2002-01-21  H.J. Lu <hjl@gnu.org>
1154
1155         * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1156         0.
1157         * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1158
1159 2002-01-18  Andreas Jaeger  <aj@suse.de>
1160
1161         * ldver.c (ldversion): Update year.
1162
1163 2002-01-17  Nick Clifton  <nickc@cambridge.redhat.com>
1164
1165         * po/ld.pot: Regenerate.
1166
1167 2002-01-16  Alan Modra  <amodra@bigpond.net.au>
1168
1169         * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1170         * Makefile.in: Regenerate.
1171         * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1172         * emultempl/ppc64elf.em: New file.
1173
1174 2002-01-15  DJ Delorie  <dj@redhat.com>
1175
1176         * scripttempl/pe.sc: Add support for constructor priorities.
1177
1178 2002-01-07  Marek Michalkiewicz  <marekm@amelek.gda.pl>
1179
1180         * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1181         * emulparams/avr23xx.sh: Likewise.
1182         * emulparams/avr4433.sh: Likewise.
1183         * emulparams/avr44x4.sh: Likewise.
1184         * emulparams/avr85xx.sh: Likewise.
1185         * emulparams/avrmega103.sh: Likewise.
1186         * emulparams/avrmega161.sh: Likewise.
1187         * emulparams/avrmega603.sh: Likewise.
1188         * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1189
1190 2002-01-08  Alexandre Oliva  <aoliva@redhat.com>
1191
1192         * ldlang.c (walk_wild_section): Exclude object file if enclosing
1193         archive is excluded.
1194
1195 2002-01-07  Jason Thorpe  <thorpej@wasabisystems.com>
1196
1197         * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1198         (eshelf_nbsd.c): New rule.
1199         (eshlelf_nbsd.c): New rule.
1200         * Makefile.in: Regenerate.
1201         * configure.tgt (sh*le-*-netbsdelf*): New target.
1202         (sh*-*-netbsdelf*): New target.
1203         * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1204         * ld/emulparams/shelf_nbsd.sh: New emulation.
1205         * ld/emulparams/shlelf_nbsd.sh: New emulation.
1206
1207 2002-01-07  Nick Clifton  <nickc@cambridge.redhat.com>
1208
1209         * po/es.po: New file: Spanish translation.
1210         * configure.in (ALL_LINGUAS): Add es.
1211         * configure: Regenerate.
1212
1213 2002-01-06  John Marshall  <jmarshall@acm.org>
1214
1215         * ld.texinfo: Note that --emit-relocs is currently only
1216         implemented for ELF.
1217
1218 2002-01-05  Alan Modra  <amodra@bigpond.net.au>
1219
1220         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1221         of bfd_section_list_remove and bfd_section_list_insert macros.
1222         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1223         * emultempl/mmo.em (mmo_place_orphan): Likewise.
1224
1225 2002-01-04  Jason Thorpe  <thorpej@wasabisystems.com>
1226
1227         * configure.tgt (x86_64-*-netbsd*): New target.
1228
1229 2001-12-21  Tom Rix  <trix@redhat.com>
1230
1231         (gld*_create_output_section_statements): New function.
1232         For -binitfini support.
1233         * emultempl/aix.em (gld*_before_parse): Fix comment.
1234         * emultempl/aix.em (gld*_parse_args): Fix comment.
1235
1236 2001-12-20  Jason Thorpe  <thorpej@wasabisystems.com>
1237
1238         * configure.tgt (mips*-dec-netbsd*): Delete alias for
1239         mips*el-*-netbsd*.
1240         (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1241
1242         * configure.tgt (arm-*-netbsdelf*): Add target.
1243         (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1244         * emulparams/armelf_nbsd.sh: Added.
1245         * Makefile.am: Add rules for earmelf_nbsd.
1246         * Makefile.in: Regenerate.
1247
1248 2001-12-19  Andreas Jaeger  <aj@suse.de>,
1249             Susanne Oberhauser <froh@suse.de>
1250
1251         * configure.host: Add rules for x86_64-*linux-gnu.  Change
1252         s390x-linux entry to use gcc to report configuration, replace gcc
1253         with $CC in s390-linux
1254
1255 2001-12-19  Andreas Jaeger  <aj@suse.de>
1256
1257         * ld.texinfo (VERSION): Fix markup.
1258
1259 2001-12-18  matthew green  <mrg@eterna.com.au>
1260
1261         * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1262         (m68kelfnbsd.c): New rule.
1263         * Makefile.in: Regenerate.
1264         * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1265         (m68*-*-netbsd*4k*): .. this.
1266         (m68*-*-netbsdelf*): New target.
1267         (m68*-*-netbsd*): Also include ELF support.
1268         (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1269         * emulparams/m68kelfnbsd.sh: New emulation.
1270
1271 2001-12-18  Jakub Jelinek  <jakub@redhat.com>
1272
1273         * ldgram.y (vers_node): Support anonymous version tags.
1274         * ldlang.c (lang_register_vers_node): Ensure anonymous version
1275         tag is not defined together with non-anonymous versions.
1276         * ld.texinfo: Document it.
1277
1278 2001-12-18  Nick Clifton  <nickc@cambridge.redhat.com>
1279
1280         * po/tr.po: New file: Turkish translation.
1281         * configure.in (ALL_LINGUAS): Add tr.
1282         * configure: Regenerate.
1283
1284 2001-12-17  Jason Thorpe  <thorpej@wasabisystems.com>
1285
1286         * Makefile.am: Add rules for eelf64alpha_nbsd.
1287         * Makefile.in: Regenerate.
1288         * configure.tgt (alpha*-*-netbsd*): Set
1289         targ_emul to elf64alpha_nbsd.
1290         * emulparams/elf64alpha_nbsd.sh: Added.
1291
1292 2001-12-17  Alan Modra  <amodra@bigpond.net.au>
1293
1294         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1295         section_tail when fiddling with section list.
1296         (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1297         broken into separate strings to make translation easier.
1298         * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1299         fiddling with section list.
1300         * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1301
1302 2001-12-16  Hans-Peter Nilsson  <hp@bitrange.com>
1303
1304         * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1305
1306 2001-12-15  Alan Modra  <amodra@bigpond.net.au>
1307
1308         * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1309
1310 2001-12-13  Jakub Jelinek  <jakub@redhat.com>
1311
1312         * emultempl/elf32.em (finish): Supply output_bfd
1313         to bfd_elf*_discard_info.
1314         (OPTION_EH_FRAME_HDR): Define.
1315         (longopts): Add --eh-frame-hdr.
1316         (parse_args): Handle it.
1317         (list_options): Add --eh-frame-hdr to help.
1318         * emultempl/hppaelf.em (finish): Supply output_bfd
1319         to bfd_elf*_discard_info.
1320         * scripttempl/elf.sc (.eh_frame_hdr): Add.
1321
1322 2001-12-13  Alan Modra  <amodra@bigpond.net.au>
1323
1324         * lexsup.c (parse_args): Don't pass shortopts to second call to
1325         getopt functions.  Restore optind rather than decrementing before
1326         second call.  Remove errind as it now duplicates last_optind.
1327
1328 2001-12-11  Christopher Faylor  <cgf@redhat.com>
1329
1330         * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1331
1332 2001-12-07  Geoffrey Keating  <geoffk@redhat.com>
1333             Richard Henderson  <rth@redhat.com>
1334
1335         * Makefile.am: Add support for xstormy16.
1336         * configure.tgt: Add support for xstormy16.
1337         * Makefile.in: Regenerate.
1338         * emulparams/elf32xstormy16.sh: New file.
1339         * scripttempl/xstormy16.sc: New file.
1340
1341 2001-10-01  Christopher Faylor <cgf@cygnus.com>
1342
1343         * Makefile.in (LIB_PATH): Make configurable.
1344         (GENSCRIPTS): Set LIB_PATH in environment.
1345         * configure.in: Substitute LIB_PATH.
1346         * configure: Regenerate.
1347         * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1348         * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1349
1350 2001-12-07  Nick Clifton  <nickc@cambridge.redhat.com>
1351
1352         * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1353         describing the -N option so that it is easier to translate into
1354         foreign languages.
1355
1356 2001-12-05  Nick Clifton  <nickc@cambridge.redhat.com>
1357
1358         * emultempl/pe.em (..._list_options): Replace multiple fprintf
1359         statements describing a single option with a single, newline
1360         escaped fprintf.  This allows better translation into other
1361         languages.
1362
1363         * ldmain.c (add_archive_element): Combine multiple strings
1364         into a single string to permit better translation into other
1365         languages.
1366
1367 2001-12-05  Tom Rix  <trix@redhat.com>
1368
1369         * Makefile.am: Remove eaixppc64.
1370         * Makefile.in: Regenerate.
1371
1372 2001-12-04  Tom Rix  <trix@redhat.com>
1373
1374         * emultempl/aix.em (choose_target): Change default target to
1375         OUTPUT_FORMAT for ppcmacos.  Add braces to remove compiler
1376         warning.
1377         (gld*_read_file):  Fix typo.
1378         (change_symbol_mode): Add prototype.
1379         (is_syscall): Same.
1380
1381         * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1382         * emulparams/aixrs6.sh : Same.
1383         * emulparams/ppcmacos.sh : Same.
1384         * emulparams/aixppc64.sh : Delete file.
1385         * emultempl/aix.em : Formatting changes.
1386
1387 2001-12-04  Hans-Peter Nilsson  <hp@axis.com>
1388
1389         * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1390         (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1391         __Sbss.
1392         (OTHER_END_SYMBOLS): Fix formatting.
1393         * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1394         (OTHER_END_SYMBOLS): Fix formatting.
1395
1396 2001-12-04  Alan Modra  <amodra@bigpond.net.au>
1397
1398         * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1399
1400 2001-12-02  Tom Rix  <trix@redhat.com>
1401
1402         * configure.tgt : Remove eaixppc64 emulations.
1403         * Makefile.in : Remove eaixppc64.c
1404         * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1405         (ldemul_default_target): Same.
1406         * emultempl/gld960.em (gld960_choose_target):  Same.
1407         * emultempl/gld960c.em (gld960_choose_target):  Same.
1408         * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1409         * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1410         * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1411         * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1412         * emultempl/aix.em (choose_target): New function.  Handle emulation of
1413         -b32 and -b64.
1414
1415 2001-11-27  H.J. Lu <hjl@gnu.org>
1416
1417         * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1418         * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1419         * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1420         * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1421         * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1422         * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1423         * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1424         * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1425
1426         * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1427         is not empty.
1428         (SDATA): Likewise.
1429         (REL_SDATA): Likewise.
1430         (REL_SBSS): Likewise.
1431         (REL_SDATA2): Likewise.
1432         (REL_SBSS2): Likewise.
1433         (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1434         (SDATA2): Likewise.
1435
1436 2001-11-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1437
1438         * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1439         destructor in rom.
1440         * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1441
1442 2001-11-22  H.J. Lu  <hjl@gnu.org>
1443
1444         * Makefile.in: Regenerated with automake based on automake
1445         1.4-8 in RedHat 7.1.
1446
1447 2001-11-22  Alan Modra  <amodra@bigpond.net.au>
1448
1449         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1450         (config.status): Delete rule.
1451         Add extra dependencies to cover sourced emulparams files.
1452         * Makefile.in: Regenerate.
1453
1454         * scripttempl/elf.sc: Order <section>, <section>.* and
1455         corresponding linkonce sections as seen in input files.
1456         Formatting fixes.  Zero vma of all sections if not relocating.
1457         (STACK): Define and insert if STACK_ADDR defined.
1458         (OTHER_RELOCATING_SECTIONS): Delete.
1459         (OTHER_END_SYMBOLS): Define.
1460         (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1461         (OTHER_READWRITE_SECTIONS): Likewise.
1462         (OTHER_GOT_SECTIONS): Likewise.
1463         (OTHER_SDATA_SECTIONS): Likewise.
1464         (OTHER_BSS_SECTIONS): Likewise.
1465         * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1466         (OTHER_READWRITE_SECTIONS): Likewise.
1467         * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1468         (OTHER_READWRITE_SECTIONS): Likewise
1469
1470         * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1471         (STACK_ADDR): Define.
1472         * emulparams/armelf_oabi.sh: As for armelf.sh.
1473         * emulparams/elf32mcore.sh: As for armelf.sh.
1474         * emulparams/h8300elf.sh: As for armelf.sh.
1475         * emulparams/mn10200.sh: As for armelf.sh.
1476         * emulparams/shelf.sh: As for armelf.sh.
1477
1478         * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1479         (OTHER_END_SYMBOLS): Define.
1480         * emulparams/m32relf.sh: As for elf32fr30.sh.
1481         * emulparams/h8300helf.sh: As for elf32fr30.sh.
1482         * emulparams/h8300self.sh: As for elf32fr30.sh.
1483
1484         * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1485         defines with RELOCATING test.
1486         (OTHER_SDATA_SECTIONS): Likewise.
1487         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1488         (OTHER_END_SYMBOLS): ..this.
1489         * emulparams/crislinux.sh: As for criself.sh.
1490
1491         * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1492         if not relocating.
1493         (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1494         (OTHER_SECTIONS): ..this.  Zero vma if not relocating.  Order
1495         normal and linkonce sections as seen in input files.
1496         * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1497         (TEXT_DYNAMIC): Likewise.
1498         (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1499         (OTHER_SDATA_SECTIONS): Likewise.
1500         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1501         * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1502         * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1503         * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1504         * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1505         (OTHER_PLT_RELOC_SECTIONS): Likewise.
1506         (OTHER_READONLY_SECTIONS): Likewise.  Order normal and linkonce
1507         sections as seen in input files.
1508         * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1509         * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1510         if not relocating.
1511         (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1512         (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1513         * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1514         (OTHER_SECTIONS): Instead, use this..
1515         (OTHER_END_SYMBOLS): ..and this.
1516
1517         * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1518         * emulparams/elf32bsmip.sh: Likewise.
1519         * emulparams/elf32btsmip.sh: Likewise.
1520         * emulparams/elf32ebmip.sh: Likewise.
1521         * emulparams/elf32lmip.sh: Likewise.
1522         * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1523         * emulparams/elf32lsmip.sh: Likewise.
1524         * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1525         * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1526         * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1527         * emulparams/elf64btsmip.sh: Likewise.
1528         * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1529         * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1530         * emulparams/elf32ppclinux.sh: Likewise.
1531         * emulparams/elf32ppcsim.sh: Likewise.
1532         * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1533         * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1534         * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1535         * emulparams/h8300self.sh: Likewise.
1536         * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1537         * emulparams/sh.sh: Comment.
1538         * emulparams/shl.sh: Source sh.sh, remove duplicates.
1539         * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1540         * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1541
1542 2001-11-21  David Heine <dlheine@tensilica.com>
1543             Alan Modra  <amodra@bigpond.net.au>
1544
1545         * ldlang.c (map_input_to_output_sections): Replace "break"
1546         accidentally removed with 2001-08-03 change.
1547         (lang_gc_sections_1): Likewise.
1548
1549 2001-11-21  Alan Modra  <amodra@bigpond.net.au>
1550
1551         * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1552
1553 2001-11-20  Angela Marie Thomas <angela@redhat.com>
1554
1555         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1556         of false when calling lang_size_sections.
1557         * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1558
1559 2001-11-15  Alan Modra  <amodra@bigpond.net.au>
1560
1561         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1562         function when LDEMUL_FINISH isn't set to the same name.  Don't
1563         call ${LDEMUL_FINISH}.
1564         (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1565         * emultempl/armelf.em (arm_elf_finish): Call
1566         gld${EMULATION_NAME}_finish.
1567         * emultempl/hppaelf.em (hppaelf_finish): Rename to
1568         gld${EMULATION_NAME}_finish.  Call bfd_elf32_discard_info and
1569         hppaelf_layout_sections_again if necessary.
1570         (need_laying_out): New var.
1571         (hppaelf_layaout_sections_again): Rename to
1572         hppaelf_layout_sections_again.  Clear need_laying_out.
1573         (PARSE_AND_LIST_OPTIONS): Format text.
1574
1575 2001-11-14  H.J. Lu  <hjl@gnu.org>
1576
1577         * emultempl/armelf.em (arm_elf_finish): Renamed from
1578         gld${EMULATION_NAME}_finish.
1579         (LDEMUL_FINISH): Set to arm_elf_finish.
1580
1581 2001-11-14  Daniel Jacobowitz  <drow@mvista.com>
1582
1583         * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1584         (struct ld_emulation_xfer_struct): Use it.
1585
1586 2001-11-13  Ross Alexander <ross.alexander@uk.neceur.com>
1587
1588         * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1589         additional symbols referenced by newer crt0.o files from HP.
1590
1591 2001-11-12  Anthony Green  <green@redhat.com>
1592
1593         * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1594
1595 2001-11-12  Alfred M. Szmidt  <ams@kemisten.nu>
1596
1597         * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1598         * Makefile.in: Regenerate.
1599
1600 2001-11-02  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
1601
1602         * ld.texinfo: Use @command for commands, @option for options.
1603         * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1604         the page man title.
1605         * Makefile.in: Rebuild.
1606
1607 2001-11-04  Chris Demetriou  <cgd@broadcom.com>
1608
1609         * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1610         Add support for targets.
1611
1612 2001-11-02  Nick Clifton  <nickc@cambridge.redhat.com>
1613
1614         * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1615         * configure: Regernate.
1616         * po/fr.po: New file.
1617         * po/sv.po: New file.
1618
1619 2001-11-01  NIIBE Yutaka  <gniibe@m17n.org>
1620
1621         * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1622         as little endian default and to support big endian.
1623
1624 2001-11-01  Chris Demetriou  <cgd@broadcom.com>
1625
1626         * ld.texinfo (Options): Document new option, -nostdlib.
1627         * lexsup.c (OPTION_NOSTDLIB): New definition.
1628         (ld_options): Add entry for "nostdlib".
1629         (parse_args): Handle OPTIONS_NOSTDLIB.
1630         * ldfile.c (ldfile_add_library_path): Don't add directories
1631         to the search path if they weren't specified on the command line
1632         and -nostdlib was specified.
1633         * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1634
1635 2001-10-31  Nick Clifton  <nickc@cambridge.redhat.com>
1636
1637         * lexsup.c (parse_args): Prevent infinite parsing loop when
1638         "-rpath.a" is specified on the command line.
1639         Replace calls to fprintf with calls to einfo.
1640
1641 2001-10-31  John Marshall  <jmarshall@acm.org>
1642
1643         * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1644         appear only once across all the linker scripts involved in a link
1645         invocation no longer applies.  Make the documentation reflect
1646         that.
1647
1648 2001-10-31  NIIBE Yutaka  <gniibe@m17n.org>
1649
1650         * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1651         targets.
1652         (sh-*-linux*): Added targ_extra_libpath.
1653
1654 2001-10-31  David Heine  <dlheine@tensilica.com>
1655
1656         * ldlang.c (lang_size_sections): Keep a valid output_offset field
1657         for padding statements.
1658
1659 2001-10-30  Hans-Peter Nilsson  <hp@bitrange.com>
1660
1661         * configure.tgt (mmix-*-*): New target.
1662         * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1663         Add dependencies to match.
1664         * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1665         emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1666         scripttempl/mmo.sc: New files.
1667         * gen-doc.texi: @set MMIX.
1668         * ld.texinfo: Ditto.
1669         [MMIX] Add MMIX node.
1670         * Makefile.in: Regenerate.
1671
1672 2001-10-29  Kazu Hirata  <kazu@hxi.com>
1673
1674         * ldlang.c: Fix a comment typo.
1675
1676 2001-10-23  Alan Modra  <amodra@bigpond.net.au>
1677
1678         * configure.host: Move alpha*-*-linux-gnu* entry to generic
1679         entries, and match *-*-linux*.
1680
1681 2001-10-20  Alan Modra  <amodra@bigpond.net.au>
1682
1683         * ldgram.y (mri_script_command): Surround processing of INCLUDE
1684         with ldlex_script, ldlex_popstate.
1685         (ifile_p1): Likewise.
1686         * ldlex.l (EOF): Don't BEGIN(SCRIPT).  Restore lineno from the
1687         correct slot.
1688         (lex_push_file): Save current lineno to lineno_stack.  Set lineno
1689         to 1.  Don't BEGIN(SCRIPT).
1690         (lex_redirect): Similarly.
1691         * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1692
1693 2001-10-20  Nick Clifton  <nickc@cambridge.redhat.com>
1694
1695         * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1696         __EH_FRAME_END__ and accept eh frames into data section.
1697         Add ctor and dtor sections.
1698
1699 2001-10-19  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1700
1701         * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1702         (auto-export): Fix indentation.
1703
1704 2001-10-18  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1705
1706         * pe-dll.c (autofilter_objectlist):  Add startup objects
1707         for profiling.
1708         (auto-export): Constify char * p.
1709         Extract file basename and use strcmp rather than ststr
1710         for object lookup.
1711
1712 2001-10-18  Chris Demetriou  <cgd@broadcom.com>
1713
1714         * ldmain.c (get_emulation): Improve comment about the handling
1715         of -mipsN options.
1716
1717 2001-10-17  Alan Modra  <amodra@bigpond.net.au>
1718
1719         * po/POTFILES.in: Regenerate.
1720
1721 2001-10-16  Vassili Karpov  <malc@pulsesoft.com>
1722
1723         * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1724         -z nocopyreloc and -z nocombreloc usage strings.
1725
1726 2001-10-12  Vassili Karpov  <malc@pulsesoft.com>
1727
1728         * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1729         in usage.
1730
1731 2001-10-11  Aleksey Romanov <aromanov@ennovatenetworks.com>
1732
1733         * scripttempl/armaout.sc: Place .bss section after end of aligned
1734         data section to match behaviour of aout code in constructrion of
1735         header.
1736
1737 2001-10-11  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
1738
1739         * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1740         startup files for mingw32 dlls to list.
1741
1742 2001-10-10  Chris Demetriou  <cgd@broadcom.com>
1743
1744         * emultempl/elf32.em: Fix shell 'if' usage for portability.
1745
1746 2001-10-08  Aldy Hernandez  <aldyh@redhat.com>
1747
1748         * configure.tgt (targ): Add arm9e-*-elf.
1749
1750 2001-10-05  H.J. Lu  <hjl@gnu.org>
1751
1752         * genscripts.sh: Fix a typo in the last change.
1753
1754 2001-10-05  Jakub Jelinek  <jakub@redhat.com>
1755
1756         * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1757         -z nocombreloc in usage.
1758
1759 2001-10-03  Jim Blandy  <jimb@redhat.com>
1760
1761         * genscripts.sh: Include a comment at the top of each generated
1762         script, explaining its purpose.
1763
1764 2001-10-03  Vassili Karpov  <malc@pulsesoft.com>
1765
1766         * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1767         * NEWS: Mention -z nocopyreloc.
1768         * ld.texinfo (Options): Describe nocopyreloc.
1769
1770 2001-10-03  Alan Modra  <amodra@bigpond.net.au>
1771
1772         * configure: Regenerate.
1773
1774 2001-10-02  Alan Modra  <amodra@bigpond.net.au>
1775
1776         * ldver.h (ld_program_version): Remove declaration.
1777         * lexsup.c (parse_args): Move printing of copyright message..
1778         * ldver.c (ldversion): .. to here.
1779         Use BFD_VERSION_STRING in place of BFD_VERSION.
1780         (ld_program_version): Remove.
1781         * Makefile.am (Makefile): Depend on bfd/configure.in.
1782         Run "make dep-am".
1783         * Makefile.in: Regenerate.
1784
1785 2001-09-30  Hans-Peter Nilsson  <hp@bitrange.com>
1786
1787         * Makefile.am: Update dependencies with "make dep-am".
1788         * Makefile.in: Regenerate.
1789
1790 2001-09-29  John Reiser  <jreiser@BitWagon.com>
1791
1792         * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1793         * lexsup.c: Add --no-define-common commandline option.
1794         * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1795         * ldlex.l: Likewise.
1796         * ld.h: Add command_line.inhibit_common_definition.
1797         * ldmain.c (main): Initialize.
1798         * ld.texinfo: Document.
1799
1800 2001-09-26  Alan Modra  <amodra@bigpond.net.au>
1801
1802         * ldmisc.c (USE_STDARG): Remove.
1803         (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1804         (einfo): Likewise.
1805         (minfo): Likewise.
1806         (lfinfo): Likewise.
1807
1808         * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1809         declarations.  Update copyright.
1810
1811 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1812
1813         * pe-dll.c: Remove obsoleted declaration of
1814         pe_get_data_import_dll_name.
1815         (pe_create_import_fixup): Fix thinko.
1816
1817         * ld.texinfo(enable-auto-import): Clarify the explanation.
1818
1819 2001-09-24  Nick Clifton  <nickc@cambridge.redhat.com>
1820
1821         * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1822         * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1823         DLL_SUPPORT controlled code.
1824
1825 2001-09-24  Charles Wilson  <cwilson@ece.gatech.edu>
1826
1827         * emultempl/pe.em(pe_data_import_dll): Make static.
1828         (pe_get_data_import_dll_name): New accessor function.
1829         * pe-dll.c(pe_create_import_fixup): call
1830         pe_get_data_import_dll_name() from pe.em, instead of
1831         directly accessing pe_data_import_dll variable from pe.em.
1832
1833 2001-09-18  Bruno Haible  <haible@clisp.cons.org>
1834
1835         * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1836         (def_file_add_directive): Use ISSPACE instead of isspace.
1837         (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1838         isdigit/isxdigit/isalpha/isalnum.
1839         * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1840         (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1841         * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1842         (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1843         isalnum.
1844         * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1845         (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1846         isupper/tolower.
1847         * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1848         (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1849         * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1850         (ctor_prio): Use ISDIGIT instead of isdigit.
1851         * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1852         (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1853         (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1854         isupper/tolower.
1855         * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1856         (stricpy): Use TOLOWER instead of isupper/tolower.
1857         (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1858         * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1859         (lex_warn_invalid): Use ISPRINT instead of isprint.
1860         * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1861         (main): For gettext, also set the LC_CTYPE locate facet.
1862         (add_keepsyms_file): Use ISSPACE instead of isspace.
1863         * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1864         (is_num, parse_args): Use ISDIGIT instead of isdigit.
1865         * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1866         (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1867         * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1868         (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1869         * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1870         (quoteput): Use ISSPACE instead of isspace.
1871         (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1872         instead of isalnum.
1873
1874 2001-09-18  Alan Modra  <amodra@bigpond.net.au>
1875
1876         * deffilep.y (def_stash_module): Constify "name" param.
1877
1878         * pe-dll.c: Replace CONST with const throughout.
1879         (quick_symbol): Constify "n1", "n2", "n3" params.
1880         (make_singleton_name_thunk): Constify "import" param.  Make
1881         "buffer_len" a size_t.
1882         (make_import_fixup_entry): Constify "name", "fixup_name",
1883         "dll_symname" params.
1884         (pe_get16): Cast args of bfd_seek.  Replace bfd_read with bfd_bread.
1885         (pe_get32): Likewise.
1886         (pe_implied_import_dll): Likewise.
1887
1888         * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1889         (sort_by_section_name): Likewise.
1890
1891         * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1892         (make_import_fixup): Cast printf arg, rel->address to long rather
1893         than int.
1894         (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1895
1896 2001-09-15  Alan Modra  <amodra@bigpond.net.au>
1897
1898         * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1899         defines BufferSize.  Increase buffer size by one.
1900
1901 2001-09-14  Ralf Habacker <Ralf.Habacker@freenet.de>
1902
1903         * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1904
1905 2001-09-14  Kevin Lo <kevlo@openbsd.org>
1906
1907         * configure.tgt: Add arm-openbsd target.
1908
1909 2001-09-12  H.J. Lu  <hjl@gnu.org>
1910
1911         * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1912         eelf64lppc.o to ...
1913         (ALL_64_EMULATIONS): Here.
1914         * Makefile.in: Regenerated.
1915
1916 2001-09-12  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
1917
1918         * emultempl/pe.em(make_import_fixup): change signature to
1919         take asection as well as arelec; we need this for proper
1920         error reporting.  Only call pe_create_import_fixup() if
1921         there is no attempt to add a constant addend to the reloc;
1922         otherwise, report error condition.
1923         * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1924         since final argument is a pointer to make_import_fixup().
1925         Change call to cb() to match make_import_fixup() signature.
1926         (make_import_fixup_mark): make buffer_len unsigned.
1927         * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1928
1929 2001-09-12  Charles Wilson  <cwilson@ece.gatech.edu>
1930
1931         * ld.texinfo: add verbose documentation for auto-import
1932         direct-addressing workaround, to compliment the terse
1933         error message.
1934
1935 2001-09-12  Andrew MacLeod  <amacleod@redhat.com>
1936
1937         * scripttempl/v850.sc: Add gcc_except_table sections.
1938
1939 2001-09-11  Jeffrey A Law  (law@cygnus.com)
1940
1941         * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1942         * emulparams/h8300self.sh: Similarly.
1943
1944 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1945
1946         * ld.texinfo (Options, --stack): Correct default value for stack
1947         reserve.
1948
1949 2001-09-05  Tom Rix <trix@redhat.com>
1950
1951         * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1952
1953 2001-09-03  Andreas Jaeger  <aj@suse.de>
1954
1955         * emultempl/beos.em: Declare prototypes for comparions functions,
1956         adjust definitions.
1957
1958 2001-09-02  Andreas Jaeger  <aj@suse.de>
1959
1960         * emultempl/aix.em: Add missing prototype.
1961         * emultempl/lnk960.em: Likewise.
1962         * emultempl/vanilla.em: Likewise.
1963         * emultempl/armcoff.em: Likewise.
1964         * emultempl/armelf_oabi.em: Likewise.
1965         * emultempl/beos.em: Likewise.
1966         * emultempl/gld960c.em: Likewise.
1967         * emultempl/gld960.em: Likewise.
1968
1969         * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1970         for prototype declaration.
1971
1972 2001-08-31  Eric Christopher  <echristo@redhat.com>
1973             Jason Eckhardt  <jle@redhat.com>
1974
1975         * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1976
1977 2001-08-31  Andreas Jaeger  <aj@suse.de>
1978
1979         * emultempl/pe.em: Add missing prototypes.
1980         (gld_${EMULATION_NAME}_after_open): Remove extra args to
1981         pe_find_data_imports.
1982         (pr_sym): Add unused attribute.
1983
1984 2001-08-29  Joel Sherrill <joel@OARcorp.com>
1985
1986         * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1987         default from coff to elf.
1988
1989 2001-08-29  Jeff Law <law@redhat.com>
1990
1991         * emulparams/h8300helf.sh: Resync with h8300elf.sh.  Update
1992         ARCH specification.
1993         * emulparams/h8300self.sh: Similarly.
1994
1995 2001-08-28  J"orn Rennecke <amylaar@redhat.com>
1996
1997         * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1998         eh8300self.o .
1999         (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2000         * configure.tgt (h8300-*-elf*): New case.
2001         * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2002         * emulparams/h8300self.sh: New file.
2003         * Makefile.in: Regenerated.
2004
2005 2001-08-28  Nick Clifton  <nickc@cambridge.redhat.com>
2006
2007         * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2008         with macro name.
2009
2010 2001-08-27  Linus Nordberg  <linus@swox.com>
2011             Alan Modra  <amodra@bigpond.net.au>
2012
2013         * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2014         (eelf64ppc.c, eelf64lppc.c): Add make targets.
2015         Run "make dep-am"
2016         * Makefile.in: Regenerate.
2017         * configure.tgt: Add powerpc64 support.  Move pdp11, pjl, pj
2018         entries to correct alphabetical position.
2019         * emulparams/elf64ppc.sh: New.
2020         * emulparams/elf64lppc.sh: New.
2021
2022 2001-08-27  Nick Clifton  <nickc@cambridge.redhat.com>
2023
2024         * ldmain.c (main): Declare BSIZE as static.
2025
2026 2001-08-23  Jakub Jelinek  <jakub@redhat.com>
2027
2028         * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2029         into .rel.dyn resp. .rela.dyn if combreloc.
2030         (get_script): If .x linker script is equal to .xn, only put it
2031         once into the binary.
2032         Add .xc and .xsc scripts.
2033         (parse_args): Handle -z combreloc and -z nocombreloc.
2034         * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2035         For .xc and .xsc scripts put all .rel* or .rela* input sections
2036         but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2037         * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2038         is elf.
2039         Strip trailing whitespace from script.
2040         Generate .xc and .xsc scripts if requested.
2041         * ldmain.c (main): Initialize link_info.combreloc and
2042         link_info.spare_dynamic_tags.
2043         * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2044         (ld_options): Add --spare-dynamic-tags option.
2045         (parse_args): Likewise.
2046         * ld.texinfo: Document -z combreloc and -z nocombreloc.
2047         * ldint.texinfo: Document .xc and .xsc linker scripts.
2048         * NEWS: Add notes about -z combreloc and SHF_MERGE.
2049
2050 2001-08-22  H.J. Lu  <hjl@gnu.org>
2051
2052         * emulparams/elf32fr30.sh: Add a newline.
2053
2054 2001-08-21  Andreas Jaeger  <aj@suse.de>
2055
2056         * deffilep.y: Add missing prototypes.
2057         * pe-dll.c: Likewise.
2058
2059 2001-08-20  Alan Modra  <amodra@bigpond.net.au>
2060
2061         * ldlang.c (insert_pad): Fix typos in last patch.
2062
2063         * ldlang.c: When traversing lang_statement_union_type lists,
2064         consistently use "header.next" rather than "next".
2065         * mpw-eppcmac.c: Likewise.
2066         * emultempl/beos.em: Likewise.
2067         * emultempl/hppaelf.em: Likewise.
2068         * emultempl/pe.em: Likewise.
2069         * ldlang.h (union lang_statement_union): Remove "next" field.
2070
2071         * ldlang.c (insert_pad): Use offsetof macro.
2072         (lang_size_sections): Always neuter padding statements.
2073         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2074
2075         * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2076         passed to lang_size_sections.
2077         (pe_exe_fill_sections): Likewise.
2078         * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2079         (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2080
2081 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2082
2083         * emultempl/aix.em: Formatting fixes.
2084
2085 2001-08-18  Alan Modra  <amodra@bigpond.net.au>
2086
2087         * ldlang.c (insert_pad): Make use of an existing pad statement if
2088         available.  Move code calculating alignment, adjusting section
2089         alignment power, and adjusting dot to ..
2090         (size_input_section): .. here.  Remove unused relax param.
2091         (lang_size_sections): Change boolean `relax' param to boolean *.
2092         Adjust call to size_input_section.  Make use of insert_pad to
2093         place pad after the assignment statement.  If relaxing, zap
2094         padding statements.
2095         (reset_memory_regions): Reset output_bfd section sizes too.
2096         (relax_again): Move to..
2097         (lang_process): ..here.  Adjust call to lang_size_sections, and
2098         remove duplicated code.
2099         * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2100
2101 2001-08-17  Alan Modra  <amodra@bigpond.net.au>
2102
2103         * ld.texinfo: Document that fill values now use the four least
2104         significant bytes.
2105         * emulparams/elf32fr30.sh (NOP): Update.
2106         * emulparams/elf32mcore.sh: Likewise.
2107         * emulparams/elf64_s390.sh: Likewise.
2108         * emulparams/elf_i386.sh: Likewise.
2109         * emulparams/elf_i386_be.sh: Likewise.
2110         * emulparams/elf_i386_chaos.sh: Likewise.
2111         * emulparams/elf_i386_ldso.sh: Likewise.
2112         * emulparams/elf_s390.sh: Likewise.
2113         * emulparams/elf_x86_64.sh: Likewise.
2114         * emulparams/i386moss.sh: Likewise.
2115         * emulparams/i386nw.sh: Likewise.
2116         * emulparams/m68kelf.sh: Likewise.
2117         * scripttempl/elf.sc: Update NOP comment.
2118         * scripttempl/elfi370.sc: Likewise.
2119         * scripttempl/elfm68hc11.sc: Likewise.
2120         * scripttempl/elfm68hc12.sc: Likewise.
2121         * scripttempl/nw.sc: Likewise.
2122
2123 2001-08-15  Tom Rix <trix@redhat.com>
2124
2125         * ldgram.y (saved_script_handle): Initialize to NULL.
2126         * ldmain.c (main): Change check on saved_script_handle.
2127
2128 2001-08-14  Alan Modra  <amodra@bigpond.net.au>
2129
2130         * emultempl/elf32.em: Formatting fixes.
2131         (output_prev_sec_find): Test for bfd_ind_section too;  do so by
2132         looking at sec->owner.
2133         (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2134         (gld${EMULATION_NAME}_place_orphan): Add a few comments.  Remove
2135         unused code, and reorganize orphan section placement code.
2136
2137         * ldlang.c (wild_doit): Rename to lang_add_section.
2138         * ldlang.h: Here too.
2139         * mpw-elfmips.c: And here.
2140         * emultempl/beos.em: And here.
2141         * emultempl/elf32.em: And here.
2142         * emultempl/hppaelf.em: And here.
2143         * emultempl/pe.em: And here.
2144
2145 2001-08-13  Richard Henderson  <rth@redhat.com>
2146
2147         * emultempl/needrelax.em: New file.
2148         * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2149         * Makefile.am (eelf64_ia64.c): Depend on it.
2150         * Makefile.in: Rebuild.
2151
2152 2001-08-13  Alan Modra  <amodra@bigpond.net.au>
2153
2154         * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2155         output_section is set non-NULL.
2156
2157         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2158         `true' for SEC_EXCLUDE sections so that the generic code doesn't
2159         needlessly create an output_section_statement.  Treat a correctly
2160         named output_section_statement with NULL bfd_section as compatible.
2161
2162 2001-08-13  Hans-Peter Nilsson  <hp@bitrange.com>
2163
2164         * emultempl/generic.em: Support EXTRA_EM_FILE.
2165         (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2166         LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2167         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2168         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2169         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2170         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2171         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2172         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2173         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2174         LDEMUL_FIND_POTENTIAL_LIBRARIES.
2175
2176 2001-08-12  Richard Henderson  <rth@redhat.com>
2177
2178         * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2179         scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2180         scripttempl/v850.sc: Keep .jcr data.
2181
2182 2001-08-12  H.J. Lu  <hjl@gnu.org>
2183             Andrew Haley  <aph@cambridge.redhat.com>
2184             Nick Clifton  <nickc@redhat.com>
2185
2186         * ldgram.y (had_script): Change name to saved_script_handle.
2187         Change type to file handle.
2188         * ld.h (had_script): Rename and retype.
2189         * ldfile.c (ldfile_open_command_file): Save the file handle
2190         used in saved_script_handle.
2191         * lexsup.c (parse_args): Do not allow -c option to alter
2192         saved_script_handle.
2193         * ldmain.c (main): Print out the linker script used if
2194         --verbose is given.  Check saved_script_handle to obtain the
2195         external linker script used, or if NULL, dump the builtin
2196         script.
2197         * ld.texinfo: Document that --verbose now dumps the linker
2198         script used, regardless of whether it was an internal or an
2199         external script.
2200
2201 2001-08-10  Andreas Jaeger  <aj@suse.de>
2202
2203         * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2204         to build warnings.
2205         * configure: Regenerate.
2206
2207 2001-08-09  Alan Modra  <amodra@bigpond.net.au>
2208
2209         * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2210
2211         * scripttempl/elf.sc: Move non-text .dynamic section before
2212         .plt/.got/.sdata* group.
2213         (OTHER_GOT_SECTIONS): Move to immediately after .got.
2214         (OTHER_SDATA_SECTIONS): Add.
2215         * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2216         OTHER_GOT_SECTIONS.
2217         * emulparams/crislinux.sh: Likewise.
2218         * emulparams/elf32b4300.sh: Likewise.
2219         * emulparams/elf32bmip.sh: Likewise.
2220         * emulparams/elf32bmipn32.sh: Likewise.
2221         * emulparams/elf32bsmip.sh: Likewise.
2222         * emulparams/elf32btsmip.sh: Likewise.
2223         * emulparams/elf32ebmip.sh: Likewise.
2224         * emulparams/elf32elmip.sh: Likewise.
2225         * emulparams/elf32l4300.sh: Likewise.
2226         * emulparams/elf32lmip.sh: Likewise.
2227         * emulparams/elf32lsmip.sh: Likewise.
2228         * emulparams/elf32ltsmip.sh: Likewise.
2229         * emulparams/elf64bmip.sh: Likewise.
2230         * emulparams/elf64btsmip.sh: Likewise.
2231         * emulparams/elf64ltsmip.sh: Likewise.
2232
2233 2001-08-08  Alan Modra  <amodra@bigpond.net.au>
2234
2235         * genscripts.sh: Source the emulparams script before each output
2236         script is generated so that variables like `RELOCATING' may affect
2237         variables defined in the emulparams script.
2238
2239 2001-08-04  Alan Modra  <amodra@bigpond.net.au>
2240
2241         * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2242         order.
2243
2244         * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2245         ie. iterate over wild_statement.section_list.
2246         (gld${EMULATION_NAME}_place_orphan): Likewise.
2247
2248 2001-08-03  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2249
2250         * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2251         .fini[0-4] sections used by _exit
2252         (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2253         (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2254         * scripttempl/elfm68hc11.sc: Likewise.
2255
2256 2001-08-03  H.J. Lu  <hjl@gnu.org>
2257
2258         * emultempl/beos.em (init): Add the missing initialization.
2259
2260 2001-08-03  Alan Modra  <amodra@bigpond.net.au>
2261
2262         * ld.texinfo (Input Section Basics): Clarify ordering of output
2263         sections.
2264         * ldlang.c (callback_t): Add wildcard_list param.
2265         (walk_wild_section): Remove "section" param.  Rewrite for
2266         lang_wild_statement_type change.  Remove unique_section_p test.
2267         (walk_wild_file): Remove "section" param.
2268         (walk_wild): Remove "section" and "file" params.
2269         (lang_gc_wild): Likewise.
2270         (wild): Likewise.  Modify for lang_wild_statement_type change.
2271         (wild_sort): Likewise.  Add "sec" param.
2272         (gc_section_callback): Likewise.
2273         (output_section_callback): Likewise.  Do unique_section_p test.
2274         (map_input_to_output_sections): Modify call to wild.
2275         (lang_gc_sections_1): Likewise.
2276         (print_wild_statement): Modify for lang_wild_statement_type
2277         change.
2278         (lang_add_wild): Replace filename, filenames_sorted param with
2279         filespec.  Replace section_name, sections_sorted,
2280         exclude_filename_list with section_list.
2281         * ldlang.h (lang_add_wild): Here too.
2282         (lang_wild_statement_type): Replace section_name, sections_sorted,
2283         and exclude_filename_list with section_list.
2284         * ldgram.y (current_file): Delete.
2285         (%union): Add wildcard_list.
2286         (file_NAME_list): Set type to wildcard_list.  Build a linked list
2287         rather than calling lang_add_wild for each entry.
2288         (input_section_spec_no_keep): Call lang_add_wild here instead.
2289         * ld.h (struct wildcard_list): Declare.
2290         * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2291
2292 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2293
2294         * ldmain.c (main): initialize link_info.pei386_auto_import
2295         * pe-dll.c: new tables for auto-export filtering
2296         (auto_export): change API, pass abfd for contextual filtering.
2297         Loop thru tables of excluded symbols instead of comparing
2298         "by hand".
2299
2300 2001-08-02  Paul Sokolovsky  <paul.sokolovsky@technologist.com>
2301
2302         * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2303         static variable current_sec (static struct sec *). Add
2304         forward declaration for add_bfd_to_link.
2305         (process_def_file): Don't export undefined symbols. Do not
2306         export symbols starting with  "_imp__".  Call auto_export()
2307         with new API.
2308         (pe_walk_relocs_of_symbol): New function.
2309         (generate_reloc): add optional extra debugging
2310         (pe_dll_generate_def_file): eliminate extraneous initial blank
2311         line in output
2312         (make_one): enlarge symtab to make room for __nm__ symbols
2313         (DATA auto-import support).
2314         (make_singleton_name_thunk): New function.
2315         (make_import_fixup_mark): New function.
2316         (make_import_fixup_entry): New function.
2317         (pe_create_import_fixup): New function.
2318         (add_bfd_to_link): Specify that 'name' argument is a CONST
2319         char *.
2320         * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2321         declare new functions pe_walk_relocs_of_symbol and
2322         pe_create_import_fixup.
2323         * emultempl/pe.em: add new options --enable-auto-import,
2324         --disable-auto-import, and --enable-extra-pe-debug.
2325         (make_import_fixup): New function.
2326         (pe_find_data_imports): New function.
2327         (pr_sym): New function.
2328         (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2329         debugging. Call pe_find_data_imports.  Mark .idata as DATA, not
2330         CODE.
2331
2332 2001-08-02  Charles Wilson  <cwilson@ece.gatech.edu>
2333
2334         * ld.texinfo: add additional documentation for
2335         --export-all-symbols.  Document --out-implib,
2336         --enable-auto-image-base, --disable-auto-image-base,
2337         --dll-search-prefix, --enable-auto-import, and
2338         --disable-auto-import.
2339         * ldint.texinfo: Add detailed documentation on auto-import
2340         implementation.
2341
2342 2001-07-30  Nick Clifton  <nickc@cambridge.redhat.com>
2343
2344         * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2345         example.
2346
2347 2001-07-24  Alan Modra  <amodra@bigpond.net.au>
2348
2349         * Makefile.am: Update dependencies with "make dep-am".
2350         * Makefile.in: Regenerate
2351
2352 2001-07-23  Alan Modra  <amodra@bigpond.net.au>
2353
2354         * ldcref.c (check_section_sym_xref): New function.
2355         (check_nocrossrefs): Call it.
2356         (check_nocrossref): Interate over h->refs here instead of..
2357         (check_refs): ..here.  Pass in the symbol name, section, and bfd
2358         rather than hash_entry pointers.
2359         (struct check_refs_info): Keep symbol name rather than hash entry.
2360         Remove "same".
2361         (check_reloc_refs): Tweak for above changes in check_refs_info.
2362         Only report references to section syms when symname is NULL to
2363         prevent duplicate messages for the same reloc.
2364
2365 2001-07-19  Nick Clifton  <nickc@cambridge.redhat.com>
2366
2367         * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2368         available.  Do not print NULL trees.
2369         (exp_print_token): Print unknown tokens with values > 126 as
2370         decimal values not ASCII characters.
2371
2372         * ldlang.c (lang_leave_overlay): If a region is specified assign
2373         it to all sections inside the overlay unless they have been
2374         assigned to the own, non-default, memory region.
2375
2376         * README: Add header for consistency with other README files.
2377
2378 2001-07-14  H.J. Lu  <hjl@gnu.org>
2379
2380         * emultempl/elf32.em (output_prev_sec_find): Never return
2381         bfd_abs_section_ptr, bfd_com_section_ptr nor
2382         bfd_und_section_ptr.
2383
2384 2001-07-14  Nick Clifton  <nickc@cambridge.redhat.com>
2385
2386         * Makefile.am (em32relf.c): Change dependency from generic.em to
2387         elf32.em.
2388         * Makefile.in: Regenerate.
2389
2390 2001-07-14  matthew green  <mrg@eterna.com.au>
2391
2392         * configure.tgt (i386-*-netbsdelf*): New target.
2393         (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2394
2395 2001-07-13  Jakub Jelinek  <jakub@redhat.com>
2396
2397         * emultempl/elf32.em (output_prev_sec_find): New.
2398         (place_orphan): Use it.
2399
2400 2001-07-11  H.J. Lu  <hjl@gnu.org>
2401
2402         * ldmain.c (main): Fix typos in the last change.
2403
2404 2001-07-11  Jakub Jelinek  <jakub@redhat.com>
2405
2406         * ldmain.c (main): Disallow -F and -f without -shared.
2407
2408 2001-07-11  Nick Clifton  <nickc@cambridge.redhat.com>
2409
2410         * emultempl/pe.em (after_open): Check for the output_bfd not
2411         having any coff_data structure allocated to it.
2412
2413 2001-07-09  David O'Brien  <obrien@FreeBSD.org>
2414
2415         * emultempl/elf32.em: Do not assuming that contents of the buffer
2416         returned from basename function will remain unchanged accross other
2417         function calls.
2418
2419 2001-07-03  H.J. Lu  <hjl@gnu.org>
2420
2421         * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2422         2001-07-03. It creates dynamic entries even for static binaries.
2423
2424 2001-07-03  Jakub Jelinek  <jakub@redhat.com>
2425
2426         * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2427         (DYNAMIC): Use it to reserve few dynamic entries for
2428         post-linking tools.
2429
2430 2001-06-27  Alan Modra  <amodra@bigpond.net.au>
2431
2432         * emulparams/hppa64linux.sh: New file.
2433         * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2434         * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2435         (ehppa64linux.c): Add rule to make it.
2436         Run "make dep-am".
2437         * Makefile.in: Regenerate.
2438
2439 2001-06-21  Hans-Peter Nilsson  <hp@axis.com>
2440
2441         * ld.texinfo (Options, -r): Mention restrictions when using
2442         different object formats.
2443
2444 2001-06-19  Hans-Peter Nilsson  <hp@axis.com>
2445
2446         * ldlang.c (lang_check): Emit fatal error if relocatable link
2447         between different object flavours with relocations in input.
2448
2449 2001-06-19  H.J. Lu  <hjl@gnu.org>
2450
2451         * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2452         (--version-script): Mention the language support.
2453
2454 2001-06-19  H.J. Lu <hjl@gnu.org>
2455
2456         * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2457
2458 2001-06-18  H.J. Lu <hjl@gnu.org>
2459
2460         * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2461         (diststuff): Add $(MANS).
2462         * Makefile.in: Regenerated.
2463
2464         * ld.1: Removed.
2465
2466 2001-06-18  Hans-Peter Nilsson  <hp@axis.com>
2467
2468         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2469         Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2470         * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2471         * ld.h (args_type): Remove member export_dynamic.  All users
2472         changed to use struct bfd_link_info member.
2473
2474         * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2475         $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2476         * Makefile.in: Regenerate.
2477
2478 2001-06-18  H.J. Lu  <hjl@gnu.org>
2479
2480         * ldlang.c (init_os): Add the newline to the einfo call.
2481         (lang_check): Likewise.
2482         (lang_do_version_exports_section): Likewise.
2483
2484 2001-06-15  H.J. Lu  <hjl@gnu.org>
2485
2486         * lexsup.c (parse_args); Save optind to report unrecognized
2487         option.
2488
2489 2001-06-15  Hans-Peter Nilsson  <hp@axis.com>
2490
2491         * ldlang.c (lang_check): Emit fatal error if relocatable link
2492         between different object flavours.
2493
2494         * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2495         Set new link_info member export_dynamic.
2496         * ldmain.c (main): Initialize new link_info member export_dynamic.
2497
2498 2001-06-12  Nick Clifton  <nickc@cambridge.redhat.com>
2499
2500         * ldlang.c (walk_wild): Only call walk_wild_file if
2501         lookup_name returns something.
2502         (lookup_name): If load_symbols fails, return NULL.
2503         (load_symbols): Change to a boolean function.
2504         (open_input_bfds): If load_symbols fails then do not make the
2505         executable.
2506
2507 2001-06-08  Alan Modra  <amodra@bigpond.net.au>
2508
2509         * ldlang.c (record_bfd_errors): Remove.
2510
2511         * emultempl/aix.em: Fix copyright dates.
2512
2513 2001-06-07  Andreas Jaeger  <aj@suse.de>
2514
2515         * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2516         (TEXT_START_ADDR): Likewise.
2517
2518 2001-06-06  Martin Schwidefsky <schwidefsky@de.ibm.com>
2519
2520         * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2521
2522 2001-06-05  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
2523
2524         * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2525
2526 2001-05-31  H.J. Lu  <hjl@gnu.org>
2527
2528         * ldlang.c (open_input_bfds): Don't change the bfd error
2529         handler whilst loading symbols.
2530
2531 2001-05-28  Nick Clifton  <nickc@cambridge.redhat.com>
2532
2533         * configure.tgt: Remove i370-mvs architecture, it is not currently
2534         supported.
2535
2536 2001-05-25  H.J. Lu  <hjl@gnu.org>
2537
2538         * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2539         like emulparams/aixppc.sh.
2540
2541 2001-05-25  H.J. Lu  <hjl@gnu.org>
2542
2543         * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2544         setting of output_filename after bfd_scan_arch.
2545         * emultempl/pe.em: Likewise.
2546
2547 2001-05-25  H.J. Lu  <hjl@gnu.org>
2548
2549         * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2550         like emulparams/aixppc.sh.
2551
2552         * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2553         instead of ${srcdir}/emultempl/stringify.sed.
2554
2555 2001-05-25  Timothy Wall  <twall@oculustech.com>
2556
2557         * emulparams/elf64_aix.sh: Change settings to match IBM linker
2558         output.
2559
2560 2001-05-25  Alan Modra  <amodra@one.net.au>
2561
2562         * configure.host: Replace linuxoldld with linux*oldld.
2563         * configure.tgt: Likewise.
2564
2565 2001-05-24  H.J. Lu  <hjl@gnu.org>
2566
2567         * emultempl/stringify.sed: Removed again.
2568
2569 2001-05-24  H.J. Lu  <hjl@gnu.org>
2570
2571         * emultempl/aix.em (OUTPUT_ARCH): Defined.
2572         (gld${EMULATION_NAME}_before_parse): Initialize
2573         ldfile_output_architecture, ldfile_output_machine and
2574         ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2575         * emultempl/beos.em: Likewise.
2576         * emultempl/elf32.em: Likewise.
2577         * emultempl/linux.em: Likewise.
2578         * emultempl/mipsecoff.em: Likewise.
2579         * emultempl/pe.em: Likewise.
2580         * emultempl/sunos.em: Likewise.
2581
2582 2001-05-24 Tom Rix <trix@redhat.com>
2583
2584         * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2585         udate import file format.
2586         (change_symbol_mode) New, same
2587         (is_syscall) New, same
2588         * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2589         * emulparams/aixppc64.sh : same
2590         * emulparams/aixrs6.sh : same
2591         * emulparams/ppcmacos.sh : same
2592         * emultempl/aix.em : use strtoull to parse options
2593         * Makefile.am : add eaixppc64 emulation for xcoff64
2594         * Makefile.in : same
2595         * configure.tgt : same
2596
2597         * scripttempl/aix.sc : default text section offset to 0x10000000
2598         default data section offset to 0x20000000
2599         add .sv3264 and .sv64 pseudo sections
2600         loader and debug sections use the currect section offset.
2601
2602         * emultempl/aix.em : Add xcoff64 support
2603         Add -binitfini support
2604         (gld${EMULATION_NAME}_before_parse) -binitfini
2605         (gld${EMULATION_NAME}_parse_args) same
2606         (gld${EMULATION_NAME}_before_allocation) format change for special
2607         sections
2608
2609         * emulparams/aixppc64.sh : New file for xcoff64 support
2610
2611 2001-05-23  Alexandre Oliva  <aoliva@redhat.com>
2612
2613         * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2614         variable to avoid non-portable shell construct.
2615
2616 2001-05-23  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2617
2618         * ldmain.c (get_emulation): Add -mips5 command line argument.
2619
2620 2001-05-22  Alexandre Oliva  <aoliva@redhat.com>
2621
2622         * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2623         (ELF_INTERPRETER_NAME): Define it.
2624         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2625         it.
2626         * configure.tgt (targ_emul, targ_extra_emuls)
2627         [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2628         as primary, elf_i386 as extra.
2629         * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2630         (eelf_i386_ldso.c): New rule.
2631         * Makefile.in: Rebuilt.
2632
2633 2001-05-22  Nick Clifton  <nickc@redhat.com>
2634
2635         * lexsup.c (ld_options):  Allow -I to be an alias for
2636         --dynamic-linker.  This is for Solaris compatability.
2637         * ld.texinfo: Document that -I can be used.
2638         * ld.1: Regenerate.
2639
2640 2001-05-16  Alan Modra  <amodra@one.net.au>
2641
2642         * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2643         whether an input section is the first one assigned to an output
2644         section.
2645         Assorted formatting fixes.
2646
2647 2001-05-14  DJ Delorie  <dj@delorie.com>
2648
2649         * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2650         * Makefile.in: Ditto.
2651
2652 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2653
2654         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2655         .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2656         output sections.
2657         * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2658
2659 2001-05-11  Jakub Jelinek  <jakub@redhat.com>
2660
2661         * ldlang.c (lang_process): Call bfd_merge_sections.
2662
2663 2001-05-07  Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2664
2665         * ldgram.y: Fix typo.
2666
2667 2001-05-03  H.J. Lu  <hjl@gnu.org>
2668
2669         * emultempl/elf32.em: Include "libiberty.h".
2670         (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2671         basename of the bfd filename.
2672         (gld${EMULATION_NAME}_stat_needed): Likewise.
2673         (gld${EMULATION_NAME}_try_needed): Likewise.
2674         (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2675
2676 2001-05-02  H.J. Lu  <hjl@gnu.org>
2677
2678         * emultempl/pe.em: Include <ctype.h>.
2679
2680 2001-05-02  Johan Rydberg  <jrydberg@opencores.org>
2681
2682         * emulparams/elf32openrisc.sh: New file.
2683
2684         * Makefile.am: Add OpenRISC target.
2685         * Makefile.in: Regenerated.
2686
2687         * configure.tgt: Add openrisc-*-* mapping.
2688
2689 2001-05-02  Nick Clifton  <nickc@redhat.com>
2690
2691         * emultempl/aix.em: Replace buystring with xstrdup.
2692         * emultempl/beos.em: Replace buystring with xstrdup.
2693
2694 2001-05-02  H.J. Lu  <hjl@gnu.org>
2695
2696         * ldfile.c: Include "libiberty.h".
2697         * ldlex.l: Likewise.
2698
2699         * ldmisc.c (buystring): Removed.
2700         * ldmisc.h: Likewise.
2701
2702         * ldfile.c: Replace buystring with xstrdup.
2703         * ldlang.c: Likewise.
2704         * ldlex.l: Likewise.
2705         * ldmain.c: Likewise.
2706         * ldmisc.c: Likewise.
2707         * lexsup.c: Likewise.
2708         * mpw-eppcmac.c: Likewise.
2709
2710 2001-04-30  Andreas Jaeger  <aj@suse.de>
2711
2712         * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2713
2714 2001-04-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
2715
2716         * ldlang.c (load_symbols): Give emulation a chance
2717         to process unrecognized file before fatal error is
2718         reported, not after.
2719
2720 2001-04-27  Sean McNeil <sean@mcneil.com>
2721
2722         * configure.tgt: Add arm-vxworks target.
2723         * scripttempl/armcoff.sc: Support .text or .data as a section name
2724         prefix.
2725         Define _etext.
2726
2727 2001-04-13  J.T. Conklin  <jtc@redback.com>
2728
2729         * ld.texinfo: Document --fatal-warnings.
2730         * ld.1: Regenerate.
2731
2732         * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2733         warnings have been turned into errors.
2734         * lexsup.c (OPTION_WARN_FATAL): Define.
2735         (ld_options): Entry for --fatal-warnings.
2736         (parse_args): Handle OPTION_WARN_FATAL.
2737         * ld.h (ld_config_type): Add fatal_warnings field.
2738
2739 2001-04-13  Jakub Jelinek  <jakub@redhat.com>
2740
2741         * ldmain.c (main): Default to discard_sec_merge.
2742         * lexsup.c (OPTION_DISCARD_NONE): Define.
2743         (ld_options): Add --discard-none.
2744         (parse_args): Handle OPTION_DISCARD_NONE.
2745         * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2746         section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2747         all its input sections match.
2748
2749 2001-04-05  Steven J. Hill  <sjhill@cotw.com>
2750
2751         * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2752         (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2753         (eelf32ltsmip.c): New target.
2754         (eelf64btsmip.c): Likewise.
2755         (eelf64ltsmip.c): Likewise.
2756         * Makefile.in: Regenerated.
2757
2758         * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2759         target.
2760         (mips*-*-linux-gnu*): Likewise.
2761
2762         * emulparams/elf32ltsmip.sh: New. Traditional little endian
2763         MIPS taget.
2764         * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2765         target.
2766         * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2767         endian target.
2768
2769 2001-04-05  Hans-Peter Nilsson  <hp@axis.com>
2770
2771         * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2772         correct value of __Stext here.
2773         (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2774         .startup section.
2775
2776         * emulparams/crislinux.sh: Remove FIXME.
2777
2778 2001-04-02  Alan Modra  <alan@linuxcare.com.au>
2779
2780         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2781         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2782
2783 2001-03-27  Hans-Peter Nilsson  <hp@axis.com>
2784
2785         * configure.tgt (cris-*-*): Change default emulation to criself.
2786         (cris-*-*aout*): New rule.
2787
2788 2001-03-27  Matthew Wilcox  <willy@ldl.fc.hp.com>
2789
2790         * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2791         (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2792
2793 2001-03-26  Andreas Jaeger  <aj@suse.de>
2794
2795         * ld.texinfo (Overview): Fix syntax in texi code.
2796
2797 2001-03-25  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
2798
2799         * ld.texinfo: Put @c man indications to generate the ld man page.
2800         When generating man, define all the variables.  Define SEEALSO
2801         and SYNOPSIS.  Re-organize some lines to avoid the cross references.
2802         * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2803         (ld.1): Generate from ld.texinfo.
2804         * Makefile.in: Regenerate.
2805
2806 2001-03-23  Mark Elbrecht <snowball3@bigfoot.com>
2807
2808         * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2809         and '-fdata-sections'. Set the VMA of STABS sections to zero.
2810
2811 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2812
2813         * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2814         is an absolute path look only for this file and not along the path.
2815
2816 2001-03-17  Ulrich Drepper  <drepper@redhat.com>
2817
2818         * emultempl/elf32.em (OPTION_GROUP): New macro.
2819         Add new option Bgroup to longopts.
2820         (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2821         (gld*_list_options): Add -Bgroup and -z defs.
2822         * ld.1: Document -Bgroup and -z defs.
2823         * ld.texinfo: Likewise.
2824
2825 2001-03-07  Michael Meissner  <meissner@redhat.com>
2826
2827         * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2828         with sections created by -fdata-sections.
2829         (.dynbss,.bss): Ditto.
2830
2831 2001-03-05  Alan Modra  <alan@linuxcare.com.au>
2832
2833         * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2834         after_allocation_default, not gld..._before_allocation.
2835
2836 2001-02-27  Alan Modra  <alan@linuxcare.com.au>
2837
2838         * configure.in (BFD_VERSION): New.
2839         (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2840         * configure: Regenerate.
2841         * Makefile.am: Run "make dep-am"
2842         * Makefile.in: Regenerate.
2843
2844 2001-02-26  Timothy Wall  <twall@cygnus.com>
2845
2846         * emulparams/elf64_aix.sh: Add additional read-only sections;
2847         uncomment lines which are now required.
2848
2849 2001-02-26  H.J. Lu  <hjl@gnu.org>
2850
2851         * ldlang.c (open_input_bfds): Set the bfd error handler so
2852         that problems can be caught whilst loading symbols.
2853         (record_bfd_errors): New function: Report BFD errors and mark
2854         the executable output as being invalid.
2855
2856 2001-02-22  Timothy Wall  <twall@cygnus.com>
2857
2858         * configure.host: Add configuration for ia64-*-aix*.
2859         * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2860         Add dependencies for eelf64_aix.c.
2861         * Makefile.in: Regenerate.
2862         * configure.tgt: Add ia64-*-aix* mapping.
2863         * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2864         * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2865         AIX-specific test.
2866
2867 2001-02-20  H.J. Lu  <hjl@gnu.org>
2868
2869         * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2870         false if we found the file.
2871
2872 2001-02-18  David O'Brien  <obrien@FreeBSD.org>
2873
2874         * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2875         FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2876
2877 2001-02-18  lars brinkhoff  <lars@nocrew.org>
2878
2879         * Makefile.am: Add PDP-11 target.
2880         * configure.tgt: Likewise.
2881         * emulparams/pdp11.sh: New file.
2882
2883 2001-02-17  David O'Brien  <obrien@FreeBSD.org>
2884
2885         * configure.host: Add a generic FreeBSD configuration entry such that
2886         all [modern] FreeBSD systems on all platforms will look the same.
2887
2888 2001-02-14  H.J. Lu  <hjl@gnu.org>
2889
2890         * configure.tgt: Remove mention of earmelf_linux26.
2891
2892 2001-02-13  Richard Henderson  <rth@redhat.com>
2893
2894         * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2895
2896 2001-02-13  H.J. Lu  <hjl@gnu.org>
2897
2898         * ldexp.h (node_type): Add etree_provided.
2899         * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2900         type to etree_provided if defined by PROVIDE. Allow updating
2901         for etree_provided.
2902         (exp_print_tree): Handle etree_provided.
2903         * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2904         etree_provided.
2905
2906 2001-02-09  David Mosberger  <davidm@hpl.hp.com>
2907
2908         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2909         .IA_64.unwind.* pattern to unwind table section and
2910         .IA_64.unwind_info* pattern to unwind info section.
2911
2912 2001-02-09  Martin Schwidefsky  <schwidefsky@de.ibm.com>
2913
2914         * Makefile.am: Add linux target for S/390.
2915         * Makefile.in: Likewise.
2916         * configure.host: Likewise.
2917         * configure.tgt: Likewise.
2918         * emulparams/elf64_s390.sh: New file.
2919         * emulparams/elf_s390.sh: New file.
2920
2921 2001-02-09  Jakub Jelinek  <jakub@redhat.com>
2922
2923         * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2924         targ_extra_libpath.
2925         (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2926
2927 2001-02-06  Philip Blundell  <philb@gnu.org>
2928
2929         * Makefile.am: Remove mention of earmelf_linux26.
2930         * Makefile.in: Regenerate.
2931
2932 2001-02-04  Philip Blundell  <philb@gnu.org>
2933
2934         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2935         * emulparams/armelf_linux26.sh: Delete.
2936         * configure.tgt: Remove mention of armelf_linux26 emulation.
2937
2938 2001-02-01  Nick Clifton  <nickc@redhat.com>
2939
2940         * ld.1: Replace occurances of -oformat with --oformat.
2941
2942 2001-01-25  Jim Driftmyer <jdrift@stny.rr.com>
2943
2944         * ldlang.c (lang_leave_overlay): Don't set lma_region when
2945         load_base is specified.
2946
2947 2001-01-24  Hans-Peter Nilsson  <hp@axis.com>
2948
2949         * emultempl/elf32.em: Correct spelling in comments and listed
2950         options.
2951
2952 2001-01-23  Alan Modra  <alan@linuxcare.com.au>
2953
2954         * ldlang.c (lang_leave_overlay): Only set lma_region from the
2955         default for the first section of a group of overlay sections.
2956
2957 2001-01-22  Alan Modra  <alan@linuxcare.com.au>
2958
2959         * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2960         * Makefile.in: Regenerate.
2961         * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2962         Check for null tool_dir.
2963
2964 2001-01-16  Jim Wilson  <wilson@redhat.com>
2965
2966         * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2967         and IA_64.unwind.info.
2968
2969 2001-01-16  H.J. Lu  <hjl@gnu.org>
2970
2971         * ldlang.c (lang_check): Merge the private data only if the
2972         input file has contents.
2973
2974 2001-01-14  Alan Modra  <alan@linuxcare.com.au>
2975
2976         * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2977
2978         * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2979         enabling search for libmilli.  On a relocatable link, make .text
2980         sections unique.
2981         (LDEMUL_AFTER_PARSE): Define.
2982         (hppaelf_finish): Correct spelling of relocatable in comments.
2983
2984         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2985         rummage through the script for sections on the unique list.
2986         Correct length of strncmp for ".note".
2987         (gld${EMULATION_NAME}_check_needed): Rearrange function.
2988
2989         * ldlang.c (unique_section_list): New var.
2990         (unique_section_p): New function.
2991         (walk_wild_section): Don't match sections on unique_section_list.
2992         (lang_add_unique): New function.
2993         Correct spelling of relocatable in comments.
2994
2995         * ldlang.h (struct unique_sections): Declare.
2996         (unique_section_list): Declare.
2997         (unique_section_p): Declare.
2998         (lang_add_unique): Declare.
2999
3000         * lexsup.c (ld_options): Allow --unique to take an optional arg.
3001         (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3002
3003         * ld.texinfo (--unique): Update.
3004
3005 2001-01-13  Nick Clifton  <nickc@redhat.com>
3006
3007         * lexsup.c (parse_args): Remove spurious white space.
3008
3009 2001-01-12  Nick Clifton  <nickc@redhat.com>
3010
3011         * lexsup.c (parse_args): Update copyright date.
3012
3013 2001-01-12  Philip Blundell  <pb@futuretv.com>
3014
3015         * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3016
3017 2001-01-10  Kazu Hirata  <kazu@hxi.com>
3018
3019         * scripttempl/h8300.sc: Fix formatting.  Fix a comment typo.
3020         * scripttempl/h8300h.sc: Fix formatting.
3021         * scripttempl/h8300s.sc: Likewise.
3022         * scripttempl/h8500.sc: Likewise.
3023         * scripttempl/h8500b.sc: Likewise.
3024         * scripttempl/h8500c.sc: Likewise.
3025         * scripttempl/h8500m.sc: Likewise.
3026         * scripttempl/h8500s.sc: Likewise.
3027
3028 2000-01-07  David O'Brien  <obrien@BSDi.com>
3029
3030         * emultempl/elf32.em: Only perform Linux ld hints processing when
3031         targeting Linux.
3032
3033 2001-01-07  Philip Blundell  <philb@gnu.org>
3034
3035         * ld.texinfo (Bug Reporting): Update email address for reports.
3036
3037 2000-12-31  Nick Clifton  <nickc@redhat.com>
3038
3039         * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3040         options by checking for a return value of '?' not -1.
3041
3042 2000-12-28  Nick Clifton  <nickc@redhat.com>
3043
3044         * lexsup.c (struct ld_option): Add new enum value:
3045         EXACTLY_TWO_DASHES.
3046         (ld_options[]): Change -omagic, -output and -oformat options
3047         to be EXACTLY_TWO_DASHES.
3048         (OUTPUT_COUNT): Use ARRAY_SIZE.
3049         (parse_args): Change parameter 'argc' to unsigned.
3050         Place EXACTLY_TWO_DASHES options into new really_longopts
3051         array.
3052         If getopt_long_only fails, try calling getopt_long using the
3053         really_longopts array.
3054         (help): Print a double dash for both EXACTLY_TWO_DASHES and
3055         TWO_DASHES options.
3056
3057         * ldlex.h: Fix prototype of parse_args.
3058
3059         * ld.texinfo: Document that long options starting with 'o'
3060         must be preceeded by two dashes.  Change example of a single
3061         dashed long option from -oformat to -trace-symbol.
3062
3063 2000-12-26  Danny Smith  <danny_r_smith_2001@yahoo.co.nz>
3064
3065         * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3066         (longopts[]): New --no-default-excludes option.
3067         (gld_${EMULATION_NAME}_list_options): Document.
3068         (gld_${EMULATION_NAME}_parse_args): Handle.
3069
3070 2000-12-13  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3071
3072         * ldlang.c (new_stat): Revert the last beautification with "innocent"
3073         whitespace, it breaks the K&R C preprocessor.
3074
3075 2000-12-11  DJ Delorie  <dj@redhat.com>
3076
3077         * ld.texinfo: Add notes about --whole-archive and gcc.
3078
3079 2000-11-18  Fred Fish  <fnf@be.com>
3080
3081         * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3082         (ld_options): Entry for --allow-shlib-undefined.
3083         (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3084         * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3085         to false.
3086         * ld.texinfo: Document new command line switch.
3087
3088 2000-12-12  Geoffrey Keating  <geoffk@redhat.com>
3089
3090         * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3091         .fixup is actually read/write.
3092         * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3093         * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3094         * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3095
3096 2000-12-11  Jan Hubicka  <jh@suse.cz>
3097
3098         * NEWS: Add note about x86_64 architecture.
3099
3100 2000-12-06  Mark Elbrecht  <snowball3@bigfoot.com>
3101
3102         * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3103         Set DWARF2 sections to a VMA of zero.
3104
3105 2000-12-01  Joel Sherrill  <joel@OARcorp.com>
3106
3107         * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3108         New targets.
3109         (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3110         (sparc*-*-rtems*): Switched from a.out to ELF.
3111
3112 2000-11-30  Jan Hubicka  <jh@suse.cz>
3113
3114         * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3115         (eelf_x86_64.c): New.
3116         * Makefile.in: Regenerate.
3117         * configure.tgt: Add support for x86_64-*-linux-gnu*.
3118         * emulparams/elf_x86_64.sh: New.
3119
3120 2000-11-30  Hans-Peter Nilsson  <hp@axis.com>
3121
3122         * emulparams/crislinux.sh (ENTRY): Change back to _start.
3123         (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3124
3125         * scripttempl/crisaout.sc: Change all RELOCATING not related to
3126         merging non-a.out sections into CONSTRUCTING.
3127
3128 2000-11-28  Nick Clifton  <nickc@redhat.com>
3129
3130         * ld.1 (COPYING): Mention that the GNU Free Documentation
3131         License is present in the sources, but not the output, and
3132         also available from the GNU website.
3133         (GNU Free Documentation License): Comment out this section.
3134
3135 2000-11-28  David O'Brien  <obrien@dragon.nuxi.com>
3136
3137         * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3138         does not use them.
3139
3140 2000-11-25  David O'Brien  <obrien@FreeBSD.org>
3141
3142         * ld.1: Remove old date so it does not give the impression the manpage
3143         is way out of date.
3144
3145 2000-11-24  Nick Clifton  <nickc@redhat.com>
3146
3147         * configure.tgt (xscale-coff): Add target.
3148         (xscale-elf): Add target.
3149
3150 2000-11-24  Fred Fish  <fnf@be.com>
3151
3152         * ldmain.c (main): Remove redundant init of config.make_executable
3153         to true.
3154
3155 2000-11-15  Richard Henderson  <rth@redhat.com>
3156
3157         * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3158
3159 2000-11-14  Kazu Hirata  <kazu@hxi.com>
3160
3161         * scripttempl/h8300.sc: Fix formatting.
3162         * scripttempl/h8300h.sc: Likewise.
3163         * scripttempl/h8300s.sc: Likewise.
3164
3165 2000-11-14  Denis Chertykov  <denisc@overta.ru>
3166
3167         * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3168
3169 2000-11-09  Philip Blundell  <pb@futuretv.com>
3170
3171         * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3172         around orphan sections whose names can be represented in C.
3173
3174 2000-11-07  Jim Wilson  <wilson@redhat.com>
3175
3176         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3177         hold_sdata.  If SEC_SMALL_DATA set, set place to hold_sdata.
3178
3179 2000-11-06  Nick Clifton  <nickc@redhat.com>
3180
3181         * ld.texinfo: Add GNU Free Documentation License.
3182         * ldint.texinfo: Add GNU Free Documentation License.
3183         * ld.1: Add GNU Free Documentation License.
3184
3185 2000-11-05  Alan Modra  <alan@linuxcare.com.au>
3186
3187         * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3188         yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3189
3190         * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3191         Move 2000-11-02 Makefile.in changes to this file.
3192         * Makefile.in: Regenerate.
3193
3194 2000-11-03  Nick Clifton  <nickc@redhat.com>
3195
3196         * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3197         constructors and destructors.
3198         * scripttempl/h8300h.sc: Ditto.
3199         * scripttempl/h8300s.sc: Ditto.
3200         * scripttempl/h8500.sc: Ditto.
3201         * scripttempl/h8500b.sc: Ditto.
3202         * scripttempl/h8500c.sc: Ditto.
3203         * scripttempl/h8500m.sc: Ditto.
3204         * scripttempl/h8500s.sc: Ditto.
3205         * scripttempl/v850.sc: Ditto.
3206         * scripttempl/w65.sc: Ditto.
3207         * scripttempl/z8000.sc: Ditto.
3208
3209 2000-11-02  Per Lundberg  <plundis@chaosdev.org>
3210
3211         * Makefile.in (e_i386_chaos.c): New rule.
3212         (ALL_EMULATIONS): Added e_i386_chaos.o.
3213         * emulparams/elf_i386_chaos.sh: New file.
3214         * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3215
3216 2000-10-20  Jakub Jelinek  <jakub@redhat.com>
3217
3218         * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3219         NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3220         Fix sed invocation, so that it coped with '/' in Solaris 64bit
3221         library path suffix.
3222         Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3223
3224 2000-10-18  Hans-Peter Nilsson  <hp@axis.com>
3225
3226         * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3227         for consecutive sections.
3228
3229 2000-10-17  Chandrakala Chavva  <cchavva@redhat.com>
3230
3231         * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3232         options.
3233         * ld.texinfo: Added notes about this new option.
3234
3235 2000-10-16  Nick Clifton  <nickc@redhat.com>
3236
3237         * emultempl/pe.em (_after_open): Add tests of return values from
3238         bfd functions.  Emit appropriate error messages if necessary.
3239
3240 2000-10-13  Nick Clifton  <nickc@redhat.com>
3241
3242         * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3243         local variables - they are not used, but leave in the call to
3244         bfd_canonicalize_symtab.
3245         (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3246         pe_dll_search_prefix.
3247
3248 2000-10-12  Charles Wilson  <cwilson@ece.gatech.edu>
3249
3250         * emultempl/pe.em (pe_dll_search_prefix): New variable,
3251         (longopts): New --dll-search-prefix option.
3252         (gld_${EMULATION_NAME}_list_options): Document.
3253         (gld_${EMULATION_NAME}_parse_args): Handle.
3254         (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3255         dynamically, search for a dll named '<prefix><basename>.dll'
3256         in preference to 'lib<basename>.dll' if --dll-search-prefix
3257         is specified.
3258
3259 2000-10-12  Alan Modra  <alan@linuxcare.com.au>
3260
3261         * ldlang.c (section_already_linked): Set kept_section instead of
3262         sec->comdat->sec.
3263
3264 2000-10-10  Kazu Hirata  <kazu@hxi.com>
3265
3266         * deffile.h: Fix formatting.
3267         * lexsup.c: Likewise.
3268         * mri.c: Likewise.
3269
3270 2000-10-09  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3271
3272         * pe-dll.c (make_one): Do not generate code thunk for DATA
3273         exports.
3274         (process_def_file): deduce DATA flag for auto-export sumbols.
3275
3276 2000-10-09  Kazu Hirata  <kazu@hxi.com>
3277
3278         * ld.h: Fix formatting.
3279         * ldcref.c: Likewise.
3280         * ldctor.h: Likewise.
3281         * ldemul.c: Likewise.
3282         * ldemul.h: Likewise.
3283         * ldexp.c: Likewise.
3284         * ldexp.h: Likewise.
3285         * ldfile.c: Likewise.
3286         * ldfile.h: Likewise.
3287         * ldlang.c: Likewise.
3288         * ldlang.h: Likewise.
3289         * ldmain.c: Likewise.
3290         * pe-dll.c: Likewise.
3291
3292         * pe-dll.c: Revert some formatting fixes.
3293
3294 2000-10-08  Kazu Hirata  <kazu@hxi.com>
3295
3296         * pe-dll.c: Fix formatting.
3297
3298 2000-10-05  Kazu Hirata  <kazu@hxi.com>
3299
3300         * ldlang.c: Fix formatting.
3301
3302 2000-10-03  DJ Delorie  <dj@redhat.com>
3303
3304         * pe-dll.c (fill_edata): initialize entire block
3305         (make_one): fill in correct section.
3306
3307 2000-10-03  Kazu Hirata  <kazu@hxi.com>
3308
3309         * ldexp.c: Fix formatting.
3310
3311 2000-10-02  DJ Delorie  <dj@redhat.com>
3312
3313         * emultempl/pe.em (gld_*_after_open): detect case where there two
3314         import libraries for same dll; rename one to ensure proper link
3315         order.
3316
3317         * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3318         typo
3319         (generate_edata): fix typo
3320
3321 2000-09-29  Hans-Peter Nilsson  <hp@axis.com>
3322
3323         * scripttempl/crisaout.sc (ENTRY): Now __start.
3324         (.text): Add default setting for __start.
3325         Remove CONSTRUCTORS handling.
3326         (/DISCARD/): Add .gnu.warning.*.
3327         * emulparams/crislinux.sh (ENTRY): Now __start.
3328         (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3329         * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3330         (ENTRY): Now __start.
3331         (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3332         (EXECUTABLE_SYMBOLS): Add default setting for __start.
3333
3334 2000-09-29  Kazu Hirata  <kazu@hxi.com>
3335
3336         * deffile.h: Fix formatting.
3337         * ld.h: Likewise.
3338         * ldcref.c: Likewise.
3339         * ldctor.c: Likewise.
3340         * ldctor.h: Likewise.
3341         * ldemul.c: Likewise.
3342         * ldemul.h: Likewise.
3343         * ldexp.c: Likewise.
3344         * ldexp.h: Likewise.
3345         * ldfile.c: Likewise.
3346         * ldfile.h: Likewise.
3347         * ldlang.c: Likewise.
3348         * ldlang.h: Likewise.
3349         * lexsup.c: Likewise.
3350         * mri.c: Likewise.
3351         * pe-dll.c: Likewise.
3352
3353 2000-09-28  Paul Sokolovsky  <Paul.Sokolovsky@technologist.com>
3354
3355         * pe-dll.c (process_def_file): Uninitialized data wasn't
3356         exported with --export-all-symbols switch.
3357
3358 2000-09-28  DJ Delorie  <dj@redhat.com>
3359
3360         * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3361         noname work properly.
3362
3363 2000-09-28  Alan Modra  <alan@linuxcare.com.au>
3364
3365         * ld.texinfo (HPPA ELF32): New section.
3366
3367         * emultempl/hppaelf.em (group_size): New.
3368         (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3369         (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3370         (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size.  Duplicate
3371         options to prevent abbreviations matching.
3372         (PARSE_AND_LIST_OPTIONS): Describe the above.  Reformat.
3373         (PARSE_AND_LIST_ARGS_CASES): Handle it.
3374
3375 2000-09-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3376
3377         * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3378         on the m68*-*-elf target.  Make it support COFF input objects.
3379
3380 2000-09-21  Kazu Hirata  <kazu@hxi.com>
3381
3382         * ldmain.c: Fix formatting.
3383         * ldmisc.c: Likewise.
3384         * ldver.c: Likewise.
3385         * ldwrite.c: Likewise.
3386
3387 2000-09-21  Alan Modra  <alan@linuxcare.com.au>
3388
3389         * ldwrite.c (clone_section): Silence gcc warnings.
3390
3391 2000-09-20  Alan Modra  <alan@linuxcare.com.au>
3392
3393         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3394         out of memory failure.
3395
3396         * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3397         (clone_section): Handle out of memory failures.  Rename var to
3398         avoid c++ reserved word.
3399
3400 2000-09-18  Alan Modra  <alan@linuxcare.com.au>
3401
3402         * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3403         stub_name param to stub_sec_name.
3404         (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3405
3406 2000-09-10  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3407
3408         * emultempl/m68kelf.em: New file.
3409         * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3410         * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3411         * Makefile.in: Regenerate.
3412
3413 2000-09-15  Alan Modra  <alan@linuxcare.com.au>
3414
3415         * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3416         only as needed.
3417
3418 2000-09-13  Nick Clifton  <nickc@redhat.com>
3419
3420         * ldmain.c (multiple_definition): Disable relaxation if
3421         multiple symbol definitions are encountered - otherwise the
3422         linker could abort with an assertion failure.
3423
3424 2000-09-10  Nick Clifton  <nickc@redhat.com>
3425
3426         * mri.c: Fix formatting.
3427
3428 2000-09-07  H.J. Lu  <hjl@gnu.org>
3429
3430         * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3431         * configure: Rebuild.
3432
3433 2000-09-07  H.J. Lu  <hjl@gnu.org>
3434
3435         * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3436         * Makefile.in: Rebuild.
3437
3438 2000-09-07  Alan Modra  <alan@linuxcare.com.au>
3439
3440         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3441         broken list handling.  Create __start_SECNAME and __stop_SECNAME
3442         when no place-holder.  Add some comments.  Test both SEC_CODE and
3443         SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3444         Handle case where no output section statement created.
3445
3446 2000-09-07  Niibe Yutaka  <gniibe@m17n.org>, Kaz Kojima  <kkojima@rr.iij4u.or.jp>, Alexandre Oliva  <aoliva@redhat.com>
3447
3448         * configure.tgt (sh-*-linux*): Added.
3449         * Makefile.am: Added eshelf_linux and eshlelf_linux.
3450         * Makefile.in: Rebuilt.
3451         * emulparams/shelf_linux.sh: New file.
3452         * emulparams/shlelf_linux.sh: New file.
3453
3454 2000-09-06  Alan Modra  <alan@linuxcare.com.au>
3455
3456         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3457         try shuffling sections when the orphan happens to be the place
3458         holder.  Keep count of unique section names generated so we speed
3459         the search for a new name.
3460
3461 2000-09-06  Alexandre Oliva  <aoliva@redhat.com>
3462
3463         * configure: Rebuilt with new libtool.m4.
3464
3465 2000-09-05  Nick Clifton  <nickc@redhat.com>
3466
3467         * Makefile.in: Regenerate.
3468         * aclocal.m4: Regenerate.
3469         * configure: Regenerate.
3470         * config.in: Regenerate.
3471         * po/ld.pot: Regenerate.
3472
3473         * ldint.texinfo: Remove CVS revision marker - it foils local
3474         comparisons.
3475
3476         * emultempl/ticoff.em: Remove extraneous comma.
3477
3478 2000-09-05  Alan Modra  <alan@linuxcare.com.au>
3479
3480         * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3481         to stub section flags.
3482         (hppa_for_each_input_file_wrapper): New.
3483         (hppa_lang_for_each_input_file): New.
3484         (lang_for_each_input_file): Define to call above.
3485         (multi_subspace): New.
3486         (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3487         (PARSE_AND_LIST_PROLOGUE): Define.
3488         (PARSE_AND_LIST_LONGOPTS): Define.
3489         (PARSE_AND_LIST_OPTIONS): Define.
3490         (PARSE_AND_LIST_ARGS_CASES): Define.
3491         (hppaelf_finish): Call elf32_hppa_set_gp.
3492         (hppaelf_set_output_arch): Remove.
3493         (LDEMUL_SET_OUTPUT_ARCH): Remove.
3494
3495         * emulparams/hppalinux.sh (ELFSIZE): Define.
3496         (MACHINE): Define.
3497         (OTHER_READONLY_SECTIONS): Define.
3498         (DATA_PLT): Define.
3499         (GENERATE_SHLIB_SCRIPT): Define.
3500
3501         * ldlang.c: Add missing prototypes, and tidy others.  Change CONST
3502         to const throughout.  Change `void *' to `PTR' throughout.
3503         (lang_memory_default): Function is local to file, add `static'.
3504
3505         * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3506         (ehppalinux.c): Likewise.
3507         (earmelf.c): Likewise.
3508         (earmelf_linux.c): Likewise.
3509         (earmelf_linux26.c): Likewise.
3510         * Makefile.in: Regenerate.
3511
3512         * ld.h (ld_config_type): Add unique_orphan_sections.
3513         * lexsup.c (OPTION_UNIQUE): Define.
3514         (ld_options): Add "--unique".
3515         (parse_args): Handle it.
3516         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3517         search for an existing output section if unique_orphan_sections is
3518         set.  Make use of bfd_get_unique_section_name rather than
3519         duplicating code here.
3520         * ld.texinfo: Describe --unique.
3521
3522         * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3523         optional arg to split-by-file.
3524         (parse_args): Handle them.
3525         * ld.texinfo: Update description of these options.
3526         * ldwrite.c (clone_section): Pass in the section name.  Replace
3527         local code with bfd_get_unique_section_name.
3528         (split_sections): Tidy code and comments.  Use a list traversal
3529         more appropriate to the list construction.  Handle cooked section
3530         sizes.  Split when split_by_reloc reached rather than exceeded.
3531         Track section size and split when split_by_file reached.  Fix
3532         link_order_tail (even though it's not used).
3533         (ldwrite): Modify condition for calling split_sections to suit
3534         changed split_by_reloc and split_by_file.
3535         * ldmain.c (main): Init config.split_by_reloc and
3536         config.split_by_file to -1.
3537         * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3538         Change split_by_file to bfd_size_type.
3539
3540 2000-09-02  Nick Clifton  <nickc@redhat.com>
3541
3542         * configure.in: Increase version number to 2.10.91.
3543         * NEWS: Mention new ability to support removal of duplicate DWARF2
3544         debug information.
3545         * configure: Regenerate.
3546         * aclocal.m4: Regenerate.
3547         * config.in: Regenerate.
3548
3549 2000-09-02  Daniel Berlin <dberlin@redhat.com>
3550
3551         * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3552         sections.
3553         * scripttempl/elf32avr.sc: Ditto.
3554         * scripttempl/elfd10v.sc: Ditto.
3555         * scripttempl/elfd30v.sc: Ditto.
3556         * scripttempl/elfi370.sc: Ditto.
3557         * scripttempl/elfm68hc11.sc: Ditto.
3558         * scripttempl/elfm68hc12.sc: Ditto.
3559         * scripttempl/elfi386beos.sc: Ditto.
3560         * scripttempl/v850.sc: Ditto.
3561
3562 2000-08-31  Alexandre Oliva  <aoliva@redhat.com>
3563
3564         * acinclude.m4: Include libtool and gettext macros from the
3565         top level.
3566         * aclocal.m4, configure: Rebuilt.
3567
3568 2000-08-25  Nick Clifton  <nickc@redhat.com>
3569
3570         * ldlang.c (open_output): When choosing the target for a
3571         particular endianness, do nothing if the target is not
3572         supported.
3573
3574 2000-08-25  H.J. Lu  <hjl@gnu.org>
3575
3576         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3577         check -rpath nor LD_RUN_PATH for cross link.
3578         * ld.texinfo: Document the change.
3579
3580 2000-08-24  Hans-Peter Nilsson  <hp@axis.com>
3581
3582         * NEWS: Mention support for CRIS.
3583
3584 2000-08-23  H.J. Lu  <hjl@gnu.org>
3585
3586         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3587         the current runpath list from bfd_elf_get_runpath_list ()
3588         before search.
3589
3590 2000-08-22  H.J. Lu  <hjl@gnu.org>
3591
3592         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3593         the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3594         LD_LIBRARY_PATH for native linker. Display the needed DSO if
3595         trace_file_tries is non-zero.
3596         (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3597         if trace_file_tries is non-zero.
3598
3599         * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3600         * NEWS: Mention it.
3601
3602 2000-08-14  Jason Eckhardt  <jle@cygnus.com>
3603
3604         * NEWS: Mention i860 support.
3605
3606 2000-08-14  Andreas Schwab  <schwab@suse.de>
3607
3608         * scripttempl/elf.sc: Fix last change to use correct comment
3609         syntax.
3610
3611 2000-08-10  Geoff Keating  <geoffk@cygnus.com>
3612
3613         * scripttempl/elf.sc: Add a comment giving the correspondence
3614         between sections, per-datum sections, and linkonce sections.  Make
3615         the comment true even for .bss, .sdata, .sdata2, .sbss, and
3616         .sbss2.
3617
3618 2000-08-10  Jason Eckhardt  <jle@cygnus.com>
3619
3620         * emulparams/elf32_i860.sh: New file.
3621         * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3622         * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3623         (eelf32_i860.c): New rule.
3624         * Makefile.in: Regenerate.
3625
3626 2000-08-10  Nick Clifton  <nickc@cygnus.com>
3627
3628         * emulparams/mipspe.sh (ENTRY): Add definition.
3629
3630 2000-08-08  Peter Jeremy  <peter.jeremy@alcatel.com.au>
3631
3632         * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3633         in error message.
3634
3635 2000-08-08  Stephane Carrez  <Stephane.Carrez@worldnet.fr>
3636
3637         * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3638         the final size of .bss section.
3639         * scripttempl/elfm68hc12.sc: Likewise.
3640
3641 2000-08-04  Alan Modra  <alan@linuxcare.com.au>
3642
3643         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3644         gld${EMULATION_NAME}_parse_args for consistency.  Combine
3645         lastoptind and prevoptind vars, and keep track of last optind.
3646         (gld_${EMULATION_NAME}_list_options): Rename to
3647         gld${EMULATION_NAME}_list_options.
3648
3649 2000-08-03  Rodney Brown  <RodneyBrown@pmsc.com>
3650
3651         * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3652         (i586-sco-sysv5uw7.1.0).
3653
3654 2000-07-27  H.J. Lu  <hjl@gnu.org>
3655
3656         * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3657         (PARSE_AND_LIST_PROLOGUE): New.
3658         (PARSE_AND_LIST_LONGOPTS): Likewise.
3659         (PARSE_AND_LIST_OPTIONS): Likewise.
3660         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3661         (PARSE_AND_LIST_EPILOGUE): Likewise.
3662
3663 2000-07-28  Alan Modra  <alan@linuxcare.com.au>
3664
3665         * emultempl/armelf.em: Elide functions common to elf32.em,
3666         ie. most of the file.
3667         (arm_elf_after_open): New.  Do arm specific things then call
3668         gld${EMULATION_NAME}_after_open.
3669         (arm_elf_before_allocation): New.  Call
3670         gld${EMULATION_NAME}_before_allocation then do arm specifics.
3671         (PARSE_AND_LIST_PROLOGUE): Define.
3672         (PARSE_AND_LIST_SHORTOPTS): Define.
3673         (PARSE_AND_LIST_LONGOPTS): Define.
3674         (PARSE_AND_LIST_OPTIONS): Define.
3675         (PARSE_AND_LIST_ARGS_CASES): Define.
3676         (LDEMUL_AFTER_OPEN): Define.
3677         (LDEMUL_BEFORE_ALLOCATION): Define.
3678         (LDEMUL_BEFORE_PARSE): Define.
3679         (LDEMUL_FINISH): Define.
3680
3681         * emultempl/hppaelf.em: Similarly zap most of this file.
3682         (hppaelf_add_stub_section): Prototype.
3683         (hppaelf_layaout_sections_again): Prototype.
3684         (hook_in_stub): Prototype.
3685         (LDEMUL_SET_OUTPUT_ARCH): Define.
3686         (LDEMUL_FINISH): Define.
3687         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3688
3689         * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3690         (EXTRA_EM_FILE): New.
3691         * emulparams/armelf_linux.sh: Likewise.
3692         * emulparams/armelf_linux26.sh: Likewise.
3693         * emulparams/hppalinux.sh: Likewise.
3694         * emulparams/hppaelf.sh: Likewise.
3695         (NOP): Define.
3696
3697         * emultempl/elf32.em: Fix formatting.
3698         (EXTRA_EM_FILE): Source it.
3699         (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3700         LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3701         LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3702         LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3703         LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3704         LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3705         LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3706         LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3707         LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars.  Add code to
3708         allow functions in this file to be overridden.
3709         (PARSE_AND_LIST_SHORTOPTS): Handle it.
3710
3711         * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3712
3713         * emultempl/elf32.em: Reorganize file.
3714
3715 2000-07-27  Ivan Kokshaysky  <ink@jurassic.park.msu.ru>
3716
3717         * emulparams/elf64alpha.sh: Implement "-taso" emulation
3718         specific option to fit 64-bit executable in the lower
3719         31-bit address range.  This is done by changing start
3720         address of .interp (the very first section of executable)
3721         and then setting EF_ALPHA_32BIT elf header flag.
3722
3723 2000-07-21  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
3724
3725         * emultempl/m68kcoff.em: New file.
3726         * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3727         * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3728         generic.em.
3729         * Makefile.in: Regenerate.
3730
3731 2000-07-20  H.J. Lu  <hjl@gnu.org>
3732
3733         * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3734         and "disable-new-dtags" to stop getopt from treating -d/-e as
3735         abbreviations for these options.
3736
3737 2000-07-20  H.J. Lu  <hjl@gnu.org>
3738
3739         * ld.texinfo: Add documentation for --disable-new-dtags and
3740         --enable-new-dtags.
3741
3742         * ldmain.c (main): Initialize link_info.new_dtags to false.
3743
3744         * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3745         --disable-new-dtags and --enable-new-dtags.
3746         (gld_${EMULATION_NAME}_list_options): Likewise.
3747
3748 2000-07-05  Kenneth Block  <krblock@computer.org>
3749
3750         * lexsup.c: Add optional style to demangle switch
3751         * ld.texinfo: Document optional style to demangle switch.
3752
3753 2000-07-20  Hans-Peter Nilsson  <hp@axis.com>
3754
3755         * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3756         ecrislinux.o.
3757         (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3758         Regenerate dependencies.
3759         * Makefile.in: Rebuild.
3760         * configure.tgt (cris-*-*): New target.
3761         * emulparams/crisaout.sh, emulparams/criself.sh,
3762         emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3763         * po/POTFILES.in, po/ld.pot: Regenerate.
3764
3765 2000-07-20  H.J. Lu  <hjl@gnu.org>
3766
3767         * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3768         Print out ignored -z options.
3769
3770 2000-07-19  H.J. Lu  <hjl@gnu.org>
3771
3772         * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3773         (PARSE_AND_LIST_PROLOGUE): New.
3774         (PARSE_AND_LIST_LONGOPTS): Likewise.
3775         (PARSE_AND_LIST_OPTIONS): Likewise.
3776         (PARSE_AND_LIST_ARGS_CASES): Likewise.
3777
3778         * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3779
3780         * lexsup.c (ld_options): Comment out 'z'.
3781         (parse_args): Likewise.
3782
3783         * emultempl/elf32.em: Include "elf/common.h".
3784         (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3785         options.
3786         (gld_${EMULATION_NAME}_list_options): Likewise.
3787
3788         * ld.texinfo: Add documentation for the recognized -z options.
3789
3790 2000-07-19  H.J. Lu  <hjl@gnu.org>
3791
3792         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3793         bfd_elf_set_dt_needed_soname ().
3794
3795 2000-07-18  DJ Delorie  <dj@cygnus.com>
3796
3797         * pe-dll.c (pe_dll_id_target): check object target name also
3798
3799 2000-07-18  Hans-Peter Nilsson  <hp@axis.com>
3800
3801         * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3802         ${INIT_END} if relocating.
3803         (.fini): Likewise ${FINI_START} and ${FINI_END}.
3804
3805 2000-07-16  Charles Wilson  <cwilson@ece.gatech.edu>
3806
3807         * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3808         order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3809         foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3810         errors introduced by the old dynamic lib search order.
3811
3812 2000-07-17  DJ Delorie  <dj@cygnus.com>
3813
3814         * pe-dll.c (process_def_file): auto-export data items also
3815         (pe_process_import_defs): also see if _imp_ form needed
3816
3817 2000-07-12  Charles Wilson  <cwilson@ece.gatech.edu>
3818
3819         * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3820         for dll import libraries
3821
3822 2000-07-12  Mark Elbrecht  <snowball3@bigfoot.com>
3823
3824         * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3825         gcc 2.95.2 and later.
3826
3827 2000-07-11  Kazu Hirata  <kazu@hxi.com>
3828
3829         * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3830         message.
3831
3832 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3833
3834         * ldemul.h (struct lang_input_statement_struct): Remove forward
3835         declaration.
3836         (struct search_dirs): Likewise.
3837         * ldfile.h (struct lang_input_statement_struct): Likewise.
3838         Protect file from multiple inclusion.
3839         * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3840         declaration from macro to file scope.
3841
3842         * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3843         * ldgram.y: Likewise here.
3844         * ldlang.c: And here.
3845         * ldmain.c: And here.
3846         * mpw-elfmips.c: And here.
3847         * mpw-eppcmac.c: And here.
3848         * emultempl/aix.em: And here.
3849         * emultempl/armcoff.em: And here.
3850         * emultempl/armelf.em: And here.
3851         * emultempl/armelf_oabi.em: And here.
3852         * emultempl/beos.em: And here.
3853         * emultempl/elf32.em: And here.
3854         * emultempl/hppaelf.em: And here.
3855         * emultempl/linux.em: And here.
3856         * emultempl/lnk960.em: And here.
3857         * emultempl/pe.em: And here.
3858         * emultempl/sunos.em: And here.
3859         * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3860         * mpw-idtmips.c: Ditto.
3861         * emultempl/generic.em: Ditto.
3862         * emultempl/gld960.em: Ditto.
3863         * emultempl/gld960c.em: Ditto.
3864         * emultempl/mipsecoff.em: Ditto.
3865         * emultempl/ticoff.em: Ditto.
3866         * emultempl/vanilla.em: Ditto.
3867
3868         * pe-dll.c: Include ldfile.h
3869         * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3870
3871         * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3872         arguments to bfd_elf32_size_dynamic_sections call.
3873         (gldelf32ebmip_place_orphan): Add missing arguments to
3874         lang_leave_output_section_statement call.
3875
3876 2000-07-10  H.J. Lu  <hjl@gnu.org>
3877
3878         * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3879         DLL_SUPPORT.
3880         (strhash): Likewise.
3881         (compute_dll_image_base): Likewise.
3882         (pe_undef_found_sym): Likewise.
3883         (pe_undef_cdecl_match): Likewise.
3884         (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3885         argument "arch" with ATTRIBUTE_UNUSED.
3886
3887 2000-07-10  Alan Modra  <alan@linuxcare.com.au>
3888
3889         * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3890
3891         From  Ryan Bradetich  <rbradetich@uswest.net>
3892         * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3893
3894 2000-07-09  Alan Modra  <alan@linuxcare.com.au>
3895
3896         Changes to create multiple linker stubs, positioned immediately
3897         before the section where they are required.
3898         * emultempl/hppaelf.em: Include elf32-hppa.h.
3899         (stub_sec, file_chain): Delete.
3900         (hppaelf_create_output_section_statements): Don't make a stub
3901         section here.
3902         (hook_stub_info): New struct.
3903         (hook_in_stub): New function.
3904         (hppaelf_add_stub_section): New function.
3905         (hppaelf_finish): Do nothing for relocateable links.  Modify the
3906         call to elf32_hppa_size_stubs.  Move code for updating section
3907         layout from here...
3908         (hppaelf_layaout_sections_again): ..to here, a new function.
3909
3910         * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3911         broken list handling.  Pass in a pointer to the list.
3912         (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3913         for above changes.
3914         (hppaelf_before_parse): Prototype.
3915         (hppaelf_set_output_arch): Prototype.
3916         (hppaelf_create_output_section_statements): Prototype.
3917         (hppaelf_delete_padding_statements): Prototype.
3918         (hppaelf_finish): Prototype.
3919
3920         Merge from elf32.em
3921         * emultempl/hppaelf.em: Include ctype.h.
3922         (struct orphan_save): New.
3923         (gld${EMULATION_NAME}_place_orphan): New.
3924         (output_rel_find): New.
3925         (hppaelf_get_script): Update from elf32.em.
3926         (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3927         Change emulation_name field to "${EMULATION_NAME}".  Add
3928         gld${EMULATION_NAME}_place_orphan.
3929
3930         * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o,  add
3931         ehppalinux.o, sort it.  Regenerate dependencies.
3932         (ehppalinux.c): Depend on hppaelf.em
3933         * Makefile.in: Regenerate.
3934
3935         * configure.tgt: targ_emul=hppalinux for hppa*linux
3936
3937         * emulparams/hppalinux.sh: New.
3938         * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3939
3940 2000-07-08  Alan Modra  <alan@linuxcare.com.au>
3941
3942         * lexsup.c (parse_args): Copy section name.
3943
3944 2000-07-07  Charles Wilson  <cwilson@ece.gatech.edu>
3945
3946         * emultempl/pe.em: institute the following search order for
3947         dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3948         libs), libfoo.dll, foo.dll (link direct to dll).  Fall back to
3949         static lib (libfoo.a) if none of the above are found.
3950
3951 2000-07-07  Mumit Khan  <khan@xraylith.wisc.edu>
3952
3953         * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3954         (longopts): New --{enable,disable}-auto-image-base options.
3955         (gld_${EMULATION_NAME}_list_options): Document.
3956         (gld_${EMULATION_NAME}_parse): Handle.
3957         (strhash): New static function.
3958         (compute_dll_image_base): New static function.
3959         (gld_${EMULATION_NAME}_set_symbols): Use.
3960
3961 2000-07-05  DJ Delorie  <dj@redhat.com>
3962
3963         * MAINTAINERS: new
3964
3965 2000-07-01  Koundinya K  <kk@ddeorg.soft.net>
3966
3967         * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3968         * emulparams/elf32btsmip.sh: New file.
3969         * Makefile.am: Add traditional mips target.
3970         * Makefile.in: Rebuild.
3971
3972 2000-07-01  H.J. Lu  <hjl@gnu.org>
3973
3974         * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3975         automake to use YLWRAP.
3976         * Makefile.in: Rebuild.
3977
3978 2000-07-01  Alan Modra  <alan@linuxcare.com.au>
3979
3980         * Makefile.am (DEP): Fix 2000-06-22.  grep after running dep.sed
3981         (CLEANFILES): Add DEPA.
3982         * Makefile.in: Regenerate.
3983
3984 2000-06-30  Timothy Wall  <twall@ppc>
3985
3986         * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3987         the page in the upper octet of the address.
3988
3989 2000-06-26  Marek Michalkiewicz  <marekm@linux.org.pl>
3990
3991         * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3992
3993 2000-06-24  Alan Modra  <alan@linuxcare.com.au>
3994
3995         * NEWS: arm-elf does --gc-sections too.
3996
3997 2000-06-22  Alan Modra  <alan@linuxcare.com.au>
3998
3999         * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4000         find one.
4001         * Makefile.in: Regenerate.
4002
4003 2000-06-21  H.J. Lu  <hjl@gnu.org>
4004
4005         * Makefile.am: Rebuild dependency.
4006         * Makefile.in: Rebuild.
4007
4008 2000-06-20  H.J. Lu  <hjl@gnu.org>
4009
4010         * Makefile.am: Rebuild dependency.
4011         * Makefile.in: Rebuild.
4012
4013 2000-06-20  Timothy Wall  <twall@cygnus.com>
4014
4015         * scripttempl/tic54xcoff.sc: New.
4016         * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4017         * gen-doc.texi: Add flag for TI COFF.
4018         * ld.texinfo: Add documentation for TI COFF handling switches.
4019         * emultempl/ticoff.em: New. TI COFF handling.
4020         * configure.tgt: Add tic54x target.
4021         * Makefile.am: Add tic54x target.
4022         * Makefile.in: Ditto.
4023
4024 2000-06-20  Alan Modra  <alan@linuxcare.com.au>
4025
4026         * ldmain.c (set_scripts_dir): Correct pointer comparison when
4027         checking for backslashes.
4028
4029 2000-06-19  Alan Modra  <alan@linuxcare.com.au>
4030
4031         * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4032
4033 2000-06-18  Alan Modra  <alan@linuxcare.com.au>
4034
4035         * NEWS: Update list of targets supporting --gc-sections.
4036
4037         * scripttempl/elf.sc: KEEP .eh_frame contents.
4038         * scripttempl/elfd30v.sc: Same here.
4039
4040 2000-06-18  Stephane Carrez  <stcarrez@worldnet.fr>
4041
4042         * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4043         and m68hc11 (elf).
4044         * Makefile.in: Rebuild.
4045         * configure.tgt: Recognize m68hc12 and m68hc11.
4046         * scripttempl/elfm68hc12.sc: New file.
4047         * emulparams/m68hc12elfb: New emulation.
4048         * emulparams/m68hc12elf: New emulation.
4049         * emulparams/m68hc11elfb.sh: New file.  User configurable emulation
4050         (includes a memory.x script to define the ROM and RAM banks).
4051         * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4052         New configuration files for support of Motorola 68hc11
4053
4054 2000-06-15  Alan Modra  <alan@linuxcare.com.au>
4055
4056         * ldmain.c (main): Only change SEC_READONLY for final link.
4057
4058 2000-06-13  H.J. Lu  <hjl@gnu.org>
4059
4060         * configure: Regenerate.
4061
4062 2000-06-08  David O'Brien  <obrien@FreeBSD.org>
4063
4064         * configure.in (VERSION): Update to show this is the CVS mainline.
4065
4066 2000-06-07  Michael Sokolov  <msokolov@ivan.Harhan.ORG>
4067
4068         * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4069         input objects to be ECOFF.
4070         (check_sections): einfo takes %B, not %P, to print a BFD name.
4071
4072 2000-06-05  Michael Matz <matz@ifh.de>
4073
4074         * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4075         version scripts.
4076
4077         * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4078
4079 2000-05-23  Marek Michalkiewicz  <marekm@linux.org.pl>
4080
4081         * emulparams/avr1200.sh (STACK): Define as 0.
4082         * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4083         * emulparams/avr4433.sh (STACK): Likewise.
4084         * emulparams/avr44x4.sh (STACK): Likewise.
4085         * emulparams/avr85xx.sh (STACK): Likewise.
4086         * emulparams/avrmega103.sh (STACK): Likewise.
4087         * emulparams/avrmega161.sh (STACK): Likewise.
4088         * emulparams/avrmega603.sh (STACK): Likewise.
4089         * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4090         (__stack): Define from ${STACK} for main().
4091
4092 2000-05-26  Alan Modra  <alan@linuxcare.com.au>
4093
4094         * Makefile.am: Update dependencies with "make dep-am"
4095         * Makefile.in: Regenerate.
4096
4097 2000-05-26  Eli Zaretskii  <eliz@is.elta.co.il>
4098
4099         * ldmain.c: Include filenames.h.
4100         (set_scripts_dir): Support backslashes in program name.
4101
4102 2000-05-22  Igor Shevlyakov  <igor@windriver.com>
4103
4104         * ldmain.c (main): When deciding if ".text" section should be
4105         read-only, don't forget to reset SEC_READONLY because it
4106         could be already set.
4107
4108 2000-05-22  Thomas de Lellis  <tdel@windriver.com>
4109
4110         * ld.1: Add documentation for new command line option:
4111                 --section-start <sectionname>=<sectionorg>
4112         This is a generic version of -Ttext etc. which accepts
4113         any section name as a parameter instead of just text/data/
4114         bss.
4115         * ld.texinfo: More docs.
4116         * NEWS: More docs.
4117         * lexsup.c: (parse_args): Recognize new command line option.
4118         (ld_options): Add new option.
4119
4120 2000-05-18  H.J. Lu  <hjl@gnu.org>
4121
4122         * lexsup.c (parse_args): `i' == `r', not `q'.
4123
4124 2000-05-18  Jeffrey A Law  (law@cygnus.com)
4125
4126         * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4127
4128 2000-05-17 S. Bharadwaj Yadavalli  <sby@scrugs.lkg.dec.com>
4129               Rick Gorton          <gorton@scrugs.lkg.dec.com>
4130
4131         Add support for '-q' == '--emit-relocs' switch.
4132         * ldmain.c (main): Default to false.
4133         * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4134         * NEWS: Describe the emitrelocations switch.
4135         * ld.texinfo: Describe the emitrelocations switch.
4136
4137 2000-05-16  Charles Wilson <cwilson@ece.gatech.edu>
4138
4139         * emultempl/pe.em (_open_dynamic_archive): New function: Search
4140         the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4141         before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4142         link options.
4143
4144 2000-05-15  David O'Brien  <obrien@FreeBSD.org>
4145
4146         * lexsup.c (parse_args): Update the year in the copyright notice.
4147
4148 2000-05-13  Alan Modra  <alan@linuxcare.com.au>
4149
4150         * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4151         Replace defines with those from intl/libgettext.h to quieten gcc
4152         warnings.
4153
4154 2000-05-10  H.J. Lu  <hjl@gnu.org>
4155
4156         * ldlang.c (open_input_bfds): Don't load the same file within
4157         a group again if the whole archive has been loaded already.
4158
4159 2000-05-03  Alan Modra  <alan@linuxcare.com.au>
4160
4161         From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4162         * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4163         strtoul.
4164
4165 2000-05-01  Jim Wilson  <wilson@cygnus.com>
4166
4167         * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4168
4169         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4170         host "ia64-*-linux-gnu*".
4171
4172 2000-04-29  Andreas Jaeger  <aj@suse.de>
4173
4174         * ld.h: Correctly check GCC version.
4175
4176 2000-04-25  Jeffrey A Law  (law@cygnus.com)
4177
4178         * Makefile.am: Add PA64 support.  Add missing dependencies for
4179         PA32 elf support.
4180         * Makefile.in: Rebuilt.
4181         * configure.tgt: Add PA64 support (currently disabled).
4182
4183 2000-04-25  Alan Modra  <alan@linuxcare.com.au>
4184
4185         * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4186         (output_rel_find): New function.
4187         (hold_section, hold_use): Delete.
4188         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4189         hold_interp): Make local to place_orphan.
4190         (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4191         rather than place_section to find possible previous use of orphan.
4192         Similarly find the place-holder output sections.  Use returned
4193         value from lang_enter_output_section_statement rather than calling
4194         lang_output_section_statement_lookup.
4195         * emultempl/armelf.em: Same here.
4196         * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4197
4198         * ldlang.c (lang_enter_output_section_statement): Return output
4199         section statement.
4200         * ldlang.h (lang_enter_output_section_statement): Change
4201         declaration too.
4202
4203         * ldlang.h (lang_output_section_statement): Export it.
4204         * ldlang.c (lang_output_section_statement): Ditto.
4205
4206 2000-04-24  Nick Clifton  <nickc@cygnus.com>
4207
4208         * ld.texinfo (Output Section Data): Add note that section data
4209         commands cannot appear outside of section directives.
4210
4211 2000-04-2  Matthew Green  <mrg@cygnus.com>
4212
4213         * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4214
4215 2000-04-21  Richard Henderson  <rth@cygnus.com>
4216             David Mosberger  <davidm@hpl.hp.com>
4217
4218         * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4219         (eelf64_ia64.c): New rule.
4220         * Makefile.in: Rebuild.
4221         * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4222         * emulparams/elf64_ia64.sh: New file.
4223
4224 2000-04-21  Richard Henderson  <rth@cygnus.com>
4225
4226         * scripttempl/elfd30v.sc: Place .gcc_except_table.
4227
4228 2000-04-19  Alan Modra  <alan@linuxcare.com.au>
4229
4230         * dep-in.sed: Match space at start of file name, not at end.
4231
4232 2000-04-18  H.J. Lu  <hjl@gnu.org>
4233
4234         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4235         lang_leave_output_section_statement () after calling
4236         lang_enter_output_section_statement ().
4237         * emultempl/armelf.em: Likewise.
4238
4239 2000-04-18  Alan Modra  <alan@linuxcare.com.au>
4240
4241         * emultempl/elf32.em (struct orphan_save): Add section field.
4242         (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4243         better order, and place first orphan section as we did before the
4244         2000-04-12 patch.  Ignore ~SEC_ALLOC sections when choosing place.
4245         Don't call make_bfd_section here, let wild_doit do the job for us.
4246         Don't build a statement list when we'll only throw it away.
4247         * emultempl/armelf.em: Ditto.
4248         * emultempl/pe.em: Similarly.
4249
4250 2000-04-14  Geoff Keating  <geoffk@cygnus.com>
4251
4252         * scripttempl/elfppc.sc: Remove.
4253         * emulparams/elf32ppc.sh: Use elf.sc.
4254         * emulparams/elf32lppc.sh: Use elf.sc.
4255         * emulparams/elf32ppclinux.sh: Use elf.sc.
4256         * emulparams/elf32ppcsim.sh: New file.
4257         * emulparams/elf32lppcsim.sh: New file.
4258         * Makefile.am: Update dependencies.  Add elf32ppcsim ad elf32lppcsim.
4259         (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4260         * Makefile.in: Regenerate.
4261         * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4262
4263 2000-04-14  Alan Modra  <alan@linuxcare.com.au>
4264
4265         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4266         ~SEC_ALLOC sections too.  Init start address of debug sections.
4267         * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4268         * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4269         Also set all relocateable section start addresses.
4270
4271 2000-04-13  Geoff Keating  <geoffk@cygnus.com>
4272
4273         * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4274         Add new BSS_PLT variable for when .plt need not be contained in
4275         the file.  Move _etext so that it is also after .fini, and provide
4276         both etext and _etext with a leading underscore.  Mark the start
4277         and end of .sbss.
4278
4279 2000-04-12  Alan Modra  <alan@linuxcare.com.au>
4280
4281         * emultempl/elf32.em (struct orphan_save): New.
4282         (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4283         hold_interp): Make them struct orphan_save.
4284         (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4285         (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4286         the end of the relevant section list.  Also add associated section
4287         statements to the end of any previous orphan statements.
4288         * emultempl/armelf.em: Similarly.
4289         * emultempl/pe.em: Similarly.
4290
4291 2000-04-11  Alan Modra  <alan@linuxcare.com.au>
4292
4293         * ld.texinfo (Simple Example): Remove extraneous paragraph.
4294
4295 2000-04-07  Andrew Cagney  <cagney@b1.cygnus.com>
4296
4297         * configure.in (WARN_CFLAGS): Set to -W -Wall by default.  Add
4298         --enable-build-warnings option.
4299         * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4300         * Makefile.in, configure: Re-generate.
4301
4302 2000-04-04  Alan Modra  <alan@linuxcare.com.au>
4303
4304         * po/ld.pot: Regenerate.
4305
4306         * lexsup.c (help): Restore translated part of bug string.
4307
4308         * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4309         (DEP): Quote when passing vars to sub-make.  Add warning message
4310         to end.
4311         (DEP1): Rewrite for "gcc -MM".
4312         (CLEANFILES): Add DEP2.
4313         Update dependencies.
4314         * Makefile.in: Regenerate.
4315
4316 2000-04-03  Alan Modra  <alan@linuxcare.com.au>
4317
4318         * ld.h: #include "bin-bugs.h"
4319         * lexsup.c (help): Use REPORT_BUGS_TO.
4320
4321 2000-03-27  Denis Chertykov  <denisc@overta.ru>
4322
4323         * configure.tgt (avr-*-*): New target support.
4324         * Makefile.am: Likewise.
4325         * scripttempl/elf32avr.sc: New script file.
4326         * emulparams/avr1200.sh: New file.
4327         * emulparams/avr23xx.sh: New file.
4328         * emulparams/avr4433.sh New file.
4329         * emulparams/avr44x4.sh New file.
4330         * emulparams/avr85xx.sh New file.
4331         * emulparams/avrmega103.sh New file.
4332         * emulparams/avrmega161.sh New file.
4333         * emulparams/avrmega603.sh New file.
4334         * Makefile.in: Regenerate.
4335
4336 2000-03-09  Andreas Jaeger  <aj@suse.de>
4337
4338         * Makefile.am (check-DEJAGNU): Also unset LANG.
4339         * Makefile.in: Rebuild.
4340
4341 2000-03-06  Ian Lance Taylor  <ian@zembu.com>
4342
4343         * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4344         archive.
4345
4346 2000-03-02  H.J. Lu  <hjl@gnu.org>
4347
4348         * emulparams/elf32mcore.sh: Include "getopt.h".
4349
4350 2000-03-01  Ian Lance Taylor  <ian@zembu.com>
4351
4352         * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4353
4354 2000-03-01  H.J. Lu  <hjl@gnu.org>
4355
4356         * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4357         * emulparams/shpe.sh: Likewise.
4358
4359 2000-03-01  Nick Clifton  <nickc@cygnus.com>
4360
4361         * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4362         to unused parameters.
4363
4364         * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4365         functions only used by DLL code.
4366         (_place_orphan): Initialise 'dollar'.
4367
4368 2000-03-01  H.J. Lu  <hjl@gnu.org>
4369
4370         * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4371         indicate if the undefined symbol is a fatal error or not.
4372         Don't delete the output file if "fatal" is false.
4373
4374 2000-02-29  H.J. Lu  <hjl@gnu.org>
4375
4376         * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4377         Set LC_COLLATE and LC_ALL to null and export them. It is for
4378         sort which expects the C locale.
4379         Add $(LIBS) to all $(HOSTING_LIBS).
4380         * Makefile.in: Rebuild.
4381
4382 2000-02-29  Alan Modra  <alan@spri.levels.unisa.edu.au>
4383
4384         * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4385         beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4386         linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4387         (ld_emulation_xfer_struct): Add missing NULL initialiser for
4388         find_potential_libraries.
4389
4390 2000-02-28  Jim Blandy  <jimb@redhat.com>
4391
4392         * ldgram.y (exclude_name_list): Don't require a comma to separate
4393         list entries; the lexer considers commas to be valid part of a
4394         filename, so in something like `foo, bar' the comma is considered
4395         part of the first filename, `foo,'.
4396         * ld.texinfo: Update section on EXCLUDE_FILE lists.
4397
4398 2000-02-27  Loren J. Rittle  <ljrittle@acm.org>
4399
4400         * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4401         host "i[3456]86-*-freebsdelf*".
4402
4403 2000-02-27  Mark Elbrecht  <snowball3@bigfoot.com>
4404
4405         * scripttempl/i386go32.sc: Move misplaced semicolons.
4406
4407 2000-02-25  Ian Lance Taylor  <ian@zembu.com>
4408
4409         * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4410         (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4411         (eelf64hppa.c, ehppaelf.c): Remove targets.
4412         * Makefile.in: Rebuild.
4413
4414 2000-02-25  Alexandre Oliva  <oliva@lsd.ic.unicamp.br>
4415
4416         * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4417         GNU/Linux/sparc, but keep the default as 32.
4418
4419         * configure.tgt: Enable elf64_sparc on Solaris7+/sparc.  And make
4420         it default if sparcv9 or sparc64.
4421
4422 2000-02-24  Nick Clifton  <nickc@cygnus.com>
4423
4424         * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4425         * Makefile.in: Regenerate.
4426         * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4427
4428         * ldemul.h (ld_emulation_xfer_struct): Add new field:
4429         find_potential_libraries.
4430         * ldemul.c (ldemul_find_potential_libraries): New function.
4431
4432         * ldfile.c (ldfile_open_file_search): Allow function to be
4433         exported.
4434         (ldfile_open_file): Call ldemul_find_potential_libraries.
4435         * ldfile.h: Add prototype for ldfile_open_file_search.
4436
4437         * pe-dll.c: Add support for ARM, MIPS and SH targets.
4438
4439         * emulparams/mipspe.sh: New file.  Parameters for mips-pe target.
4440         * emulparams/shpe.sh: New file.  Parameters for sh-pe target.
4441
4442         * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4443         (gld_X_find_potential_libraries): New function.  Search for
4444         libraries called "*.lib".
4445
4446         * scripttempl/pe.sc: Add .pdata section.
4447
4448 2000-02-23  Richard Henderson  <rth@cygnus.com>
4449
4450         * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4451         Add and use memory regions.
4452
4453 2000-02-23  Linas Vepstas (linas@linas.org)
4454
4455         * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4456
4457         * Makefile.am: Add support for Linux/IBM 370.
4458         * configure.tgt: Likewise.
4459
4460         * Makefile.in: Regenerate.
4461
4462 2000-02-21  Alan Modra  <alan@spri.levels.unisa.edu.au>
4463
4464         * ldlang.c (print_input_section, print_data_statement,
4465         print_reloc_statement, print_padding_statement, insert_pad,
4466         size_input_section, lang_check_section_addresses,
4467         lang_size_sections, lang_do_assignments, lang_set_startof,
4468         lang_one_common): Change `opb' to unsigned.
4469         (lang_do_assignments): Also change `size' to unsigned.
4470
4471 2000-02-16  Richard Henderson  <rth@cygnus.com>
4472
4473         * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4474
4475 2000-02-16  Timothy Wall  <twall@cygnus.com>
4476
4477         * mri.c (mri_draw_tree): Add default LMA region argument to call
4478         to lang_leave_output_section_statement.
4479         * ldlang.h: Update prototypes with LMA region arguments.
4480         * ldlang.c (lang_size_sections): Encapsulate region bounds
4481         checking in os_check_region call.
4482         (os_check_region): New function.
4483         (lang_output_section_statement_lookup): Initialize lma_region.
4484         (lang_leave_output_section_statement): Add LMA region argument.
4485         (lang_leave_overlay): Ditto.
4486         * ldgram.y: Handle LMA region syntax.
4487         * ld.texinfo (Output Section Description): Describe LMA region usage.
4488         * emultempl/armelf.em (gld$place_orphan): Add default value for
4489         lma region in call to lang_leave_output_section_statement.
4490         * emultempl/elf32.em (gld$place_orphan): Add default value for
4491         lma region in call to lang_leave_output_section_statement.
4492         * emultempl/pe.em (gld$place_orphan): Add default value for
4493         lma region in call to lang_leave_output_section_statement.
4494
4495
4496 2000-02-04  Timothy Wall  <twall@redhat.com>
4497
4498         * ldlang.c (lang_check_section_addresses): Use bytes instead of
4499         octets when calculating section end addresses.
4500
4501 2000-02-04  Timothy Wall  <twall@redhat.com>
4502
4503         * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4504
4505 2000-02-03  Timothy Wall <twall@redhat.com>
4506
4507         * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4508         octet count.
4509         * ldlang.c (print_input_section, print_data_statement,
4510         print_reloc_statement, print_padding_statement): Print target
4511         address values and section sizes as bytes, not octets.
4512         (insert_pad) Calculate padding size in octets, and adjust "dot"
4513         by bytes.
4514         (size_input_section) Always adjust "dot" by bytes, not octets.
4515         (lang_check_section_addresses, lang_do_assignments) Adjust
4516         "dot" by bytes, not octets.  Use the larger of the directive size
4517         or octets_per_byte for the number of octets actually allocated in
4518         the output section.
4519         (lang_set_startof) Make sure STARTOF returns a target address.
4520         (lang_one_common) Record size changes in octets.
4521         (lang_abs_symbol_at_end_of) Section end symbol's value is
4522         recorded in target bytes.
4523         * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4524         to be clear about behavior when an octet is smaller than one byte.
4525
4526 2000-01-27  Alan Modra  <alan@spri.levels.unisa.edu.au>
4527
4528         * ldcref.c (output_cref): Don't pass message strings to printf
4529         as format arg.
4530         Update copyright.
4531
4532         * ldmisc.c (vfinfo): Same here.
4533         Update copyright.
4534
4535 2000-01-23  Alan Modra  <alan@spri.levels.unisa.edu.au>
4536
4537         * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4538         generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4539         mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4540         Add missing NULL initialisers, and comments.
4541
4542         * testsuite/ld-srec/sr3.cc (__rethrow): New.
4543
4544 2000-01-21  Nick Clifton  <nickc@cygnus.com>
4545
4546         * ldlang.c (lang_size_sections): Fix typo in comment.
4547
4548 2000-01-18  H.J. Lu  <hjl@gnu.org>
4549
4550         * ldlang.c (lang_size_sections): Also update the current
4551         address of a region if the SEC_NEVER_LOAD bit is not set.
4552
4553 2000-01-10  Philip Blundell  <pb@futuretv.com>
4554
4555         * configure.tgt (arm*-*-conix*): New target.
4556
4557 2000-01-07  Nick Clifton  <nickc@cygnus.com>
4558
4559         * ld.texinfo (Options): Remind users to preceed linker command
4560         line switches with -Wl, (or whatever is appropriate) if it is
4561         being invoked by a comnpiler driver program.
4562         Fix description of the behaviour of the -n command line switch.
4563
4564 2000-01-05  Catherine Moore  <clm@cygnus.com>
4565
4566         * ld.h (wildcard_spec):  Change exclude_name to exclude_name_list.
4567         (name_list): New.
4568         * ld.texinfo (EXCLUDE_FILE): Update documentation.
4569         * ldgram.y (wildcard_spec): Support a list of excluded_files.
4570         (exclude_name_list): New.
4571         ldlang.c (walk_wild_section): Support list of excluded files.
4572         (print_wild_statement): Likewise.
4573         (lang_add_wild): Likewise.
4574         * ldlang.h (lang_wild_statement_type): Likewise.
4575         * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4576
4577 2000-01-04  Mumit Khan  <khan@xraylith.wisc.edu>
4578
4579         * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4580         (process_def_file): Use.
4581         (pe_dll_compat_implib): New variable.
4582         (make_one): Use.
4583
4584         * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4585         pe_dll_compat_implib.
4586
4587         * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4588         compat-implib options.
4589         (gld_${EMULATION_NAME}_list_options): List new options.
4590         (gld_${EMULATION_NAME}_parse_args): Handle.
4591
4592         * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4593         dll.
4594
4595         * deffilep.y (opt_name): Allow "." in name.
4596
4597 For older changes see ChangeLog-9899
4598 \f
4599 Local Variables:
4600 mode: change-log
4601 left-margin: 8
4602 fill-column: 74
4603 version-control: never
4604 End: