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