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