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