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