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