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