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