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