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