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