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