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