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