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