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