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