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