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