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