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