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