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