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