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