1 2002-12-17 Nick Clifton <nickc@redhat.com>
3 * emultempl/pe.em (longopts): Duplicate entry for --compact-implib
4 so that it is not confused with -c.
6 2002-12-13 Ralf Habacker <Ralf.Habacker@freenet.de>
7 Charles Wilson <cwilson@ece.gatech.edu>
9 * configure.in: Add check for realpath function.
10 * configure: Regenerate.
11 * config.in: Regenerate.
12 * aclocal.m4: Regenerate.
13 * deffile.h: Add .data field to def_file_import
15 * pe-dll.c (pe_proces_import_defs): Use .data field of
16 def_file_import structure to initialize flag_data field of
17 def_file_export structure.
18 (pe_implied_import_dll): New variables exp_funcbase and
19 [data|bss]_[start|end]. Use DLL's internal name to set dll_name,
20 not filename (which may be a symlink). Scan the sections and
21 initialize [data|bss]_[start|end]. When scanning the export
22 table, skip _nm_ symbols, and mark any symbols whose rva indicates
23 that it is in the .bss or .data sections as data.
24 * sysdep.h: Include limits.h and sys/param.h, and define
25 LD_PATHMAX as appropriate. Also define REALPATH as realpath if it
26 exists, NULL otherwise.
27 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Call
28 pe_process_import_defs before pe_find_data_imports, so that
29 auto-import will check the virtual implib as well as "real"
31 (gld_${EMULATION_NAME}_recognized_file): Use REALPATH to follow
32 symlinks to their target; check that the target's extension is
33 .dll before calling pe_implied_import_dll(), not the filename
34 itself (which may be a symlink).
36 2002-12-10 Alan Modra <amodra@bigpond.net.au>
38 * emultempl/elf32.em (struct orphan_save): Add os_tail field.
39 (gld${EMULATION_NAME}_place_orphan): Re-order output_section_statement
42 2002-12-08 Alan Modra <amodra@bigpond.net.au>
44 * ldlang.h: Formatting.
46 2002-12-07 Alan Modra <amodra@bigpond.net.au>
48 * ldlang.c (init_os): Ensure sections mentioned in load_base
51 2002-12-05 Alan Modra <amodra@bigpond.net.au>
53 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Set
54 load_base for orphans that follow a section with load_base set.
56 2002-12-01 H.J. Lu <hjl@gnu.org>
58 * ld.texinfo: Remove the extra `;' in sample version script.
60 2002-11-30 Alan Modra <amodra@bigpond.net.au>
62 * configure.host: Correct dynamic-linker for powerpc64 hosts.
64 * Makefile.am (eelf32ppcwindiss.c): Correct dependencies.
65 * Makefile.in: Regenerate.
67 * ld.h, ldcref.c, ldctor.c, ldctor.h, ldemul.c, ldemul.h, ldexp.c,
68 ldexp.h, ldfile.c, ldfile.h, ldgram.y, ldlang.c, ldlang.h, ldmain.c,
69 ldmain.h, ldmisc.c, ldwrite.c, lexsup.c, mri.c, pe-dll.c, pe-dll.h,
70 emulparams/elf32b4300.sh, emultempl/aix.em, emultempl/armcoff.em,
71 emultempl/armelf.em, emultempl/armelf_oabi.em, emultempl/beos.em,
72 emultempl/elf32.em, emultempl/generic.em, emultempl/gld960.em,
73 emultempl/gld960c.em, emultempl/hppaelf.em, emultempl/linux.em,
74 emultempl/lnk960.em, emultempl/m68kcoff.em, emultempl/mipsecoff.em,
75 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em, emultempl/mmo.em,
76 emultempl/needrelax.em, emultempl/pe.em, emultempl/ppc64elf.em,
77 emultempl/sh64elf.em, emultempl/sunos.em, emultempl/ticoff.em: Replace
78 boolean with bfd_boolean, true with TRUE, false with FALSE. Simplify
79 comparisons of bfd_boolean vars with TRUE/FALSE. Formatting.
81 2002-11-27 David O'Brien <obrien@FreeBSD.org>
83 * configure.host: Fix generic FreeBSD configuration entry.
85 2002-11-27 H.J. Lu <hjl@gnu.org>
87 * ld.texinfo: Add the missing `;' to sample version scripts.
89 2002-11-20 Alan Modra <amodra@bigpond.net.au>
91 * emulparams/elf64ppc.sh (SEGMENT_SIZE): Don't define.
93 2002-11-14 Egor Duda <deo@logos-m.ru>
95 * ldmain.c (main): Make runtime relocs disabled by default. Remove
96 assignment which has no effect.
97 * pe-dll.h (pe_create_import_fixup): Change prototype.
98 * pe-dll.c (make_runtime_pseudo_reloc): New function.
99 (pe_create_runtime_relocator_reference): Ditto.
100 (pe_create_import_fixup): Handle relocations with non-zero addends.
101 * emultempl/pe.em: Add options --enable-runtime-pseudo-reloc and
102 --disable-runtime-pseudo-reloc.
103 (make_import_fixup): Handle relocations with non-zero addends. Create
104 an external reference to _pei386_runtime_relocator symbol if at least
105 one pseudo reloc was created.
106 * ld.texinfo: Document --enable-runtime-pseudo-reloc and
107 --disable-runtime-pseudo-reloc options.
109 2002-11-12 Earl Chew <earl_chew@agilent.com>
111 * ldlang.c (lang_add_section): Discard debugging sections that have
112 been marked SEC_EXCLUDE.
114 2002-11-12 Nick Clifton <nickc@redhat.com>
116 * configure.in (ALL_LINGUAS): Add da.
117 * configure: Regenerate.
118 * po/da.po: New Danish translation.
120 2002-11-12 Alan Modra <amodra@bigpond.net.au>
122 * emultempl/ppc64elf.em (ppc_before_allocation): New function.
123 (LDEMUL_BEFORE_ALLOCATION): Define.
124 (gld${EMULATION_NAME}_finish): Run discard_info for relocatable
126 * emultemp/hppaelf.em ((gld${EMULATION_NAME}_finish): Likewise.
128 2002-11-11 Christopher Faylor <cgf@redhat.com>
130 * configure.tgt (LIB_PATH): Default to searching w32api directory under
133 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
135 * pe-dll.c (autofilter_liblist): add libmingwex and libgcj to the list
136 of restricted auto-export libs.
138 2002-11-11 Charles Wilson <cwilson@ece.gatech.edu>
140 * pe-dll.c (autofilter_liblist): Generalize library names to catch more
141 creative library naming instances like, e.g., libstdc++-2.a.
143 2002-11-06 Alexandre Oliva <aoliva@redhat.com>
145 * emulparams/elf32btsmipn32.sh (TEXT_DYNAMIC): Define.
146 * emulparams/elf64btsmip.sh (TEXT_DYNAMIC): Likewise.
148 2002-11-07 Danny Smith <dannysmith@users.sourceforge.net>
150 * deffilep.y (def_lex): Handle '@' as first character of an ID.
151 * pe-dll.c (auto-export): Filter on "_imp_" prefix, not "_imp__".
152 (make_one): Don't prefix decorated fastcall symbols with '_'.
153 (pe_process_import_defs): Likewise.
154 * emultempl/pe.em (pe_fixup_stdcalls): Don't fixup fastcall
155 symbols to cdecl names or vise-versa.
157 2002-10-13 Eric Kohl <ekohl@rz-online.de>
159 * pe-dll.c (process_def_file): Handle fastcall symbols when
160 generating undecorated aliases. Don't prefix decorated fastcall
162 (fill_exported_offsets): Don't prefix decorated fastcall symbols
165 2002-10-29 Daniel Jacobowitz <drow@mvista.com>
167 * emultempl/aix.em: Use include <> for generated headers.
168 * emultempl/beos.em: Likewise.
169 * emultempl/elf32.em: Likewise.
170 * emultempl/pe.em: Likewise.
171 * ldctor.c: Likewise.
173 * ldfile.c: Likewise.
174 * ldlang.c: Likewise.
177 * ldmain.c: Likewise.
178 * ldmisc.c: Likewise.
179 * ldwrite.c: Likewise.
180 * lexsup.c: Likewise.
182 * pe-dll.c: Likewise.
184 2002-10-23 Jakub Jelinek <jakub@redhat.com>
186 * emultempl/elf32.em (place_orphan): Don't put non-allocated .rel*
187 sections into .rel{,a}.dyn.
189 2002-10-23 Nick Clifton <nickc@redhat.com>
191 * lexsup.c (OPTION_NO_OMAGIC): Define.
192 (ld_options): Add "no-omagic" option.
193 (parse_args): Parse --no-omagic.
194 * ld.texinfo: Document --no-omagic.
195 * NEWS: Mention new option.
197 2002-10-21 Danny Smith <dannysmith@users.sourceforeg.net>
199 * scripttempl/pe.sc (__RUNTIME_PSEUDO_RELOC_LIST__,
200 __RUNTIME_PSEUDO_RELOC_LIST_END__): Add only when relocating.
202 2002-10-22 Alexandre Oliva <aoliva@redhat.com>
204 * emulparams/elf32bmipn32-defs.sh: Set ELFSIZE according to
205 emulation name. Set LIB_PATH only for native tools, and
206 search the ABI-specific versions of NATIVE_LIB_DIRS before the
207 .../lib variants, not instead of them. Mostly copied from...
208 * emulparams/elf32ppc.sh: ... here. Fixed typo.
209 * emulparams/elf64bmip-defs.sh: Backed out.
210 * emulparams/elf64bmip.sh: Import elf32bmipn32-defs.sh again.
211 * emulparams/elf64btsmip.sh: Likewise.
212 (DATA_ADDR, NONPAGED_TEXT_START_ADDR, SHLIB_TEXT_START_ADDR,
213 TEXT_DYNAMIC): Removed.
215 2002-10-17 Alexandre Oliva <aoliva@redhat.com>
217 * emulparams/elf32bmipn32-defs.sh (LIB_PATH): Set to /usr/lib32.
218 (GENERATE_SHLIB_SCRIPT): Set to yes.
219 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Moved to...
220 * emulparams/elf32bmipn32.sh: here.
221 (GENERATE_SHLIB_SCRIPT): Deleted as redundant.
222 * emulparams/elf32btsmipn32.sh: Delete redundant unsets.
223 * emulparams/elf64bmip-defs.sh: New file. Extend
224 elf32bmipn32-defs.sh by overiding ELFSIZE and LIB_PATH.
225 * emulparams/elf64bmip.sh: Bring in definitions from
227 (ELFSIZE, GENERATE_SHLIB_SCRIPT, LIB_PATH): Delete redundant
229 (WRITABLE_RODATA): Moved from elf32bmipn32-defs.sh.
230 * emulparams/elf64btsmip.sh: Bring in definitions from
232 (ELFSIZE, GENERATE_SHLIB_SCRIPT): Delete, redundant.
233 (EXECUTABLE_SYMBOLS, WRITABLE_RODATA): Delete redundant unsets.
235 2002-10-16 Jakub Jelinek <jakub@redhat.com>
237 * configure.tgt (s390x-*-linux*): Add elf_s390 emulation.
238 (s390-*-linux*): Add elf64_s390 emulation if want64.
239 * emulparams/elf64_sparc.sh (LIB_PATH): Update to match 2002-05-22
240 genscript.sh changes.
241 * emulparams/elf_x86_64.sh (LIB_PATH): Likewise.
242 * emulparams/elf64_s390.sh (LIB_PATH): Set up native 64 bit dirs.
244 2002-10-15 Alan Modra <amodra@bigpond.net.au>
246 * ldlang.c (load_symbols): Revert last change.
248 2002-10-14 Alan Modra <amodra@bigpond.net.au>
250 * ldlang.c (load_symbols): Don't call bfd_link_add_symbols when
252 (lang_reasonable_defaults): Don't compare against false.
253 (size_input_section): Likewise.
254 (lang_size_sections_1): Likewise.
255 (lang_do_assignments): Likewise.
256 (lang_add_output): Likewise.
258 * Makefile.am: Run "make dep-am".
259 * Makefile.in: Regenerate.
260 * ldver.c: #include "bfdver.h".
262 2002-10-13 Stephane Carrez <stcarrez@nerim.fr>
264 * scripttempl/elfm68hc11.sc: Use KEEP for .vectors, .installN,
266 * scripttempl/elfm68hc12.sc: Likewise.
268 2002-10-11 Alan Modra <amodra@bigpond.net.au>
270 * pe-dll.c (make_import_fixup_mark): Avoid type-punned pointer.
272 * ldgram.y (memory_spec): Provide empty action.
273 (section <NAME>): Likewise.
275 2002-10-10 Jakub Jelinek <jakub@redhat.com>
277 * ldfile.c (ldfile_try_open_bfd): When searching skip linker scripts if
278 they have OUTPUT_FORMAT not matching actual output format.
279 * ldlang.c (lang_get_output_target): New function.
280 (open_output): Use it.
281 * ldlang.h (lang_get_output_target): New prototype.
283 2002-10-10 Alan Modra <amodra@bigpond.net.au>
285 * emultempl/elf32.em (output_rel_find): Prefer .rel script sections
286 when orphan is .rel, .rela when orphan is .rela.
287 (gld${EMULATION_NAME}_place_orphan): Handle combreloc .rel* case
288 first. Remove outsecname var.
290 2002-10-09 Richard Shann <richard.shann@superh.com>
291 Stephen Clarke <stephen.clarke@superh.com>
293 * Makefile.am: Add eshelf32_linux.o and
294 eshlelf32_linux.o, new emulations for sh64 Linux.
295 * Makefile.in: Regenerate.
296 * configure.tgt: Add sh64eb-*-linux* and sh64-*-linux* emulations.
297 * emulparams/shelf32_linux.sh: New file.
298 * emulparams/shlelf32_linux.sh: New file.
300 2002-10-08 H.J. Lu <hjl@gnu.org>
302 * ldlang.c (lang_file_exist): Removed.
303 (new_afile): Revert the last change.
304 * ldlang.h (lang_file_exist): Removed.
305 * lexsup.c (parse_args): Revert the last change.
307 2002-10-07 Ralf Habacker <Ralf.Habacker@freenet.de>
309 * pe-dll.cc (autofilter_symbolprefixlist): Don't re-export
311 (make_one): Create _nm_<symbol> for data only.
313 2002-10-05 Elias Athanasopoulos <eathan@otenet.gr>
315 * ldlang.c (lang_file_exist): New function.
316 (new_afile): Abort if the filename to be added matches the linker
318 * ldlang.h: Add prototype for lang_file_exist.
319 * lexsup.c (parse_args): Abort if the output filename matches
320 one of the input filenames.
322 2002-10-02 Alan Modra <amodra@bigpond.net.au>
324 * emulparams/elf64ppc.sh (MAXPAGESIZE): Set to 0x10000.
326 2002-09-30 Alan Modra <amodra@bigpond.net.au>
328 * scripttempl/elfd30v.sc: Order reloc sections placing .plt last.
329 * scripttempl/elfm68hc11.sc: Likewise.
330 * scripttempl/elfm68hc12.sc: Likewise.
332 * emultempl/elf32.em (output_rel_find): Always place orphan loadable
333 reloc sections just before .rel.plt/.rela.plt.
334 (gld${EMULATION_NAME}_place_orphan <.rel>): Remove combreloc code.
335 Only put loadable reloc sections in hold_rel.
337 2002-09-29 H.J. Lu <hjl@gnu.org>
339 * emulparams/elf32ppc.sh (OTHER_GOT_RELOC_SECTIONS): New.
341 2002-09-25 Daniel Jacobowitz <drow@mvista.com>
343 From "Anita Kulkarni" <AnitaK@kpit.com>
344 * scripttempl/sh.sc: Handle .eh_frame* and .gcc_exc*
347 2002-09-25 Alan Modra <amodra@bigpond.net.au>
349 * genscripts.sh (SEGMENT_SIZE): Use MAXPAGESIZE before
351 * scripttempl/elf.sc (DATA_SEGMENT_ALIGN): Incorporate
352 SEGMENT_SIZE alignment.
353 * emulparams/elf64ppc.sh (DATA_ADDR): Delete.
354 (SEGMENT_SIZE): Define.
356 * ldexp.c (fold_unary): New. Split out from exp_fold_tree.
357 (fold_binary): Correct abs - non-abs case.
358 (fold_trinary): New. Split out from exp_fold_tree.
360 2002-09-24 Alan Modra <amodra@bigpond.net.au>
362 * emulparams/elf64ppc.sh (DATA_ADDR): Define.
363 * emulparams/elf64_aix.sh (DATA_ADDR): Don't use a fixed address
364 for start of .data, instead align up to 256M boundary.
365 * scripttempl/aix.sc: Likewise.
367 2002-09-22 Mark Elbrecht <snowball3@softhome.net>
369 * scripttempl/i386go32.sc: Handle bss unique sections.
371 2002-09-21 Alan Modra <amodra@bigpond.net.au>
373 * ldmisc.c (vfinfo <%C,%D,%G>): Always output bfd, section and offset.
375 2002-09-17 Stan Cox <scox@redhat.com>
377 * emulparams/elf32bmipn32-defs.sh: New file.
378 * emulparams/elf32bmipn32.sh: Use elf32bmipn32-defs.sh.
379 * emulparams/elf32btsmipn32.sh: Likewise.
380 * emulparams/elf64bmip.sh: Likewise.
381 * emulparams/elf64btsmip.sh: Likewise.
383 2002-09-16 Bruno Haible <bruno@clisp.org>
385 * emulparams/elf_i386_fbsd.sh: Set OUTPUT_FORMAT to
387 * emulparams/elf64alpha_fbsd.sh: Set OUTPUT_FORMAT to
390 2002-09-11 Nick Clifton <nickc@redhat.com>
392 * NEWS: New TI port supports both C4x and C3x series of DSPs.
394 * po/tr.po: Updated Turkish translation.
396 2002-09-06 Jeffrey A Law (law@redhat.com)
398 * configure.tgt (h8300-*-hms*, h8500-*-hms*): Restore.
400 2002-09-02 Nick Clifton <nickc@redhat.com>
402 * scripttempl/v850.sc: Add EXTERN references to __ctbpm __gp and
404 * emulparams/v850.sh (TEMPLATE_NAME): Define.
406 2002-08-30 Nick Clifton <nickc@redhat.com>
408 * scripttempl/elfd10v.sc (MEMORY): Remove UNIFIED, it is not
409 used. Change INSN to start at 0x01000000 and extend for
410 256K (ignoring holes). Start the STACK on a word aligned
412 (.rodata): Start it at the READONLY_START_ADDR.
414 2002-08-30 Alan Modra <amodra@bigpond.net.au>
416 * emulparams/elf32ppc.sh (ARCH): Set to "powerpc:common".
418 2002-08-28 Svein E. Seldal <Svein.Seldal@solidas.com>
420 * Makefile.am: Add etic4xcoff.o in ALL_EMULATIONS list and
421 added makefile targets for this file.
422 * Makefile.in: Regenerate.
423 * configure.tgt: Added tic4x-coff and c4x-coff emulations.
424 * NEWS: Mention new port.
426 2002-08-28 Michael Hayes <m.hayes@elec.canterbury.ac.nz>
428 * emulparams/tic3xcoff.sh: New file.
429 * emulparams/tic4xcoff.sh: New file.
430 * scripttempl/tic3xcoff.sc: New file.
431 * scripttempl/tic4xcoff.sc: New file.
433 2002-08-28 Alan Modra <amodra@bigpond.net.au>
435 * emultempl/aix.em (gld${EMULATION_NAME}_parse_args): Replace strtoll,
436 strtoul and strtoull with bfd_scan_vma.
437 (gld${EMULATION_NAME}_read_file): Likewise.
439 2002-08-28 Alan Modra <amodra@bigpond.net.au>
441 * configure.tgt: Remove h8[35]00-*-hms*. Add h8500-*-rtems*.
443 2002-08-27 Egor Duda <deo@logos-m.ru>
445 * scripttempl/pe.sc: Handle .rdata_runtime_pseudo_reloc sections.
446 Add symbols for application to access them.
448 2002-08-27 Nick Clifton <nickc@redhat.com>
450 * emultempl/armelf.em: Revert this patch, it is not needed.
452 2002-08-22 Adam Nemet <anemet@lnxw.com>
454 2002-08-20 Dan Kegel <dank@kegel.com>
456 * configure.in: added --with-lib-path argument to ld's configure
458 * ld/NEWS: Document new switch.
459 * ld/README: Mention new switch.
460 * configure: Regenerate.
461 * Makefile.in: Regenerate.
464 2001-04-25 Christopher Faylor <cgf@cygnus.com>
466 * Makefile.in (LIB_PATH): Make configurable.
467 (GENSCRIPTS): Set LIB_PATH in environment.
468 * configure.in: Substitute LIB_PATH.
470 2002-08-22 Adam Nemet <anemet@lnxw.com>
472 * emultempl/armelf.em: Include elf-bfd.h and elf/arm.h.
473 (arm_elf_finish): Set the last bit of DT_INIT and DT_FINI
474 depending on the type of the function.
475 (arm_elf_convert_thumb_symbol_to_address): New function.
477 2002-08-22 Graeme Peterson <gp@qnx.com>
479 * Makefile.am: Add esh{l}elf_nto.o files.
480 * Makefile.in: Regenerate.
481 * configure.tgt: Add support for sh-**-nto* targets.
482 * emulparams/shelf_nto.sh: New file.
483 * emulparams/shlelf_nto.sh: New file.
485 2002-08-21 John David Anglin <dave@hiauly1.hia.nrc.ca>
487 * ldlang.c (offsetof): Define if not defined.
489 2002-08-14 H.J. Lu <hjl@gnu.org>
491 * configure.tgt: Always enable 64bit emulations for 32bit
494 2002-08-13 Alan Modra <amodra@bigpond.net.au>
496 * emulparams/elf32_dlx.sh (TARGET_PAGE_SIZE): Set to 1.
497 (MAXPAGESIZE): Set to 1.
499 * ld.h (ALIGN_N): Delete.
500 * ldexp.h (align_n): Declare.
501 * ldexp.c (align_n): New function.
502 (fold_binary): Use align_n instead of ALIGN_N.
503 (exp_fold_tree): Likewise.
504 * ldlang.c (lang_size_sections_1): Likewise.
505 (lang_one_common): Likewise.
506 * ld.texinfo (ALIGN): Remove power of 2 restriction.
508 2002-07-31 Graeme Peterson <gp@qnx.com>
510 * configure.tgt: Add support for powerpc{le}-*-nto* targets.
511 * Makefile.am: Add eelf32{l}ppcnto.o files.
512 * Makefile.in: Regenerate.
513 * emulparams/elf32lppcnto.sh: New file.
514 * emulparams/elf32ppcnto.sh: New file.
516 2002-08-07 H.J. Lu <hjl@gnu.org>
518 * ld.texinfo: Document --no-undefined-version.
520 * ldlang.c (lang_new_vers_pattern): Set the `symver' and
521 `script.' fields to 0.
523 * ldmain.c (main): Initialize the allow_undefined_version to
526 * lexsup.c (OPTION_NO_UNDEFINED_VERSION): New.
527 (ld_options): Add --no-undefined-version.
528 (parse_args): Support OPTION_NO_UNDEFINED_VERSION.
530 2002-08-07 Nick Clifton <nickc@redhat.com>
532 * emultempl/armelf.em (arm_elf_before_allocation): Only search for
533 an interworking bfd if there are input bfds. (107501)
535 2002-08-06 Alan Modra <amodra@bigpond.net.au>
537 * emultempl/aix.em (gld*_before_parse): Set default arch. Reverts
540 2002-08-01 Nick Clifton <nickc@redhat.com>
542 * emulparams/armelf.sh: Revert previous delta.
543 * scripttempl/elf.sc: Revert previous delta.
545 2002-07-31 H.J. Lu <hjl@gnu.org>
547 * configure.tgt (powerpc*-*-linux*): Enable elf64ppc for
550 2002-07-31 H.J. Lu <hjl@gnu.org>
552 * configure.tgt: Enable x86-64 emulation for Linux/i386 if
553 64bit BFD is selected.
555 2002-07-31 H.J. Lu <hjl@gnu.org>
557 * configure.tgt: Enable 64bit emulations for 32bit Linux/mips
558 if 64bit BFD is selected.
560 2002-07-31 Ian Dall <ian@sibyl.beware.dropbear.id.au>
562 * emultempl/netbsd.em (LDEMUL_BEFORE_PARSE): New file to custom set
563 link_info.common_skip_ar_aymbols.
564 * emulparams/ns32knbsd.sh (EXTRA_EM_FILE): Refer to extra file.
566 * ldmain.c (main): Initialize new field
567 link_info.common_skip_ar_aymbols.
569 2002-07-31 Adam Nemet <anemet@lnxw.com>
571 * emulparams/armelf.sh (OTHER_PLT_SECTIONS): New variable. Set it
573 * scripttempl/elf.sc: Comment it. Use the same way as ${PLT} is
576 2002-07-31 Nick Clifton <nickc@redhat.com>
578 * NEWS: Retroactively add entry for Lars Brinkhoff's contribution
579 of the PDP-11 and 2.11BSD a.out support.
581 2002-07-31 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
583 * Makefile.am (eelf32btsmipn32.o, eelf32ltsmipn32.o): New emulations
585 * Makefile.in: Regenerate.
586 * configure.tgt (mips64*el-*-linux-gnu*,mips64*-*-linux-gnu*): Add
587 n32 ABI emulations for these 64 bit targets.
588 * emulparams/elf32bmipn32.sh: Expand comment.
589 * emulparams/elf32btsmipn32.sh: New file, for traditional big endian
591 * emulparams/elf32ltsmipn32.sh: Likewise for little endian.
593 2002-07-30 Graeme Peterson <gp@qnx.com>
595 * configure.tgt: Add support for arm-*-nto target.
596 * Makefile.am: Add earmnto.o file.
597 * Makefile.in: Regenerate.
598 * NEWS: Mention port of ARM support to QNX.
599 * emulparams/armnto.sh: New file.
601 2002-07-30 Jakub Jelinek <jakub@redhat.com>
603 * ldlang.c (lang_add_section): Don't turn .tbss into normal sections
604 for relocatable link.
605 (lang_size_sections_1): Don't make .tbss zero size for relocatable
608 2002-07-26 Bernd Schmidt <bernds@redhat.com>
610 * emulparams/elf32frv.sh (OTHER_RELOCATING_SECTIONS): Delete.
613 2002-07-25 Nick Clifton <nickc@redhat.com>
615 * po/sv.po: Updated Swedish translation.
616 * po/es.po: Updated Spanish translation.
617 * po/fr.po: Updated French translation.
619 2002-07-24 Nick Clifton <nickc@redhat.com>
621 * po/sv.po: Updated Swedish translation.
622 * po/es.po: Updated Spanish translation.
624 2002-07-23 Nick Clifton <nickc@redhat.com>
626 * po/fr.po: Updated French translation.
628 2002-07-20 Alan Modra <amodra@bigpond.net.au>
630 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
631 bomb on /DISCARD/ input section.
632 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
633 * emultempl/mmo.em (mmo_place_orphan): Likewise.
635 2002-07-19 Hans-Peter Nilsson <hp@bitrange.com>
637 * emultempl/mmo.em (mmo_place_orphan): Handle case of no .text
640 2002-07-16 Denis Chertykov <denisc@overta.ru>
641 Nick Clifton <nickc@redhat.com>
642 Frank Ch. Eigler <fche@redhat.com>
643 John Healy <jhealy@redhat.com>
645 * configure.tgt: Add support for ip2k-elf.
646 * Makefile.am: Add support for ip2k-elf.
647 * Makefile.in: Regenerate.
648 * emulparams/elf32ip2k.sh: New file.
649 * scripttempl/ip2k.sc: New file
650 * NEWS: Mention support for new port.
652 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
654 * NEWS: Add 'Changes in 2.13'.
656 2002-07-14 H.J. Lu <hjl@gnu.org>
658 * ld.texinfo: Document a .symver takes precedence over a
661 2002-07-12 Alan Modra <amodra@bigpond.net.au>
663 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
664 (COMMONPAGESIZE): Define.
666 2002-07-09 Alan Modra <amodra@bigpond.net.au>
668 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
670 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
672 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
673 powerpc-*-openbsd* and sparc64-*-openbsd*.
674 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
675 * Makefile.in: Regenerate.
676 * emulparams/hppaobsd.sh: New file.
678 2002-07-05 Alan Modra <amodra@bigpond.net.au>
680 * ldlang.c (print_wild_statement): Fix output formatting.
682 2002-07-04 Alan Modra <amodra@bigpond.net.au>
684 * ldlang.c: (strip_excluded_output_sections): New function.
685 (lang_process): Call it.
686 (lang_size_sections_1): Revert 2002-06-10 change.
688 2002-07-03 Alan Modra <amodra@bigpond.net.au>
690 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
692 * Makefile.in: Regenerate.
694 2002-07-02 Alan Modra <amodra@bigpond.net.au>
696 * ldfile.c (ldfile_try_open_bfd): Formatting.
698 * ldmisc.c (demangle): Move so that it doesn't intrude between
699 vfinfo comment and body. Add comment.
701 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
703 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
705 2002-07-01 Alan Modra <amodra@bigpond.net.au>
707 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
708 * ldlang.c (entry_sym): Likewise.
709 (ldlang_undef_chain_list_type): Likewise.
710 (lang_finish): Adjust references to entry_symbol.
711 (lang_add_entry): Likewise.
712 (lang_gc_sections): Use link_info.gc_sym_list.
713 (lang_process): Set link_info.gc_sym_list.
714 * ldlex.l: Include bfdlink.h.
715 * ldmain.c (main): Init link_info.gc_sym_list.
716 * emultempl/aix.em: Adjust references to entry_symbol.
717 * emultempl/armcoff.em: Likewise.
718 * emultempl/armelf.em: Likewise.
719 * emultempl/pe.em: Likewise.
720 * emultempl/ppc64elf.em (ppc_after_open): New function.
721 (LDEMUL_AFTER_OPEN): Define.
722 * emulparams/elf64ppc.sh: KEEP .opd sections.
724 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
726 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
727 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
728 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
729 (EEPROM_START_ADDR): Define.
730 (EEPROM_MEMORY): Define.
731 * emulparams/m68hc12elf.sh: Likewise.
732 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
733 section to put soft registers in .page0.
734 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
736 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
738 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
739 section. Add ${RELOCATING-0}.
741 2002-06-26 J"orn Rennecke <joern.rennecke@superh.com>
743 * emulparams/shelf.sh (STACK_ADDR): Don't define.
744 (OTHER_SECTIONS): Define.
745 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
746 (OTHER_SECTIONS): Undef.
748 2002-06-26 Alan Modra <amodra@bigpond.net.au>
750 * ldmisc.c (demangle): Restore dots stripped from sym name.
752 2002-06-25 H.J. Lu <hjl@gnu.org>
754 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
755 * Makefile.in: Regenerated.
757 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
759 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
760 the size of attached object files, to allow make the object files
761 available via FTP or HTTP and to mention that the mail will be
762 sent to a mailing list.
764 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
766 * ld/configure.host (romp): Drop support.
768 2002-06-18 Chris Demetriou <cgd@broadcom.com>
770 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
771 section flags for SEC_DATA, rather than for SEC_CODE being unset.
773 2002-06-18 Chris Demetriou <cgd@broadcom.com>
775 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
776 format specifier used to print BFD name.
778 2002-06-18 Dave Brolley <brolley@redhat.com>
780 From Catherine Moore, Michael Meissner, Jim Blandy:
781 * emulparams/elf32frv.sh: New file.
782 * configure.tgt: Support frv-*-*.
783 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
784 (eelf32frv.c): New target.
786 2002-06-17 Tom Rix <trix@redhat.com>
788 * emultempl/elf32.em: gld*_get_script: Check for
789 GENERATE_COMBRELOC_SCRIPT.
790 * scripttempl/elfd10v.sc : Fix STACK and INSN.
791 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
793 2002-06-13 J"orn Rennecke <joern.rennecke@superh.com>
795 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
797 2002-06-12 H.J. Lu <hjl@gnu.org>
799 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
800 false if xvec doesn't match.
802 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
804 * ldlang.c (lang_size_sections_1): Skip removed output sections.
806 2002-06-08 Alan Modra <amodra@bigpond.net.au>
808 * ldexp.c: Replace CONST with const.
809 * ldfile.c: Likewise.
810 * ldfile.h: Likewise.
813 * pe-dll.h: Likewise.
815 2002-06-07 Alan Modra <amodra@bigpond.net.au>
817 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
819 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
821 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
822 to -1 == implicit enable.
823 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
824 initialize link_info.pei386_auto_import to -1 == implicit
826 (gld_${EMULATION_NAME}_parse_args): When processing
827 --enable-auto-import and --disable-auto-import options, use
828 '1' and '0' instead of 'true' and 'false'.
829 (pe_find_data_imports): Only issue message about auto-import
830 when the feature is implicitly enabled. Downgrade message to
831 informational instead of warning.
833 2002-06-07 Alan Modra <amodra@bigpond.net.au>
835 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
837 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
839 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
840 HOSTING_CRT0 and HOSTING_LIBS.
842 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
844 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
846 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
848 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
849 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
851 2002-06-05 Alan Modra <amodra@bigpond.net.au>
853 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
854 SEC_EXCLUDE sections when doing a relocatable link.
856 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
858 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
859 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
860 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
861 (eshlelf64_nbsd.c): New rules.
862 * Makefile.in: Regenerate.
863 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
864 (sh64-*-netbsd*): New targets.
865 * emulparams/shelf32_nbsd.sh: New file.
866 * emulparams/shelf64_nbsd.sh: New file.
867 * emulparams/shlelf32_nbsd.sh: New file.
868 * emulparams/shlelf64_nbsd.sh: New file.
870 2002-06-04 Alan Modra <amodra@bigpond.net.au>
872 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
874 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
876 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
877 C++ constructors/destructors, loosely based on the m68hc11 port.
879 2002-05-31 Alan Modra <amodra@bigpond.net.au>
881 * Makefile.in: Regenerate.
882 * aclocal.m4: Regenerate.
883 * config.in: Regenerate.
884 * configure: Regenerate.
886 2002-05-31 Graeme Peterson <gp@qnx.com>
888 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
889 (ei386nto.c): Add rule.
890 * Makefile.in: Regenerate.
891 * configure.tgt: Add i[3456]86-*-nto-qnx*.
892 * emulparams/i386nto.sh: New file.
894 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
896 * NEWS: Add entry for VAX ELF support.
898 2002-05-29 Matt Thomas <matt@3am-software.com>
899 Jason Thorpe <thorpej@wasabisystems.com>
901 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
903 (evaxnbsd.c): New rules.
904 * Makefile.in: Regenerate.
905 * configure.tgt (vax-*-netbsdelf*)
907 (vax-*-netbsd*): New targets.
908 * emulparams/elf32vax.sh: New file.
909 * emulparams/vaxnbsd.sh: New file.
911 2002-05-29 Adam Nemet <anemet@lnxw.com>
913 * emultempl/armelf.em (arm_elf_after_open): Don't determine
914 bfd_for_interwork, instead add glue sections to each input bfd.
915 (bfd_for_interwork): New global.
916 (arm_elf_set_bfd_for_interworking): New function.
917 (arm_elf_before_allocation): Use it.
919 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
921 * Makefile.am: Add DLX make target.
922 * configure.tgt: Add DLX configuration.
923 * Makefile.in: Regenerate.
924 * emulparams/elf32_dlx.sh: New file
925 * scripttempl/dlx.sc: New file
927 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
929 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
930 * Makefile.in: Regenerate.
931 * emulparams/elf_chaos.sh: Use elf_chaos script.
932 * scripttempl/elf_chaos.sc: New file.
934 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
936 * ldlang.c (lang_size_sections_1): Move check for conflicting load
937 addresses and regions from here...
938 (lang_get_regions): ...to this new function.
939 (lang_leave_output_section_statement): Use lang_get_regions.
940 (lang_leave_overlay): Likewise.
941 * mri.c (mri_draw_tree): Pass null as last argument to
942 lang_leave_output_section_statement.
943 * emultempl/elf32.em (gld*_place_orphan): Likewise.
944 * emultempl/mmo.em (mmo_place_orphan): Likewise.
945 * emultempl/pe.em (gld*_place_orphan): Likewise.
947 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
949 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
951 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
953 * ldemul.c: Fix formatting.
954 * ldfile.c: Likewise.
955 * pe-dll.c: Likewise.
956 * pe-dll.h: Likewise.
958 2002-05-25 Alan Modra <amodra@bigpond.net.au>
960 * ldlang.c (lang_process): Formatting, grammar.
962 * ldlex.l: Use #include "" instead of <> for local header files.
964 2002-05-24 TAMURA Kent <kent@netbsd.org>
966 * configure.tgt: Add a target for i386-netbsdpe.
968 2002-05-23 Jakub Jelinek <jakub@redhat.com>
970 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
971 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
972 output section if necessary. Handle .tbss.
973 (lang_size_sections): Clear _raw_size for .tbss section
974 (it allocates space in PT_TLS segment only).
975 * ldwrite.c (build_link_order): Build link order for .tbss too.
977 2002-05-23 Alan Modra <amodra@bigpond.net.au>
979 * configure.in: Correct spelling of AC_PREREQ.
981 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
983 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
985 (autofilter_objlist): Add crtbegin.o, crtend.o.
987 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
989 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
990 (longopts): Add new option --exclude-libs.
991 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
992 (gld_${EMULATION_NAME}_parse_args): Use it.
993 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
994 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
996 (pe_dll_add_excludes): Set excludes->type.
997 (auto_export): Add new variable libname and set to archive basename if
998 abfd. Use it when filtering default and user-specified libarary
999 excludes. Let string "ALL" mean all libs when filtering user-specified
1001 * ld.texinfo: Document --exclude-libs.
1003 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1005 * ldemul.c (ldemul_new_vers_pattern): New function.
1006 * ldemul.h (ldemul_new_vers_pattern): Declare.
1007 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
1008 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
1009 * emultempl/ppc64elf.em (dotsyms): New static var.
1010 (gld${EMULATION_NAME}_new_vers_pattern): New function.
1011 (LDEMUL_NEW_VERS_PATTERN): Define.
1012 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
1013 (PARSE_AND_LIST_LONGOPTS): Likewise.
1014 (PARSE_AND_LIST_ARGS_CASES): Handle them.
1015 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
1017 * emultempl/armcoff.em: Likewise.
1018 * emultempl/armelf_oabi.em: Likewise.
1019 * emultempl/beos.em: Likewise.
1020 * emultempl/elf32.em: Likewise.
1021 * emultempl/generic.em: Likewise.
1022 * emultempl/gld960.em: Likewise.
1023 * emultempl/gld960c.em: Likewise.
1024 * emultempl/linux.em: Likewise.
1025 * emultempl/lnk960.em: Likewise.
1026 * emultempl/m68kcoff.em: Likewise.
1027 * emultempl/mipsecoff.em: Likewise.
1028 * emultempl/pe.em: Likewise.
1029 * emultempl/sunos.em: Likewise.
1030 * emultempl/ticoff.em: Likewise.
1031 * emultempl/vanilla.em: Likewise.
1033 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1035 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
1036 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
1037 (LIB_SEARCH_DIRS): No need to use "tr".
1038 (COMPILE_IN): Only set for native targets.
1039 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
1040 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
1041 * configure.tgt (powerpc*): Set tdir_*.
1042 (powerpcle*): Correct targ_extra_emuls.
1043 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
1044 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
1046 2002-05-22 Alan Modra <amodra@bigpond.net.au>
1048 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
1049 calling lang_add_entry.
1051 2002-05-21 H.J. Lu (hjl@gnu.org)
1053 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
1055 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
1057 * ld.texinfo: Updated for --allow-multiple-definition and
1060 * ldmain.c (main): Initialize the allow_multiple_definition
1063 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
1064 (ld_options): Add --allow-multiple-definition.
1065 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
1067 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
1069 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
1070 (earmelfb_nbsd.c): New rule.
1071 * Makefile.in: Regenerate.
1072 * configure.tgt (armeb-*-netbsdelf*): New target.
1073 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
1074 (arm-*-netbsd*): Likewise.
1075 * emulparams/armelfb_nbsd.sh: New file.
1077 2002-05-18 Tom Rix <trix@redhat.com>
1079 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
1082 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
1084 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
1085 * Makefile.in: Regenerate.
1086 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
1088 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
1090 * emulparams/avr1.sh: New file.
1091 * emulparams/avr2.sh: New file.
1092 * emulparams/avr3.sh: New file.
1093 * emulparams/avr4.sh: New file.
1094 * emulparams/avr5.sh: New file.
1095 * scripttempl/avr.sc: New file.
1097 2002-05-15 Alan Modra <amodra@bigpond.net.au>
1099 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
1100 (lang_place_orphans): Abort if just_syms_flag.
1102 2002-05-10 Tom Rix <trix@redhat.com>
1104 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
1105 architecture and machine information in the output bfd.
1106 (gld*_before_parse): Remove old arch and machine code.
1107 (choose_target): Rename to gld*_choose_target.
1108 (rtld): Change type to int.
1109 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
1110 objects in XCOFF archives.
1111 * ldfile.h: Update copyright date.
1113 2002-05-10 Jakub Jelinek <jakub@redhat.com>
1115 * ldmain.c (main): Enable -z combreloc by default.
1117 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
1119 * Makefile.am: Honour DESTDIR.
1120 * Makefile.in: Regenerate.
1122 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
1124 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
1125 (lang_enter_overlay): Remove the last two parameters.
1126 (lang_leave_overlay): Take them here instead.
1127 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
1128 (section): Pass LMA and crossref flag to lang_leave_overlay rather
1129 than lang_enter_overlay.
1130 * ldlang.c (lang_memory_region_lookup): Return null for null names.
1131 (lang_output_section_statement_lookup): Initialize update_dot_tree.
1132 (lang_size_sections_1): Evaluate it.
1133 (lang_leave_output_section_statement): Rework LMA lookup.
1134 (overlay_lma, overlay_nocrossrefs): Remove.
1135 (lang_enter_overlay): Remove LMA and crossref arguments.
1136 (lang_enter_overlay_section): Don't set the LMA here.
1137 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
1138 assignment to the last section's update_dot_tree. Unconditionally
1139 use the load and run-time regions specified in the OVERLAY statement.
1140 Likewise the first section's LMA. Only set the other sections' LMAs
1141 when no load region is given.
1143 2002-05-06 Nick Clifton <nickc@redhat.com>
1145 * po/sv.po: New translation.
1147 2002-05-04 Alan Modra <amodra@bigpond.net.au>
1149 * emultempl/hppaelf.em (build_section_lists): New function.
1150 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
1151 and build_section_lists.
1153 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
1155 * ld.h: Fix formatting.
1156 * ldexp.c: Likewise.
1157 * ldfile.c: Likewise.
1158 * ldlang.c: Likewise.
1159 * ldmain.c: Likewise.
1160 * lexsup.c: Likewise.
1161 * pe-dll.c: Likewise.
1163 2002-05-02 Alan Modra <amodra@bigpond.net.au>
1165 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
1166 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
1167 (build_section_lists): Do output_section tests here.
1169 2002-04-30 Tom Rix <trix@redhat.com>
1171 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
1173 2002-05-01 Alan Modra <amodra@bigpond.net.au>
1175 Long branch stubs, multiple stub sections.
1176 * emultempl/ppc64elf.em: Include ldctor.h.
1177 (stub_file): New var.
1178 (group_size): New var.
1179 (ppc_create_output_section_statements): New function.
1180 (struct hook_stub_info): New.
1181 (hook_in_stub): New function.
1182 (ppc_add_stub_section): New function.
1183 (ppc_layout_sections_again): New function.
1184 (build_section_lists): New function.
1185 (gld${EMULATION_NAME}_finish): Rewrite.
1186 (real_func): New var.
1187 (ppc_for_each_input_file_wrapper): New function.
1188 (ppc_lang_for_each_input_file): New function.
1189 (lang_for_each_input_file): Define.
1190 (PARSE_AND_LIST_PROLOGUE): Define.
1191 (PARSE_AND_LIST_LONGOPTS): Define.
1192 (PARSE_AND_LIST_OPTIONS): Define.
1193 (PARSE_AND_LIST_ARGS_CASES): Define.
1194 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1196 2002-04-30 Tom Rix <trix@redhat.com>
1198 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
1199 -blibpath, -bnolibpath support.
1201 2002-04-30 Mark Mitchell <mark@codesourcery.com>
1203 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
1204 (eelf32ppcwindiss.c): New target.
1205 * Makefile.in: Regenerated.
1206 * configure.tgt: Add support for powerpc-*-windiss.
1207 * emulparams/elf32ppcwindiss.sh: New file.
1209 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
1211 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
1212 * ldexp.c (exp_print_token): Add "infix_p" argument.
1213 (exp_print_tree): Update accordingly.
1215 2002-04-28 Alan Modra <amodra@bigpond.net.au>
1217 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
1218 * Makefile.in: Regenerate.
1219 * mpw-elfmips.c: Delete.
1220 * mpw-eppcmac.c: Delete.
1221 * mpw-esh.c: Delete.
1222 * mpw-idtmips.c: Delete.
1224 2002-04-17 J"orn Rennecke <joern.rennecke@superh.com>
1226 * emulparams/shelf32.sh (MACHINE): Now sh5.
1228 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1230 * ldgram.y: Fix syntax warning.
1232 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
1234 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
1235 to prevent "-n" from being taken as an abbreviation for
1236 "--no-pipeline-knowledge".
1238 2002-04-08 Alan Modra <amodra@bigpond.net.au>
1240 * ldlang.c (lang_size_sections_1): Don't complain about
1241 SEC_NEVER_LOAD sections having no memory region specified.
1243 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
1245 2002-04-07 matthew green <mrg@redhat.com>
1247 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
1249 2002-04-04 Alan Modra <amodra@bigpond.net.au>
1251 * dep-in.sed: Cope with absolute paths.
1252 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
1254 * Makefile.in: Regenerate.
1256 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1258 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
1260 2002-04-03 Jakub Jelinek <jakub@redhat.com>
1262 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
1263 is smaller than maximum, round dot up to common page boundary.
1265 2002-03-28 Alan Modra <amodra@bigpond.net.au>
1267 * configure.host: Set up for generic hosts first, then tweak as
1268 necessary in more specific targets.
1269 (HOSTING_LIBS): Include libgcc_eh.a if found.
1271 2002-03-23 Andreas Jaeger <aj@suse.de>
1273 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
1275 2002-03-21 Alan Modra <amodra@bigpond.net.au>
1277 * Makefile.am: Run "make dep-am".
1278 * Makefile.in: Regenerate.
1280 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
1282 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
1284 2002-03-20 Alan Modra <amodra@bigpond.net.au>
1286 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
1287 add the symbol to the linker hash table immediately.
1288 (lang_place_undefineds): Split symbol creation out..
1289 (insert_undefined): ..to here.
1291 2002-03-18 David O'Brien <obrien@FreeBSD.org>
1293 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
1294 the contents of the buffer returned from basename function will are
1295 getting overwritten while still being used.
1297 2002-03-18 Jan Hubicka <jh@suse.cz>
1298 Andreas Jaeger <aj@suse.de>
1299 Andreas Schwab <schwab@suse.de>
1301 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
1302 * elf_x86_64.sh (ARCH): Set to i386:x86-64
1303 set libraries to default to lib64 paths.
1305 2002-03-18 Tom Rix <trix@redhat.com>
1307 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
1308 * configure.tgt : Same.
1309 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
1310 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
1311 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
1312 emulation parameters for better -b32, -b64 support.
1313 * emulparms/aixrs6.sh : Same.
1314 * emulparms/ppcmacos.sh : Same.
1315 * emultempl/aix.em (choose_target) : Use new emulation parameters
1316 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
1317 * Makefile.in : Regenerate.
1319 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
1321 * po/fr.po: Updated version.
1323 2002-03-18 Alan Modra <amodra@bigpond.net.au>
1325 * ldmain.c (main): Move .text readonly flag fudges from here..
1326 * ldlang.c (lang_process): ..to here.
1328 2002-03-14 Alan Modra <amodra@bigpond.net.au>
1330 * ldlang.c (lang_check): Remove the word size check added in last
1331 change. Treat emitrelocations case as for relocatable links.
1333 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
1335 * po/fr.po: Updated version.
1337 2002-03-13 Alan Modra <amodra@bigpond.net.au>
1339 * ldlang.c (lang_check): Do relocatable link checks first, so that
1340 warn_mismatch can't override. Check compatible and word size too.
1342 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
1344 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
1346 2002-03-05 Jakub Jelinek <jakub@redhat.com>
1348 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
1351 2002-03-04 H.J. Lu <hjl@gnu.org>
1353 * scripttempl/elf.sc: Put .preinit_array, .init_array and
1354 .fini_array in the data segment.
1356 2002-03-04 Alan Modra <amodra@bigpond.net.au>
1358 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
1360 2002-03-01 David Mosberger <davidm@hpl.hp.com>
1362 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
1363 .init_array, and .fini_array.
1365 2002-02-20 Andreas Schwab <schwab@suse.de>
1367 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
1368 .IA64_unwind* in a relocatable link.
1370 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
1372 * NEWS: Mark 2.12 branch.
1374 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
1376 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
1377 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
1379 2002-02-18 Tom Rix <trix@redhat.com>
1381 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
1382 (gld*_before_allocation): Same.
1383 (gld*_create_output_section_statements): Generate
1384 __rtinit if run time linking. Add librtl.a to the link.
1385 (gld*_read_file): Clean.
1387 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1389 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
1391 2002-02-18 David O'Brien <obrien@FreeBSD.org>
1393 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
1394 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
1395 and eelf64alpha_fbsd.
1396 * Makefile.in: Regenerate.
1397 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
1398 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
1399 use a FreeBSD-specific emulation rather than the psABI one.
1400 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
1401 for all FreeBSD ELF systems.
1402 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
1404 * emulparams/elf32ppc_fbsd.sh: Likewise.
1405 * emulparams/elf64_ia64_fbsd.sh: Likewise.
1406 * emulparams/elf64_sparc_fbsd.sh: Likewise.
1407 * emulparams/elf64alpha_fbsd.sh: Likewise.
1408 * emulparams/elf_i386_fbsd.sh: Likewise.
1409 * emulparams/elf_x86_64_fbsd.sh: Likewise.
1411 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
1413 * po/tr.po: Updated version.
1415 2002-02-18 Alan Modra <amodra@bigpond.net.au>
1417 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
1420 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
1422 * emultempl/mmo.em (mmo_after_open): Don't call
1423 _bfd_mmix_check_all_relocs when producing ELF output.
1425 2002-02-15 Richard Henderson <rth@redhat.com>
1427 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
1428 definition. Emit a unop+nop pair.
1430 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
1432 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
1433 for presence of .MMIX.reg_contents.linker_allocated before early
1436 * NEWS: Mention support for MMIX.
1438 2002-02-15 Alan Modra <amodra@bigpond.net.au>
1440 Support arbitrary length fill patterns.
1441 * ld.texinfo (Output Section Fill): Describe fill expressions.
1442 (FILL): Refer to the above.
1443 * ldexp.h (etree_value_type): Add "str" field.
1444 (union etree_union): Add "str" to "value" struct.
1445 (exp_bigintop): Declare.
1446 (exp_get_fill): Declare.
1447 * ldexp.c: Include "safe-ctype.h".
1448 (exp_intop): Set value.str to NULL.
1449 (exp_bigintop): New function.
1450 (new_rel): Pass in "str", and set new.str from it.
1451 (new_rel_from_section): Set new.str to NULL.
1452 (fold_name): Adjust calls to new_rel.
1453 (exp_fold_tree): Likewise.
1454 (exp_get_fill): New function.
1455 * ldgram.y (struct big_int bigint, fill_type *fill): New.
1456 (INT): Returns a "bigint". Adjust all code handling INTs.
1457 (fill_opt): Returns a "fill".
1458 (fill_exp): Split out of fill_opt, use for FILL.
1459 * ldlang.h (struct _fill_type): New.
1460 (fill_type): Move typedef to ldexp.h.
1461 (lang_output_section_statement_type): "fill" is now a pointer.
1462 (lang_fill_statement_type): Likewise.
1463 (lang_padding_statement_type): Likewise.
1464 (lang_add_fill): Now takes a "fill_type *" param.
1465 (lang_leave_output_section_statement): Likewise.
1466 (lang_do_assignments): Likewise.
1467 (lang_size_sections): Likewise.
1468 (lang_leave_overlay_section): Likewise.
1469 (lang_leave_overlay): Likewise.
1470 * ldlang.c: Include ldgram.h after ldexp.h.
1471 (lang_output_section_statement_lookup): Adjust for fill_type change.
1472 (print_fill_statement): Likewise.
1473 (print_padding_statement): Likewise.
1474 (insert_pad): Now takes a "fill_type *" arg.
1475 (size_input_section): Likewise.
1476 (lang_size_sections_1): Likewise.
1477 (lang_size_sections): Likewise.
1478 (lang_do_assignments): Likewise.
1479 (lang_add_fill): Likewise.
1480 (lang_leave_output_section_statement): Likewise.
1481 (lang_leave_overlay_section): Likewise.
1482 (lang_leave_overlay): Likewise.
1483 Adjust all callers of the above function.
1484 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
1485 starting with "0X" as well as "0x". Return bigint.str for hex
1486 numbers starting with "0x" or "0X", zero bigint.str otherwise.
1487 Always use base 16 for numbers starting with "$".
1488 * ldmain.c: Include ldgram.h after ldexp.h.
1489 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
1490 of bfd_fill_link_order.
1491 * pe-dll.c: Adjust lang_do_assignments calls.
1492 * emultempl/elf32.em: Likewise.
1493 * emultempl/hppaelf.em: Likewise.
1494 * emultempl/ppc64elf.em: Likewise.
1495 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
1496 lang_add_assignment call.
1497 * emultempl/pe.em: Likewise.
1499 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
1501 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
1502 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
1503 the pattern in question is not a regexp.
1504 * ldlang.c: Likewise.
1505 * ldlang.h: Likewise.
1506 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
1508 2002-02-12 Jakub Jelinek <jakub@redhat.com>
1510 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1511 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
1512 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
1513 * ldexp.c (exp_data_seg): New variable.
1514 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
1515 (fold_binary): Handle DATA_SEGMENT_ALIGN.
1516 (exp_fold_tree): Handle DATA_SEGMENT_END.
1517 Pass allocation_done when recursing instead of hardcoding
1518 lang_allocating_phase_enum.
1519 * ldexp.h (exp_data_seg): New.
1520 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
1521 (lang_size_sections): New.
1522 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
1523 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
1524 if COMMONPAGESIZE is defined.
1525 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
1526 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
1527 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
1528 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
1529 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
1532 2002-02-11 Alan Modra <amodra@bigpond.net.au>
1534 * Makefile.in: Regenerate.
1536 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1538 * lexsup.c: Remove strtoul declaration.
1540 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
1542 * ldmain.c: Add prototype for main ().
1543 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
1544 * emultempl/lnk960.em (lnk960_choose_target): Function should
1547 2002-02-10 Alan Modra <amodra@bigpond.net.au>
1549 * ldlang.c (entry_section): New initialised variable.
1550 (lang_finish): Use it.
1551 * ldlang.h (entry_section): Declare.
1552 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
1553 entry_section to ".opd".
1555 2002-02-09 Chris Demetriou <cgd@broadcom.com>
1557 * ld.texinfo (Options): Add back in -nostdlib documentation,
1558 which had been inadvertently removed.
1560 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
1562 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
1563 register section vma to a sane value after emitting error. Make
1564 fatal conditions cause program exit when emitting message.
1566 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
1568 * configure.tgt: Add or32-*-rtems target.
1570 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
1572 Contribute sh64-elf.
1573 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
1574 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
1575 in OTHER_RELOCATABLE_SECTIONS.
1576 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
1577 * emulparams/shelf32.sh (STACK_ADDR): Define.
1578 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
1579 (OTHER_SECTIONS): this. Removed stack settings.
1580 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
1581 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
1582 2001-03-12 DJ Delorie <dj@redhat.com>
1583 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
1584 relaxing if any shmedia or mixed sections are found.
1585 2001-03-07 DJ Delorie <dj@redhat.com>
1586 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
1587 einfo. Gracefully decline to output to non-elf formats.
1588 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
1589 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
1590 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
1591 * emulparams/shelf32.sh: Ditto.
1592 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
1593 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
1595 2001-01-10 Ben Elliston <bje@redhat.com>
1596 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
1597 non-portable shell constructs. From Hans-Peter Nilsson.
1598 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
1599 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
1600 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
1601 dependencies to the shell script include chain.
1602 * Makefile.in: Regenerate.
1603 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
1604 * emultempl/sh64elf.em: Update and tweak comments.
1605 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
1606 make a .cranges section SEC_IN_MEMORY.
1607 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
1608 * emultempl/sh64elf.em
1609 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
1610 .cranges section found to be necessary; continue and set stored
1611 section contents flags for sections with non-mixed contents.
1612 Use a struct sh64_section_data container and sh64_elf_section_data
1613 to store contents-type flags.
1614 Remove unused update of "isec".
1615 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
1616 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
1617 access contents-type flags. Assert that the associated container
1618 is initialized. Use that container, not elf_gp_size, to hold size
1619 of linker-generated cranges contents.
1620 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1621 * emultempl/sh64elf.em
1622 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
1623 there's already a .cranges section. When section flag difference
1624 is found, don't NULL-check cranges a second time. Tweak comments.
1625 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
1626 merging, not max size, as size of ld-generated .cranges contents.
1627 Don't set ELF section flags in output section. When checking for
1628 needed .cranges descriptors, don't use a variable; compare
1629 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
1631 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
1632 * emultempl/sh64elf.em: New file.
1633 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
1634 * Makefile.in: Regenerate.
1635 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
1636 (OTHER_RELOCATING_SECTIONS): Ditto.
1637 (EXTRA_EM_FILE): New, set to sh64elf if not set.
1638 * emulparams/shlelf32.sh: Stub out all settings except
1639 OUTPUT_FORMAT. Source shelf32.sh.
1640 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
1641 OTHER_RELOCATING_SECTIONS.
1642 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
1643 * emulparams/shlelf64.sh: Stub out all settings except
1644 OUTPUT_FORMAT. Source shelf64.sh.
1645 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
1646 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
1648 (DATA_START_SYMBOLS): Define, provide ___data.
1649 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
1650 for consecutive .data section.
1651 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1652 section after .data section.
1653 * emulparams/shlelf64.sh: Ditto.
1654 * emulparams/shelf32.sh: Ditto.
1655 (ALIGNMENT): Define to 8.
1656 * emulparams/shelf32.sh: Ditto.
1657 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1658 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1659 built-in linker scripts.
1660 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1661 * emulparams/shlelf64.sh: New.
1662 * emulparams/shelf64.sh: New.
1663 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1665 * Makefile.am: Add support for shlelf64 and shelf64.
1666 * Makefile.in: Regenerate.
1667 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1668 * configure.tgt (sh64-*-elf*): Add shelf as default.
1669 Add shlelf to targ_extra_emuls.
1670 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1671 * emulparams/shelf32.sh: New file.
1672 * emulparams/shlelf32.sh: New file.
1673 * Makefile.am: Add support for shlelf32 and shelf32.
1674 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1675 * Makefile.in: Regenerate.
1677 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1679 * ldlang.c (lang_reset_memory_regions): Rename from
1680 reset_memory_regions. Change all callers. Make public.
1681 * ldlang.h (lang_reset_memory_regions): Prototype.
1682 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1683 lang_reset_memory_regions before lang_size_sections.
1684 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1685 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1687 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1689 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1690 arithmetic when checking for too many global registers.
1692 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1694 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1695 (ehppanbsd.c): New rule.
1696 * Makefile.in: Regenerate.
1697 * configure.tgt (hppa*-*-netbsd*): New target.
1698 * emulparams/hppalinux.sh: Add comment to check other files
1699 that source this file it is modified, and list which
1701 * emulparams/hppanbsd.sh: New file.
1703 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1705 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1708 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1710 Support on-demand global register allocation from
1711 R_MMIX_BASE_PLUS_OFFSET relocs.
1712 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1713 mmix_set_reg_section_vma. Call
1714 _bfd_mmix_finalize_linker_allocated_gregs.
1715 (mmix_before_allocation): New function.
1716 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1717 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1718 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1719 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1720 before .MMIX.reg_contents.
1721 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1722 (mmo_after_open): New function.
1723 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1724 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1725 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1727 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1729 * emulparams/or32.sh: New file.
1730 * emulparams/or32elf.sh: New file.
1731 * scripttempl/or32.sc: New file.
1732 * configure.tgt : Add support for or32.
1733 * configure: Regenerate
1734 * Makefile.am: Add support for or32.
1735 * Makefile.in: Regenerate.
1736 * NEWS: Mention support for or32.
1737 * po/ld.pot: Regenerate.
1739 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1740 Mitch Lichtenberg <mpl@broadcom.com>
1742 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1743 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1744 reloc creation (ld --embedded-relocs).
1746 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1748 * configure: Regenerated.
1750 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1752 * Makefile.am (install): Depend on install-info.
1753 * Makefile.in: Regenerate.
1755 2002-01-26 Christian Rose <menthos@menthos.com>
1757 * ldmain.c (main): Use full sentences to ease translation.
1759 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1761 * po/fr.po: Updated version.
1763 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1765 * po/es.po: Updated version.
1767 2002-01-25 Andreas Jaeger <aj@suse.de>
1769 * ldlex.l (yy_input): Correct error check.
1771 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1773 * ldmisc.c (demangle): Put back dots when string not demangled.
1775 2002-01-22 Richard Henderson <rth@redhat.com>
1777 * emulparams/elf64alpha.sh (NOP): Use unop.
1779 2002-01-21 Andreas Jaeger <aj@suse.de>
1781 * ldlex.l: Use fread instead of read.
1783 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1785 * configure.tgt (ia64-*-netbsd*): New target.
1787 2002-01-21 H.J. Lu <hjl@gnu.org>
1789 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1791 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1793 2002-01-18 Andreas Jaeger <aj@suse.de>
1795 * ldver.c (ldversion): Update year.
1797 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1799 * po/ld.pot: Regenerate.
1801 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1803 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1804 * Makefile.in: Regenerate.
1805 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1806 * emultempl/ppc64elf.em: New file.
1808 2002-01-15 DJ Delorie <dj@redhat.com>
1810 * scripttempl/pe.sc: Add support for constructor priorities.
1812 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1814 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1815 * emulparams/avr23xx.sh: Likewise.
1816 * emulparams/avr4433.sh: Likewise.
1817 * emulparams/avr44x4.sh: Likewise.
1818 * emulparams/avr85xx.sh: Likewise.
1819 * emulparams/avrmega103.sh: Likewise.
1820 * emulparams/avrmega161.sh: Likewise.
1821 * emulparams/avrmega603.sh: Likewise.
1822 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1824 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1826 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1827 archive is excluded.
1829 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1831 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1832 (eshelf_nbsd.c): New rule.
1833 (eshlelf_nbsd.c): New rule.
1834 * Makefile.in: Regenerate.
1835 * configure.tgt (sh*le-*-netbsdelf*): New target.
1836 (sh*-*-netbsdelf*): New target.
1837 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1838 * ld/emulparams/shelf_nbsd.sh: New emulation.
1839 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1841 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1843 * po/es.po: New file: Spanish translation.
1844 * configure.in (ALL_LINGUAS): Add es.
1845 * configure: Regenerate.
1847 2002-01-06 John Marshall <jmarshall@acm.org>
1849 * ld.texinfo: Note that --emit-relocs is currently only
1850 implemented for ELF.
1852 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1854 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1855 of bfd_section_list_remove and bfd_section_list_insert macros.
1856 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1857 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1859 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1861 * configure.tgt (x86_64-*-netbsd*): New target.
1863 2001-12-21 Tom Rix <trix@redhat.com>
1865 (gld*_create_output_section_statements): New function.
1866 For -binitfini support.
1867 * emultempl/aix.em (gld*_before_parse): Fix comment.
1868 * emultempl/aix.em (gld*_parse_args): Fix comment.
1870 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1872 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1874 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1876 * configure.tgt (arm-*-netbsdelf*): Add target.
1877 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1878 * emulparams/armelf_nbsd.sh: Added.
1879 * Makefile.am: Add rules for earmelf_nbsd.
1880 * Makefile.in: Regenerate.
1882 2001-12-19 Andreas Jaeger <aj@suse.de>,
1883 Susanne Oberhauser <froh@suse.de>
1885 * configure.host: Add rules for x86_64-*linux-gnu. Change
1886 s390x-linux entry to use gcc to report configuration, replace gcc
1887 with $CC in s390-linux
1889 2001-12-19 Andreas Jaeger <aj@suse.de>
1891 * ld.texinfo (VERSION): Fix markup.
1893 2001-12-18 matthew green <mrg@eterna.com.au>
1895 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1896 (m68kelfnbsd.c): New rule.
1897 * Makefile.in: Regenerate.
1898 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1899 (m68*-*-netbsd*4k*): .. this.
1900 (m68*-*-netbsdelf*): New target.
1901 (m68*-*-netbsd*): Also include ELF support.
1902 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1903 * emulparams/m68kelfnbsd.sh: New emulation.
1905 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1907 * ldgram.y (vers_node): Support anonymous version tags.
1908 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1909 tag is not defined together with non-anonymous versions.
1910 * ld.texinfo: Document it.
1912 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1914 * po/tr.po: New file: Turkish translation.
1915 * configure.in (ALL_LINGUAS): Add tr.
1916 * configure: Regenerate.
1918 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1920 * Makefile.am: Add rules for eelf64alpha_nbsd.
1921 * Makefile.in: Regenerate.
1922 * configure.tgt (alpha*-*-netbsd*): Set
1923 targ_emul to elf64alpha_nbsd.
1924 * emulparams/elf64alpha_nbsd.sh: Added.
1926 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1928 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1929 section_tail when fiddling with section list.
1930 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1931 broken into separate strings to make translation easier.
1932 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1933 fiddling with section list.
1934 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1936 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1938 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1940 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1942 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1944 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1946 * emultempl/elf32.em (finish): Supply output_bfd
1947 to bfd_elf*_discard_info.
1948 (OPTION_EH_FRAME_HDR): Define.
1949 (longopts): Add --eh-frame-hdr.
1950 (parse_args): Handle it.
1951 (list_options): Add --eh-frame-hdr to help.
1952 * emultempl/hppaelf.em (finish): Supply output_bfd
1953 to bfd_elf*_discard_info.
1954 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1956 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1958 * lexsup.c (parse_args): Don't pass shortopts to second call to
1959 getopt functions. Restore optind rather than decrementing before
1960 second call. Remove errind as it now duplicates last_optind.
1962 2001-12-11 Christopher Faylor <cgf@redhat.com>
1964 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1966 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1967 Richard Henderson <rth@redhat.com>
1969 * Makefile.am: Add support for xstormy16.
1970 * configure.tgt: Add support for xstormy16.
1971 * Makefile.in: Regenerate.
1972 * emulparams/elf32xstormy16.sh: New file.
1973 * scripttempl/xstormy16.sc: New file.
1975 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1977 * Makefile.in (LIB_PATH): Make configurable.
1978 (GENSCRIPTS): Set LIB_PATH in environment.
1979 * configure.in: Substitute LIB_PATH.
1980 * configure: Regenerate.
1981 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1982 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1984 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1986 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1987 describing the -N option so that it is easier to translate into
1990 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1992 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1993 statements describing a single option with a single, newline
1994 escaped fprintf. This allows better translation into other
1997 * ldmain.c (add_archive_element): Combine multiple strings
1998 into a single string to permit better translation into other
2001 2001-12-05 Tom Rix <trix@redhat.com>
2003 * Makefile.am: Remove eaixppc64.
2004 * Makefile.in: Regenerate.
2006 2001-12-04 Tom Rix <trix@redhat.com>
2008 * emultempl/aix.em (choose_target): Change default target to
2009 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
2011 (gld*_read_file): Fix typo.
2012 (change_symbol_mode): Add prototype.
2015 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
2016 * emulparams/aixrs6.sh : Same.
2017 * emulparams/ppcmacos.sh : Same.
2018 * emulparams/aixppc64.sh : Delete file.
2019 * emultempl/aix.em : Formatting changes.
2021 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
2023 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
2024 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
2026 (OTHER_END_SYMBOLS): Fix formatting.
2027 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
2028 (OTHER_END_SYMBOLS): Fix formatting.
2030 2001-12-04 Alan Modra <amodra@bigpond.net.au>
2032 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
2034 2001-12-02 Tom Rix <trix@redhat.com>
2036 * configure.tgt : Remove eaixppc64 emulations.
2037 * Makefile.in : Remove eaixppc64.c
2038 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
2039 (ldemul_default_target): Same.
2040 * emultempl/gld960.em (gld960_choose_target): Same.
2041 * emultempl/gld960c.em (gld960_choose_target): Same.
2042 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
2043 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
2044 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
2045 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
2046 * emultempl/aix.em (choose_target): New function. Handle emulation of
2049 2001-11-27 H.J. Lu <hjl@gnu.org>
2051 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
2052 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
2053 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
2054 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
2055 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
2056 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
2057 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
2058 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
2060 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
2063 (REL_SDATA): Likewise.
2064 (REL_SBSS): Likewise.
2065 (REL_SDATA2): Likewise.
2066 (REL_SBSS2): Likewise.
2067 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
2070 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2072 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
2074 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
2076 2001-11-22 H.J. Lu <hjl@gnu.org>
2078 * Makefile.in: Regenerated with automake based on automake
2079 1.4-8 in RedHat 7.1.
2081 2001-11-22 Alan Modra <amodra@bigpond.net.au>
2083 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
2084 (config.status): Delete rule.
2085 Add extra dependencies to cover sourced emulparams files.
2086 * Makefile.in: Regenerate.
2088 * scripttempl/elf.sc: Order <section>, <section>.* and
2089 corresponding linkonce sections as seen in input files.
2090 Formatting fixes. Zero vma of all sections if not relocating.
2091 (STACK): Define and insert if STACK_ADDR defined.
2092 (OTHER_RELOCATING_SECTIONS): Delete.
2093 (OTHER_END_SYMBOLS): Define.
2094 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
2095 (OTHER_READWRITE_SECTIONS): Likewise.
2096 (OTHER_GOT_SECTIONS): Likewise.
2097 (OTHER_SDATA_SECTIONS): Likewise.
2098 (OTHER_BSS_SECTIONS): Likewise.
2099 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
2100 (OTHER_READWRITE_SECTIONS): Likewise.
2101 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
2102 (OTHER_READWRITE_SECTIONS): Likewise
2104 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
2105 (STACK_ADDR): Define.
2106 * emulparams/armelf_oabi.sh: As for armelf.sh.
2107 * emulparams/elf32mcore.sh: As for armelf.sh.
2108 * emulparams/h8300elf.sh: As for armelf.sh.
2109 * emulparams/mn10200.sh: As for armelf.sh.
2110 * emulparams/shelf.sh: As for armelf.sh.
2112 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
2113 (OTHER_END_SYMBOLS): Define.
2114 * emulparams/m32relf.sh: As for elf32fr30.sh.
2115 * emulparams/h8300helf.sh: As for elf32fr30.sh.
2116 * emulparams/h8300self.sh: As for elf32fr30.sh.
2118 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
2119 defines with RELOCATING test.
2120 (OTHER_SDATA_SECTIONS): Likewise.
2121 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2122 (OTHER_END_SYMBOLS): ..this.
2123 * emulparams/crislinux.sh: As for criself.sh.
2125 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
2127 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
2128 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
2129 normal and linkonce sections as seen in input files.
2130 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
2131 (TEXT_DYNAMIC): Likewise.
2132 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
2133 (OTHER_SDATA_SECTIONS): Likewise.
2134 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2135 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
2136 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
2137 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
2138 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
2139 (OTHER_PLT_RELOC_SECTIONS): Likewise.
2140 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
2141 sections as seen in input files.
2142 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
2143 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
2145 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
2146 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
2147 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
2148 (OTHER_SECTIONS): Instead, use this..
2149 (OTHER_END_SYMBOLS): ..and this.
2151 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
2152 * emulparams/elf32bsmip.sh: Likewise.
2153 * emulparams/elf32btsmip.sh: Likewise.
2154 * emulparams/elf32ebmip.sh: Likewise.
2155 * emulparams/elf32lmip.sh: Likewise.
2156 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
2157 * emulparams/elf32lsmip.sh: Likewise.
2158 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
2159 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
2160 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
2161 * emulparams/elf64btsmip.sh: Likewise.
2162 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
2163 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
2164 * emulparams/elf32ppclinux.sh: Likewise.
2165 * emulparams/elf32ppcsim.sh: Likewise.
2166 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
2167 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
2168 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
2169 * emulparams/h8300self.sh: Likewise.
2170 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
2171 * emulparams/sh.sh: Comment.
2172 * emulparams/shl.sh: Source sh.sh, remove duplicates.
2173 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
2174 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
2176 2001-11-21 David Heine <dlheine@tensilica.com>
2177 Alan Modra <amodra@bigpond.net.au>
2179 * ldlang.c (map_input_to_output_sections): Replace "break"
2180 accidentally removed with 2001-08-03 change.
2181 (lang_gc_sections_1): Likewise.
2183 2001-11-21 Alan Modra <amodra@bigpond.net.au>
2185 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
2187 2001-11-20 Angela Marie Thomas <angela@redhat.com>
2189 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
2190 of false when calling lang_size_sections.
2191 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
2193 2001-11-15 Alan Modra <amodra@bigpond.net.au>
2195 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
2196 function when LDEMUL_FINISH isn't set to the same name. Don't
2197 call ${LDEMUL_FINISH}.
2198 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
2199 * emultempl/armelf.em (arm_elf_finish): Call
2200 gld${EMULATION_NAME}_finish.
2201 * emultempl/hppaelf.em (hppaelf_finish): Rename to
2202 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
2203 hppaelf_layout_sections_again if necessary.
2204 (need_laying_out): New var.
2205 (hppaelf_layaout_sections_again): Rename to
2206 hppaelf_layout_sections_again. Clear need_laying_out.
2207 (PARSE_AND_LIST_OPTIONS): Format text.
2209 2001-11-14 H.J. Lu <hjl@gnu.org>
2211 * emultempl/armelf.em (arm_elf_finish): Renamed from
2212 gld${EMULATION_NAME}_finish.
2213 (LDEMUL_FINISH): Set to arm_elf_finish.
2215 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
2217 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
2218 (struct ld_emulation_xfer_struct): Use it.
2220 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
2222 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
2223 additional symbols referenced by newer crt0.o files from HP.
2225 2001-11-12 Anthony Green <green@redhat.com>
2227 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
2229 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
2231 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
2232 * Makefile.in: Regenerate.
2234 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2236 * ld.texinfo: Use @command for commands, @option for options.
2237 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
2239 * Makefile.in: Rebuild.
2241 2001-11-04 Chris Demetriou <cgd@broadcom.com>
2243 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
2244 Add support for targets.
2246 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
2248 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
2249 * configure: Regernate.
2250 * po/fr.po: New file.
2251 * po/sv.po: New file.
2253 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
2255 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
2256 as little endian default and to support big endian.
2258 2001-11-01 Chris Demetriou <cgd@broadcom.com>
2260 * ld.texinfo (Options): Document new option, -nostdlib.
2261 * lexsup.c (OPTION_NOSTDLIB): New definition.
2262 (ld_options): Add entry for "nostdlib".
2263 (parse_args): Handle OPTIONS_NOSTDLIB.
2264 * ldfile.c (ldfile_add_library_path): Don't add directories
2265 to the search path if they weren't specified on the command line
2266 and -nostdlib was specified.
2267 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
2269 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
2271 * lexsup.c (parse_args): Prevent infinite parsing loop when
2272 "-rpath.a" is specified on the command line.
2273 Replace calls to fprintf with calls to einfo.
2275 2001-10-31 John Marshall <jmarshall@acm.org>
2277 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
2278 appear only once across all the linker scripts involved in a link
2279 invocation no longer applies. Make the documentation reflect
2282 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
2284 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
2286 (sh-*-linux*): Added targ_extra_libpath.
2288 2001-10-31 David Heine <dlheine@tensilica.com>
2290 * ldlang.c (lang_size_sections): Keep a valid output_offset field
2291 for padding statements.
2293 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
2295 * configure.tgt (mmix-*-*): New target.
2296 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
2297 Add dependencies to match.
2298 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
2299 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
2300 scripttempl/mmo.sc: New files.
2301 * gen-doc.texi: @set MMIX.
2302 * ld.texinfo: Ditto.
2303 [MMIX] Add MMIX node.
2304 * Makefile.in: Regenerate.
2306 2001-10-29 Kazu Hirata <kazu@hxi.com>
2308 * ldlang.c: Fix a comment typo.
2310 2001-10-23 Alan Modra <amodra@bigpond.net.au>
2312 * configure.host: Move alpha*-*-linux-gnu* entry to generic
2313 entries, and match *-*-linux*.
2315 2001-10-20 Alan Modra <amodra@bigpond.net.au>
2317 * ldgram.y (mri_script_command): Surround processing of INCLUDE
2318 with ldlex_script, ldlex_popstate.
2319 (ifile_p1): Likewise.
2320 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
2322 (lex_push_file): Save current lineno to lineno_stack. Set lineno
2323 to 1. Don't BEGIN(SCRIPT).
2324 (lex_redirect): Similarly.
2325 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
2327 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
2329 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
2330 __EH_FRAME_END__ and accept eh frames into data section.
2331 Add ctor and dtor sections.
2333 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2335 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
2336 (auto-export): Fix indentation.
2338 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2340 * pe-dll.c (autofilter_objectlist): Add startup objects
2342 (auto-export): Constify char * p.
2343 Extract file basename and use strcmp rather than ststr
2346 2001-10-18 Chris Demetriou <cgd@broadcom.com>
2348 * ldmain.c (get_emulation): Improve comment about the handling
2351 2001-10-17 Alan Modra <amodra@bigpond.net.au>
2353 * po/POTFILES.in: Regenerate.
2355 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
2357 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
2358 -z nocopyreloc and -z nocombreloc usage strings.
2360 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
2362 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
2365 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
2367 * scripttempl/armaout.sc: Place .bss section after end of aligned
2368 data section to match behaviour of aout code in constructrion of
2371 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2373 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
2374 startup files for mingw32 dlls to list.
2376 2001-10-10 Chris Demetriou <cgd@broadcom.com>
2378 * emultempl/elf32.em: Fix shell 'if' usage for portability.
2380 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
2382 * configure.tgt (targ): Add arm9e-*-elf.
2384 2001-10-05 H.J. Lu <hjl@gnu.org>
2386 * genscripts.sh: Fix a typo in the last change.
2388 2001-10-05 Jakub Jelinek <jakub@redhat.com>
2390 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
2391 -z nocombreloc in usage.
2393 2001-10-03 Jim Blandy <jimb@redhat.com>
2395 * genscripts.sh: Include a comment at the top of each generated
2396 script, explaining its purpose.
2398 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
2400 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
2401 * NEWS: Mention -z nocopyreloc.
2402 * ld.texinfo (Options): Describe nocopyreloc.
2404 2001-10-03 Alan Modra <amodra@bigpond.net.au>
2406 * configure: Regenerate.
2408 2001-10-02 Alan Modra <amodra@bigpond.net.au>
2410 * ldver.h (ld_program_version): Remove declaration.
2411 * lexsup.c (parse_args): Move printing of copyright message..
2412 * ldver.c (ldversion): .. to here.
2413 Use BFD_VERSION_STRING in place of BFD_VERSION.
2414 (ld_program_version): Remove.
2415 * Makefile.am (Makefile): Depend on bfd/configure.in.
2417 * Makefile.in: Regenerate.
2419 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
2421 * Makefile.am: Update dependencies with "make dep-am".
2422 * Makefile.in: Regenerate.
2424 2001-09-29 John Reiser <jreiser@BitWagon.com>
2426 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
2427 * lexsup.c: Add --no-define-common commandline option.
2428 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
2429 * ldlex.l: Likewise.
2430 * ld.h: Add command_line.inhibit_common_definition.
2431 * ldmain.c (main): Initialize.
2432 * ld.texinfo: Document.
2434 2001-09-29 Alan Modra <amodra@bigpond.net.au>
2436 * ldlang.c (section_already_linked): Remove assignment to kept_section.
2438 2001-09-26 Alan Modra <amodra@bigpond.net.au>
2440 * ldmisc.c (USE_STDARG): Remove.
2441 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
2446 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
2447 declarations. Update copyright.
2449 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2451 * pe-dll.c: Remove obsoleted declaration of
2452 pe_get_data_import_dll_name.
2453 (pe_create_import_fixup): Fix thinko.
2455 * ld.texinfo(enable-auto-import): Clarify the explanation.
2457 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
2459 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
2460 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
2461 DLL_SUPPORT controlled code.
2463 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
2465 * emultempl/pe.em(pe_data_import_dll): Make static.
2466 (pe_get_data_import_dll_name): New accessor function.
2467 * pe-dll.c(pe_create_import_fixup): call
2468 pe_get_data_import_dll_name() from pe.em, instead of
2469 directly accessing pe_data_import_dll variable from pe.em.
2471 2001-09-18 Bruno Haible <haible@clisp.cons.org>
2473 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
2474 (def_file_add_directive): Use ISSPACE instead of isspace.
2475 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
2476 isdigit/isxdigit/isalpha/isalnum.
2477 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
2478 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
2479 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
2480 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
2482 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
2483 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
2485 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
2486 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
2487 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
2488 (ctor_prio): Use ISDIGIT instead of isdigit.
2489 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
2490 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
2491 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
2493 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
2494 (stricpy): Use TOLOWER instead of isupper/tolower.
2495 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
2496 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
2497 (lex_warn_invalid): Use ISPRINT instead of isprint.
2498 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
2499 (main): For gettext, also set the LC_CTYPE locate facet.
2500 (add_keepsyms_file): Use ISSPACE instead of isspace.
2501 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
2502 (is_num, parse_args): Use ISDIGIT instead of isdigit.
2503 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
2504 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
2505 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
2506 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
2507 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
2508 (quoteput): Use ISSPACE instead of isspace.
2509 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
2512 2001-09-18 Alan Modra <amodra@bigpond.net.au>
2514 * deffilep.y (def_stash_module): Constify "name" param.
2516 * pe-dll.c: Replace CONST with const throughout.
2517 (quick_symbol): Constify "n1", "n2", "n3" params.
2518 (make_singleton_name_thunk): Constify "import" param. Make
2519 "buffer_len" a size_t.
2520 (make_import_fixup_entry): Constify "name", "fixup_name",
2521 "dll_symname" params.
2522 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
2523 (pe_get32): Likewise.
2524 (pe_implied_import_dll): Likewise.
2526 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
2527 (sort_by_section_name): Likewise.
2529 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
2530 (make_import_fixup): Cast printf arg, rel->address to long rather
2532 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
2534 2001-09-15 Alan Modra <amodra@bigpond.net.au>
2536 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
2537 defines BufferSize. Increase buffer size by one.
2539 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
2541 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
2543 2001-09-14 Kevin Lo <kevlo@openbsd.org>
2545 * configure.tgt: Add arm-openbsd target.
2547 2001-09-12 H.J. Lu <hjl@gnu.org>
2549 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
2551 (ALL_64_EMULATIONS): Here.
2552 * Makefile.in: Regenerated.
2554 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2556 * emultempl/pe.em(make_import_fixup): change signature to
2557 take asection as well as arelec; we need this for proper
2558 error reporting. Only call pe_create_import_fixup() if
2559 there is no attempt to add a constant addend to the reloc;
2560 otherwise, report error condition.
2561 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
2562 since final argument is a pointer to make_import_fixup().
2563 Change call to cb() to match make_import_fixup() signature.
2564 (make_import_fixup_mark): make buffer_len unsigned.
2565 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
2567 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
2569 * ld.texinfo: add verbose documentation for auto-import
2570 direct-addressing workaround, to compliment the terse
2573 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
2575 * scripttempl/v850.sc: Add gcc_except_table sections.
2577 2001-09-11 Jeffrey A Law (law@cygnus.com)
2579 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
2580 * emulparams/h8300self.sh: Similarly.
2582 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
2584 * ld.texinfo (Options, --stack): Correct default value for stack
2587 2001-09-05 Tom Rix <trix@redhat.com>
2589 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
2591 2001-09-03 Andreas Jaeger <aj@suse.de>
2593 * emultempl/beos.em: Declare prototypes for comparions functions,
2596 2001-09-02 Andreas Jaeger <aj@suse.de>
2598 * emultempl/aix.em: Add missing prototype.
2599 * emultempl/lnk960.em: Likewise.
2600 * emultempl/vanilla.em: Likewise.
2601 * emultempl/armcoff.em: Likewise.
2602 * emultempl/armelf_oabi.em: Likewise.
2603 * emultempl/beos.em: Likewise.
2604 * emultempl/gld960c.em: Likewise.
2605 * emultempl/gld960.em: Likewise.
2607 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
2608 for prototype declaration.
2610 2001-08-31 Eric Christopher <echristo@redhat.com>
2611 Jason Eckhardt <jle@redhat.com>
2613 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
2615 2001-08-31 Andreas Jaeger <aj@suse.de>
2617 * emultempl/pe.em: Add missing prototypes.
2618 (gld_${EMULATION_NAME}_after_open): Remove extra args to
2619 pe_find_data_imports.
2620 (pr_sym): Add unused attribute.
2622 2001-08-29 Joel Sherrill <joel@OARcorp.com>
2624 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
2625 default from coff to elf.
2627 2001-08-29 Jeff Law <law@redhat.com>
2629 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
2631 * emulparams/h8300self.sh: Similarly.
2633 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
2635 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
2637 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
2638 * configure.tgt (h8300-*-elf*): New case.
2639 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
2640 * emulparams/h8300self.sh: New file.
2641 * Makefile.in: Regenerated.
2643 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
2645 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
2648 2001-08-27 Linus Nordberg <linus@swox.com>
2649 Alan Modra <amodra@bigpond.net.au>
2651 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
2652 (eelf64ppc.c, eelf64lppc.c): Add make targets.
2654 * Makefile.in: Regenerate.
2655 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2656 entries to correct alphabetical position.
2657 * emulparams/elf64ppc.sh: New.
2658 * emulparams/elf64lppc.sh: New.
2660 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2662 * ldmain.c (main): Declare BSIZE as static.
2664 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2666 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2667 into .rel.dyn resp. .rela.dyn if combreloc.
2668 (get_script): If .x linker script is equal to .xn, only put it
2669 once into the binary.
2670 Add .xc and .xsc scripts.
2671 (parse_args): Handle -z combreloc and -z nocombreloc.
2672 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2673 For .xc and .xsc scripts put all .rel* or .rela* input sections
2674 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2675 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2677 Strip trailing whitespace from script.
2678 Generate .xc and .xsc scripts if requested.
2679 * ldmain.c (main): Initialize link_info.combreloc and
2680 link_info.spare_dynamic_tags.
2681 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2682 (ld_options): Add --spare-dynamic-tags option.
2683 (parse_args): Likewise.
2684 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2685 * ldint.texinfo: Document .xc and .xsc linker scripts.
2686 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2688 2001-08-22 H.J. Lu <hjl@gnu.org>
2690 * emulparams/elf32fr30.sh: Add a newline.
2692 2001-08-21 Andreas Jaeger <aj@suse.de>
2694 * deffilep.y: Add missing prototypes.
2695 * pe-dll.c: Likewise.
2697 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2699 * ldlang.c (insert_pad): Fix typos in last patch.
2701 * ldlang.c: When traversing lang_statement_union_type lists,
2702 consistently use "header.next" rather than "next".
2703 * mpw-eppcmac.c: Likewise.
2704 * emultempl/beos.em: Likewise.
2705 * emultempl/hppaelf.em: Likewise.
2706 * emultempl/pe.em: Likewise.
2707 * ldlang.h (union lang_statement_union): Remove "next" field.
2709 * ldlang.c (insert_pad): Use offsetof macro.
2710 (lang_size_sections): Always neuter padding statements.
2711 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2713 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2714 passed to lang_size_sections.
2715 (pe_exe_fill_sections): Likewise.
2716 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2717 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2719 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2721 * emultempl/aix.em: Formatting fixes.
2723 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2725 * ldlang.c (insert_pad): Make use of an existing pad statement if
2726 available. Move code calculating alignment, adjusting section
2727 alignment power, and adjusting dot to ..
2728 (size_input_section): .. here. Remove unused relax param.
2729 (lang_size_sections): Change boolean `relax' param to boolean *.
2730 Adjust call to size_input_section. Make use of insert_pad to
2731 place pad after the assignment statement. If relaxing, zap
2733 (reset_memory_regions): Reset output_bfd section sizes too.
2734 (relax_again): Move to..
2735 (lang_process): ..here. Adjust call to lang_size_sections, and
2736 remove duplicated code.
2737 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2739 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2741 * ld.texinfo: Document that fill values now use the four least
2743 * emulparams/elf32fr30.sh (NOP): Update.
2744 * emulparams/elf32mcore.sh: Likewise.
2745 * emulparams/elf64_s390.sh: Likewise.
2746 * emulparams/elf_i386.sh: Likewise.
2747 * emulparams/elf_i386_be.sh: Likewise.
2748 * emulparams/elf_i386_chaos.sh: Likewise.
2749 * emulparams/elf_i386_ldso.sh: Likewise.
2750 * emulparams/elf_s390.sh: Likewise.
2751 * emulparams/elf_x86_64.sh: Likewise.
2752 * emulparams/i386moss.sh: Likewise.
2753 * emulparams/i386nw.sh: Likewise.
2754 * emulparams/m68kelf.sh: Likewise.
2755 * scripttempl/elf.sc: Update NOP comment.
2756 * scripttempl/elfi370.sc: Likewise.
2757 * scripttempl/elfm68hc11.sc: Likewise.
2758 * scripttempl/elfm68hc12.sc: Likewise.
2759 * scripttempl/nw.sc: Likewise.
2761 2001-08-15 Tom Rix <trix@redhat.com>
2763 * ldgram.y (saved_script_handle): Initialize to NULL.
2764 * ldmain.c (main): Change check on saved_script_handle.
2766 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2768 * emultempl/elf32.em: Formatting fixes.
2769 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2770 looking at sec->owner.
2771 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2772 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2773 unused code, and reorganize orphan section placement code.
2775 * ldlang.c (wild_doit): Rename to lang_add_section.
2776 * ldlang.h: Here too.
2777 * mpw-elfmips.c: And here.
2778 * emultempl/beos.em: And here.
2779 * emultempl/elf32.em: And here.
2780 * emultempl/hppaelf.em: And here.
2781 * emultempl/pe.em: And here.
2783 2001-08-13 Richard Henderson <rth@redhat.com>
2785 * emultempl/needrelax.em: New file.
2786 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2787 * Makefile.am (eelf64_ia64.c): Depend on it.
2788 * Makefile.in: Rebuild.
2790 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2792 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2793 output_section is set non-NULL.
2795 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2796 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2797 needlessly create an output_section_statement. Treat a correctly
2798 named output_section_statement with NULL bfd_section as compatible.
2800 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2802 * emultempl/generic.em: Support EXTRA_EM_FILE.
2803 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2804 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2805 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2806 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2807 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2808 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2809 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2810 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2811 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2812 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2814 2001-08-12 Richard Henderson <rth@redhat.com>
2816 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2817 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2818 scripttempl/v850.sc: Keep .jcr data.
2820 2001-08-12 H.J. Lu <hjl@gnu.org>
2821 Andrew Haley <aph@cambridge.redhat.com>
2822 Nick Clifton <nickc@redhat.com>
2824 * ldgram.y (had_script): Change name to saved_script_handle.
2825 Change type to file handle.
2826 * ld.h (had_script): Rename and retype.
2827 * ldfile.c (ldfile_open_command_file): Save the file handle
2828 used in saved_script_handle.
2829 * lexsup.c (parse_args): Do not allow -c option to alter
2830 saved_script_handle.
2831 * ldmain.c (main): Print out the linker script used if
2832 --verbose is given. Check saved_script_handle to obtain the
2833 external linker script used, or if NULL, dump the builtin
2835 * ld.texinfo: Document that --verbose now dumps the linker
2836 script used, regardless of whether it was an internal or an
2839 2001-08-10 Andreas Jaeger <aj@suse.de>
2841 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2843 * configure: Regenerate.
2845 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2847 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2849 * scripttempl/elf.sc: Move non-text .dynamic section before
2850 .plt/.got/.sdata* group.
2851 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2852 (OTHER_SDATA_SECTIONS): Add.
2853 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2855 * emulparams/crislinux.sh: Likewise.
2856 * emulparams/elf32b4300.sh: Likewise.
2857 * emulparams/elf32bmip.sh: Likewise.
2858 * emulparams/elf32bmipn32.sh: Likewise.
2859 * emulparams/elf32bsmip.sh: Likewise.
2860 * emulparams/elf32btsmip.sh: Likewise.
2861 * emulparams/elf32ebmip.sh: Likewise.
2862 * emulparams/elf32elmip.sh: Likewise.
2863 * emulparams/elf32l4300.sh: Likewise.
2864 * emulparams/elf32lmip.sh: Likewise.
2865 * emulparams/elf32lsmip.sh: Likewise.
2866 * emulparams/elf32ltsmip.sh: Likewise.
2867 * emulparams/elf64bmip.sh: Likewise.
2868 * emulparams/elf64btsmip.sh: Likewise.
2869 * emulparams/elf64ltsmip.sh: Likewise.
2871 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2873 * genscripts.sh: Source the emulparams script before each output
2874 script is generated so that variables like `RELOCATING' may affect
2875 variables defined in the emulparams script.
2877 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2879 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2882 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2883 ie. iterate over wild_statement.section_list.
2884 (gld${EMULATION_NAME}_place_orphan): Likewise.
2886 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2888 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2889 .fini[0-4] sections used by _exit
2890 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2891 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2892 * scripttempl/elfm68hc11.sc: Likewise.
2894 2001-08-03 H.J. Lu <hjl@gnu.org>
2896 * emultempl/beos.em (init): Add the missing initialization.
2898 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2900 * ld.texinfo (Input Section Basics): Clarify ordering of output
2902 * ldlang.c (callback_t): Add wildcard_list param.
2903 (walk_wild_section): Remove "section" param. Rewrite for
2904 lang_wild_statement_type change. Remove unique_section_p test.
2905 (walk_wild_file): Remove "section" param.
2906 (walk_wild): Remove "section" and "file" params.
2907 (lang_gc_wild): Likewise.
2908 (wild): Likewise. Modify for lang_wild_statement_type change.
2909 (wild_sort): Likewise. Add "sec" param.
2910 (gc_section_callback): Likewise.
2911 (output_section_callback): Likewise. Do unique_section_p test.
2912 (map_input_to_output_sections): Modify call to wild.
2913 (lang_gc_sections_1): Likewise.
2914 (print_wild_statement): Modify for lang_wild_statement_type
2916 (lang_add_wild): Replace filename, filenames_sorted param with
2917 filespec. Replace section_name, sections_sorted,
2918 exclude_filename_list with section_list.
2919 * ldlang.h (lang_add_wild): Here too.
2920 (lang_wild_statement_type): Replace section_name, sections_sorted,
2921 and exclude_filename_list with section_list.
2922 * ldgram.y (current_file): Delete.
2923 (%union): Add wildcard_list.
2924 (file_NAME_list): Set type to wildcard_list. Build a linked list
2925 rather than calling lang_add_wild for each entry.
2926 (input_section_spec_no_keep): Call lang_add_wild here instead.
2927 * ld.h (struct wildcard_list): Declare.
2928 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2930 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2932 * ldmain.c (main): initialize link_info.pei386_auto_import
2933 * pe-dll.c: new tables for auto-export filtering
2934 (auto_export): change API, pass abfd for contextual filtering.
2935 Loop thru tables of excluded symbols instead of comparing
2938 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2940 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2941 static variable current_sec (static struct sec *). Add
2942 forward declaration for add_bfd_to_link.
2943 (process_def_file): Don't export undefined symbols. Do not
2944 export symbols starting with "_imp__". Call auto_export()
2946 (pe_walk_relocs_of_symbol): New function.
2947 (generate_reloc): add optional extra debugging
2948 (pe_dll_generate_def_file): eliminate extraneous initial blank
2950 (make_one): enlarge symtab to make room for __nm__ symbols
2951 (DATA auto-import support).
2952 (make_singleton_name_thunk): New function.
2953 (make_import_fixup_mark): New function.
2954 (make_import_fixup_entry): New function.
2955 (pe_create_import_fixup): New function.
2956 (add_bfd_to_link): Specify that 'name' argument is a CONST
2958 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2959 declare new functions pe_walk_relocs_of_symbol and
2960 pe_create_import_fixup.
2961 * emultempl/pe.em: add new options --enable-auto-import,
2962 --disable-auto-import, and --enable-extra-pe-debug.
2963 (make_import_fixup): New function.
2964 (pe_find_data_imports): New function.
2965 (pr_sym): New function.
2966 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2967 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2970 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2972 * ld.texinfo: add additional documentation for
2973 --export-all-symbols. Document --out-implib,
2974 --enable-auto-image-base, --disable-auto-image-base,
2975 --dll-search-prefix, --enable-auto-import, and
2976 --disable-auto-import.
2977 * ldint.texinfo: Add detailed documentation on auto-import
2980 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2982 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2985 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2987 * Makefile.am: Update dependencies with "make dep-am".
2988 * Makefile.in: Regenerate
2990 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2992 * ldcref.c (check_section_sym_xref): New function.
2993 (check_nocrossrefs): Call it.
2994 (check_nocrossref): Interate over h->refs here instead of..
2995 (check_refs): ..here. Pass in the symbol name, section, and bfd
2996 rather than hash_entry pointers.
2997 (struct check_refs_info): Keep symbol name rather than hash entry.
2999 (check_reloc_refs): Tweak for above changes in check_refs_info.
3000 Only report references to section syms when symname is NULL to
3001 prevent duplicate messages for the same reloc.
3003 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
3005 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
3006 available. Do not print NULL trees.
3007 (exp_print_token): Print unknown tokens with values > 126 as
3008 decimal values not ASCII characters.
3010 * ldlang.c (lang_leave_overlay): If a region is specified assign
3011 it to all sections inside the overlay unless they have been
3012 assigned to the own, non-default, memory region.
3014 * README: Add header for consistency with other README files.
3016 2001-07-14 H.J. Lu <hjl@gnu.org>
3018 * emultempl/elf32.em (output_prev_sec_find): Never return
3019 bfd_abs_section_ptr, bfd_com_section_ptr nor
3020 bfd_und_section_ptr.
3022 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
3024 * Makefile.am (em32relf.c): Change dependency from generic.em to
3026 * Makefile.in: Regenerate.
3028 2001-07-14 matthew green <mrg@eterna.com.au>
3030 * configure.tgt (i386-*-netbsdelf*): New target.
3031 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
3033 2001-07-13 Jakub Jelinek <jakub@redhat.com>
3035 * emultempl/elf32.em (output_prev_sec_find): New.
3036 (place_orphan): Use it.
3038 2001-07-11 H.J. Lu <hjl@gnu.org>
3040 * ldmain.c (main): Fix typos in the last change.
3042 2001-07-11 Jakub Jelinek <jakub@redhat.com>
3044 * ldmain.c (main): Disallow -F and -f without -shared.
3046 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
3048 * emultempl/pe.em (after_open): Check for the output_bfd not
3049 having any coff_data structure allocated to it.
3051 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3053 * emultempl/elf32.em: Do not assuming that contents of the buffer
3054 returned from basename function will remain unchanged accross other
3057 2001-07-03 H.J. Lu <hjl@gnu.org>
3059 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
3060 2001-07-03. It creates dynamic entries even for static binaries.
3062 2001-07-03 Jakub Jelinek <jakub@redhat.com>
3064 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
3065 (DYNAMIC): Use it to reserve few dynamic entries for
3068 2001-06-27 Alan Modra <amodra@bigpond.net.au>
3070 * emulparams/hppa64linux.sh: New file.
3071 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
3072 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
3073 (ehppa64linux.c): Add rule to make it.
3075 * Makefile.in: Regenerate.
3077 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
3079 * ld.texinfo (Options, -r): Mention restrictions when using
3080 different object formats.
3082 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
3084 * ldlang.c (lang_check): Emit fatal error if relocatable link
3085 between different object flavours with relocations in input.
3087 2001-06-19 H.J. Lu <hjl@gnu.org>
3089 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
3090 (--version-script): Mention the language support.
3092 2001-06-19 H.J. Lu <hjl@gnu.org>
3094 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
3096 2001-06-18 H.J. Lu <hjl@gnu.org>
3098 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
3099 (diststuff): Add $(MANS).
3100 * Makefile.in: Regenerated.
3104 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
3106 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
3107 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
3108 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
3109 * ld.h (args_type): Remove member export_dynamic. All users
3110 changed to use struct bfd_link_info member.
3112 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
3113 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
3114 * Makefile.in: Regenerate.
3116 2001-06-18 H.J. Lu <hjl@gnu.org>
3118 * ldlang.c (init_os): Add the newline to the einfo call.
3119 (lang_check): Likewise.
3120 (lang_do_version_exports_section): Likewise.
3122 2001-06-15 H.J. Lu <hjl@gnu.org>
3124 * lexsup.c (parse_args); Save optind to report unrecognized
3127 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
3129 * ldlang.c (lang_check): Emit fatal error if relocatable link
3130 between different object flavours.
3132 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
3133 Set new link_info member export_dynamic.
3134 * ldmain.c (main): Initialize new link_info member export_dynamic.
3136 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
3138 * ldlang.c (walk_wild): Only call walk_wild_file if
3139 lookup_name returns something.
3140 (lookup_name): If load_symbols fails, return NULL.
3141 (load_symbols): Change to a boolean function.
3142 (open_input_bfds): If load_symbols fails then do not make the
3145 2001-06-08 Alan Modra <amodra@bigpond.net.au>
3147 * ldlang.c (record_bfd_errors): Remove.
3149 * emultempl/aix.em: Fix copyright dates.
3151 2001-06-07 Andreas Jaeger <aj@suse.de>
3153 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
3154 (TEXT_START_ADDR): Likewise.
3156 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
3158 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
3160 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3162 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
3164 2001-05-31 H.J. Lu <hjl@gnu.org>
3166 * ldlang.c (open_input_bfds): Don't change the bfd error
3167 handler whilst loading symbols.
3169 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
3171 * configure.tgt: Remove i370-mvs architecture, it is not currently
3174 2001-05-25 H.J. Lu <hjl@gnu.org>
3176 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3177 like emulparams/aixppc.sh.
3179 2001-05-25 H.J. Lu <hjl@gnu.org>
3181 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
3182 setting of output_filename after bfd_scan_arch.
3183 * emultempl/pe.em: Likewise.
3185 2001-05-25 H.J. Lu <hjl@gnu.org>
3187 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
3188 like emulparams/aixppc.sh.
3190 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
3191 instead of ${srcdir}/emultempl/stringify.sed.
3193 2001-05-25 Timothy Wall <twall@oculustech.com>
3195 * emulparams/elf64_aix.sh: Change settings to match IBM linker
3198 2001-05-25 Alan Modra <amodra@one.net.au>
3200 * configure.host: Replace linuxoldld with linux*oldld.
3201 * configure.tgt: Likewise.
3203 2001-05-24 H.J. Lu <hjl@gnu.org>
3205 * emultempl/stringify.sed: Removed again.
3207 2001-05-24 H.J. Lu <hjl@gnu.org>
3209 * emultempl/aix.em (OUTPUT_ARCH): Defined.
3210 (gld${EMULATION_NAME}_before_parse): Initialize
3211 ldfile_output_architecture, ldfile_output_machine and
3212 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
3213 * emultempl/beos.em: Likewise.
3214 * emultempl/elf32.em: Likewise.
3215 * emultempl/linux.em: Likewise.
3216 * emultempl/mipsecoff.em: Likewise.
3217 * emultempl/pe.em: Likewise.
3218 * emultempl/sunos.em: Likewise.
3220 2001-05-24 Tom Rix <trix@redhat.com>
3222 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
3223 udate import file format.
3224 (change_symbol_mode) New, same
3225 (is_syscall) New, same
3226 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
3227 * emulparams/aixppc64.sh : same
3228 * emulparams/aixrs6.sh : same
3229 * emulparams/ppcmacos.sh : same
3230 * emultempl/aix.em : use strtoull to parse options
3231 * Makefile.am : add eaixppc64 emulation for xcoff64
3232 * Makefile.in : same
3233 * configure.tgt : same
3235 * scripttempl/aix.sc : default text section offset to 0x10000000
3236 default data section offset to 0x20000000
3237 add .sv3264 and .sv64 pseudo sections
3238 loader and debug sections use the currect section offset.
3240 * emultempl/aix.em : Add xcoff64 support
3241 Add -binitfini support
3242 (gld${EMULATION_NAME}_before_parse) -binitfini
3243 (gld${EMULATION_NAME}_parse_args) same
3244 (gld${EMULATION_NAME}_before_allocation) format change for special
3247 * emulparams/aixppc64.sh : New file for xcoff64 support
3249 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
3251 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
3252 variable to avoid non-portable shell construct.
3254 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3256 * ldmain.c (get_emulation): Add -mips5 command line argument.
3258 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
3260 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
3261 (ELF_INTERPRETER_NAME): Define it.
3262 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
3264 * configure.tgt (targ_emul, targ_extra_emuls)
3265 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
3266 as primary, elf_i386 as extra.
3267 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
3268 (eelf_i386_ldso.c): New rule.
3269 * Makefile.in: Rebuilt.
3271 2001-05-22 Nick Clifton <nickc@redhat.com>
3273 * lexsup.c (ld_options): Allow -I to be an alias for
3274 --dynamic-linker. This is for Solaris compatability.
3275 * ld.texinfo: Document that -I can be used.
3278 2001-05-16 Alan Modra <amodra@one.net.au>
3280 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
3281 whether an input section is the first one assigned to an output
3283 Assorted formatting fixes.
3285 2001-05-14 DJ Delorie <dj@delorie.com>
3287 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
3288 * Makefile.in: Ditto.
3290 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3292 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
3293 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
3295 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
3297 2001-05-11 Jakub Jelinek <jakub@redhat.com>
3299 * ldlang.c (lang_process): Call bfd_merge_sections.
3301 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3303 * ldgram.y: Fix typo.
3305 2001-05-03 H.J. Lu <hjl@gnu.org>
3307 * emultempl/elf32.em: Include "libiberty.h".
3308 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
3309 basename of the bfd filename.
3310 (gld${EMULATION_NAME}_stat_needed): Likewise.
3311 (gld${EMULATION_NAME}_try_needed): Likewise.
3312 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
3314 2001-05-02 H.J. Lu <hjl@gnu.org>
3316 * emultempl/pe.em: Include <ctype.h>.
3318 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
3320 * emulparams/elf32openrisc.sh: New file.
3322 * Makefile.am: Add OpenRISC target.
3323 * Makefile.in: Regenerated.
3325 * configure.tgt: Add openrisc-*-* mapping.
3327 2001-05-02 Nick Clifton <nickc@redhat.com>
3329 * emultempl/aix.em: Replace buystring with xstrdup.
3330 * emultempl/beos.em: Replace buystring with xstrdup.
3332 2001-05-02 H.J. Lu <hjl@gnu.org>
3334 * ldfile.c: Include "libiberty.h".
3335 * ldlex.l: Likewise.
3337 * ldmisc.c (buystring): Removed.
3338 * ldmisc.h: Likewise.
3340 * ldfile.c: Replace buystring with xstrdup.
3341 * ldlang.c: Likewise.
3342 * ldlex.l: Likewise.
3343 * ldmain.c: Likewise.
3344 * ldmisc.c: Likewise.
3345 * lexsup.c: Likewise.
3346 * mpw-eppcmac.c: Likewise.
3348 2001-04-30 Andreas Jaeger <aj@suse.de>
3350 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
3352 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3354 * ldlang.c (load_symbols): Give emulation a chance
3355 to process unrecognized file before fatal error is
3356 reported, not after.
3358 2001-04-27 Sean McNeil <sean@mcneil.com>
3360 * configure.tgt: Add arm-vxworks target.
3361 * scripttempl/armcoff.sc: Support .text or .data as a section name
3365 2001-04-13 J.T. Conklin <jtc@redback.com>
3367 * ld.texinfo: Document --fatal-warnings.
3370 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
3371 warnings have been turned into errors.
3372 * lexsup.c (OPTION_WARN_FATAL): Define.
3373 (ld_options): Entry for --fatal-warnings.
3374 (parse_args): Handle OPTION_WARN_FATAL.
3375 * ld.h (ld_config_type): Add fatal_warnings field.
3377 2001-04-13 Jakub Jelinek <jakub@redhat.com>
3379 * ldmain.c (main): Default to discard_sec_merge.
3380 * lexsup.c (OPTION_DISCARD_NONE): Define.
3381 (ld_options): Add --discard-none.
3382 (parse_args): Handle OPTION_DISCARD_NONE.
3383 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
3384 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
3385 all its input sections match.
3387 2001-04-05 Steven J. Hill <sjhill@cotw.com>
3389 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
3390 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
3391 (eelf32ltsmip.c): New target.
3392 (eelf64btsmip.c): Likewise.
3393 (eelf64ltsmip.c): Likewise.
3394 * Makefile.in: Regenerated.
3396 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
3398 (mips*-*-linux-gnu*): Likewise.
3400 * emulparams/elf32ltsmip.sh: New. Traditional little endian
3402 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
3404 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
3407 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
3409 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
3410 correct value of __Stext here.
3411 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
3414 * emulparams/crislinux.sh: Remove FIXME.
3416 2001-04-02 Alan Modra <alan@linuxcare.com.au>
3418 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
3419 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
3421 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
3423 * configure.tgt (cris-*-*): Change default emulation to criself.
3424 (cris-*-*aout*): New rule.
3426 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
3428 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
3429 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
3431 2001-03-26 Andreas Jaeger <aj@suse.de>
3433 * ld.texinfo (Overview): Fix syntax in texi code.
3435 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3437 * ld.texinfo: Put @c man indications to generate the ld man page.
3438 When generating man, define all the variables. Define SEEALSO
3439 and SYNOPSIS. Re-organize some lines to avoid the cross references.
3440 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
3441 (ld.1): Generate from ld.texinfo.
3442 * Makefile.in: Regenerate.
3444 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
3446 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
3447 and '-fdata-sections'. Set the VMA of STABS sections to zero.
3449 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3451 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
3452 is an absolute path look only for this file and not along the path.
3454 2001-03-17 Ulrich Drepper <drepper@redhat.com>
3456 * emultempl/elf32.em (OPTION_GROUP): New macro.
3457 Add new option Bgroup to longopts.
3458 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
3459 (gld*_list_options): Add -Bgroup and -z defs.
3460 * ld.1: Document -Bgroup and -z defs.
3461 * ld.texinfo: Likewise.
3463 2001-03-07 Michael Meissner <meissner@redhat.com>
3465 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
3466 with sections created by -fdata-sections.
3467 (.dynbss,.bss): Ditto.
3469 2001-03-05 Alan Modra <alan@linuxcare.com.au>
3471 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
3472 after_allocation_default, not gld..._before_allocation.
3474 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3476 * configure.in (BFD_VERSION): New.
3477 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
3478 * configure: Regenerate.
3479 * Makefile.am: Run "make dep-am"
3480 * Makefile.in: Regenerate.
3482 2001-02-26 Timothy Wall <twall@cygnus.com>
3484 * emulparams/elf64_aix.sh: Add additional read-only sections;
3485 uncomment lines which are now required.
3487 2001-02-26 H.J. Lu <hjl@gnu.org>
3489 * ldlang.c (open_input_bfds): Set the bfd error handler so
3490 that problems can be caught whilst loading symbols.
3491 (record_bfd_errors): New function: Report BFD errors and mark
3492 the executable output as being invalid.
3494 2001-02-22 Timothy Wall <twall@cygnus.com>
3496 * configure.host: Add configuration for ia64-*-aix*.
3497 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
3498 Add dependencies for eelf64_aix.c.
3499 * Makefile.in: Regenerate.
3500 * configure.tgt: Add ia64-*-aix* mapping.
3501 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
3503 2001-02-20 H.J. Lu <hjl@gnu.org>
3505 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
3506 false if we found the file.
3508 2001-02-18 David O'Brien <obrien@FreeBSD.org>
3510 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
3511 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
3513 2001-02-18 lars brinkhoff <lars@nocrew.org>
3515 * Makefile.am: Add PDP-11 target.
3516 * configure.tgt: Likewise.
3517 * emulparams/pdp11.sh: New file.
3519 2001-02-17 David O'Brien <obrien@FreeBSD.org>
3521 * configure.host: Add a generic FreeBSD configuration entry such that
3522 all [modern] FreeBSD systems on all platforms will look the same.
3524 2001-02-14 H.J. Lu <hjl@gnu.org>
3526 * configure.tgt: Remove mention of earmelf_linux26.
3528 2001-02-13 Richard Henderson <rth@redhat.com>
3530 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
3532 2001-02-13 H.J. Lu <hjl@gnu.org>
3534 * ldexp.h (node_type): Add etree_provided.
3535 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
3536 type to etree_provided if defined by PROVIDE. Allow updating
3538 (exp_print_tree): Handle etree_provided.
3539 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
3542 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3544 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
3545 .IA_64.unwind.* pattern to unwind table section and
3546 .IA_64.unwind_info* pattern to unwind info section.
3548 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3550 * Makefile.am: Add linux target for S/390.
3551 * Makefile.in: Likewise.
3552 * configure.host: Likewise.
3553 * configure.tgt: Likewise.
3554 * emulparams/elf64_s390.sh: New file.
3555 * emulparams/elf_s390.sh: New file.
3557 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3559 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
3561 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
3563 2001-02-06 Philip Blundell <philb@gnu.org>
3565 * Makefile.am: Remove mention of earmelf_linux26.
3566 * Makefile.in: Regenerate.
3568 2001-02-04 Philip Blundell <philb@gnu.org>
3570 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
3571 * emulparams/armelf_linux26.sh: Delete.
3572 * configure.tgt: Remove mention of armelf_linux26 emulation.
3574 2001-02-01 Nick Clifton <nickc@redhat.com>
3576 * ld.1: Replace occurances of -oformat with --oformat.
3578 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
3580 * ldlang.c (lang_leave_overlay): Don't set lma_region when
3581 load_base is specified.
3583 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
3585 * emultempl/elf32.em: Correct spelling in comments and listed
3588 2001-01-23 Alan Modra <alan@linuxcare.com.au>
3590 * ldlang.c (lang_leave_overlay): Only set lma_region from the
3591 default for the first section of a group of overlay sections.
3593 2001-01-22 Alan Modra <alan@linuxcare.com.au>
3595 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
3596 * Makefile.in: Regenerate.
3597 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
3598 Check for null tool_dir.
3600 2001-01-16 Jim Wilson <wilson@redhat.com>
3602 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
3603 and IA_64.unwind.info.
3605 2001-01-16 H.J. Lu <hjl@gnu.org>
3607 * ldlang.c (lang_check): Merge the private data only if the
3608 input file has contents.
3610 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3612 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
3614 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
3615 enabling search for libmilli. On a relocatable link, make .text
3617 (LDEMUL_AFTER_PARSE): Define.
3618 (hppaelf_finish): Correct spelling of relocatable in comments.
3620 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3621 rummage through the script for sections on the unique list.
3622 Correct length of strncmp for ".note".
3623 (gld${EMULATION_NAME}_check_needed): Rearrange function.
3625 * ldlang.c (unique_section_list): New var.
3626 (unique_section_p): New function.
3627 (walk_wild_section): Don't match sections on unique_section_list.
3628 (lang_add_unique): New function.
3629 Correct spelling of relocatable in comments.
3631 * ldlang.h (struct unique_sections): Declare.
3632 (unique_section_list): Declare.
3633 (unique_section_p): Declare.
3634 (lang_add_unique): Declare.
3636 * lexsup.c (ld_options): Allow --unique to take an optional arg.
3637 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
3639 * ld.texinfo (--unique): Update.
3641 2001-01-13 Nick Clifton <nickc@redhat.com>
3643 * lexsup.c (parse_args): Remove spurious white space.
3645 2001-01-12 Nick Clifton <nickc@redhat.com>
3647 * lexsup.c (parse_args): Update copyright date.
3649 2001-01-12 Philip Blundell <pb@futuretv.com>
3651 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3653 2001-01-10 Kazu Hirata <kazu@hxi.com>
3655 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3656 * scripttempl/h8300h.sc: Fix formatting.
3657 * scripttempl/h8300s.sc: Likewise.
3658 * scripttempl/h8500.sc: Likewise.
3659 * scripttempl/h8500b.sc: Likewise.
3660 * scripttempl/h8500c.sc: Likewise.
3661 * scripttempl/h8500m.sc: Likewise.
3662 * scripttempl/h8500s.sc: Likewise.
3664 2000-01-07 David O'Brien <obrien@BSDi.com>
3666 * emultempl/elf32.em: Only perform Linux ld hints processing when
3669 2001-01-07 Philip Blundell <philb@gnu.org>
3671 * ld.texinfo (Bug Reporting): Update email address for reports.
3673 2000-12-31 Nick Clifton <nickc@redhat.com>
3675 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3676 options by checking for a return value of '?' not -1.
3678 2000-12-28 Nick Clifton <nickc@redhat.com>
3680 * lexsup.c (struct ld_option): Add new enum value:
3682 (ld_options[]): Change -omagic, -output and -oformat options
3683 to be EXACTLY_TWO_DASHES.
3684 (OUTPUT_COUNT): Use ARRAY_SIZE.
3685 (parse_args): Change parameter 'argc' to unsigned.
3686 Place EXACTLY_TWO_DASHES options into new really_longopts
3688 If getopt_long_only fails, try calling getopt_long using the
3689 really_longopts array.
3690 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3693 * ldlex.h: Fix prototype of parse_args.
3695 * ld.texinfo: Document that long options starting with 'o'
3696 must be preceeded by two dashes. Change example of a single
3697 dashed long option from -oformat to -trace-symbol.
3699 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3701 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3702 (longopts[]): New --no-default-excludes option.
3703 (gld_${EMULATION_NAME}_list_options): Document.
3704 (gld_${EMULATION_NAME}_parse_args): Handle.
3706 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3708 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3709 whitespace, it breaks the K&R C preprocessor.
3711 2000-12-11 DJ Delorie <dj@redhat.com>
3713 * ld.texinfo: Add notes about --whole-archive and gcc.
3715 2000-11-18 Fred Fish <fnf@be.com>
3717 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3718 (ld_options): Entry for --allow-shlib-undefined.
3719 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3720 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3722 * ld.texinfo: Document new command line switch.
3724 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3726 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3727 .fixup is actually read/write.
3728 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3729 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3730 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3732 2000-12-11 Jan Hubicka <jh@suse.cz>
3734 * NEWS: Add note about x86_64 architecture.
3736 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3738 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3739 Set DWARF2 sections to a VMA of zero.
3741 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3743 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3745 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3746 (sparc*-*-rtems*): Switched from a.out to ELF.
3748 2000-11-30 Jan Hubicka <jh@suse.cz>
3750 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3751 (eelf_x86_64.c): New.
3752 * Makefile.in: Regenerate.
3753 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3754 * emulparams/elf_x86_64.sh: New.
3756 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3758 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3759 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3761 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3762 merging non-a.out sections into CONSTRUCTING.
3764 2000-11-28 Nick Clifton <nickc@redhat.com>
3766 * ld.1 (COPYING): Mention that the GNU Free Documentation
3767 License is present in the sources, but not the output, and
3768 also available from the GNU website.
3769 (GNU Free Documentation License): Comment out this section.
3771 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3773 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3776 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3778 * ld.1: Remove old date so it does not give the impression the manpage
3781 2000-11-24 Nick Clifton <nickc@redhat.com>
3783 * configure.tgt (xscale-coff): Add target.
3784 (xscale-elf): Add target.
3786 2000-11-24 Fred Fish <fnf@be.com>
3788 * ldmain.c (main): Remove redundant init of config.make_executable
3791 2000-11-15 Richard Henderson <rth@redhat.com>
3793 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3795 2000-11-14 Kazu Hirata <kazu@hxi.com>
3797 * scripttempl/h8300.sc: Fix formatting.
3798 * scripttempl/h8300h.sc: Likewise.
3799 * scripttempl/h8300s.sc: Likewise.
3801 2000-11-14 Denis Chertykov <denisc@overta.ru>
3803 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3805 2000-11-09 Philip Blundell <pb@futuretv.com>
3807 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3808 around orphan sections whose names can be represented in C.
3810 2000-11-07 Jim Wilson <wilson@redhat.com>
3812 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3813 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3815 2000-11-06 Nick Clifton <nickc@redhat.com>
3817 * ld.texinfo: Add GNU Free Documentation License.
3818 * ldint.texinfo: Add GNU Free Documentation License.
3819 * ld.1: Add GNU Free Documentation License.
3821 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3823 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3824 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3826 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3827 Move 2000-11-02 Makefile.in changes to this file.
3828 * Makefile.in: Regenerate.
3830 2000-11-03 Nick Clifton <nickc@redhat.com>
3832 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3833 constructors and destructors.
3834 * scripttempl/h8300h.sc: Ditto.
3835 * scripttempl/h8300s.sc: Ditto.
3836 * scripttempl/h8500.sc: Ditto.
3837 * scripttempl/h8500b.sc: Ditto.
3838 * scripttempl/h8500c.sc: Ditto.
3839 * scripttempl/h8500m.sc: Ditto.
3840 * scripttempl/h8500s.sc: Ditto.
3841 * scripttempl/v850.sc: Ditto.
3842 * scripttempl/w65.sc: Ditto.
3843 * scripttempl/z8000.sc: Ditto.
3845 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3847 * Makefile.in (e_i386_chaos.c): New rule.
3848 (ALL_EMULATIONS): Added e_i386_chaos.o.
3849 * emulparams/elf_i386_chaos.sh: New file.
3850 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3852 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3854 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3855 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3856 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3857 library path suffix.
3858 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3860 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3862 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3863 for consecutive sections.
3865 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3867 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3869 * ld.texinfo: Added notes about this new option.
3871 2000-10-16 Nick Clifton <nickc@redhat.com>
3873 * emultempl/pe.em (_after_open): Add tests of return values from
3874 bfd functions. Emit appropriate error messages if necessary.
3876 2000-10-13 Nick Clifton <nickc@redhat.com>
3878 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3879 local variables - they are not used, but leave in the call to
3880 bfd_canonicalize_symtab.
3881 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3882 pe_dll_search_prefix.
3884 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3886 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3887 (longopts): New --dll-search-prefix option.
3888 (gld_${EMULATION_NAME}_list_options): Document.
3889 (gld_${EMULATION_NAME}_parse_args): Handle.
3890 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3891 dynamically, search for a dll named '<prefix><basename>.dll'
3892 in preference to 'lib<basename>.dll' if --dll-search-prefix
3895 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3897 * ldlang.c (section_already_linked): Set kept_section instead of
3900 2000-10-10 Kazu Hirata <kazu@hxi.com>
3902 * deffile.h: Fix formatting.
3903 * lexsup.c: Likewise.
3906 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3908 * pe-dll.c (make_one): Do not generate code thunk for DATA
3910 (process_def_file): deduce DATA flag for auto-export sumbols.
3912 2000-10-09 Kazu Hirata <kazu@hxi.com>
3914 * ld.h: Fix formatting.
3915 * ldcref.c: Likewise.
3916 * ldctor.h: Likewise.
3917 * ldemul.c: Likewise.
3918 * ldemul.h: Likewise.
3919 * ldexp.c: Likewise.
3920 * ldexp.h: Likewise.
3921 * ldfile.c: Likewise.
3922 * ldfile.h: Likewise.
3923 * ldlang.c: Likewise.
3924 * ldlang.h: Likewise.
3925 * ldmain.c: Likewise.
3926 * pe-dll.c: Likewise.
3928 * pe-dll.c: Revert some formatting fixes.
3930 2000-10-08 Kazu Hirata <kazu@hxi.com>
3932 * pe-dll.c: Fix formatting.
3934 2000-10-05 Kazu Hirata <kazu@hxi.com>
3936 * ldlang.c: Fix formatting.
3938 2000-10-03 DJ Delorie <dj@redhat.com>
3940 * pe-dll.c (fill_edata): initialize entire block
3941 (make_one): fill in correct section.
3943 2000-10-03 Kazu Hirata <kazu@hxi.com>
3945 * ldexp.c: Fix formatting.
3947 2000-10-02 DJ Delorie <dj@redhat.com>
3949 * emultempl/pe.em (gld_*_after_open): detect case where there two
3950 import libraries for same dll; rename one to ensure proper link
3953 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3955 (generate_edata): fix typo
3957 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3959 * scripttempl/crisaout.sc (ENTRY): Now __start.
3960 (.text): Add default setting for __start.
3961 Remove CONSTRUCTORS handling.
3962 (/DISCARD/): Add .gnu.warning.*.
3963 * emulparams/crislinux.sh (ENTRY): Now __start.
3964 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3965 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3966 (ENTRY): Now __start.
3967 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3968 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3970 2000-09-29 Kazu Hirata <kazu@hxi.com>
3972 * deffile.h: Fix formatting.
3974 * ldcref.c: Likewise.
3975 * ldctor.c: Likewise.
3976 * ldctor.h: Likewise.
3977 * ldemul.c: Likewise.
3978 * ldemul.h: Likewise.
3979 * ldexp.c: Likewise.
3980 * ldexp.h: Likewise.
3981 * ldfile.c: Likewise.
3982 * ldfile.h: Likewise.
3983 * ldlang.c: Likewise.
3984 * ldlang.h: Likewise.
3985 * lexsup.c: Likewise.
3987 * pe-dll.c: Likewise.
3989 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3991 * pe-dll.c (process_def_file): Uninitialized data wasn't
3992 exported with --export-all-symbols switch.
3994 2000-09-28 DJ Delorie <dj@redhat.com>
3996 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3997 noname work properly.
3999 2000-09-28 Alan Modra <alan@linuxcare.com.au>
4001 * ld.texinfo (HPPA ELF32): New section.
4003 * emultempl/hppaelf.em (group_size): New.
4004 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
4005 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
4006 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
4007 options to prevent abbreviations matching.
4008 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
4009 (PARSE_AND_LIST_ARGS_CASES): Handle it.
4011 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4013 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
4014 on the m68*-*-elf target. Make it support COFF input objects.
4016 2000-09-21 Kazu Hirata <kazu@hxi.com>
4018 * ldmain.c: Fix formatting.
4019 * ldmisc.c: Likewise.
4020 * ldver.c: Likewise.
4021 * ldwrite.c: Likewise.
4023 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4025 * ldwrite.c (clone_section): Silence gcc warnings.
4027 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4029 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
4030 out of memory failure.
4032 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
4033 (clone_section): Handle out of memory failures. Rename var to
4034 avoid c++ reserved word.
4036 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4038 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
4039 stub_name param to stub_sec_name.
4040 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
4042 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4044 * emultempl/m68kelf.em: New file.
4045 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
4046 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
4047 * Makefile.in: Regenerate.
4049 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4051 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
4054 2000-09-13 Nick Clifton <nickc@redhat.com>
4056 * ldmain.c (multiple_definition): Disable relaxation if
4057 multiple symbol definitions are encountered - otherwise the
4058 linker could abort with an assertion failure.
4060 2000-09-10 Nick Clifton <nickc@redhat.com>
4062 * mri.c: Fix formatting.
4064 2000-09-07 H.J. Lu <hjl@gnu.org>
4066 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
4067 * configure: Rebuild.
4069 2000-09-07 H.J. Lu <hjl@gnu.org>
4071 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
4072 * Makefile.in: Rebuild.
4074 2000-09-07 Alan Modra <alan@linuxcare.com.au>
4076 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
4077 broken list handling. Create __start_SECNAME and __stop_SECNAME
4078 when no place-holder. Add some comments. Test both SEC_CODE and
4079 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
4080 Handle case where no output section statement created.
4082 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
4084 * configure.tgt (sh-*-linux*): Added.
4085 * Makefile.am: Added eshelf_linux and eshlelf_linux.
4086 * Makefile.in: Rebuilt.
4087 * emulparams/shelf_linux.sh: New file.
4088 * emulparams/shlelf_linux.sh: New file.
4090 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4092 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4093 try shuffling sections when the orphan happens to be the place
4094 holder. Keep count of unique section names generated so we speed
4095 the search for a new name.
4097 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4099 * configure: Rebuilt with new libtool.m4.
4101 2000-09-05 Nick Clifton <nickc@redhat.com>
4103 * Makefile.in: Regenerate.
4104 * aclocal.m4: Regenerate.
4105 * configure: Regenerate.
4106 * config.in: Regenerate.
4107 * po/ld.pot: Regenerate.
4109 * ldint.texinfo: Remove CVS revision marker - it foils local
4112 * emultempl/ticoff.em: Remove extraneous comma.
4114 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4116 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
4117 to stub section flags.
4118 (hppa_for_each_input_file_wrapper): New.
4119 (hppa_lang_for_each_input_file): New.
4120 (lang_for_each_input_file): Define to call above.
4121 (multi_subspace): New.
4122 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
4123 (PARSE_AND_LIST_PROLOGUE): Define.
4124 (PARSE_AND_LIST_LONGOPTS): Define.
4125 (PARSE_AND_LIST_OPTIONS): Define.
4126 (PARSE_AND_LIST_ARGS_CASES): Define.
4127 (hppaelf_finish): Call elf32_hppa_set_gp.
4128 (hppaelf_set_output_arch): Remove.
4129 (LDEMUL_SET_OUTPUT_ARCH): Remove.
4131 * emulparams/hppalinux.sh (ELFSIZE): Define.
4133 (OTHER_READONLY_SECTIONS): Define.
4135 (GENERATE_SHLIB_SCRIPT): Define.
4137 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
4138 to const throughout. Change `void *' to `PTR' throughout.
4139 (lang_memory_default): Function is local to file, add `static'.
4141 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
4142 (ehppalinux.c): Likewise.
4143 (earmelf.c): Likewise.
4144 (earmelf_linux.c): Likewise.
4145 (earmelf_linux26.c): Likewise.
4146 * Makefile.in: Regenerate.
4148 * ld.h (ld_config_type): Add unique_orphan_sections.
4149 * lexsup.c (OPTION_UNIQUE): Define.
4150 (ld_options): Add "--unique".
4151 (parse_args): Handle it.
4152 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
4153 search for an existing output section if unique_orphan_sections is
4154 set. Make use of bfd_get_unique_section_name rather than
4155 duplicating code here.
4156 * ld.texinfo: Describe --unique.
4158 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
4159 optional arg to split-by-file.
4160 (parse_args): Handle them.
4161 * ld.texinfo: Update description of these options.
4162 * ldwrite.c (clone_section): Pass in the section name. Replace
4163 local code with bfd_get_unique_section_name.
4164 (split_sections): Tidy code and comments. Use a list traversal
4165 more appropriate to the list construction. Handle cooked section
4166 sizes. Split when split_by_reloc reached rather than exceeded.
4167 Track section size and split when split_by_file reached. Fix
4168 link_order_tail (even though it's not used).
4169 (ldwrite): Modify condition for calling split_sections to suit
4170 changed split_by_reloc and split_by_file.
4171 * ldmain.c (main): Init config.split_by_reloc and
4172 config.split_by_file to -1.
4173 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
4174 Change split_by_file to bfd_size_type.
4176 2000-09-02 Nick Clifton <nickc@redhat.com>
4178 * configure.in: Increase version number to 2.10.91.
4179 * NEWS: Mention new ability to support removal of duplicate DWARF2
4181 * configure: Regenerate.
4182 * aclocal.m4: Regenerate.
4183 * config.in: Regenerate.
4185 2000-09-02 Daniel Berlin <dberlin@redhat.com>
4187 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
4189 * scripttempl/elf32avr.sc: Ditto.
4190 * scripttempl/elfd10v.sc: Ditto.
4191 * scripttempl/elfd30v.sc: Ditto.
4192 * scripttempl/elfi370.sc: Ditto.
4193 * scripttempl/elfm68hc11.sc: Ditto.
4194 * scripttempl/elfm68hc12.sc: Ditto.
4195 * scripttempl/elfi386beos.sc: Ditto.
4196 * scripttempl/v850.sc: Ditto.
4198 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
4200 * acinclude.m4: Include libtool and gettext macros from the
4202 * aclocal.m4, configure: Rebuilt.
4204 2000-08-25 Nick Clifton <nickc@redhat.com>
4206 * ldlang.c (open_output): When choosing the target for a
4207 particular endianness, do nothing if the target is not
4210 2000-08-25 H.J. Lu <hjl@gnu.org>
4212 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
4213 check -rpath nor LD_RUN_PATH for cross link.
4214 * ld.texinfo: Document the change.
4216 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
4218 * NEWS: Mention support for CRIS.
4220 2000-08-23 H.J. Lu <hjl@gnu.org>
4222 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
4223 the current runpath list from bfd_elf_get_runpath_list ()
4226 2000-08-22 H.J. Lu <hjl@gnu.org>
4228 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
4229 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
4230 LD_LIBRARY_PATH for native linker. Display the needed DSO if
4231 trace_file_tries is non-zero.
4232 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
4233 if trace_file_tries is non-zero.
4235 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
4238 2000-08-14 Jason Eckhardt <jle@cygnus.com>
4240 * NEWS: Mention i860 support.
4242 2000-08-14 Andreas Schwab <schwab@suse.de>
4244 * scripttempl/elf.sc: Fix last change to use correct comment
4247 2000-08-10 Geoff Keating <geoffk@cygnus.com>
4249 * scripttempl/elf.sc: Add a comment giving the correspondence
4250 between sections, per-datum sections, and linkonce sections. Make
4251 the comment true even for .bss, .sdata, .sdata2, .sbss, and
4254 2000-08-10 Jason Eckhardt <jle@cygnus.com>
4256 * emulparams/elf32_i860.sh: New file.
4257 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
4258 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
4259 (eelf32_i860.c): New rule.
4260 * Makefile.in: Regenerate.
4262 2000-08-10 Nick Clifton <nickc@cygnus.com>
4264 * emulparams/mipspe.sh (ENTRY): Add definition.
4266 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
4268 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
4271 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
4273 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
4274 the final size of .bss section.
4275 * scripttempl/elfm68hc12.sc: Likewise.
4277 2000-08-04 Alan Modra <alan@linuxcare.com.au>
4279 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
4280 gld${EMULATION_NAME}_parse_args for consistency. Combine
4281 lastoptind and prevoptind vars, and keep track of last optind.
4282 (gld_${EMULATION_NAME}_list_options): Rename to
4283 gld${EMULATION_NAME}_list_options.
4285 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
4287 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
4288 (i586-sco-sysv5uw7.1.0).
4290 2000-07-27 H.J. Lu <hjl@gnu.org>
4292 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
4293 (PARSE_AND_LIST_PROLOGUE): New.
4294 (PARSE_AND_LIST_LONGOPTS): Likewise.
4295 (PARSE_AND_LIST_OPTIONS): Likewise.
4296 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4297 (PARSE_AND_LIST_EPILOGUE): Likewise.
4299 2000-07-28 Alan Modra <alan@linuxcare.com.au>
4301 * emultempl/armelf.em: Elide functions common to elf32.em,
4302 ie. most of the file.
4303 (arm_elf_after_open): New. Do arm specific things then call
4304 gld${EMULATION_NAME}_after_open.
4305 (arm_elf_before_allocation): New. Call
4306 gld${EMULATION_NAME}_before_allocation then do arm specifics.
4307 (PARSE_AND_LIST_PROLOGUE): Define.
4308 (PARSE_AND_LIST_SHORTOPTS): Define.
4309 (PARSE_AND_LIST_LONGOPTS): Define.
4310 (PARSE_AND_LIST_OPTIONS): Define.
4311 (PARSE_AND_LIST_ARGS_CASES): Define.
4312 (LDEMUL_AFTER_OPEN): Define.
4313 (LDEMUL_BEFORE_ALLOCATION): Define.
4314 (LDEMUL_BEFORE_PARSE): Define.
4315 (LDEMUL_FINISH): Define.
4317 * emultempl/hppaelf.em: Similarly zap most of this file.
4318 (hppaelf_add_stub_section): Prototype.
4319 (hppaelf_layaout_sections_again): Prototype.
4320 (hook_in_stub): Prototype.
4321 (LDEMUL_SET_OUTPUT_ARCH): Define.
4322 (LDEMUL_FINISH): Define.
4323 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
4325 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
4326 (EXTRA_EM_FILE): New.
4327 * emulparams/armelf_linux.sh: Likewise.
4328 * emulparams/armelf_linux26.sh: Likewise.
4329 * emulparams/hppalinux.sh: Likewise.
4330 * emulparams/hppaelf.sh: Likewise.
4333 * emultempl/elf32.em: Fix formatting.
4334 (EXTRA_EM_FILE): Source it.
4335 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
4336 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
4337 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
4338 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
4339 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
4340 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
4341 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
4342 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
4343 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
4344 allow functions in this file to be overridden.
4345 (PARSE_AND_LIST_SHORTOPTS): Handle it.
4347 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
4349 * emultempl/elf32.em: Reorganize file.
4351 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
4353 * emulparams/elf64alpha.sh: Implement "-taso" emulation
4354 specific option to fit 64-bit executable in the lower
4355 31-bit address range. This is done by changing start
4356 address of .interp (the very first section of executable)
4357 and then setting EF_ALPHA_32BIT elf header flag.
4359 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4361 * emultempl/m68kcoff.em: New file.
4362 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
4363 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
4365 * Makefile.in: Regenerate.
4367 2000-07-20 H.J. Lu <hjl@gnu.org>
4369 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
4370 and "disable-new-dtags" to stop getopt from treating -d/-e as
4371 abbreviations for these options.
4373 2000-07-20 H.J. Lu <hjl@gnu.org>
4375 * ld.texinfo: Add documentation for --disable-new-dtags and
4378 * ldmain.c (main): Initialize link_info.new_dtags to false.
4380 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
4381 --disable-new-dtags and --enable-new-dtags.
4382 (gld_${EMULATION_NAME}_list_options): Likewise.
4384 2000-07-05 Kenneth Block <krblock@computer.org>
4386 * lexsup.c: Add optional style to demangle switch
4387 * ld.texinfo: Document optional style to demangle switch.
4389 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
4391 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
4393 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
4394 Regenerate dependencies.
4395 * Makefile.in: Rebuild.
4396 * configure.tgt (cris-*-*): New target.
4397 * emulparams/crisaout.sh, emulparams/criself.sh,
4398 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
4399 * po/POTFILES.in, po/ld.pot: Regenerate.
4401 2000-07-20 H.J. Lu <hjl@gnu.org>
4403 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
4404 Print out ignored -z options.
4406 2000-07-19 H.J. Lu <hjl@gnu.org>
4408 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
4409 (PARSE_AND_LIST_PROLOGUE): New.
4410 (PARSE_AND_LIST_LONGOPTS): Likewise.
4411 (PARSE_AND_LIST_OPTIONS): Likewise.
4412 (PARSE_AND_LIST_ARGS_CASES): Likewise.
4414 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
4416 * lexsup.c (ld_options): Comment out 'z'.
4417 (parse_args): Likewise.
4419 * emultempl/elf32.em: Include "elf/common.h".
4420 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
4422 (gld_${EMULATION_NAME}_list_options): Likewise.
4424 * ld.texinfo: Add documentation for the recognized -z options.
4426 2000-07-19 H.J. Lu <hjl@gnu.org>
4428 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
4429 bfd_elf_set_dt_needed_soname ().
4431 2000-07-18 DJ Delorie <dj@cygnus.com>
4433 * pe-dll.c (pe_dll_id_target): check object target name also
4435 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
4437 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
4438 ${INIT_END} if relocating.
4439 (.fini): Likewise ${FINI_START} and ${FINI_END}.
4441 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
4443 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
4444 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
4445 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
4446 errors introduced by the old dynamic lib search order.
4448 2000-07-17 DJ Delorie <dj@cygnus.com>
4450 * pe-dll.c (process_def_file): auto-export data items also
4451 (pe_process_import_defs): also see if _imp_ form needed
4453 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
4455 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
4456 for dll import libraries
4458 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
4460 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
4461 gcc 2.95.2 and later.
4463 2000-07-11 Kazu Hirata <kazu@hxi.com>
4465 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
4468 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4470 * ldemul.h (struct lang_input_statement_struct): Remove forward
4472 (struct search_dirs): Likewise.
4473 * ldfile.h (struct lang_input_statement_struct): Likewise.
4474 Protect file from multiple inclusion.
4475 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
4476 declaration from macro to file scope.
4478 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
4479 * ldgram.y: Likewise here.
4480 * ldlang.c: And here.
4481 * ldmain.c: And here.
4482 * mpw-elfmips.c: And here.
4483 * mpw-eppcmac.c: And here.
4484 * emultempl/aix.em: And here.
4485 * emultempl/armcoff.em: And here.
4486 * emultempl/armelf.em: And here.
4487 * emultempl/armelf_oabi.em: And here.
4488 * emultempl/beos.em: And here.
4489 * emultempl/elf32.em: And here.
4490 * emultempl/hppaelf.em: And here.
4491 * emultempl/linux.em: And here.
4492 * emultempl/lnk960.em: And here.
4493 * emultempl/pe.em: And here.
4494 * emultempl/sunos.em: And here.
4495 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
4496 * mpw-idtmips.c: Ditto.
4497 * emultempl/generic.em: Ditto.
4498 * emultempl/gld960.em: Ditto.
4499 * emultempl/gld960c.em: Ditto.
4500 * emultempl/mipsecoff.em: Ditto.
4501 * emultempl/ticoff.em: Ditto.
4502 * emultempl/vanilla.em: Ditto.
4504 * pe-dll.c: Include ldfile.h
4505 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
4507 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
4508 arguments to bfd_elf32_size_dynamic_sections call.
4509 (gldelf32ebmip_place_orphan): Add missing arguments to
4510 lang_leave_output_section_statement call.
4512 2000-07-10 H.J. Lu <hjl@gnu.org>
4514 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
4516 (strhash): Likewise.
4517 (compute_dll_image_base): Likewise.
4518 (pe_undef_found_sym): Likewise.
4519 (pe_undef_cdecl_match): Likewise.
4520 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
4521 argument "arch" with ATTRIBUTE_UNUSED.
4523 2000-07-10 Alan Modra <alan@linuxcare.com.au>
4525 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
4527 From Ryan Bradetich <rbradetich@uswest.net>
4528 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
4530 2000-07-09 Alan Modra <alan@linuxcare.com.au>
4532 Changes to create multiple linker stubs, positioned immediately
4533 before the section where they are required.
4534 * emultempl/hppaelf.em: Include elf32-hppa.h.
4535 (stub_sec, file_chain): Delete.
4536 (hppaelf_create_output_section_statements): Don't make a stub
4538 (hook_stub_info): New struct.
4539 (hook_in_stub): New function.
4540 (hppaelf_add_stub_section): New function.
4541 (hppaelf_finish): Do nothing for relocateable links. Modify the
4542 call to elf32_hppa_size_stubs. Move code for updating section
4544 (hppaelf_layaout_sections_again): ..to here, a new function.
4546 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
4547 broken list handling. Pass in a pointer to the list.
4548 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
4550 (hppaelf_before_parse): Prototype.
4551 (hppaelf_set_output_arch): Prototype.
4552 (hppaelf_create_output_section_statements): Prototype.
4553 (hppaelf_delete_padding_statements): Prototype.
4554 (hppaelf_finish): Prototype.
4557 * emultempl/hppaelf.em: Include ctype.h.
4558 (struct orphan_save): New.
4559 (gld${EMULATION_NAME}_place_orphan): New.
4560 (output_rel_find): New.
4561 (hppaelf_get_script): Update from elf32.em.
4562 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
4563 Change emulation_name field to "${EMULATION_NAME}". Add
4564 gld${EMULATION_NAME}_place_orphan.
4566 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
4567 ehppalinux.o, sort it. Regenerate dependencies.
4568 (ehppalinux.c): Depend on hppaelf.em
4569 * Makefile.in: Regenerate.
4571 * configure.tgt: targ_emul=hppalinux for hppa*linux
4573 * emulparams/hppalinux.sh: New.
4574 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
4576 2000-07-08 Alan Modra <alan@linuxcare.com.au>
4578 * lexsup.c (parse_args): Copy section name.
4580 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
4582 * emultempl/pe.em: institute the following search order for
4583 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
4584 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
4585 static lib (libfoo.a) if none of the above are found.
4587 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
4589 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
4590 (longopts): New --{enable,disable}-auto-image-base options.
4591 (gld_${EMULATION_NAME}_list_options): Document.
4592 (gld_${EMULATION_NAME}_parse): Handle.
4593 (strhash): New static function.
4594 (compute_dll_image_base): New static function.
4595 (gld_${EMULATION_NAME}_set_symbols): Use.
4597 2000-07-05 DJ Delorie <dj@redhat.com>
4601 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
4603 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
4604 * emulparams/elf32btsmip.sh: New file.
4605 * Makefile.am: Add traditional mips target.
4606 * Makefile.in: Rebuild.
4608 2000-07-01 H.J. Lu <hjl@gnu.org>
4610 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
4611 automake to use YLWRAP.
4612 * Makefile.in: Rebuild.
4614 2000-07-01 Alan Modra <alan@linuxcare.com.au>
4616 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
4617 (CLEANFILES): Add DEPA.
4618 * Makefile.in: Regenerate.
4620 2000-06-30 Timothy Wall <twall@ppc>
4622 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
4623 the page in the upper octet of the address.
4625 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
4627 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
4629 2000-06-24 Alan Modra <alan@linuxcare.com.au>
4631 * NEWS: arm-elf does --gc-sections too.
4633 2000-06-22 Alan Modra <alan@linuxcare.com.au>
4635 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
4637 * Makefile.in: Regenerate.
4639 2000-06-21 H.J. Lu <hjl@gnu.org>
4641 * Makefile.am: Rebuild dependency.
4642 * Makefile.in: Rebuild.
4644 2000-06-20 H.J. Lu <hjl@gnu.org>
4646 * Makefile.am: Rebuild dependency.
4647 * Makefile.in: Rebuild.
4649 2000-06-20 Timothy Wall <twall@cygnus.com>
4651 * scripttempl/tic54xcoff.sc: New.
4652 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4653 * gen-doc.texi: Add flag for TI COFF.
4654 * ld.texinfo: Add documentation for TI COFF handling switches.
4655 * emultempl/ticoff.em: New. TI COFF handling.
4656 * configure.tgt: Add tic54x target.
4657 * Makefile.am: Add tic54x target.
4658 * Makefile.in: Ditto.
4660 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4662 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4663 checking for backslashes.
4665 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4667 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4669 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4671 * NEWS: Update list of targets supporting --gc-sections.
4673 * scripttempl/elf.sc: KEEP .eh_frame contents.
4674 * scripttempl/elfd30v.sc: Same here.
4676 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4678 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4680 * Makefile.in: Rebuild.
4681 * configure.tgt: Recognize m68hc12 and m68hc11.
4682 * scripttempl/elfm68hc12.sc: New file.
4683 * emulparams/m68hc12elfb: New emulation.
4684 * emulparams/m68hc12elf: New emulation.
4685 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4686 (includes a memory.x script to define the ROM and RAM banks).
4687 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4688 New configuration files for support of Motorola 68hc11
4690 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4692 * ldmain.c (main): Only change SEC_READONLY for final link.
4694 2000-06-13 H.J. Lu <hjl@gnu.org>
4696 * configure: Regenerate.
4698 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4700 * configure.in (VERSION): Update to show this is the CVS mainline.
4702 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4704 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4705 input objects to be ECOFF.
4706 (check_sections): einfo takes %B, not %P, to print a BFD name.
4708 2000-06-05 Michael Matz <matz@ifh.de>
4710 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4713 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4715 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4717 * emulparams/avr1200.sh (STACK): Define as 0.
4718 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4719 * emulparams/avr4433.sh (STACK): Likewise.
4720 * emulparams/avr44x4.sh (STACK): Likewise.
4721 * emulparams/avr85xx.sh (STACK): Likewise.
4722 * emulparams/avrmega103.sh (STACK): Likewise.
4723 * emulparams/avrmega161.sh (STACK): Likewise.
4724 * emulparams/avrmega603.sh (STACK): Likewise.
4725 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4726 (__stack): Define from ${STACK} for main().
4728 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4730 * Makefile.am: Update dependencies with "make dep-am"
4731 * Makefile.in: Regenerate.
4733 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4735 * ldmain.c: Include filenames.h.
4736 (set_scripts_dir): Support backslashes in program name.
4738 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4740 * ldmain.c (main): When deciding if ".text" section should be
4741 read-only, don't forget to reset SEC_READONLY because it
4742 could be already set.
4744 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4746 * ld.1: Add documentation for new command line option:
4747 --section-start <sectionname>=<sectionorg>
4748 This is a generic version of -Ttext etc. which accepts
4749 any section name as a parameter instead of just text/data/
4751 * ld.texinfo: More docs.
4753 * lexsup.c: (parse_args): Recognize new command line option.
4754 (ld_options): Add new option.
4756 2000-05-18 H.J. Lu <hjl@gnu.org>
4758 * lexsup.c (parse_args): `i' == `r', not `q'.
4760 2000-05-18 Jeffrey A Law (law@cygnus.com)
4762 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4764 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4765 Rick Gorton <gorton@scrugs.lkg.dec.com>
4767 Add support for '-q' == '--emit-relocs' switch.
4768 * ldmain.c (main): Default to false.
4769 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4770 * NEWS: Describe the emitrelocations switch.
4771 * ld.texinfo: Describe the emitrelocations switch.
4773 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4775 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4776 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4777 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4780 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4782 * lexsup.c (parse_args): Update the year in the copyright notice.
4784 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4786 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4787 Replace defines with those from intl/libgettext.h to quieten gcc
4790 2000-05-10 H.J. Lu <hjl@gnu.org>
4792 * ldlang.c (open_input_bfds): Don't load the same file within
4793 a group again if the whole archive has been loaded already.
4795 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4797 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4798 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4801 2000-05-01 Jim Wilson <wilson@cygnus.com>
4803 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4805 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4806 host "ia64-*-linux-gnu*".
4808 2000-04-29 Andreas Jaeger <aj@suse.de>
4810 * ld.h: Correctly check GCC version.
4812 2000-04-25 Jeffrey A Law (law@cygnus.com)
4814 * Makefile.am: Add PA64 support. Add missing dependencies for
4816 * Makefile.in: Rebuilt.
4817 * configure.tgt: Add PA64 support (currently disabled).
4819 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4821 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4822 (output_rel_find): New function.
4823 (hold_section, hold_use): Delete.
4824 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4825 hold_interp): Make local to place_orphan.
4826 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4827 rather than place_section to find possible previous use of orphan.
4828 Similarly find the place-holder output sections. Use returned
4829 value from lang_enter_output_section_statement rather than calling
4830 lang_output_section_statement_lookup.
4831 * emultempl/armelf.em: Same here.
4832 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4834 * ldlang.c (lang_enter_output_section_statement): Return output
4836 * ldlang.h (lang_enter_output_section_statement): Change
4839 * ldlang.h (lang_output_section_statement): Export it.
4840 * ldlang.c (lang_output_section_statement): Ditto.
4842 2000-04-24 Nick Clifton <nickc@cygnus.com>
4844 * ld.texinfo (Output Section Data): Add note that section data
4845 commands cannot appear outside of section directives.
4847 2000-04-2 Matthew Green <mrg@cygnus.com>
4849 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4851 2000-04-21 Richard Henderson <rth@cygnus.com>
4852 David Mosberger <davidm@hpl.hp.com>
4854 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4855 (eelf64_ia64.c): New rule.
4856 * Makefile.in: Rebuild.
4857 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4858 * emulparams/elf64_ia64.sh: New file.
4860 2000-04-21 Richard Henderson <rth@cygnus.com>
4862 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4864 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4866 * dep-in.sed: Match space at start of file name, not at end.
4868 2000-04-18 H.J. Lu <hjl@gnu.org>
4870 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4871 lang_leave_output_section_statement () after calling
4872 lang_enter_output_section_statement ().
4873 * emultempl/armelf.em: Likewise.
4875 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4877 * emultempl/elf32.em (struct orphan_save): Add section field.
4878 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4879 better order, and place first orphan section as we did before the
4880 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4881 Don't call make_bfd_section here, let wild_doit do the job for us.
4882 Don't build a statement list when we'll only throw it away.
4883 * emultempl/armelf.em: Ditto.
4884 * emultempl/pe.em: Similarly.
4886 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4888 * scripttempl/elfppc.sc: Remove.
4889 * emulparams/elf32ppc.sh: Use elf.sc.
4890 * emulparams/elf32lppc.sh: Use elf.sc.
4891 * emulparams/elf32ppclinux.sh: Use elf.sc.
4892 * emulparams/elf32ppcsim.sh: New file.
4893 * emulparams/elf32lppcsim.sh: New file.
4894 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4895 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4896 * Makefile.in: Regenerate.
4897 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4899 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4901 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4902 ~SEC_ALLOC sections too. Init start address of debug sections.
4903 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4904 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4905 Also set all relocateable section start addresses.
4907 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4909 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4910 Add new BSS_PLT variable for when .plt need not be contained in
4911 the file. Move _etext so that it is also after .fini, and provide
4912 both etext and _etext with a leading underscore. Mark the start
4915 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4917 * emultempl/elf32.em (struct orphan_save): New.
4918 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4919 hold_interp): Make them struct orphan_save.
4920 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4921 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4922 the end of the relevant section list. Also add associated section
4923 statements to the end of any previous orphan statements.
4924 * emultempl/armelf.em: Similarly.
4925 * emultempl/pe.em: Similarly.
4927 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4929 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4931 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4933 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4934 --enable-build-warnings option.
4935 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4936 * Makefile.in, configure: Re-generate.
4938 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4940 * po/ld.pot: Regenerate.
4942 * lexsup.c (help): Restore translated part of bug string.
4944 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4945 (DEP): Quote when passing vars to sub-make. Add warning message
4947 (DEP1): Rewrite for "gcc -MM".
4948 (CLEANFILES): Add DEP2.
4949 Update dependencies.
4950 * Makefile.in: Regenerate.
4952 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4954 * ld.h: #include "bin-bugs.h"
4955 * lexsup.c (help): Use REPORT_BUGS_TO.
4957 2000-03-27 Denis Chertykov <denisc@overta.ru>
4959 * configure.tgt (avr-*-*): New target support.
4960 * Makefile.am: Likewise.
4961 * scripttempl/elf32avr.sc: New script file.
4962 * emulparams/avr1200.sh: New file.
4963 * emulparams/avr23xx.sh: New file.
4964 * emulparams/avr4433.sh New file.
4965 * emulparams/avr44x4.sh New file.
4966 * emulparams/avr85xx.sh New file.
4967 * emulparams/avrmega103.sh New file.
4968 * emulparams/avrmega161.sh New file.
4969 * emulparams/avrmega603.sh New file.
4970 * Makefile.in: Regenerate.
4972 2000-03-09 Andreas Jaeger <aj@suse.de>
4974 * Makefile.am (check-DEJAGNU): Also unset LANG.
4975 * Makefile.in: Rebuild.
4977 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4979 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4982 2000-03-02 H.J. Lu <hjl@gnu.org>
4984 * emulparams/elf32mcore.sh: Include "getopt.h".
4986 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4988 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4990 2000-03-01 H.J. Lu <hjl@gnu.org>
4992 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4993 * emulparams/shpe.sh: Likewise.
4995 2000-03-01 Nick Clifton <nickc@cygnus.com>
4997 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4998 to unused parameters.
5000 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
5001 functions only used by DLL code.
5002 (_place_orphan): Initialise 'dollar'.
5004 2000-03-01 H.J. Lu <hjl@gnu.org>
5006 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
5007 indicate if the undefined symbol is a fatal error or not.
5008 Don't delete the output file if "fatal" is false.
5010 2000-02-29 H.J. Lu <hjl@gnu.org>
5012 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
5013 Set LC_COLLATE and LC_ALL to null and export them. It is for
5014 sort which expects the C locale.
5015 Add $(LIBS) to all $(HOSTING_LIBS).
5016 * Makefile.in: Rebuild.
5018 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
5020 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
5021 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
5022 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
5023 (ld_emulation_xfer_struct): Add missing NULL initialiser for
5024 find_potential_libraries.
5026 2000-02-28 Jim Blandy <jimb@redhat.com>
5028 * ldgram.y (exclude_name_list): Don't require a comma to separate
5029 list entries; the lexer considers commas to be valid part of a
5030 filename, so in something like `foo, bar' the comma is considered
5031 part of the first filename, `foo,'.
5032 * ld.texinfo: Update section on EXCLUDE_FILE lists.
5034 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
5036 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
5037 host "i[3456]86-*-freebsdelf*".
5039 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
5041 * scripttempl/i386go32.sc: Move misplaced semicolons.
5043 2000-02-25 Ian Lance Taylor <ian@zembu.com>
5045 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
5046 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
5047 (eelf64hppa.c, ehppaelf.c): Remove targets.
5048 * Makefile.in: Rebuild.
5050 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
5052 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
5053 GNU/Linux/sparc, but keep the default as 32.
5055 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
5056 it default if sparcv9 or sparc64.
5058 2000-02-24 Nick Clifton <nickc@cygnus.com>
5060 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
5061 * Makefile.in: Regenerate.
5062 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
5064 * ldemul.h (ld_emulation_xfer_struct): Add new field:
5065 find_potential_libraries.
5066 * ldemul.c (ldemul_find_potential_libraries): New function.
5068 * ldfile.c (ldfile_open_file_search): Allow function to be
5070 (ldfile_open_file): Call ldemul_find_potential_libraries.
5071 * ldfile.h: Add prototype for ldfile_open_file_search.
5073 * pe-dll.c: Add support for ARM, MIPS and SH targets.
5075 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
5076 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
5078 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
5079 (gld_X_find_potential_libraries): New function. Search for
5080 libraries called "*.lib".
5082 * scripttempl/pe.sc: Add .pdata section.
5084 2000-02-23 Richard Henderson <rth@cygnus.com>
5086 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
5087 Add and use memory regions.
5089 2000-02-23 Linas Vepstas (linas@linas.org)
5091 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
5093 * Makefile.am: Add support for Linux/IBM 370.
5094 * configure.tgt: Likewise.
5096 * Makefile.in: Regenerate.
5098 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
5100 * ldlang.c (print_input_section, print_data_statement,
5101 print_reloc_statement, print_padding_statement, insert_pad,
5102 size_input_section, lang_check_section_addresses,
5103 lang_size_sections, lang_do_assignments, lang_set_startof,
5104 lang_one_common): Change `opb' to unsigned.
5105 (lang_do_assignments): Also change `size' to unsigned.
5107 2000-02-16 Richard Henderson <rth@cygnus.com>
5109 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
5111 2000-02-16 Timothy Wall <twall@cygnus.com>
5113 * mri.c (mri_draw_tree): Add default LMA region argument to call
5114 to lang_leave_output_section_statement.
5115 * ldlang.h: Update prototypes with LMA region arguments.
5116 * ldlang.c (lang_size_sections): Encapsulate region bounds
5117 checking in os_check_region call.
5118 (os_check_region): New function.
5119 (lang_output_section_statement_lookup): Initialize lma_region.
5120 (lang_leave_output_section_statement): Add LMA region argument.
5121 (lang_leave_overlay): Ditto.
5122 * ldgram.y: Handle LMA region syntax.
5123 * ld.texinfo (Output Section Description): Describe LMA region usage.
5124 * emultempl/armelf.em (gld$place_orphan): Add default value for
5125 lma region in call to lang_leave_output_section_statement.
5126 * emultempl/elf32.em (gld$place_orphan): Add default value for
5127 lma region in call to lang_leave_output_section_statement.
5128 * emultempl/pe.em (gld$place_orphan): Add default value for
5129 lma region in call to lang_leave_output_section_statement.
5132 2000-02-04 Timothy Wall <twall@redhat.com>
5134 * ldlang.c (lang_check_section_addresses): Use bytes instead of
5135 octets when calculating section end addresses.
5137 2000-02-04 Timothy Wall <twall@redhat.com>
5139 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
5141 2000-02-03 Timothy Wall <twall@redhat.com>
5143 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
5145 * ldlang.c (print_input_section, print_data_statement,
5146 print_reloc_statement, print_padding_statement): Print target
5147 address values and section sizes as bytes, not octets.
5148 (insert_pad) Calculate padding size in octets, and adjust "dot"
5150 (size_input_section) Always adjust "dot" by bytes, not octets.
5151 (lang_check_section_addresses, lang_do_assignments) Adjust
5152 "dot" by bytes, not octets. Use the larger of the directive size
5153 or octets_per_byte for the number of octets actually allocated in
5155 (lang_set_startof) Make sure STARTOF returns a target address.
5156 (lang_one_common) Record size changes in octets.
5157 (lang_abs_symbol_at_end_of) Section end symbol's value is
5158 recorded in target bytes.
5159 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
5160 to be clear about behavior when an octet is smaller than one byte.
5162 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
5164 * ldcref.c (output_cref): Don't pass message strings to printf
5168 * ldmisc.c (vfinfo): Same here.
5171 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
5173 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
5174 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
5175 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
5176 Add missing NULL initialisers, and comments.
5178 2000-01-21 Nick Clifton <nickc@cygnus.com>
5180 * ldlang.c (lang_size_sections): Fix typo in comment.
5182 2000-01-18 H.J. Lu <hjl@gnu.org>
5184 * ldlang.c (lang_size_sections): Also update the current
5185 address of a region if the SEC_NEVER_LOAD bit is not set.
5187 2000-01-10 Philip Blundell <pb@futuretv.com>
5189 * configure.tgt (arm*-*-conix*): New target.
5191 2000-01-07 Nick Clifton <nickc@cygnus.com>
5193 * ld.texinfo (Options): Remind users to preceed linker command
5194 line switches with -Wl, (or whatever is appropriate) if it is
5195 being invoked by a comnpiler driver program.
5196 Fix description of the behaviour of the -n command line switch.
5198 2000-01-05 Catherine Moore <clm@cygnus.com>
5200 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
5202 * ld.texinfo (EXCLUDE_FILE): Update documentation.
5203 * ldgram.y (wildcard_spec): Support a list of excluded_files.
5204 (exclude_name_list): New.
5205 ldlang.c (walk_wild_section): Support list of excluded files.
5206 (print_wild_statement): Likewise.
5207 (lang_add_wild): Likewise.
5208 * ldlang.h (lang_wild_statement_type): Likewise.
5209 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
5211 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
5213 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
5214 (process_def_file): Use.
5215 (pe_dll_compat_implib): New variable.
5218 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
5219 pe_dll_compat_implib.
5221 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
5222 compat-implib options.
5223 (gld_${EMULATION_NAME}_list_options): List new options.
5224 (gld_${EMULATION_NAME}_parse_args): Handle.
5226 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
5229 * deffilep.y (opt_name): Allow "." in name.
5231 For older changes see ChangeLog-9899
5237 version-control: never