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