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