1 2002-07-16 Nick Clifton <nickc@cambridge.redhat.com>
3 * NEWS: Add 'Changes in 2.13'.
5 2002-07-14 H.J. Lu <hjl@gnu.org>
7 * ld.texinfo: Document a .symver takes precedence over a
10 2002-07-12 Alan Modra <amodra@bigpond.net.au>
12 * emulparams/elf64ppc.sh (ARCH): Set to powerpc:common64.
13 (COMMONPAGESIZE): Define.
15 2002-07-09 Alan Modra <amodra@bigpond.net.au>
17 * emulparams/hppanbsd.sh: Remark that hppaobsd.sh references this file.
19 2002-07-09 Federico G. Schwindt <fgsch@olimpo.com.br>
21 * configure.tgt: Add support for alpha-*-openbsd*, hppa-*-openbsd*,
22 powerpc-*-openbsd* and sparc64-*-openbsd*.
23 * Makefile.am (ALL_EMULATIONS): Add ehppaobsd.o.
24 * Makefile.in: Regenerate.
25 * emulparams/hppaobsd.sh: New file.
27 2002-07-05 Alan Modra <amodra@bigpond.net.au>
29 * ldlang.c (print_wild_statement): Fix output formatting.
31 2002-07-04 Alan Modra <amodra@bigpond.net.au>
33 * ldlang.c: (strip_excluded_output_sections): New function.
34 (lang_process): Call it.
35 (lang_size_sections_1): Revert 2002-06-10 change.
37 2002-07-03 Alan Modra <amodra@bigpond.net.au>
39 * Makefile.am (check-DEJAGNU): Revert 2002-06-25 change.
41 * Makefile.in: Regenerate.
43 2002-07-02 Alan Modra <amodra@bigpond.net.au>
45 * ldfile.c (ldfile_try_open_bfd): Formatting.
47 * ldmisc.c (demangle): Move so that it doesn't intrude between
48 vfinfo comment and body. Add comment.
50 2002-07-01 John David Anglin <dave@hiauly1.hia.nrc.ca>
52 * emulparams/vax.sh (OUTPUT_FORMAT): Use a.out-vax-bsd format.
54 2002-07-01 Alan Modra <amodra@bigpond.net.au>
56 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
57 * ldlang.c (entry_sym): Likewise.
58 (ldlang_undef_chain_list_type): Likewise.
59 (lang_finish): Adjust references to entry_symbol.
60 (lang_add_entry): Likewise.
61 (lang_gc_sections): Use link_info.gc_sym_list.
62 (lang_process): Set link_info.gc_sym_list.
63 * ldlex.l: Include bfdlink.h.
64 * ldmain.c (main): Init link_info.gc_sym_list.
65 * emultempl/aix.em: Adjust references to entry_symbol.
66 * emultempl/armcoff.em: Likewise.
67 * emultempl/armelf.em: Likewise.
68 * emultempl/pe.em: Likewise.
69 * emultempl/ppc64elf.em (ppc_after_open): New function.
70 (LDEMUL_AFTER_OPEN): Define.
71 * emulparams/elf64ppc.sh: KEEP .opd sections.
73 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
75 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
76 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
77 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
78 (EEPROM_START_ADDR): Define.
79 (EEPROM_MEMORY): Define.
80 * emulparams/m68hc12elf.sh: Likewise.
81 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
82 section to put soft registers in .page0.
83 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
85 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
87 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
88 section. Add ${RELOCATING-0}.
90 Wed Jun 26 16:33:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
92 * emulparams/shelf.sh (STACK_ADDR): Don't define.
93 (OTHER_SECTIONS): Define.
94 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
95 (OTHER_SECTIONS): Undef.
97 2002-06-26 Alan Modra <amodra@bigpond.net.au>
99 * ldmisc.c (demangle): Restore dots stripped from sym name.
101 2002-06-25 H.J. Lu <hjl@gnu.org>
103 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
104 * Makefile.in: Regenerated.
106 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
108 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
109 the size of attached object files, to allow make the object files
110 available via FTP or HTTP and to mention that the mail will be
111 sent to a mailing list.
113 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
115 * ld/configure.host (romp): Drop support.
117 2002-06-18 Chris Demetriou <cgd@broadcom.com>
119 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
120 section flags for SEC_DATA, rather than for SEC_CODE being unset.
122 2002-06-18 Chris Demetriou <cgd@broadcom.com>
124 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
125 format specifier used to print BFD name.
127 2002-06-18 Dave Brolley <brolley@redhat.com>
129 From Catherine Moore, Michael Meissner, Jim Blandy:
130 * emulparams/elf32frv.sh: New file.
131 * configure.tgt: Support frv-*-*.
132 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
133 (eelf32frv.c): New target.
135 2002-06-17 Tom Rix <trix@redhat.com>
137 * emultempl/elf32.em: gld*_get_script: Check for
138 GENERATE_COMBRELOC_SCRIPT.
139 * scripttempl/elfd10v.sc : Fix STACK and INSN.
140 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
142 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
144 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
146 2002-06-12 H.J. Lu <hjl@gnu.org>
148 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
149 false if xvec doesn't match.
151 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
153 * ldlang.c (lang_size_sections_1): Skip removed output sections.
155 2002-06-08 Alan Modra <amodra@bigpond.net.au>
157 * ldexp.c: Replace CONST with const.
158 * ldfile.c: Likewise.
159 * ldfile.h: Likewise.
162 * pe-dll.h: Likewise.
164 2002-06-07 Alan Modra <amodra@bigpond.net.au>
166 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
168 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
170 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
171 to -1 == implicit enable.
172 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
173 initialize link_info.pei386_auto_import to -1 == implicit
175 (gld_${EMULATION_NAME}_parse_args): When processing
176 --enable-auto-import and --disable-auto-import options, use
177 '1' and '0' instead of 'true' and 'false'.
178 (pe_find_data_imports): Only issue message about auto-import
179 when the feature is implicitly enabled. Downgrade message to
180 informational instead of warning.
182 2002-06-07 Alan Modra <amodra@bigpond.net.au>
184 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
186 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
188 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
189 HOSTING_CRT0 and HOSTING_LIBS.
191 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
193 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
195 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
197 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
198 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
200 2002-06-05 Alan Modra <amodra@bigpond.net.au>
202 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
203 SEC_EXCLUDE sections when doing a relocatable link.
205 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
207 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
208 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
209 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
210 (eshlelf64_nbsd.c): New rules.
211 * Makefile.in: Regenerate.
212 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
213 (sh64-*-netbsd*): New targets.
214 * emulparams/shelf32_nbsd.sh: New file.
215 * emulparams/shelf64_nbsd.sh: New file.
216 * emulparams/shlelf32_nbsd.sh: New file.
217 * emulparams/shlelf64_nbsd.sh: New file.
219 2002-06-04 Alan Modra <amodra@bigpond.net.au>
221 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
223 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
225 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
226 C++ constructors/destructors, loosely based on the m68hc11 port.
228 2002-05-31 Alan Modra <amodra@bigpond.net.au>
230 * Makefile.in: Regenerate.
231 * aclocal.m4: Regenerate.
232 * config.in: Regenerate.
233 * configure: Regenerate.
235 2002-05-31 Graeme Peterson <gp@qnx.com>
237 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
238 (ei386nto.c): Add rule.
239 * Makefile.in: Regenerate.
240 * configure.tgt: Add i[3456]86-*-nto-qnx*.
241 * emulparams/i386nto.sh: New file.
243 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
245 * NEWS: Add entry for VAX ELF support.
247 2002-05-29 Matt Thomas <matt@3am-software.com>
248 Jason Thorpe <thorpej@wasabisystems.com>
250 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
252 (evaxnbsd.c): New rules.
253 * Makefile.in: Regenerate.
254 * configure.tgt (vax-*-netbsdelf*)
256 (vax-*-netbsd*): New targets.
257 * emulparams/elf32vax.sh: New file.
258 * emulparams/vaxnbsd.sh: New file.
260 2002-05-29 Adam Nemet <anemet@lnxw.com>
262 * emultempl/armelf.em (arm_elf_after_open): Don't determine
263 bfd_for_interwork, instead add glue sections to each input bfd.
264 (bfd_for_interwork): New global.
265 (arm_elf_set_bfd_for_interworking): New function.
266 (arm_elf_before_allocation): Use it.
268 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
270 * Makefile.am: Add DLX make target.
271 * configure.tgt: Add DLX configuration.
272 * Makefile.in: Regenerate.
273 * emulparams/elf32_dlx.sh: New file
274 * scripttempl/dlx.sc: New file
276 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
278 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
279 * Makefile.in: Regenerate.
280 * emulparams/elf_chaos.sh: Use elf_chaos script.
281 * scripttempl/elf_chaos.sc: New file.
283 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
285 * ldlang.c (lang_size_sections_1): Move check for conflicting load
286 addresses and regions from here...
287 (lang_get_regions): ...to this new function.
288 (lang_leave_output_section_statement): Use lang_get_regions.
289 (lang_leave_overlay): Likewise.
290 * mri.c (mri_draw_tree): Pass null as last argument to
291 lang_leave_output_section_statement.
292 * emultempl/elf32.em (gld*_place_orphan): Likewise.
293 * emultempl/mmo.em (mmo_place_orphan): Likewise.
294 * emultempl/pe.em (gld*_place_orphan): Likewise.
296 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
298 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
300 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
302 * ldemul.c: Fix formatting.
303 * ldfile.c: Likewise.
304 * pe-dll.c: Likewise.
305 * pe-dll.h: Likewise.
307 2002-05-25 Alan Modra <amodra@bigpond.net.au>
309 * ldlang.c (lang_process): Formatting, grammar.
311 * ldlex.l: Use #include "" instead of <> for local header files.
313 2002-05-24 TAMURA Kent <kent@netbsd.org>
315 * configure.tgt: Add a target for i386-netbsdpe.
317 2002-05-23 Jakub Jelinek <jakub@redhat.com>
319 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
320 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
321 output section if necessary. Handle .tbss.
322 (lang_size_sections): Clear _raw_size for .tbss section
323 (it allocates space in PT_TLS segment only).
324 * ldwrite.c (build_link_order): Build link order for .tbss too.
326 2002-05-23 Alan Modra <amodra@bigpond.net.au>
328 * configure.in: Correct spelling of AC_PREREQ.
330 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
332 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
334 (autofilter_objlist): Add crtbegin.o, crtend.o.
336 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
338 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
339 (longopts): Add new option --exclude-libs.
340 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
341 (gld_${EMULATION_NAME}_parse_args): Use it.
342 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
343 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
345 (pe_dll_add_excludes): Set excludes->type.
346 (auto_export): Add new variable libname and set to archive basename if
347 abfd. Use it when filtering default and user-specified libarary
348 excludes. Let string "ALL" mean all libs when filtering user-specified
350 * ld.texinfo: Document --exclude-libs.
352 2002-05-22 Alan Modra <amodra@bigpond.net.au>
354 * ldemul.c (ldemul_new_vers_pattern): New function.
355 * ldemul.h (ldemul_new_vers_pattern): Declare.
356 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
357 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
358 * emultempl/ppc64elf.em (dotsyms): New static var.
359 (gld${EMULATION_NAME}_new_vers_pattern): New function.
360 (LDEMUL_NEW_VERS_PATTERN): Define.
361 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
362 (PARSE_AND_LIST_LONGOPTS): Likewise.
363 (PARSE_AND_LIST_ARGS_CASES): Handle them.
364 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
366 * emultempl/armcoff.em: Likewise.
367 * emultempl/armelf_oabi.em: Likewise.
368 * emultempl/beos.em: Likewise.
369 * emultempl/elf32.em: Likewise.
370 * emultempl/generic.em: Likewise.
371 * emultempl/gld960.em: Likewise.
372 * emultempl/gld960c.em: Likewise.
373 * emultempl/linux.em: Likewise.
374 * emultempl/lnk960.em: Likewise.
375 * emultempl/m68kcoff.em: Likewise.
376 * emultempl/mipsecoff.em: Likewise.
377 * emultempl/pe.em: Likewise.
378 * emultempl/sunos.em: Likewise.
379 * emultempl/ticoff.em: Likewise.
380 * emultempl/vanilla.em: Likewise.
382 2002-05-22 Alan Modra <amodra@bigpond.net.au>
384 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
385 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
386 (LIB_SEARCH_DIRS): No need to use "tr".
387 (COMPILE_IN): Only set for native targets.
388 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
389 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
390 * configure.tgt (powerpc*): Set tdir_*.
391 (powerpcle*): Correct targ_extra_emuls.
392 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
393 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
395 2002-05-22 Alan Modra <amodra@bigpond.net.au>
397 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
398 calling lang_add_entry.
400 2002-05-21 H.J. Lu (hjl@gnu.org)
402 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
404 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
406 * ld.texinfo: Updated for --allow-multiple-definition and
409 * ldmain.c (main): Initialize the allow_multiple_definition
412 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
413 (ld_options): Add --allow-multiple-definition.
414 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
416 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
418 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
419 (earmelfb_nbsd.c): New rule.
420 * Makefile.in: Regenerate.
421 * configure.tgt (armeb-*-netbsdelf*): New target.
422 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
423 (arm-*-netbsd*): Likewise.
424 * emulparams/armelfb_nbsd.sh: New file.
426 2002-05-18 Tom Rix <trix@redhat.com>
428 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
431 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
433 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
434 * Makefile.in: Regenerate.
435 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
437 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
439 * emulparams/avr1.sh: New file.
440 * emulparams/avr2.sh: New file.
441 * emulparams/avr3.sh: New file.
442 * emulparams/avr4.sh: New file.
443 * emulparams/avr5.sh: New file.
444 * scripttempl/avr.sc: New file.
446 2002-05-15 Alan Modra <amodra@bigpond.net.au>
448 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
449 (lang_place_orphans): Abort if just_syms_flag.
451 2002-05-10 Tom Rix <trix@redhat.com>
453 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
454 architecture and machine information in the output bfd.
455 (gld*_before_parse): Remove old arch and machine code.
456 (choose_target): Rename to gld*_choose_target.
457 (rtld): Change type to int.
458 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
459 objects in XCOFF archives.
460 * ldfile.h: Update copyright date.
462 2002-05-10 Jakub Jelinek <jakub@redhat.com>
464 * ldmain.c (main): Enable -z combreloc by default.
466 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
468 * Makefile.am: Honour DESTDIR.
469 * Makefile.in: Regenerate.
471 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
473 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
474 (lang_enter_overlay): Remove the last two parameters.
475 (lang_leave_overlay): Take them here instead.
476 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
477 (section): Pass LMA and crossref flag to lang_leave_overlay rather
478 than lang_enter_overlay.
479 * ldlang.c (lang_memory_region_lookup): Return null for null names.
480 (lang_output_section_statement_lookup): Initialize update_dot_tree.
481 (lang_size_sections_1): Evaluate it.
482 (lang_leave_output_section_statement): Rework LMA lookup.
483 (overlay_lma, overlay_nocrossrefs): Remove.
484 (lang_enter_overlay): Remove LMA and crossref arguments.
485 (lang_enter_overlay_section): Don't set the LMA here.
486 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
487 assignment to the last section's update_dot_tree. Unconditionally
488 use the load and run-time regions specified in the OVERLAY statement.
489 Likewise the first section's LMA. Only set the other sections' LMAs
490 when no load region is given.
492 2002-05-06 Nick Clifton <nickc@redhat.com>
494 * po/sv.po: New translation.
496 2002-05-04 Alan Modra <amodra@bigpond.net.au>
498 * emultempl/hppaelf.em (build_section_lists): New function.
499 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
500 and build_section_lists.
502 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
504 * ld.h: Fix formatting.
506 * ldfile.c: Likewise.
507 * ldlang.c: Likewise.
508 * ldmain.c: Likewise.
509 * lexsup.c: Likewise.
510 * pe-dll.c: Likewise.
512 2002-05-02 Alan Modra <amodra@bigpond.net.au>
514 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
515 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
516 (build_section_lists): Do output_section tests here.
518 2002-04-30 Tom Rix <trix@redhat.com>
520 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
522 2002-05-01 Alan Modra <amodra@bigpond.net.au>
524 Long branch stubs, multiple stub sections.
525 * emultempl/ppc64elf.em: Include ldctor.h.
526 (stub_file): New var.
527 (group_size): New var.
528 (ppc_create_output_section_statements): New function.
529 (struct hook_stub_info): New.
530 (hook_in_stub): New function.
531 (ppc_add_stub_section): New function.
532 (ppc_layout_sections_again): New function.
533 (build_section_lists): New function.
534 (gld${EMULATION_NAME}_finish): Rewrite.
535 (real_func): New var.
536 (ppc_for_each_input_file_wrapper): New function.
537 (ppc_lang_for_each_input_file): New function.
538 (lang_for_each_input_file): Define.
539 (PARSE_AND_LIST_PROLOGUE): Define.
540 (PARSE_AND_LIST_LONGOPTS): Define.
541 (PARSE_AND_LIST_OPTIONS): Define.
542 (PARSE_AND_LIST_ARGS_CASES): Define.
543 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
545 2002-04-30 Tom Rix <trix@redhat.com>
547 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
548 -blibpath, -bnolibpath support.
550 2002-04-30 Mark Mitchell <mark@codesourcery.com>
552 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
553 (eelf32ppcwindiss.c): New target.
554 * Makefile.in: Regenerated.
555 * configure.tgt: Add support for powerpc-*-windiss.
556 * emulparams/elf32ppcwindiss.sh: New file.
558 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
560 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
561 * ldexp.c (exp_print_token): Add "infix_p" argument.
562 (exp_print_tree): Update accordingly.
564 2002-04-28 Alan Modra <amodra@bigpond.net.au>
566 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
567 * Makefile.in: Regenerate.
568 * mpw-elfmips.c: Delete.
569 * mpw-eppcmac.c: Delete.
571 * mpw-idtmips.c: Delete.
573 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
575 * emulparams/shelf32.sh (MACHINE): Now sh5.
577 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
579 * ldgram.y: Fix syntax warning.
581 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
583 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
584 to prevent "-n" from being taken as an abbreviation for
585 "--no-pipeline-knowledge".
587 2002-04-08 Alan Modra <amodra@bigpond.net.au>
589 * ldlang.c (lang_size_sections_1): Don't complain about
590 SEC_NEVER_LOAD sections having no memory region specified.
592 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
594 2002-04-07 matthew green <mrg@redhat.com>
596 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
598 2002-04-04 Alan Modra <amodra@bigpond.net.au>
600 * dep-in.sed: Cope with absolute paths.
601 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
603 * Makefile.in: Regenerate.
605 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
607 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
609 2002-04-03 Jakub Jelinek <jakub@redhat.com>
611 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
612 is smaller than maximum, round dot up to common page boundary.
614 2002-03-28 Alan Modra <amodra@bigpond.net.au>
616 * configure.host: Set up for generic hosts first, then tweak as
617 necessary in more specific targets.
618 (HOSTING_LIBS): Include libgcc_eh.a if found.
620 2002-03-23 Andreas Jaeger <aj@suse.de>
622 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
624 2002-03-21 Alan Modra <amodra@bigpond.net.au>
626 * Makefile.am: Run "make dep-am".
627 * Makefile.in: Regenerate.
629 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
631 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
633 2002-03-20 Alan Modra <amodra@bigpond.net.au>
635 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
636 add the symbol to the linker hash table immediately.
637 (lang_place_undefineds): Split symbol creation out..
638 (insert_undefined): ..to here.
640 2002-03-18 David O'Brien <obrien@FreeBSD.org>
642 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
643 the contents of the buffer returned from basename function will are
644 getting overwritten while still being used.
646 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
647 Andreas Jaeger <aj@suse.de>
648 Andreas Schwab <schwab@suse.de>
650 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
651 * elf_x86_64.sh (ARCH): Set to i386:x86-64
652 set libraries to default to lib64 paths.
654 2002-03-18 Tom Rix <trix@redhat.com>
656 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
657 * configure.tgt : Same.
658 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
659 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
660 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
661 emulation parameters for better -b32, -b64 support.
662 * emulparms/aixrs6.sh : Same.
663 * emulparms/ppcmacos.sh : Same.
664 * emultempl/aix.em (choose_target) : Use new emulation parameters
665 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
666 * Makefile.in : Regenerate.
668 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
670 * po/fr.po: Updated version.
672 2002-03-18 Alan Modra <amodra@bigpond.net.au>
674 * ldmain.c (main): Move .text readonly flag fudges from here..
675 * ldlang.c (lang_process): ..to here.
677 2002-03-14 Alan Modra <amodra@bigpond.net.au>
679 * ldlang.c (lang_check): Remove the word size check added in last
680 change. Treat emitrelocations case as for relocatable links.
682 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
684 * po/fr.po: Updated version.
686 2002-03-13 Alan Modra <amodra@bigpond.net.au>
688 * ldlang.c (lang_check): Do relocatable link checks first, so that
689 warn_mismatch can't override. Check compatible and word size too.
691 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
693 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
695 2002-03-05 Jakub Jelinek <jakub@redhat.com>
697 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
700 2002-03-04 H.J. Lu <hjl@gnu.org>
702 * scripttempl/elf.sc: Put .preinit_array, .init_array and
703 .fini_array in the data segment.
705 2002-03-04 Alan Modra <amodra@bigpond.net.au>
707 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
709 2002-03-01 David Mosberger <davidm@hpl.hp.com>
711 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
712 .init_array, and .fini_array.
714 2002-02-20 Andreas Schwab <schwab@suse.de>
716 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
717 .IA64_unwind* in a relocatable link.
719 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
721 * NEWS: Mark 2.12 branch.
723 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
725 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
726 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
728 2002-02-18 Tom Rix <trix@redhat.com>
730 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
731 (gld*_before_allocation): Same.
732 (gld*_create_output_section_statements): Generate
733 __rtinit if run time linking. Add librtl.a to the link.
734 (gld*_read_file): Clean.
736 2002-02-18 Alan Modra <amodra@bigpond.net.au>
738 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
740 2002-02-18 David O'Brien <obrien@FreeBSD.org>
742 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
743 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
744 and eelf64alpha_fbsd.
745 * Makefile.in: Regenerate.
746 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
747 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
748 use a FreeBSD-specific emulation rather than the psABI one.
749 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
750 for all FreeBSD ELF systems.
751 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
753 * emulparams/elf32ppc_fbsd.sh: Likewise.
754 * emulparams/elf64_ia64_fbsd.sh: Likewise.
755 * emulparams/elf64_sparc_fbsd.sh: Likewise.
756 * emulparams/elf64alpha_fbsd.sh: Likewise.
757 * emulparams/elf_i386_fbsd.sh: Likewise.
758 * emulparams/elf_x86_64_fbsd.sh: Likewise.
760 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
762 * po/tr.po: Updated version.
764 2002-02-18 Alan Modra <amodra@bigpond.net.au>
766 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
769 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
771 * emultempl/mmo.em (mmo_after_open): Don't call
772 _bfd_mmix_check_all_relocs when producing ELF output.
774 2002-02-15 Richard Henderson <rth@redhat.com>
776 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
777 definition. Emit a unop+nop pair.
779 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
781 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
782 for presence of .MMIX.reg_contents.linker_allocated before early
785 * NEWS: Mention support for MMIX.
787 2002-02-15 Alan Modra <amodra@bigpond.net.au>
789 Support arbitrary length fill patterns.
790 * ld.texinfo (Output Section Fill): Describe fill expressions.
791 (FILL): Refer to the above.
792 * ldexp.h (etree_value_type): Add "str" field.
793 (union etree_union): Add "str" to "value" struct.
794 (exp_bigintop): Declare.
795 (exp_get_fill): Declare.
796 * ldexp.c: Include "safe-ctype.h".
797 (exp_intop): Set value.str to NULL.
798 (exp_bigintop): New function.
799 (new_rel): Pass in "str", and set new.str from it.
800 (new_rel_from_section): Set new.str to NULL.
801 (fold_name): Adjust calls to new_rel.
802 (exp_fold_tree): Likewise.
803 (exp_get_fill): New function.
804 * ldgram.y (struct big_int bigint, fill_type *fill): New.
805 (INT): Returns a "bigint". Adjust all code handling INTs.
806 (fill_opt): Returns a "fill".
807 (fill_exp): Split out of fill_opt, use for FILL.
808 * ldlang.h (struct _fill_type): New.
809 (fill_type): Move typedef to ldexp.h.
810 (lang_output_section_statement_type): "fill" is now a pointer.
811 (lang_fill_statement_type): Likewise.
812 (lang_padding_statement_type): Likewise.
813 (lang_add_fill): Now takes a "fill_type *" param.
814 (lang_leave_output_section_statement): Likewise.
815 (lang_do_assignments): Likewise.
816 (lang_size_sections): Likewise.
817 (lang_leave_overlay_section): Likewise.
818 (lang_leave_overlay): Likewise.
819 * ldlang.c: Include ldgram.h after ldexp.h.
820 (lang_output_section_statement_lookup): Adjust for fill_type change.
821 (print_fill_statement): Likewise.
822 (print_padding_statement): Likewise.
823 (insert_pad): Now takes a "fill_type *" arg.
824 (size_input_section): Likewise.
825 (lang_size_sections_1): Likewise.
826 (lang_size_sections): Likewise.
827 (lang_do_assignments): Likewise.
828 (lang_add_fill): Likewise.
829 (lang_leave_output_section_statement): Likewise.
830 (lang_leave_overlay_section): Likewise.
831 (lang_leave_overlay): Likewise.
832 Adjust all callers of the above function.
833 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
834 starting with "0X" as well as "0x". Return bigint.str for hex
835 numbers starting with "0x" or "0X", zero bigint.str otherwise.
836 Always use base 16 for numbers starting with "$".
837 * ldmain.c: Include ldgram.h after ldexp.h.
838 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
839 of bfd_fill_link_order.
840 * pe-dll.c: Adjust lang_do_assignments calls.
841 * emultempl/elf32.em: Likewise.
842 * emultempl/hppaelf.em: Likewise.
843 * emultempl/ppc64elf.em: Likewise.
844 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
845 lang_add_assignment call.
846 * emultempl/pe.em: Likewise.
848 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
850 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
851 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
852 the pattern in question is not a regexp.
853 * ldlang.c: Likewise.
854 * ldlang.h: Likewise.
855 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
857 2002-02-12 Jakub Jelinek <jakub@redhat.com>
859 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
860 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
861 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
862 * ldexp.c (exp_data_seg): New variable.
863 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
864 (fold_binary): Handle DATA_SEGMENT_ALIGN.
865 (exp_fold_tree): Handle DATA_SEGMENT_END.
866 Pass allocation_done when recursing instead of hardcoding
867 lang_allocating_phase_enum.
868 * ldexp.h (exp_data_seg): New.
869 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
870 (lang_size_sections): New.
871 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
872 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
873 if COMMONPAGESIZE is defined.
874 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
875 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
876 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
877 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
878 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
881 2002-02-11 Alan Modra <amodra@bigpond.net.au>
883 * Makefile.in: Regenerate.
885 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
887 * lexsup.c: Remove strtoul declaration.
889 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
891 * ldmain.c: Add prototype for main ().
892 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
893 * emultempl/lnk960.em (lnk960_choose_target): Function should
896 2002-02-10 Alan Modra <amodra@bigpond.net.au>
898 * ldlang.c (entry_section): New initialised variable.
899 (lang_finish): Use it.
900 * ldlang.h (entry_section): Declare.
901 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
902 entry_section to ".opd".
904 2002-02-09 Chris Demetriou <cgd@broadcom.com>
906 * ld.texinfo (Options): Add back in -nostdlib documentation,
907 which had been inadvertently removed.
909 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
911 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
912 register section vma to a sane value after emitting error. Make
913 fatal conditions cause program exit when emitting message.
915 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
917 * configure.tgt: Add or32-*-rtems target.
919 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
922 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
923 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
924 in OTHER_RELOCATABLE_SECTIONS.
925 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
926 * emulparams/shelf32.sh (STACK_ADDR): Define.
927 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
928 (OTHER_SECTIONS): this. Removed stack settings.
929 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
930 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
931 2001-03-12 DJ Delorie <dj@redhat.com>
932 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
933 relaxing if any shmedia or mixed sections are found.
934 2001-03-07 DJ Delorie <dj@redhat.com>
935 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
936 einfo. Gracefully decline to output to non-elf formats.
937 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
938 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
939 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
940 * emulparams/shelf32.sh: Ditto.
941 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
942 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
944 2001-01-10 Ben Elliston <bje@redhat.com>
945 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
946 non-portable shell constructs. From Hans-Peter Nilsson.
947 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
948 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
949 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
950 dependencies to the shell script include chain.
951 * Makefile.in: Regenerate.
952 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
953 * emultempl/sh64elf.em: Update and tweak comments.
954 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
955 make a .cranges section SEC_IN_MEMORY.
956 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
957 * emultempl/sh64elf.em
958 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
959 .cranges section found to be necessary; continue and set stored
960 section contents flags for sections with non-mixed contents.
961 Use a struct sh64_section_data container and sh64_elf_section_data
962 to store contents-type flags.
963 Remove unused update of "isec".
964 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
965 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
966 access contents-type flags. Assert that the associated container
967 is initialized. Use that container, not elf_gp_size, to hold size
968 of linker-generated cranges contents.
969 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
970 * emultempl/sh64elf.em
971 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
972 there's already a .cranges section. When section flag difference
973 is found, don't NULL-check cranges a second time. Tweak comments.
974 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
975 merging, not max size, as size of ld-generated .cranges contents.
976 Don't set ELF section flags in output section. When checking for
977 needed .cranges descriptors, don't use a variable; compare
978 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
980 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
981 * emultempl/sh64elf.em: New file.
982 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
983 * Makefile.in: Regenerate.
984 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
985 (OTHER_RELOCATING_SECTIONS): Ditto.
986 (EXTRA_EM_FILE): New, set to sh64elf if not set.
987 * emulparams/shlelf32.sh: Stub out all settings except
988 OUTPUT_FORMAT. Source shelf32.sh.
989 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
990 OTHER_RELOCATING_SECTIONS.
991 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
992 * emulparams/shlelf64.sh: Stub out all settings except
993 OUTPUT_FORMAT. Source shelf64.sh.
994 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
995 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
997 (DATA_START_SYMBOLS): Define, provide ___data.
998 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
999 for consecutive .data section.
1000 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
1001 section after .data section.
1002 * emulparams/shlelf64.sh: Ditto.
1003 * emulparams/shelf32.sh: Ditto.
1004 (ALIGNMENT): Define to 8.
1005 * emulparams/shelf32.sh: Ditto.
1006 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
1007 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
1008 built-in linker scripts.
1009 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
1010 * emulparams/shlelf64.sh: New.
1011 * emulparams/shelf64.sh: New.
1012 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
1014 * Makefile.am: Add support for shlelf64 and shelf64.
1015 * Makefile.in: Regenerate.
1016 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
1017 * configure.tgt (sh64-*-elf*): Add shelf as default.
1018 Add shlelf to targ_extra_emuls.
1019 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
1020 * emulparams/shelf32.sh: New file.
1021 * emulparams/shlelf32.sh: New file.
1022 * Makefile.am: Add support for shlelf32 and shelf32.
1023 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
1024 * Makefile.in: Regenerate.
1026 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
1028 * ldlang.c (lang_reset_memory_regions): Rename from
1029 reset_memory_regions. Change all callers. Make public.
1030 * ldlang.h (lang_reset_memory_regions): Prototype.
1031 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
1032 lang_reset_memory_regions before lang_size_sections.
1033 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1034 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
1036 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
1038 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
1039 arithmetic when checking for too many global registers.
1041 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
1043 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
1044 (ehppanbsd.c): New rule.
1045 * Makefile.in: Regenerate.
1046 * configure.tgt (hppa*-*-netbsd*): New target.
1047 * emulparams/hppalinux.sh: Add comment to check other files
1048 that source this file it is modified, and list which
1050 * emulparams/hppanbsd.sh: New file.
1052 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1054 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1057 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1059 Support on-demand global register allocation from
1060 R_MMIX_BASE_PLUS_OFFSET relocs.
1061 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1062 mmix_set_reg_section_vma. Call
1063 _bfd_mmix_finalize_linker_allocated_gregs.
1064 (mmix_before_allocation): New function.
1065 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1066 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1067 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1068 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1069 before .MMIX.reg_contents.
1070 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1071 (mmo_after_open): New function.
1072 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1073 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1074 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1076 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1078 * emulparams/or32.sh: New file.
1079 * emulparams/or32elf.sh: New file.
1080 * scripttempl/or32.sc: New file.
1081 * configure.tgt : Add support for or32.
1082 * configure: Regenerate
1083 * Makefile.am: Add support for or32.
1084 * Makefile.in: Regenerate.
1085 * NEWS: Mention support for or32.
1086 * po/ld.pot: Regenerate.
1088 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1089 Mitch Lichtenberg <mpl@broadcom.com>
1091 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1092 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1093 reloc creation (ld --embedded-relocs).
1095 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1097 * configure: Regenerated.
1099 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1101 * Makefile.am (install): Depend on install-info.
1102 * Makefile.in: Regenerate.
1104 2002-01-26 Christian Rose <menthos@menthos.com>
1106 * ldmain.c (main): Use full sentences to ease translation.
1108 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1110 * po/fr.po: Updated version.
1112 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1114 * po/es.po: Updated version.
1116 2002-01-25 Andreas Jaeger <aj@suse.de>
1118 * ldlex.l (yy_input): Correct error check.
1120 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1122 * ldmisc.c (demangle): Put back dots when string not demangled.
1124 2002-01-22 Richard Henderson <rth@redhat.com>
1126 * emulparams/elf64alpha.sh (NOP): Use unop.
1128 2002-01-21 Andreas Jaeger <aj@suse.de>
1130 * ldlex.l: Use fread instead of read.
1132 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1134 * configure.tgt (ia64-*-netbsd*): New target.
1136 2002-01-21 H.J. Lu <hjl@gnu.org>
1138 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1140 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1142 2002-01-18 Andreas Jaeger <aj@suse.de>
1144 * ldver.c (ldversion): Update year.
1146 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1148 * po/ld.pot: Regenerate.
1150 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1152 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1153 * Makefile.in: Regenerate.
1154 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1155 * emultempl/ppc64elf.em: New file.
1157 2002-01-15 DJ Delorie <dj@redhat.com>
1159 * scripttempl/pe.sc: Add support for constructor priorities.
1161 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1163 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1164 * emulparams/avr23xx.sh: Likewise.
1165 * emulparams/avr4433.sh: Likewise.
1166 * emulparams/avr44x4.sh: Likewise.
1167 * emulparams/avr85xx.sh: Likewise.
1168 * emulparams/avrmega103.sh: Likewise.
1169 * emulparams/avrmega161.sh: Likewise.
1170 * emulparams/avrmega603.sh: Likewise.
1171 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1173 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1175 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1176 archive is excluded.
1178 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1180 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1181 (eshelf_nbsd.c): New rule.
1182 (eshlelf_nbsd.c): New rule.
1183 * Makefile.in: Regenerate.
1184 * configure.tgt (sh*le-*-netbsdelf*): New target.
1185 (sh*-*-netbsdelf*): New target.
1186 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1187 * ld/emulparams/shelf_nbsd.sh: New emulation.
1188 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1190 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1192 * po/es.po: New file: Spanish translation.
1193 * configure.in (ALL_LINGUAS): Add es.
1194 * configure: Regenerate.
1196 2002-01-06 John Marshall <jmarshall@acm.org>
1198 * ld.texinfo: Note that --emit-relocs is currently only
1199 implemented for ELF.
1201 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1203 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1204 of bfd_section_list_remove and bfd_section_list_insert macros.
1205 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1206 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1208 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1210 * configure.tgt (x86_64-*-netbsd*): New target.
1212 2001-12-21 Tom Rix <trix@redhat.com>
1214 (gld*_create_output_section_statements): New function.
1215 For -binitfini support.
1216 * emultempl/aix.em (gld*_before_parse): Fix comment.
1217 * emultempl/aix.em (gld*_parse_args): Fix comment.
1219 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1221 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1223 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1225 * configure.tgt (arm-*-netbsdelf*): Add target.
1226 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1227 * emulparams/armelf_nbsd.sh: Added.
1228 * Makefile.am: Add rules for earmelf_nbsd.
1229 * Makefile.in: Regenerate.
1231 2001-12-19 Andreas Jaeger <aj@suse.de>,
1232 Susanne Oberhauser <froh@suse.de>
1234 * configure.host: Add rules for x86_64-*linux-gnu. Change
1235 s390x-linux entry to use gcc to report configuration, replace gcc
1236 with $CC in s390-linux
1238 2001-12-19 Andreas Jaeger <aj@suse.de>
1240 * ld.texinfo (VERSION): Fix markup.
1242 2001-12-18 matthew green <mrg@eterna.com.au>
1244 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1245 (m68kelfnbsd.c): New rule.
1246 * Makefile.in: Regenerate.
1247 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1248 (m68*-*-netbsd*4k*): .. this.
1249 (m68*-*-netbsdelf*): New target.
1250 (m68*-*-netbsd*): Also include ELF support.
1251 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1252 * emulparams/m68kelfnbsd.sh: New emulation.
1254 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1256 * ldgram.y (vers_node): Support anonymous version tags.
1257 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1258 tag is not defined together with non-anonymous versions.
1259 * ld.texinfo: Document it.
1261 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1263 * po/tr.po: New file: Turkish translation.
1264 * configure.in (ALL_LINGUAS): Add tr.
1265 * configure: Regenerate.
1267 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1269 * Makefile.am: Add rules for eelf64alpha_nbsd.
1270 * Makefile.in: Regenerate.
1271 * configure.tgt (alpha*-*-netbsd*): Set
1272 targ_emul to elf64alpha_nbsd.
1273 * emulparams/elf64alpha_nbsd.sh: Added.
1275 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1277 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1278 section_tail when fiddling with section list.
1279 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1280 broken into separate strings to make translation easier.
1281 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1282 fiddling with section list.
1283 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1285 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1287 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1289 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1291 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1293 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1295 * emultempl/elf32.em (finish): Supply output_bfd
1296 to bfd_elf*_discard_info.
1297 (OPTION_EH_FRAME_HDR): Define.
1298 (longopts): Add --eh-frame-hdr.
1299 (parse_args): Handle it.
1300 (list_options): Add --eh-frame-hdr to help.
1301 * emultempl/hppaelf.em (finish): Supply output_bfd
1302 to bfd_elf*_discard_info.
1303 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1305 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1307 * lexsup.c (parse_args): Don't pass shortopts to second call to
1308 getopt functions. Restore optind rather than decrementing before
1309 second call. Remove errind as it now duplicates last_optind.
1311 2001-12-11 Christopher Faylor <cgf@redhat.com>
1313 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1315 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1316 Richard Henderson <rth@redhat.com>
1318 * Makefile.am: Add support for xstormy16.
1319 * configure.tgt: Add support for xstormy16.
1320 * Makefile.in: Regenerate.
1321 * emulparams/elf32xstormy16.sh: New file.
1322 * scripttempl/xstormy16.sc: New file.
1324 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1326 * Makefile.in (LIB_PATH): Make configurable.
1327 (GENSCRIPTS): Set LIB_PATH in environment.
1328 * configure.in: Substitute LIB_PATH.
1329 * configure: Regenerate.
1330 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1331 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1333 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1335 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1336 describing the -N option so that it is easier to translate into
1339 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1341 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1342 statements describing a single option with a single, newline
1343 escaped fprintf. This allows better translation into other
1346 * ldmain.c (add_archive_element): Combine multiple strings
1347 into a single string to permit better translation into other
1350 2001-12-05 Tom Rix <trix@redhat.com>
1352 * Makefile.am: Remove eaixppc64.
1353 * Makefile.in: Regenerate.
1355 2001-12-04 Tom Rix <trix@redhat.com>
1357 * emultempl/aix.em (choose_target): Change default target to
1358 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1360 (gld*_read_file): Fix typo.
1361 (change_symbol_mode): Add prototype.
1364 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1365 * emulparams/aixrs6.sh : Same.
1366 * emulparams/ppcmacos.sh : Same.
1367 * emulparams/aixppc64.sh : Delete file.
1368 * emultempl/aix.em : Formatting changes.
1370 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1372 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1373 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1375 (OTHER_END_SYMBOLS): Fix formatting.
1376 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1377 (OTHER_END_SYMBOLS): Fix formatting.
1379 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1381 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1383 2001-12-02 Tom Rix <trix@redhat.com>
1385 * configure.tgt : Remove eaixppc64 emulations.
1386 * Makefile.in : Remove eaixppc64.c
1387 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1388 (ldemul_default_target): Same.
1389 * emultempl/gld960.em (gld960_choose_target): Same.
1390 * emultempl/gld960c.em (gld960_choose_target): Same.
1391 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1392 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1393 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1394 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1395 * emultempl/aix.em (choose_target): New function. Handle emulation of
1398 2001-11-27 H.J. Lu <hjl@gnu.org>
1400 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1401 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1402 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1403 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1404 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1405 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1406 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1407 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1409 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1412 (REL_SDATA): Likewise.
1413 (REL_SBSS): Likewise.
1414 (REL_SDATA2): Likewise.
1415 (REL_SBSS2): Likewise.
1416 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1419 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1421 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1423 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1425 2001-11-22 H.J. Lu <hjl@gnu.org>
1427 * Makefile.in: Regenerated with automake based on automake
1428 1.4-8 in RedHat 7.1.
1430 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1432 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1433 (config.status): Delete rule.
1434 Add extra dependencies to cover sourced emulparams files.
1435 * Makefile.in: Regenerate.
1437 * scripttempl/elf.sc: Order <section>, <section>.* and
1438 corresponding linkonce sections as seen in input files.
1439 Formatting fixes. Zero vma of all sections if not relocating.
1440 (STACK): Define and insert if STACK_ADDR defined.
1441 (OTHER_RELOCATING_SECTIONS): Delete.
1442 (OTHER_END_SYMBOLS): Define.
1443 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1444 (OTHER_READWRITE_SECTIONS): Likewise.
1445 (OTHER_GOT_SECTIONS): Likewise.
1446 (OTHER_SDATA_SECTIONS): Likewise.
1447 (OTHER_BSS_SECTIONS): Likewise.
1448 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1449 (OTHER_READWRITE_SECTIONS): Likewise.
1450 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1451 (OTHER_READWRITE_SECTIONS): Likewise
1453 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1454 (STACK_ADDR): Define.
1455 * emulparams/armelf_oabi.sh: As for armelf.sh.
1456 * emulparams/elf32mcore.sh: As for armelf.sh.
1457 * emulparams/h8300elf.sh: As for armelf.sh.
1458 * emulparams/mn10200.sh: As for armelf.sh.
1459 * emulparams/shelf.sh: As for armelf.sh.
1461 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1462 (OTHER_END_SYMBOLS): Define.
1463 * emulparams/m32relf.sh: As for elf32fr30.sh.
1464 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1465 * emulparams/h8300self.sh: As for elf32fr30.sh.
1467 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1468 defines with RELOCATING test.
1469 (OTHER_SDATA_SECTIONS): Likewise.
1470 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1471 (OTHER_END_SYMBOLS): ..this.
1472 * emulparams/crislinux.sh: As for criself.sh.
1474 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1476 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1477 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1478 normal and linkonce sections as seen in input files.
1479 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1480 (TEXT_DYNAMIC): Likewise.
1481 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1482 (OTHER_SDATA_SECTIONS): Likewise.
1483 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1484 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1485 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1486 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1487 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1488 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1489 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1490 sections as seen in input files.
1491 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1492 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1494 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1495 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1496 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1497 (OTHER_SECTIONS): Instead, use this..
1498 (OTHER_END_SYMBOLS): ..and this.
1500 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1501 * emulparams/elf32bsmip.sh: Likewise.
1502 * emulparams/elf32btsmip.sh: Likewise.
1503 * emulparams/elf32ebmip.sh: Likewise.
1504 * emulparams/elf32lmip.sh: Likewise.
1505 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1506 * emulparams/elf32lsmip.sh: Likewise.
1507 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1508 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1509 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1510 * emulparams/elf64btsmip.sh: Likewise.
1511 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1512 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1513 * emulparams/elf32ppclinux.sh: Likewise.
1514 * emulparams/elf32ppcsim.sh: Likewise.
1515 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1516 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1517 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1518 * emulparams/h8300self.sh: Likewise.
1519 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1520 * emulparams/sh.sh: Comment.
1521 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1522 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1523 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1525 2001-11-21 David Heine <dlheine@tensilica.com>
1526 Alan Modra <amodra@bigpond.net.au>
1528 * ldlang.c (map_input_to_output_sections): Replace "break"
1529 accidentally removed with 2001-08-03 change.
1530 (lang_gc_sections_1): Likewise.
1532 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1534 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1536 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1538 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1539 of false when calling lang_size_sections.
1540 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1542 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1544 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1545 function when LDEMUL_FINISH isn't set to the same name. Don't
1546 call ${LDEMUL_FINISH}.
1547 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1548 * emultempl/armelf.em (arm_elf_finish): Call
1549 gld${EMULATION_NAME}_finish.
1550 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1551 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1552 hppaelf_layout_sections_again if necessary.
1553 (need_laying_out): New var.
1554 (hppaelf_layaout_sections_again): Rename to
1555 hppaelf_layout_sections_again. Clear need_laying_out.
1556 (PARSE_AND_LIST_OPTIONS): Format text.
1558 2001-11-14 H.J. Lu <hjl@gnu.org>
1560 * emultempl/armelf.em (arm_elf_finish): Renamed from
1561 gld${EMULATION_NAME}_finish.
1562 (LDEMUL_FINISH): Set to arm_elf_finish.
1564 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1566 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1567 (struct ld_emulation_xfer_struct): Use it.
1569 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1571 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1572 additional symbols referenced by newer crt0.o files from HP.
1574 2001-11-12 Anthony Green <green@redhat.com>
1576 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1578 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1580 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1581 * Makefile.in: Regenerate.
1583 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1585 * ld.texinfo: Use @command for commands, @option for options.
1586 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1588 * Makefile.in: Rebuild.
1590 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1592 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1593 Add support for targets.
1595 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1597 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1598 * configure: Regernate.
1599 * po/fr.po: New file.
1600 * po/sv.po: New file.
1602 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1604 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1605 as little endian default and to support big endian.
1607 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1609 * ld.texinfo (Options): Document new option, -nostdlib.
1610 * lexsup.c (OPTION_NOSTDLIB): New definition.
1611 (ld_options): Add entry for "nostdlib".
1612 (parse_args): Handle OPTIONS_NOSTDLIB.
1613 * ldfile.c (ldfile_add_library_path): Don't add directories
1614 to the search path if they weren't specified on the command line
1615 and -nostdlib was specified.
1616 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1618 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1620 * lexsup.c (parse_args): Prevent infinite parsing loop when
1621 "-rpath.a" is specified on the command line.
1622 Replace calls to fprintf with calls to einfo.
1624 2001-10-31 John Marshall <jmarshall@acm.org>
1626 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1627 appear only once across all the linker scripts involved in a link
1628 invocation no longer applies. Make the documentation reflect
1631 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1633 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1635 (sh-*-linux*): Added targ_extra_libpath.
1637 2001-10-31 David Heine <dlheine@tensilica.com>
1639 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1640 for padding statements.
1642 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1644 * configure.tgt (mmix-*-*): New target.
1645 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1646 Add dependencies to match.
1647 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1648 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1649 scripttempl/mmo.sc: New files.
1650 * gen-doc.texi: @set MMIX.
1651 * ld.texinfo: Ditto.
1652 [MMIX] Add MMIX node.
1653 * Makefile.in: Regenerate.
1655 2001-10-29 Kazu Hirata <kazu@hxi.com>
1657 * ldlang.c: Fix a comment typo.
1659 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1661 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1662 entries, and match *-*-linux*.
1664 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1666 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1667 with ldlex_script, ldlex_popstate.
1668 (ifile_p1): Likewise.
1669 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1671 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1672 to 1. Don't BEGIN(SCRIPT).
1673 (lex_redirect): Similarly.
1674 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1676 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1678 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1679 __EH_FRAME_END__ and accept eh frames into data section.
1680 Add ctor and dtor sections.
1682 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1684 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1685 (auto-export): Fix indentation.
1687 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1689 * pe-dll.c (autofilter_objectlist): Add startup objects
1691 (auto-export): Constify char * p.
1692 Extract file basename and use strcmp rather than ststr
1695 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1697 * ldmain.c (get_emulation): Improve comment about the handling
1700 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1702 * po/POTFILES.in: Regenerate.
1704 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1706 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1707 -z nocopyreloc and -z nocombreloc usage strings.
1709 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1711 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1714 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1716 * scripttempl/armaout.sc: Place .bss section after end of aligned
1717 data section to match behaviour of aout code in constructrion of
1720 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1722 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1723 startup files for mingw32 dlls to list.
1725 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1727 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1729 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1731 * configure.tgt (targ): Add arm9e-*-elf.
1733 2001-10-05 H.J. Lu <hjl@gnu.org>
1735 * genscripts.sh: Fix a typo in the last change.
1737 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1739 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1740 -z nocombreloc in usage.
1742 2001-10-03 Jim Blandy <jimb@redhat.com>
1744 * genscripts.sh: Include a comment at the top of each generated
1745 script, explaining its purpose.
1747 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1749 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1750 * NEWS: Mention -z nocopyreloc.
1751 * ld.texinfo (Options): Describe nocopyreloc.
1753 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1755 * configure: Regenerate.
1757 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1759 * ldver.h (ld_program_version): Remove declaration.
1760 * lexsup.c (parse_args): Move printing of copyright message..
1761 * ldver.c (ldversion): .. to here.
1762 Use BFD_VERSION_STRING in place of BFD_VERSION.
1763 (ld_program_version): Remove.
1764 * Makefile.am (Makefile): Depend on bfd/configure.in.
1766 * Makefile.in: Regenerate.
1768 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1770 * Makefile.am: Update dependencies with "make dep-am".
1771 * Makefile.in: Regenerate.
1773 2001-09-29 John Reiser <jreiser@BitWagon.com>
1775 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1776 * lexsup.c: Add --no-define-common commandline option.
1777 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1778 * ldlex.l: Likewise.
1779 * ld.h: Add command_line.inhibit_common_definition.
1780 * ldmain.c (main): Initialize.
1781 * ld.texinfo: Document.
1783 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1785 * ldmisc.c (USE_STDARG): Remove.
1786 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1791 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1792 declarations. Update copyright.
1794 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1796 * pe-dll.c: Remove obsoleted declaration of
1797 pe_get_data_import_dll_name.
1798 (pe_create_import_fixup): Fix thinko.
1800 * ld.texinfo(enable-auto-import): Clarify the explanation.
1802 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1804 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1805 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1806 DLL_SUPPORT controlled code.
1808 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1810 * emultempl/pe.em(pe_data_import_dll): Make static.
1811 (pe_get_data_import_dll_name): New accessor function.
1812 * pe-dll.c(pe_create_import_fixup): call
1813 pe_get_data_import_dll_name() from pe.em, instead of
1814 directly accessing pe_data_import_dll variable from pe.em.
1816 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1818 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1819 (def_file_add_directive): Use ISSPACE instead of isspace.
1820 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1821 isdigit/isxdigit/isalpha/isalnum.
1822 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1823 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1824 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1825 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1827 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1828 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1830 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1831 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1832 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1833 (ctor_prio): Use ISDIGIT instead of isdigit.
1834 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1835 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1836 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1838 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1839 (stricpy): Use TOLOWER instead of isupper/tolower.
1840 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1841 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1842 (lex_warn_invalid): Use ISPRINT instead of isprint.
1843 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1844 (main): For gettext, also set the LC_CTYPE locate facet.
1845 (add_keepsyms_file): Use ISSPACE instead of isspace.
1846 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1847 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1848 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1849 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1850 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1851 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1852 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1853 (quoteput): Use ISSPACE instead of isspace.
1854 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1857 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1859 * deffilep.y (def_stash_module): Constify "name" param.
1861 * pe-dll.c: Replace CONST with const throughout.
1862 (quick_symbol): Constify "n1", "n2", "n3" params.
1863 (make_singleton_name_thunk): Constify "import" param. Make
1864 "buffer_len" a size_t.
1865 (make_import_fixup_entry): Constify "name", "fixup_name",
1866 "dll_symname" params.
1867 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1868 (pe_get32): Likewise.
1869 (pe_implied_import_dll): Likewise.
1871 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1872 (sort_by_section_name): Likewise.
1874 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1875 (make_import_fixup): Cast printf arg, rel->address to long rather
1877 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1879 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1881 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1882 defines BufferSize. Increase buffer size by one.
1884 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1886 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1888 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1890 * configure.tgt: Add arm-openbsd target.
1892 2001-09-12 H.J. Lu <hjl@gnu.org>
1894 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1896 (ALL_64_EMULATIONS): Here.
1897 * Makefile.in: Regenerated.
1899 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1901 * emultempl/pe.em(make_import_fixup): change signature to
1902 take asection as well as arelec; we need this for proper
1903 error reporting. Only call pe_create_import_fixup() if
1904 there is no attempt to add a constant addend to the reloc;
1905 otherwise, report error condition.
1906 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1907 since final argument is a pointer to make_import_fixup().
1908 Change call to cb() to match make_import_fixup() signature.
1909 (make_import_fixup_mark): make buffer_len unsigned.
1910 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1912 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1914 * ld.texinfo: add verbose documentation for auto-import
1915 direct-addressing workaround, to compliment the terse
1918 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1920 * scripttempl/v850.sc: Add gcc_except_table sections.
1922 2001-09-11 Jeffrey A Law (law@cygnus.com)
1924 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1925 * emulparams/h8300self.sh: Similarly.
1927 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1929 * ld.texinfo (Options, --stack): Correct default value for stack
1932 2001-09-05 Tom Rix <trix@redhat.com>
1934 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1936 2001-09-03 Andreas Jaeger <aj@suse.de>
1938 * emultempl/beos.em: Declare prototypes for comparions functions,
1941 2001-09-02 Andreas Jaeger <aj@suse.de>
1943 * emultempl/aix.em: Add missing prototype.
1944 * emultempl/lnk960.em: Likewise.
1945 * emultempl/vanilla.em: Likewise.
1946 * emultempl/armcoff.em: Likewise.
1947 * emultempl/armelf_oabi.em: Likewise.
1948 * emultempl/beos.em: Likewise.
1949 * emultempl/gld960c.em: Likewise.
1950 * emultempl/gld960.em: Likewise.
1952 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1953 for prototype declaration.
1955 2001-08-31 Eric Christopher <echristo@redhat.com>
1956 Jason Eckhardt <jle@redhat.com>
1958 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1960 2001-08-31 Andreas Jaeger <aj@suse.de>
1962 * emultempl/pe.em: Add missing prototypes.
1963 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1964 pe_find_data_imports.
1965 (pr_sym): Add unused attribute.
1967 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1969 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1970 default from coff to elf.
1972 2001-08-29 Jeff Law <law@redhat.com>
1974 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1976 * emulparams/h8300self.sh: Similarly.
1978 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1980 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1982 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1983 * configure.tgt (h8300-*-elf*): New case.
1984 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1985 * emulparams/h8300self.sh: New file.
1986 * Makefile.in: Regenerated.
1988 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1990 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1993 2001-08-27 Linus Nordberg <linus@swox.com>
1994 Alan Modra <amodra@bigpond.net.au>
1996 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1997 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1999 * Makefile.in: Regenerate.
2000 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
2001 entries to correct alphabetical position.
2002 * emulparams/elf64ppc.sh: New.
2003 * emulparams/elf64lppc.sh: New.
2005 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
2007 * ldmain.c (main): Declare BSIZE as static.
2009 2001-08-23 Jakub Jelinek <jakub@redhat.com>
2011 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
2012 into .rel.dyn resp. .rela.dyn if combreloc.
2013 (get_script): If .x linker script is equal to .xn, only put it
2014 once into the binary.
2015 Add .xc and .xsc scripts.
2016 (parse_args): Handle -z combreloc and -z nocombreloc.
2017 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
2018 For .xc and .xsc scripts put all .rel* or .rela* input sections
2019 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
2020 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
2022 Strip trailing whitespace from script.
2023 Generate .xc and .xsc scripts if requested.
2024 * ldmain.c (main): Initialize link_info.combreloc and
2025 link_info.spare_dynamic_tags.
2026 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
2027 (ld_options): Add --spare-dynamic-tags option.
2028 (parse_args): Likewise.
2029 * ld.texinfo: Document -z combreloc and -z nocombreloc.
2030 * ldint.texinfo: Document .xc and .xsc linker scripts.
2031 * NEWS: Add notes about -z combreloc and SHF_MERGE.
2033 2001-08-22 H.J. Lu <hjl@gnu.org>
2035 * emulparams/elf32fr30.sh: Add a newline.
2037 2001-08-21 Andreas Jaeger <aj@suse.de>
2039 * deffilep.y: Add missing prototypes.
2040 * pe-dll.c: Likewise.
2042 2001-08-20 Alan Modra <amodra@bigpond.net.au>
2044 * ldlang.c (insert_pad): Fix typos in last patch.
2046 * ldlang.c: When traversing lang_statement_union_type lists,
2047 consistently use "header.next" rather than "next".
2048 * mpw-eppcmac.c: Likewise.
2049 * emultempl/beos.em: Likewise.
2050 * emultempl/hppaelf.em: Likewise.
2051 * emultempl/pe.em: Likewise.
2052 * ldlang.h (union lang_statement_union): Remove "next" field.
2054 * ldlang.c (insert_pad): Use offsetof macro.
2055 (lang_size_sections): Always neuter padding statements.
2056 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2058 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2059 passed to lang_size_sections.
2060 (pe_exe_fill_sections): Likewise.
2061 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2062 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2064 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2066 * emultempl/aix.em: Formatting fixes.
2068 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2070 * ldlang.c (insert_pad): Make use of an existing pad statement if
2071 available. Move code calculating alignment, adjusting section
2072 alignment power, and adjusting dot to ..
2073 (size_input_section): .. here. Remove unused relax param.
2074 (lang_size_sections): Change boolean `relax' param to boolean *.
2075 Adjust call to size_input_section. Make use of insert_pad to
2076 place pad after the assignment statement. If relaxing, zap
2078 (reset_memory_regions): Reset output_bfd section sizes too.
2079 (relax_again): Move to..
2080 (lang_process): ..here. Adjust call to lang_size_sections, and
2081 remove duplicated code.
2082 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2084 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2086 * ld.texinfo: Document that fill values now use the four least
2088 * emulparams/elf32fr30.sh (NOP): Update.
2089 * emulparams/elf32mcore.sh: Likewise.
2090 * emulparams/elf64_s390.sh: Likewise.
2091 * emulparams/elf_i386.sh: Likewise.
2092 * emulparams/elf_i386_be.sh: Likewise.
2093 * emulparams/elf_i386_chaos.sh: Likewise.
2094 * emulparams/elf_i386_ldso.sh: Likewise.
2095 * emulparams/elf_s390.sh: Likewise.
2096 * emulparams/elf_x86_64.sh: Likewise.
2097 * emulparams/i386moss.sh: Likewise.
2098 * emulparams/i386nw.sh: Likewise.
2099 * emulparams/m68kelf.sh: Likewise.
2100 * scripttempl/elf.sc: Update NOP comment.
2101 * scripttempl/elfi370.sc: Likewise.
2102 * scripttempl/elfm68hc11.sc: Likewise.
2103 * scripttempl/elfm68hc12.sc: Likewise.
2104 * scripttempl/nw.sc: Likewise.
2106 2001-08-15 Tom Rix <trix@redhat.com>
2108 * ldgram.y (saved_script_handle): Initialize to NULL.
2109 * ldmain.c (main): Change check on saved_script_handle.
2111 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2113 * emultempl/elf32.em: Formatting fixes.
2114 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2115 looking at sec->owner.
2116 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2117 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2118 unused code, and reorganize orphan section placement code.
2120 * ldlang.c (wild_doit): Rename to lang_add_section.
2121 * ldlang.h: Here too.
2122 * mpw-elfmips.c: And here.
2123 * emultempl/beos.em: And here.
2124 * emultempl/elf32.em: And here.
2125 * emultempl/hppaelf.em: And here.
2126 * emultempl/pe.em: And here.
2128 2001-08-13 Richard Henderson <rth@redhat.com>
2130 * emultempl/needrelax.em: New file.
2131 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2132 * Makefile.am (eelf64_ia64.c): Depend on it.
2133 * Makefile.in: Rebuild.
2135 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2137 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2138 output_section is set non-NULL.
2140 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2141 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2142 needlessly create an output_section_statement. Treat a correctly
2143 named output_section_statement with NULL bfd_section as compatible.
2145 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2147 * emultempl/generic.em: Support EXTRA_EM_FILE.
2148 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2149 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2150 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2151 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2152 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2153 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2154 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2155 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2156 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2157 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2159 2001-08-12 Richard Henderson <rth@redhat.com>
2161 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2162 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2163 scripttempl/v850.sc: Keep .jcr data.
2165 2001-08-12 H.J. Lu <hjl@gnu.org>
2166 Andrew Haley <aph@cambridge.redhat.com>
2167 Nick Clifton <nickc@redhat.com>
2169 * ldgram.y (had_script): Change name to saved_script_handle.
2170 Change type to file handle.
2171 * ld.h (had_script): Rename and retype.
2172 * ldfile.c (ldfile_open_command_file): Save the file handle
2173 used in saved_script_handle.
2174 * lexsup.c (parse_args): Do not allow -c option to alter
2175 saved_script_handle.
2176 * ldmain.c (main): Print out the linker script used if
2177 --verbose is given. Check saved_script_handle to obtain the
2178 external linker script used, or if NULL, dump the builtin
2180 * ld.texinfo: Document that --verbose now dumps the linker
2181 script used, regardless of whether it was an internal or an
2184 2001-08-10 Andreas Jaeger <aj@suse.de>
2186 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2188 * configure: Regenerate.
2190 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2192 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2194 * scripttempl/elf.sc: Move non-text .dynamic section before
2195 .plt/.got/.sdata* group.
2196 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2197 (OTHER_SDATA_SECTIONS): Add.
2198 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2200 * emulparams/crislinux.sh: Likewise.
2201 * emulparams/elf32b4300.sh: Likewise.
2202 * emulparams/elf32bmip.sh: Likewise.
2203 * emulparams/elf32bmipn32.sh: Likewise.
2204 * emulparams/elf32bsmip.sh: Likewise.
2205 * emulparams/elf32btsmip.sh: Likewise.
2206 * emulparams/elf32ebmip.sh: Likewise.
2207 * emulparams/elf32elmip.sh: Likewise.
2208 * emulparams/elf32l4300.sh: Likewise.
2209 * emulparams/elf32lmip.sh: Likewise.
2210 * emulparams/elf32lsmip.sh: Likewise.
2211 * emulparams/elf32ltsmip.sh: Likewise.
2212 * emulparams/elf64bmip.sh: Likewise.
2213 * emulparams/elf64btsmip.sh: Likewise.
2214 * emulparams/elf64ltsmip.sh: Likewise.
2216 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2218 * genscripts.sh: Source the emulparams script before each output
2219 script is generated so that variables like `RELOCATING' may affect
2220 variables defined in the emulparams script.
2222 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2224 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2227 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2228 ie. iterate over wild_statement.section_list.
2229 (gld${EMULATION_NAME}_place_orphan): Likewise.
2231 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2233 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2234 .fini[0-4] sections used by _exit
2235 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2236 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2237 * scripttempl/elfm68hc11.sc: Likewise.
2239 2001-08-03 H.J. Lu <hjl@gnu.org>
2241 * emultempl/beos.em (init): Add the missing initialization.
2243 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2245 * ld.texinfo (Input Section Basics): Clarify ordering of output
2247 * ldlang.c (callback_t): Add wildcard_list param.
2248 (walk_wild_section): Remove "section" param. Rewrite for
2249 lang_wild_statement_type change. Remove unique_section_p test.
2250 (walk_wild_file): Remove "section" param.
2251 (walk_wild): Remove "section" and "file" params.
2252 (lang_gc_wild): Likewise.
2253 (wild): Likewise. Modify for lang_wild_statement_type change.
2254 (wild_sort): Likewise. Add "sec" param.
2255 (gc_section_callback): Likewise.
2256 (output_section_callback): Likewise. Do unique_section_p test.
2257 (map_input_to_output_sections): Modify call to wild.
2258 (lang_gc_sections_1): Likewise.
2259 (print_wild_statement): Modify for lang_wild_statement_type
2261 (lang_add_wild): Replace filename, filenames_sorted param with
2262 filespec. Replace section_name, sections_sorted,
2263 exclude_filename_list with section_list.
2264 * ldlang.h (lang_add_wild): Here too.
2265 (lang_wild_statement_type): Replace section_name, sections_sorted,
2266 and exclude_filename_list with section_list.
2267 * ldgram.y (current_file): Delete.
2268 (%union): Add wildcard_list.
2269 (file_NAME_list): Set type to wildcard_list. Build a linked list
2270 rather than calling lang_add_wild for each entry.
2271 (input_section_spec_no_keep): Call lang_add_wild here instead.
2272 * ld.h (struct wildcard_list): Declare.
2273 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2275 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2277 * ldmain.c (main): initialize link_info.pei386_auto_import
2278 * pe-dll.c: new tables for auto-export filtering
2279 (auto_export): change API, pass abfd for contextual filtering.
2280 Loop thru tables of excluded symbols instead of comparing
2283 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2285 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2286 static variable current_sec (static struct sec *). Add
2287 forward declaration for add_bfd_to_link.
2288 (process_def_file): Don't export undefined symbols. Do not
2289 export symbols starting with "_imp__". Call auto_export()
2291 (pe_walk_relocs_of_symbol): New function.
2292 (generate_reloc): add optional extra debugging
2293 (pe_dll_generate_def_file): eliminate extraneous initial blank
2295 (make_one): enlarge symtab to make room for __nm__ symbols
2296 (DATA auto-import support).
2297 (make_singleton_name_thunk): New function.
2298 (make_import_fixup_mark): New function.
2299 (make_import_fixup_entry): New function.
2300 (pe_create_import_fixup): New function.
2301 (add_bfd_to_link): Specify that 'name' argument is a CONST
2303 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2304 declare new functions pe_walk_relocs_of_symbol and
2305 pe_create_import_fixup.
2306 * emultempl/pe.em: add new options --enable-auto-import,
2307 --disable-auto-import, and --enable-extra-pe-debug.
2308 (make_import_fixup): New function.
2309 (pe_find_data_imports): New function.
2310 (pr_sym): New function.
2311 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2312 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2315 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2317 * ld.texinfo: add additional documentation for
2318 --export-all-symbols. Document --out-implib,
2319 --enable-auto-image-base, --disable-auto-image-base,
2320 --dll-search-prefix, --enable-auto-import, and
2321 --disable-auto-import.
2322 * ldint.texinfo: Add detailed documentation on auto-import
2325 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2327 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2330 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2332 * Makefile.am: Update dependencies with "make dep-am".
2333 * Makefile.in: Regenerate
2335 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2337 * ldcref.c (check_section_sym_xref): New function.
2338 (check_nocrossrefs): Call it.
2339 (check_nocrossref): Interate over h->refs here instead of..
2340 (check_refs): ..here. Pass in the symbol name, section, and bfd
2341 rather than hash_entry pointers.
2342 (struct check_refs_info): Keep symbol name rather than hash entry.
2344 (check_reloc_refs): Tweak for above changes in check_refs_info.
2345 Only report references to section syms when symname is NULL to
2346 prevent duplicate messages for the same reloc.
2348 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2350 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2351 available. Do not print NULL trees.
2352 (exp_print_token): Print unknown tokens with values > 126 as
2353 decimal values not ASCII characters.
2355 * ldlang.c (lang_leave_overlay): If a region is specified assign
2356 it to all sections inside the overlay unless they have been
2357 assigned to the own, non-default, memory region.
2359 * README: Add header for consistency with other README files.
2361 2001-07-14 H.J. Lu <hjl@gnu.org>
2363 * emultempl/elf32.em (output_prev_sec_find): Never return
2364 bfd_abs_section_ptr, bfd_com_section_ptr nor
2365 bfd_und_section_ptr.
2367 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2369 * Makefile.am (em32relf.c): Change dependency from generic.em to
2371 * Makefile.in: Regenerate.
2373 2001-07-14 matthew green <mrg@eterna.com.au>
2375 * configure.tgt (i386-*-netbsdelf*): New target.
2376 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2378 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2380 * emultempl/elf32.em (output_prev_sec_find): New.
2381 (place_orphan): Use it.
2383 2001-07-11 H.J. Lu <hjl@gnu.org>
2385 * ldmain.c (main): Fix typos in the last change.
2387 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2389 * ldmain.c (main): Disallow -F and -f without -shared.
2391 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2393 * emultempl/pe.em (after_open): Check for the output_bfd not
2394 having any coff_data structure allocated to it.
2396 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2398 * emultempl/elf32.em: Do not assuming that contents of the buffer
2399 returned from basename function will remain unchanged accross other
2402 2001-07-03 H.J. Lu <hjl@gnu.org>
2404 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2405 2001-07-03. It creates dynamic entries even for static binaries.
2407 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2409 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2410 (DYNAMIC): Use it to reserve few dynamic entries for
2413 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2415 * emulparams/hppa64linux.sh: New file.
2416 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2417 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2418 (ehppa64linux.c): Add rule to make it.
2420 * Makefile.in: Regenerate.
2422 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2424 * ld.texinfo (Options, -r): Mention restrictions when using
2425 different object formats.
2427 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2429 * ldlang.c (lang_check): Emit fatal error if relocatable link
2430 between different object flavours with relocations in input.
2432 2001-06-19 H.J. Lu <hjl@gnu.org>
2434 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2435 (--version-script): Mention the language support.
2437 2001-06-19 H.J. Lu <hjl@gnu.org>
2439 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2441 2001-06-18 H.J. Lu <hjl@gnu.org>
2443 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2444 (diststuff): Add $(MANS).
2445 * Makefile.in: Regenerated.
2449 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2451 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2452 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2453 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2454 * ld.h (args_type): Remove member export_dynamic. All users
2455 changed to use struct bfd_link_info member.
2457 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2458 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2459 * Makefile.in: Regenerate.
2461 2001-06-18 H.J. Lu <hjl@gnu.org>
2463 * ldlang.c (init_os): Add the newline to the einfo call.
2464 (lang_check): Likewise.
2465 (lang_do_version_exports_section): Likewise.
2467 2001-06-15 H.J. Lu <hjl@gnu.org>
2469 * lexsup.c (parse_args); Save optind to report unrecognized
2472 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2474 * ldlang.c (lang_check): Emit fatal error if relocatable link
2475 between different object flavours.
2477 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2478 Set new link_info member export_dynamic.
2479 * ldmain.c (main): Initialize new link_info member export_dynamic.
2481 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2483 * ldlang.c (walk_wild): Only call walk_wild_file if
2484 lookup_name returns something.
2485 (lookup_name): If load_symbols fails, return NULL.
2486 (load_symbols): Change to a boolean function.
2487 (open_input_bfds): If load_symbols fails then do not make the
2490 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2492 * ldlang.c (record_bfd_errors): Remove.
2494 * emultempl/aix.em: Fix copyright dates.
2496 2001-06-07 Andreas Jaeger <aj@suse.de>
2498 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2499 (TEXT_START_ADDR): Likewise.
2501 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2503 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2505 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2507 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2509 2001-05-31 H.J. Lu <hjl@gnu.org>
2511 * ldlang.c (open_input_bfds): Don't change the bfd error
2512 handler whilst loading symbols.
2514 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2516 * configure.tgt: Remove i370-mvs architecture, it is not currently
2519 2001-05-25 H.J. Lu <hjl@gnu.org>
2521 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2522 like emulparams/aixppc.sh.
2524 2001-05-25 H.J. Lu <hjl@gnu.org>
2526 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2527 setting of output_filename after bfd_scan_arch.
2528 * emultempl/pe.em: Likewise.
2530 2001-05-25 H.J. Lu <hjl@gnu.org>
2532 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2533 like emulparams/aixppc.sh.
2535 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2536 instead of ${srcdir}/emultempl/stringify.sed.
2538 2001-05-25 Timothy Wall <twall@oculustech.com>
2540 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2543 2001-05-25 Alan Modra <amodra@one.net.au>
2545 * configure.host: Replace linuxoldld with linux*oldld.
2546 * configure.tgt: Likewise.
2548 2001-05-24 H.J. Lu <hjl@gnu.org>
2550 * emultempl/stringify.sed: Removed again.
2552 2001-05-24 H.J. Lu <hjl@gnu.org>
2554 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2555 (gld${EMULATION_NAME}_before_parse): Initialize
2556 ldfile_output_architecture, ldfile_output_machine and
2557 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2558 * emultempl/beos.em: Likewise.
2559 * emultempl/elf32.em: Likewise.
2560 * emultempl/linux.em: Likewise.
2561 * emultempl/mipsecoff.em: Likewise.
2562 * emultempl/pe.em: Likewise.
2563 * emultempl/sunos.em: Likewise.
2565 2001-05-24 Tom Rix <trix@redhat.com>
2567 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2568 udate import file format.
2569 (change_symbol_mode) New, same
2570 (is_syscall) New, same
2571 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2572 * emulparams/aixppc64.sh : same
2573 * emulparams/aixrs6.sh : same
2574 * emulparams/ppcmacos.sh : same
2575 * emultempl/aix.em : use strtoull to parse options
2576 * Makefile.am : add eaixppc64 emulation for xcoff64
2577 * Makefile.in : same
2578 * configure.tgt : same
2580 * scripttempl/aix.sc : default text section offset to 0x10000000
2581 default data section offset to 0x20000000
2582 add .sv3264 and .sv64 pseudo sections
2583 loader and debug sections use the currect section offset.
2585 * emultempl/aix.em : Add xcoff64 support
2586 Add -binitfini support
2587 (gld${EMULATION_NAME}_before_parse) -binitfini
2588 (gld${EMULATION_NAME}_parse_args) same
2589 (gld${EMULATION_NAME}_before_allocation) format change for special
2592 * emulparams/aixppc64.sh : New file for xcoff64 support
2594 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2596 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2597 variable to avoid non-portable shell construct.
2599 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2601 * ldmain.c (get_emulation): Add -mips5 command line argument.
2603 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2605 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2606 (ELF_INTERPRETER_NAME): Define it.
2607 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2609 * configure.tgt (targ_emul, targ_extra_emuls)
2610 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2611 as primary, elf_i386 as extra.
2612 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2613 (eelf_i386_ldso.c): New rule.
2614 * Makefile.in: Rebuilt.
2616 2001-05-22 Nick Clifton <nickc@redhat.com>
2618 * lexsup.c (ld_options): Allow -I to be an alias for
2619 --dynamic-linker. This is for Solaris compatability.
2620 * ld.texinfo: Document that -I can be used.
2623 2001-05-16 Alan Modra <amodra@one.net.au>
2625 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2626 whether an input section is the first one assigned to an output
2628 Assorted formatting fixes.
2630 2001-05-14 DJ Delorie <dj@delorie.com>
2632 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2633 * Makefile.in: Ditto.
2635 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2637 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2638 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2640 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2642 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2644 * ldlang.c (lang_process): Call bfd_merge_sections.
2646 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2648 * ldgram.y: Fix typo.
2650 2001-05-03 H.J. Lu <hjl@gnu.org>
2652 * emultempl/elf32.em: Include "libiberty.h".
2653 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2654 basename of the bfd filename.
2655 (gld${EMULATION_NAME}_stat_needed): Likewise.
2656 (gld${EMULATION_NAME}_try_needed): Likewise.
2657 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2659 2001-05-02 H.J. Lu <hjl@gnu.org>
2661 * emultempl/pe.em: Include <ctype.h>.
2663 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2665 * emulparams/elf32openrisc.sh: New file.
2667 * Makefile.am: Add OpenRISC target.
2668 * Makefile.in: Regenerated.
2670 * configure.tgt: Add openrisc-*-* mapping.
2672 2001-05-02 Nick Clifton <nickc@redhat.com>
2674 * emultempl/aix.em: Replace buystring with xstrdup.
2675 * emultempl/beos.em: Replace buystring with xstrdup.
2677 2001-05-02 H.J. Lu <hjl@gnu.org>
2679 * ldfile.c: Include "libiberty.h".
2680 * ldlex.l: Likewise.
2682 * ldmisc.c (buystring): Removed.
2683 * ldmisc.h: Likewise.
2685 * ldfile.c: Replace buystring with xstrdup.
2686 * ldlang.c: Likewise.
2687 * ldlex.l: Likewise.
2688 * ldmain.c: Likewise.
2689 * ldmisc.c: Likewise.
2690 * lexsup.c: Likewise.
2691 * mpw-eppcmac.c: Likewise.
2693 2001-04-30 Andreas Jaeger <aj@suse.de>
2695 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2697 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2699 * ldlang.c (load_symbols): Give emulation a chance
2700 to process unrecognized file before fatal error is
2701 reported, not after.
2703 2001-04-27 Sean McNeil <sean@mcneil.com>
2705 * configure.tgt: Add arm-vxworks target.
2706 * scripttempl/armcoff.sc: Support .text or .data as a section name
2710 2001-04-13 J.T. Conklin <jtc@redback.com>
2712 * ld.texinfo: Document --fatal-warnings.
2715 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2716 warnings have been turned into errors.
2717 * lexsup.c (OPTION_WARN_FATAL): Define.
2718 (ld_options): Entry for --fatal-warnings.
2719 (parse_args): Handle OPTION_WARN_FATAL.
2720 * ld.h (ld_config_type): Add fatal_warnings field.
2722 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2724 * ldmain.c (main): Default to discard_sec_merge.
2725 * lexsup.c (OPTION_DISCARD_NONE): Define.
2726 (ld_options): Add --discard-none.
2727 (parse_args): Handle OPTION_DISCARD_NONE.
2728 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2729 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2730 all its input sections match.
2732 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2734 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2735 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2736 (eelf32ltsmip.c): New target.
2737 (eelf64btsmip.c): Likewise.
2738 (eelf64ltsmip.c): Likewise.
2739 * Makefile.in: Regenerated.
2741 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2743 (mips*-*-linux-gnu*): Likewise.
2745 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2747 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2749 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2752 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2754 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2755 correct value of __Stext here.
2756 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2759 * emulparams/crislinux.sh: Remove FIXME.
2761 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2763 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2764 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2766 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2768 * configure.tgt (cris-*-*): Change default emulation to criself.
2769 (cris-*-*aout*): New rule.
2771 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2773 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2774 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2776 2001-03-26 Andreas Jaeger <aj@suse.de>
2778 * ld.texinfo (Overview): Fix syntax in texi code.
2780 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2782 * ld.texinfo: Put @c man indications to generate the ld man page.
2783 When generating man, define all the variables. Define SEEALSO
2784 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2785 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2786 (ld.1): Generate from ld.texinfo.
2787 * Makefile.in: Regenerate.
2789 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2791 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2792 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2794 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2796 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2797 is an absolute path look only for this file and not along the path.
2799 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2801 * emultempl/elf32.em (OPTION_GROUP): New macro.
2802 Add new option Bgroup to longopts.
2803 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2804 (gld*_list_options): Add -Bgroup and -z defs.
2805 * ld.1: Document -Bgroup and -z defs.
2806 * ld.texinfo: Likewise.
2808 2001-03-07 Michael Meissner <meissner@redhat.com>
2810 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2811 with sections created by -fdata-sections.
2812 (.dynbss,.bss): Ditto.
2814 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2816 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2817 after_allocation_default, not gld..._before_allocation.
2819 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2821 * configure.in (BFD_VERSION): New.
2822 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2823 * configure: Regenerate.
2824 * Makefile.am: Run "make dep-am"
2825 * Makefile.in: Regenerate.
2827 2001-02-26 Timothy Wall <twall@cygnus.com>
2829 * emulparams/elf64_aix.sh: Add additional read-only sections;
2830 uncomment lines which are now required.
2832 2001-02-26 H.J. Lu <hjl@gnu.org>
2834 * ldlang.c (open_input_bfds): Set the bfd error handler so
2835 that problems can be caught whilst loading symbols.
2836 (record_bfd_errors): New function: Report BFD errors and mark
2837 the executable output as being invalid.
2839 2001-02-22 Timothy Wall <twall@cygnus.com>
2841 * configure.host: Add configuration for ia64-*-aix*.
2842 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2843 Add dependencies for eelf64_aix.c.
2844 * Makefile.in: Regenerate.
2845 * configure.tgt: Add ia64-*-aix* mapping.
2846 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2847 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2850 2001-02-20 H.J. Lu <hjl@gnu.org>
2852 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2853 false if we found the file.
2855 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2857 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2858 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2860 2001-02-18 lars brinkhoff <lars@nocrew.org>
2862 * Makefile.am: Add PDP-11 target.
2863 * configure.tgt: Likewise.
2864 * emulparams/pdp11.sh: New file.
2866 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2868 * configure.host: Add a generic FreeBSD configuration entry such that
2869 all [modern] FreeBSD systems on all platforms will look the same.
2871 2001-02-14 H.J. Lu <hjl@gnu.org>
2873 * configure.tgt: Remove mention of earmelf_linux26.
2875 2001-02-13 Richard Henderson <rth@redhat.com>
2877 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2879 2001-02-13 H.J. Lu <hjl@gnu.org>
2881 * ldexp.h (node_type): Add etree_provided.
2882 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2883 type to etree_provided if defined by PROVIDE. Allow updating
2885 (exp_print_tree): Handle etree_provided.
2886 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2889 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2891 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2892 .IA_64.unwind.* pattern to unwind table section and
2893 .IA_64.unwind_info* pattern to unwind info section.
2895 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2897 * Makefile.am: Add linux target for S/390.
2898 * Makefile.in: Likewise.
2899 * configure.host: Likewise.
2900 * configure.tgt: Likewise.
2901 * emulparams/elf64_s390.sh: New file.
2902 * emulparams/elf_s390.sh: New file.
2904 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2906 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2908 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2910 2001-02-06 Philip Blundell <philb@gnu.org>
2912 * Makefile.am: Remove mention of earmelf_linux26.
2913 * Makefile.in: Regenerate.
2915 2001-02-04 Philip Blundell <philb@gnu.org>
2917 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2918 * emulparams/armelf_linux26.sh: Delete.
2919 * configure.tgt: Remove mention of armelf_linux26 emulation.
2921 2001-02-01 Nick Clifton <nickc@redhat.com>
2923 * ld.1: Replace occurances of -oformat with --oformat.
2925 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2927 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2928 load_base is specified.
2930 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2932 * emultempl/elf32.em: Correct spelling in comments and listed
2935 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2937 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2938 default for the first section of a group of overlay sections.
2940 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2942 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2943 * Makefile.in: Regenerate.
2944 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2945 Check for null tool_dir.
2947 2001-01-16 Jim Wilson <wilson@redhat.com>
2949 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2950 and IA_64.unwind.info.
2952 2001-01-16 H.J. Lu <hjl@gnu.org>
2954 * ldlang.c (lang_check): Merge the private data only if the
2955 input file has contents.
2957 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2959 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2961 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2962 enabling search for libmilli. On a relocatable link, make .text
2964 (LDEMUL_AFTER_PARSE): Define.
2965 (hppaelf_finish): Correct spelling of relocatable in comments.
2967 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2968 rummage through the script for sections on the unique list.
2969 Correct length of strncmp for ".note".
2970 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2972 * ldlang.c (unique_section_list): New var.
2973 (unique_section_p): New function.
2974 (walk_wild_section): Don't match sections on unique_section_list.
2975 (lang_add_unique): New function.
2976 Correct spelling of relocatable in comments.
2978 * ldlang.h (struct unique_sections): Declare.
2979 (unique_section_list): Declare.
2980 (unique_section_p): Declare.
2981 (lang_add_unique): Declare.
2983 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2984 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2986 * ld.texinfo (--unique): Update.
2988 2001-01-13 Nick Clifton <nickc@redhat.com>
2990 * lexsup.c (parse_args): Remove spurious white space.
2992 2001-01-12 Nick Clifton <nickc@redhat.com>
2994 * lexsup.c (parse_args): Update copyright date.
2996 2001-01-12 Philip Blundell <pb@futuretv.com>
2998 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
3000 2001-01-10 Kazu Hirata <kazu@hxi.com>
3002 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
3003 * scripttempl/h8300h.sc: Fix formatting.
3004 * scripttempl/h8300s.sc: Likewise.
3005 * scripttempl/h8500.sc: Likewise.
3006 * scripttempl/h8500b.sc: Likewise.
3007 * scripttempl/h8500c.sc: Likewise.
3008 * scripttempl/h8500m.sc: Likewise.
3009 * scripttempl/h8500s.sc: Likewise.
3011 2000-01-07 David O'Brien <obrien@BSDi.com>
3013 * emultempl/elf32.em: Only perform Linux ld hints processing when
3016 2001-01-07 Philip Blundell <philb@gnu.org>
3018 * ld.texinfo (Bug Reporting): Update email address for reports.
3020 2000-12-31 Nick Clifton <nickc@redhat.com>
3022 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
3023 options by checking for a return value of '?' not -1.
3025 2000-12-28 Nick Clifton <nickc@redhat.com>
3027 * lexsup.c (struct ld_option): Add new enum value:
3029 (ld_options[]): Change -omagic, -output and -oformat options
3030 to be EXACTLY_TWO_DASHES.
3031 (OUTPUT_COUNT): Use ARRAY_SIZE.
3032 (parse_args): Change parameter 'argc' to unsigned.
3033 Place EXACTLY_TWO_DASHES options into new really_longopts
3035 If getopt_long_only fails, try calling getopt_long using the
3036 really_longopts array.
3037 (help): Print a double dash for both EXACTLY_TWO_DASHES and
3040 * ldlex.h: Fix prototype of parse_args.
3042 * ld.texinfo: Document that long options starting with 'o'
3043 must be preceeded by two dashes. Change example of a single
3044 dashed long option from -oformat to -trace-symbol.
3046 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3048 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
3049 (longopts[]): New --no-default-excludes option.
3050 (gld_${EMULATION_NAME}_list_options): Document.
3051 (gld_${EMULATION_NAME}_parse_args): Handle.
3053 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3055 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3056 whitespace, it breaks the K&R C preprocessor.
3058 2000-12-11 DJ Delorie <dj@redhat.com>
3060 * ld.texinfo: Add notes about --whole-archive and gcc.
3062 2000-11-18 Fred Fish <fnf@be.com>
3064 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3065 (ld_options): Entry for --allow-shlib-undefined.
3066 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3067 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3069 * ld.texinfo: Document new command line switch.
3071 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3073 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3074 .fixup is actually read/write.
3075 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3076 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3077 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3079 2000-12-11 Jan Hubicka <jh@suse.cz>
3081 * NEWS: Add note about x86_64 architecture.
3083 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3085 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3086 Set DWARF2 sections to a VMA of zero.
3088 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3090 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3092 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3093 (sparc*-*-rtems*): Switched from a.out to ELF.
3095 2000-11-30 Jan Hubicka <jh@suse.cz>
3097 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3098 (eelf_x86_64.c): New.
3099 * Makefile.in: Regenerate.
3100 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3101 * emulparams/elf_x86_64.sh: New.
3103 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3105 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3106 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3108 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3109 merging non-a.out sections into CONSTRUCTING.
3111 2000-11-28 Nick Clifton <nickc@redhat.com>
3113 * ld.1 (COPYING): Mention that the GNU Free Documentation
3114 License is present in the sources, but not the output, and
3115 also available from the GNU website.
3116 (GNU Free Documentation License): Comment out this section.
3118 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3120 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3123 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3125 * ld.1: Remove old date so it does not give the impression the manpage
3128 2000-11-24 Nick Clifton <nickc@redhat.com>
3130 * configure.tgt (xscale-coff): Add target.
3131 (xscale-elf): Add target.
3133 2000-11-24 Fred Fish <fnf@be.com>
3135 * ldmain.c (main): Remove redundant init of config.make_executable
3138 2000-11-15 Richard Henderson <rth@redhat.com>
3140 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3142 2000-11-14 Kazu Hirata <kazu@hxi.com>
3144 * scripttempl/h8300.sc: Fix formatting.
3145 * scripttempl/h8300h.sc: Likewise.
3146 * scripttempl/h8300s.sc: Likewise.
3148 2000-11-14 Denis Chertykov <denisc@overta.ru>
3150 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3152 2000-11-09 Philip Blundell <pb@futuretv.com>
3154 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3155 around orphan sections whose names can be represented in C.
3157 2000-11-07 Jim Wilson <wilson@redhat.com>
3159 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3160 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3162 2000-11-06 Nick Clifton <nickc@redhat.com>
3164 * ld.texinfo: Add GNU Free Documentation License.
3165 * ldint.texinfo: Add GNU Free Documentation License.
3166 * ld.1: Add GNU Free Documentation License.
3168 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3170 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3171 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3173 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3174 Move 2000-11-02 Makefile.in changes to this file.
3175 * Makefile.in: Regenerate.
3177 2000-11-03 Nick Clifton <nickc@redhat.com>
3179 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3180 constructors and destructors.
3181 * scripttempl/h8300h.sc: Ditto.
3182 * scripttempl/h8300s.sc: Ditto.
3183 * scripttempl/h8500.sc: Ditto.
3184 * scripttempl/h8500b.sc: Ditto.
3185 * scripttempl/h8500c.sc: Ditto.
3186 * scripttempl/h8500m.sc: Ditto.
3187 * scripttempl/h8500s.sc: Ditto.
3188 * scripttempl/v850.sc: Ditto.
3189 * scripttempl/w65.sc: Ditto.
3190 * scripttempl/z8000.sc: Ditto.
3192 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3194 * Makefile.in (e_i386_chaos.c): New rule.
3195 (ALL_EMULATIONS): Added e_i386_chaos.o.
3196 * emulparams/elf_i386_chaos.sh: New file.
3197 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3199 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3201 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3202 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3203 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3204 library path suffix.
3205 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3207 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3209 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3210 for consecutive sections.
3212 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3214 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3216 * ld.texinfo: Added notes about this new option.
3218 2000-10-16 Nick Clifton <nickc@redhat.com>
3220 * emultempl/pe.em (_after_open): Add tests of return values from
3221 bfd functions. Emit appropriate error messages if necessary.
3223 2000-10-13 Nick Clifton <nickc@redhat.com>
3225 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3226 local variables - they are not used, but leave in the call to
3227 bfd_canonicalize_symtab.
3228 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3229 pe_dll_search_prefix.
3231 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3233 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3234 (longopts): New --dll-search-prefix option.
3235 (gld_${EMULATION_NAME}_list_options): Document.
3236 (gld_${EMULATION_NAME}_parse_args): Handle.
3237 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3238 dynamically, search for a dll named '<prefix><basename>.dll'
3239 in preference to 'lib<basename>.dll' if --dll-search-prefix
3242 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3244 * ldlang.c (section_already_linked): Set kept_section instead of
3247 2000-10-10 Kazu Hirata <kazu@hxi.com>
3249 * deffile.h: Fix formatting.
3250 * lexsup.c: Likewise.
3253 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3255 * pe-dll.c (make_one): Do not generate code thunk for DATA
3257 (process_def_file): deduce DATA flag for auto-export sumbols.
3259 2000-10-09 Kazu Hirata <kazu@hxi.com>
3261 * ld.h: Fix formatting.
3262 * ldcref.c: Likewise.
3263 * ldctor.h: Likewise.
3264 * ldemul.c: Likewise.
3265 * ldemul.h: Likewise.
3266 * ldexp.c: Likewise.
3267 * ldexp.h: Likewise.
3268 * ldfile.c: Likewise.
3269 * ldfile.h: Likewise.
3270 * ldlang.c: Likewise.
3271 * ldlang.h: Likewise.
3272 * ldmain.c: Likewise.
3273 * pe-dll.c: Likewise.
3275 * pe-dll.c: Revert some formatting fixes.
3277 2000-10-08 Kazu Hirata <kazu@hxi.com>
3279 * pe-dll.c: Fix formatting.
3281 2000-10-05 Kazu Hirata <kazu@hxi.com>
3283 * ldlang.c: Fix formatting.
3285 2000-10-03 DJ Delorie <dj@redhat.com>
3287 * pe-dll.c (fill_edata): initialize entire block
3288 (make_one): fill in correct section.
3290 2000-10-03 Kazu Hirata <kazu@hxi.com>
3292 * ldexp.c: Fix formatting.
3294 2000-10-02 DJ Delorie <dj@redhat.com>
3296 * emultempl/pe.em (gld_*_after_open): detect case where there two
3297 import libraries for same dll; rename one to ensure proper link
3300 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3302 (generate_edata): fix typo
3304 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3306 * scripttempl/crisaout.sc (ENTRY): Now __start.
3307 (.text): Add default setting for __start.
3308 Remove CONSTRUCTORS handling.
3309 (/DISCARD/): Add .gnu.warning.*.
3310 * emulparams/crislinux.sh (ENTRY): Now __start.
3311 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3312 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3313 (ENTRY): Now __start.
3314 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3315 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3317 2000-09-29 Kazu Hirata <kazu@hxi.com>
3319 * deffile.h: Fix formatting.
3321 * ldcref.c: Likewise.
3322 * ldctor.c: Likewise.
3323 * ldctor.h: Likewise.
3324 * ldemul.c: Likewise.
3325 * ldemul.h: Likewise.
3326 * ldexp.c: Likewise.
3327 * ldexp.h: Likewise.
3328 * ldfile.c: Likewise.
3329 * ldfile.h: Likewise.
3330 * ldlang.c: Likewise.
3331 * ldlang.h: Likewise.
3332 * lexsup.c: Likewise.
3334 * pe-dll.c: Likewise.
3336 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3338 * pe-dll.c (process_def_file): Uninitialized data wasn't
3339 exported with --export-all-symbols switch.
3341 2000-09-28 DJ Delorie <dj@redhat.com>
3343 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3344 noname work properly.
3346 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3348 * ld.texinfo (HPPA ELF32): New section.
3350 * emultempl/hppaelf.em (group_size): New.
3351 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3352 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3353 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3354 options to prevent abbreviations matching.
3355 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3356 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3358 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3360 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3361 on the m68*-*-elf target. Make it support COFF input objects.
3363 2000-09-21 Kazu Hirata <kazu@hxi.com>
3365 * ldmain.c: Fix formatting.
3366 * ldmisc.c: Likewise.
3367 * ldver.c: Likewise.
3368 * ldwrite.c: Likewise.
3370 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3372 * ldwrite.c (clone_section): Silence gcc warnings.
3374 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3376 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3377 out of memory failure.
3379 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3380 (clone_section): Handle out of memory failures. Rename var to
3381 avoid c++ reserved word.
3383 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3385 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3386 stub_name param to stub_sec_name.
3387 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3389 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3391 * emultempl/m68kelf.em: New file.
3392 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3393 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3394 * Makefile.in: Regenerate.
3396 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3398 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3401 2000-09-13 Nick Clifton <nickc@redhat.com>
3403 * ldmain.c (multiple_definition): Disable relaxation if
3404 multiple symbol definitions are encountered - otherwise the
3405 linker could abort with an assertion failure.
3407 2000-09-10 Nick Clifton <nickc@redhat.com>
3409 * mri.c: Fix formatting.
3411 2000-09-07 H.J. Lu <hjl@gnu.org>
3413 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3414 * configure: Rebuild.
3416 2000-09-07 H.J. Lu <hjl@gnu.org>
3418 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3419 * Makefile.in: Rebuild.
3421 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3423 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3424 broken list handling. Create __start_SECNAME and __stop_SECNAME
3425 when no place-holder. Add some comments. Test both SEC_CODE and
3426 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3427 Handle case where no output section statement created.
3429 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3431 * configure.tgt (sh-*-linux*): Added.
3432 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3433 * Makefile.in: Rebuilt.
3434 * emulparams/shelf_linux.sh: New file.
3435 * emulparams/shlelf_linux.sh: New file.
3437 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3439 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3440 try shuffling sections when the orphan happens to be the place
3441 holder. Keep count of unique section names generated so we speed
3442 the search for a new name.
3444 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3446 * configure: Rebuilt with new libtool.m4.
3448 2000-09-05 Nick Clifton <nickc@redhat.com>
3450 * Makefile.in: Regenerate.
3451 * aclocal.m4: Regenerate.
3452 * configure: Regenerate.
3453 * config.in: Regenerate.
3454 * po/ld.pot: Regenerate.
3456 * ldint.texinfo: Remove CVS revision marker - it foils local
3459 * emultempl/ticoff.em: Remove extraneous comma.
3461 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3463 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3464 to stub section flags.
3465 (hppa_for_each_input_file_wrapper): New.
3466 (hppa_lang_for_each_input_file): New.
3467 (lang_for_each_input_file): Define to call above.
3468 (multi_subspace): New.
3469 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3470 (PARSE_AND_LIST_PROLOGUE): Define.
3471 (PARSE_AND_LIST_LONGOPTS): Define.
3472 (PARSE_AND_LIST_OPTIONS): Define.
3473 (PARSE_AND_LIST_ARGS_CASES): Define.
3474 (hppaelf_finish): Call elf32_hppa_set_gp.
3475 (hppaelf_set_output_arch): Remove.
3476 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3478 * emulparams/hppalinux.sh (ELFSIZE): Define.
3480 (OTHER_READONLY_SECTIONS): Define.
3482 (GENERATE_SHLIB_SCRIPT): Define.
3484 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3485 to const throughout. Change `void *' to `PTR' throughout.
3486 (lang_memory_default): Function is local to file, add `static'.
3488 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3489 (ehppalinux.c): Likewise.
3490 (earmelf.c): Likewise.
3491 (earmelf_linux.c): Likewise.
3492 (earmelf_linux26.c): Likewise.
3493 * Makefile.in: Regenerate.
3495 * ld.h (ld_config_type): Add unique_orphan_sections.
3496 * lexsup.c (OPTION_UNIQUE): Define.
3497 (ld_options): Add "--unique".
3498 (parse_args): Handle it.
3499 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3500 search for an existing output section if unique_orphan_sections is
3501 set. Make use of bfd_get_unique_section_name rather than
3502 duplicating code here.
3503 * ld.texinfo: Describe --unique.
3505 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3506 optional arg to split-by-file.
3507 (parse_args): Handle them.
3508 * ld.texinfo: Update description of these options.
3509 * ldwrite.c (clone_section): Pass in the section name. Replace
3510 local code with bfd_get_unique_section_name.
3511 (split_sections): Tidy code and comments. Use a list traversal
3512 more appropriate to the list construction. Handle cooked section
3513 sizes. Split when split_by_reloc reached rather than exceeded.
3514 Track section size and split when split_by_file reached. Fix
3515 link_order_tail (even though it's not used).
3516 (ldwrite): Modify condition for calling split_sections to suit
3517 changed split_by_reloc and split_by_file.
3518 * ldmain.c (main): Init config.split_by_reloc and
3519 config.split_by_file to -1.
3520 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3521 Change split_by_file to bfd_size_type.
3523 2000-09-02 Nick Clifton <nickc@redhat.com>
3525 * configure.in: Increase version number to 2.10.91.
3526 * NEWS: Mention new ability to support removal of duplicate DWARF2
3528 * configure: Regenerate.
3529 * aclocal.m4: Regenerate.
3530 * config.in: Regenerate.
3532 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3534 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3536 * scripttempl/elf32avr.sc: Ditto.
3537 * scripttempl/elfd10v.sc: Ditto.
3538 * scripttempl/elfd30v.sc: Ditto.
3539 * scripttempl/elfi370.sc: Ditto.
3540 * scripttempl/elfm68hc11.sc: Ditto.
3541 * scripttempl/elfm68hc12.sc: Ditto.
3542 * scripttempl/elfi386beos.sc: Ditto.
3543 * scripttempl/v850.sc: Ditto.
3545 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3547 * acinclude.m4: Include libtool and gettext macros from the
3549 * aclocal.m4, configure: Rebuilt.
3551 2000-08-25 Nick Clifton <nickc@redhat.com>
3553 * ldlang.c (open_output): When choosing the target for a
3554 particular endianness, do nothing if the target is not
3557 2000-08-25 H.J. Lu <hjl@gnu.org>
3559 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3560 check -rpath nor LD_RUN_PATH for cross link.
3561 * ld.texinfo: Document the change.
3563 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3565 * NEWS: Mention support for CRIS.
3567 2000-08-23 H.J. Lu <hjl@gnu.org>
3569 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3570 the current runpath list from bfd_elf_get_runpath_list ()
3573 2000-08-22 H.J. Lu <hjl@gnu.org>
3575 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3576 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3577 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3578 trace_file_tries is non-zero.
3579 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3580 if trace_file_tries is non-zero.
3582 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3585 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3587 * NEWS: Mention i860 support.
3589 2000-08-14 Andreas Schwab <schwab@suse.de>
3591 * scripttempl/elf.sc: Fix last change to use correct comment
3594 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3596 * scripttempl/elf.sc: Add a comment giving the correspondence
3597 between sections, per-datum sections, and linkonce sections. Make
3598 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3601 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3603 * emulparams/elf32_i860.sh: New file.
3604 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3605 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3606 (eelf32_i860.c): New rule.
3607 * Makefile.in: Regenerate.
3609 2000-08-10 Nick Clifton <nickc@cygnus.com>
3611 * emulparams/mipspe.sh (ENTRY): Add definition.
3613 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3615 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3618 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3620 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3621 the final size of .bss section.
3622 * scripttempl/elfm68hc12.sc: Likewise.
3624 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3626 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3627 gld${EMULATION_NAME}_parse_args for consistency. Combine
3628 lastoptind and prevoptind vars, and keep track of last optind.
3629 (gld_${EMULATION_NAME}_list_options): Rename to
3630 gld${EMULATION_NAME}_list_options.
3632 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3634 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3635 (i586-sco-sysv5uw7.1.0).
3637 2000-07-27 H.J. Lu <hjl@gnu.org>
3639 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3640 (PARSE_AND_LIST_PROLOGUE): New.
3641 (PARSE_AND_LIST_LONGOPTS): Likewise.
3642 (PARSE_AND_LIST_OPTIONS): Likewise.
3643 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3644 (PARSE_AND_LIST_EPILOGUE): Likewise.
3646 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3648 * emultempl/armelf.em: Elide functions common to elf32.em,
3649 ie. most of the file.
3650 (arm_elf_after_open): New. Do arm specific things then call
3651 gld${EMULATION_NAME}_after_open.
3652 (arm_elf_before_allocation): New. Call
3653 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3654 (PARSE_AND_LIST_PROLOGUE): Define.
3655 (PARSE_AND_LIST_SHORTOPTS): Define.
3656 (PARSE_AND_LIST_LONGOPTS): Define.
3657 (PARSE_AND_LIST_OPTIONS): Define.
3658 (PARSE_AND_LIST_ARGS_CASES): Define.
3659 (LDEMUL_AFTER_OPEN): Define.
3660 (LDEMUL_BEFORE_ALLOCATION): Define.
3661 (LDEMUL_BEFORE_PARSE): Define.
3662 (LDEMUL_FINISH): Define.
3664 * emultempl/hppaelf.em: Similarly zap most of this file.
3665 (hppaelf_add_stub_section): Prototype.
3666 (hppaelf_layaout_sections_again): Prototype.
3667 (hook_in_stub): Prototype.
3668 (LDEMUL_SET_OUTPUT_ARCH): Define.
3669 (LDEMUL_FINISH): Define.
3670 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3672 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3673 (EXTRA_EM_FILE): New.
3674 * emulparams/armelf_linux.sh: Likewise.
3675 * emulparams/armelf_linux26.sh: Likewise.
3676 * emulparams/hppalinux.sh: Likewise.
3677 * emulparams/hppaelf.sh: Likewise.
3680 * emultempl/elf32.em: Fix formatting.
3681 (EXTRA_EM_FILE): Source it.
3682 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3683 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3684 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3685 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3686 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3687 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3688 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3689 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3690 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3691 allow functions in this file to be overridden.
3692 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3694 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3696 * emultempl/elf32.em: Reorganize file.
3698 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3700 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3701 specific option to fit 64-bit executable in the lower
3702 31-bit address range. This is done by changing start
3703 address of .interp (the very first section of executable)
3704 and then setting EF_ALPHA_32BIT elf header flag.
3706 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3708 * emultempl/m68kcoff.em: New file.
3709 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3710 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3712 * Makefile.in: Regenerate.
3714 2000-07-20 H.J. Lu <hjl@gnu.org>
3716 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3717 and "disable-new-dtags" to stop getopt from treating -d/-e as
3718 abbreviations for these options.
3720 2000-07-20 H.J. Lu <hjl@gnu.org>
3722 * ld.texinfo: Add documentation for --disable-new-dtags and
3725 * ldmain.c (main): Initialize link_info.new_dtags to false.
3727 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3728 --disable-new-dtags and --enable-new-dtags.
3729 (gld_${EMULATION_NAME}_list_options): Likewise.
3731 2000-07-05 Kenneth Block <krblock@computer.org>
3733 * lexsup.c: Add optional style to demangle switch
3734 * ld.texinfo: Document optional style to demangle switch.
3736 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3738 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3740 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3741 Regenerate dependencies.
3742 * Makefile.in: Rebuild.
3743 * configure.tgt (cris-*-*): New target.
3744 * emulparams/crisaout.sh, emulparams/criself.sh,
3745 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3746 * po/POTFILES.in, po/ld.pot: Regenerate.
3748 2000-07-20 H.J. Lu <hjl@gnu.org>
3750 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3751 Print out ignored -z options.
3753 2000-07-19 H.J. Lu <hjl@gnu.org>
3755 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3756 (PARSE_AND_LIST_PROLOGUE): New.
3757 (PARSE_AND_LIST_LONGOPTS): Likewise.
3758 (PARSE_AND_LIST_OPTIONS): Likewise.
3759 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3761 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3763 * lexsup.c (ld_options): Comment out 'z'.
3764 (parse_args): Likewise.
3766 * emultempl/elf32.em: Include "elf/common.h".
3767 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3769 (gld_${EMULATION_NAME}_list_options): Likewise.
3771 * ld.texinfo: Add documentation for the recognized -z options.
3773 2000-07-19 H.J. Lu <hjl@gnu.org>
3775 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3776 bfd_elf_set_dt_needed_soname ().
3778 2000-07-18 DJ Delorie <dj@cygnus.com>
3780 * pe-dll.c (pe_dll_id_target): check object target name also
3782 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3784 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3785 ${INIT_END} if relocating.
3786 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3788 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3790 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3791 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3792 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3793 errors introduced by the old dynamic lib search order.
3795 2000-07-17 DJ Delorie <dj@cygnus.com>
3797 * pe-dll.c (process_def_file): auto-export data items also
3798 (pe_process_import_defs): also see if _imp_ form needed
3800 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3802 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3803 for dll import libraries
3805 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3807 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3808 gcc 2.95.2 and later.
3810 2000-07-11 Kazu Hirata <kazu@hxi.com>
3812 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3815 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3817 * ldemul.h (struct lang_input_statement_struct): Remove forward
3819 (struct search_dirs): Likewise.
3820 * ldfile.h (struct lang_input_statement_struct): Likewise.
3821 Protect file from multiple inclusion.
3822 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3823 declaration from macro to file scope.
3825 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3826 * ldgram.y: Likewise here.
3827 * ldlang.c: And here.
3828 * ldmain.c: And here.
3829 * mpw-elfmips.c: And here.
3830 * mpw-eppcmac.c: And here.
3831 * emultempl/aix.em: And here.
3832 * emultempl/armcoff.em: And here.
3833 * emultempl/armelf.em: And here.
3834 * emultempl/armelf_oabi.em: And here.
3835 * emultempl/beos.em: And here.
3836 * emultempl/elf32.em: And here.
3837 * emultempl/hppaelf.em: And here.
3838 * emultempl/linux.em: And here.
3839 * emultempl/lnk960.em: And here.
3840 * emultempl/pe.em: And here.
3841 * emultempl/sunos.em: And here.
3842 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3843 * mpw-idtmips.c: Ditto.
3844 * emultempl/generic.em: Ditto.
3845 * emultempl/gld960.em: Ditto.
3846 * emultempl/gld960c.em: Ditto.
3847 * emultempl/mipsecoff.em: Ditto.
3848 * emultempl/ticoff.em: Ditto.
3849 * emultempl/vanilla.em: Ditto.
3851 * pe-dll.c: Include ldfile.h
3852 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3854 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3855 arguments to bfd_elf32_size_dynamic_sections call.
3856 (gldelf32ebmip_place_orphan): Add missing arguments to
3857 lang_leave_output_section_statement call.
3859 2000-07-10 H.J. Lu <hjl@gnu.org>
3861 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3863 (strhash): Likewise.
3864 (compute_dll_image_base): Likewise.
3865 (pe_undef_found_sym): Likewise.
3866 (pe_undef_cdecl_match): Likewise.
3867 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3868 argument "arch" with ATTRIBUTE_UNUSED.
3870 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3872 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3874 From Ryan Bradetich <rbradetich@uswest.net>
3875 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3877 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3879 Changes to create multiple linker stubs, positioned immediately
3880 before the section where they are required.
3881 * emultempl/hppaelf.em: Include elf32-hppa.h.
3882 (stub_sec, file_chain): Delete.
3883 (hppaelf_create_output_section_statements): Don't make a stub
3885 (hook_stub_info): New struct.
3886 (hook_in_stub): New function.
3887 (hppaelf_add_stub_section): New function.
3888 (hppaelf_finish): Do nothing for relocateable links. Modify the
3889 call to elf32_hppa_size_stubs. Move code for updating section
3891 (hppaelf_layaout_sections_again): ..to here, a new function.
3893 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3894 broken list handling. Pass in a pointer to the list.
3895 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3897 (hppaelf_before_parse): Prototype.
3898 (hppaelf_set_output_arch): Prototype.
3899 (hppaelf_create_output_section_statements): Prototype.
3900 (hppaelf_delete_padding_statements): Prototype.
3901 (hppaelf_finish): Prototype.
3904 * emultempl/hppaelf.em: Include ctype.h.
3905 (struct orphan_save): New.
3906 (gld${EMULATION_NAME}_place_orphan): New.
3907 (output_rel_find): New.
3908 (hppaelf_get_script): Update from elf32.em.
3909 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3910 Change emulation_name field to "${EMULATION_NAME}". Add
3911 gld${EMULATION_NAME}_place_orphan.
3913 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3914 ehppalinux.o, sort it. Regenerate dependencies.
3915 (ehppalinux.c): Depend on hppaelf.em
3916 * Makefile.in: Regenerate.
3918 * configure.tgt: targ_emul=hppalinux for hppa*linux
3920 * emulparams/hppalinux.sh: New.
3921 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3923 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3925 * lexsup.c (parse_args): Copy section name.
3927 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3929 * emultempl/pe.em: institute the following search order for
3930 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3931 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3932 static lib (libfoo.a) if none of the above are found.
3934 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3936 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3937 (longopts): New --{enable,disable}-auto-image-base options.
3938 (gld_${EMULATION_NAME}_list_options): Document.
3939 (gld_${EMULATION_NAME}_parse): Handle.
3940 (strhash): New static function.
3941 (compute_dll_image_base): New static function.
3942 (gld_${EMULATION_NAME}_set_symbols): Use.
3944 2000-07-05 DJ Delorie <dj@redhat.com>
3948 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3950 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3951 * emulparams/elf32btsmip.sh: New file.
3952 * Makefile.am: Add traditional mips target.
3953 * Makefile.in: Rebuild.
3955 2000-07-01 H.J. Lu <hjl@gnu.org>
3957 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3958 automake to use YLWRAP.
3959 * Makefile.in: Rebuild.
3961 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3963 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3964 (CLEANFILES): Add DEPA.
3965 * Makefile.in: Regenerate.
3967 2000-06-30 Timothy Wall <twall@ppc>
3969 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3970 the page in the upper octet of the address.
3972 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3974 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3976 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3978 * NEWS: arm-elf does --gc-sections too.
3980 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3982 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3984 * Makefile.in: Regenerate.
3986 2000-06-21 H.J. Lu <hjl@gnu.org>
3988 * Makefile.am: Rebuild dependency.
3989 * Makefile.in: Rebuild.
3991 2000-06-20 H.J. Lu <hjl@gnu.org>
3993 * Makefile.am: Rebuild dependency.
3994 * Makefile.in: Rebuild.
3996 2000-06-20 Timothy Wall <twall@cygnus.com>
3998 * scripttempl/tic54xcoff.sc: New.
3999 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
4000 * gen-doc.texi: Add flag for TI COFF.
4001 * ld.texinfo: Add documentation for TI COFF handling switches.
4002 * emultempl/ticoff.em: New. TI COFF handling.
4003 * configure.tgt: Add tic54x target.
4004 * Makefile.am: Add tic54x target.
4005 * Makefile.in: Ditto.
4007 2000-06-20 Alan Modra <alan@linuxcare.com.au>
4009 * ldmain.c (set_scripts_dir): Correct pointer comparison when
4010 checking for backslashes.
4012 2000-06-19 Alan Modra <alan@linuxcare.com.au>
4014 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
4016 2000-06-18 Alan Modra <alan@linuxcare.com.au>
4018 * NEWS: Update list of targets supporting --gc-sections.
4020 * scripttempl/elf.sc: KEEP .eh_frame contents.
4021 * scripttempl/elfd30v.sc: Same here.
4023 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
4025 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
4027 * Makefile.in: Rebuild.
4028 * configure.tgt: Recognize m68hc12 and m68hc11.
4029 * scripttempl/elfm68hc12.sc: New file.
4030 * emulparams/m68hc12elfb: New emulation.
4031 * emulparams/m68hc12elf: New emulation.
4032 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
4033 (includes a memory.x script to define the ROM and RAM banks).
4034 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
4035 New configuration files for support of Motorola 68hc11
4037 2000-06-15 Alan Modra <alan@linuxcare.com.au>
4039 * ldmain.c (main): Only change SEC_READONLY for final link.
4041 2000-06-13 H.J. Lu <hjl@gnu.org>
4043 * configure: Regenerate.
4045 2000-06-08 David O'Brien <obrien@FreeBSD.org>
4047 * configure.in (VERSION): Update to show this is the CVS mainline.
4049 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4051 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
4052 input objects to be ECOFF.
4053 (check_sections): einfo takes %B, not %P, to print a BFD name.
4055 2000-06-05 Michael Matz <matz@ifh.de>
4057 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4060 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4062 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4064 * emulparams/avr1200.sh (STACK): Define as 0.
4065 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4066 * emulparams/avr4433.sh (STACK): Likewise.
4067 * emulparams/avr44x4.sh (STACK): Likewise.
4068 * emulparams/avr85xx.sh (STACK): Likewise.
4069 * emulparams/avrmega103.sh (STACK): Likewise.
4070 * emulparams/avrmega161.sh (STACK): Likewise.
4071 * emulparams/avrmega603.sh (STACK): Likewise.
4072 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4073 (__stack): Define from ${STACK} for main().
4075 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4077 * Makefile.am: Update dependencies with "make dep-am"
4078 * Makefile.in: Regenerate.
4080 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4082 * ldmain.c: Include filenames.h.
4083 (set_scripts_dir): Support backslashes in program name.
4085 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4087 * ldmain.c (main): When deciding if ".text" section should be
4088 read-only, don't forget to reset SEC_READONLY because it
4089 could be already set.
4091 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4093 * ld.1: Add documentation for new command line option:
4094 --section-start <sectionname>=<sectionorg>
4095 This is a generic version of -Ttext etc. which accepts
4096 any section name as a parameter instead of just text/data/
4098 * ld.texinfo: More docs.
4100 * lexsup.c: (parse_args): Recognize new command line option.
4101 (ld_options): Add new option.
4103 2000-05-18 H.J. Lu <hjl@gnu.org>
4105 * lexsup.c (parse_args): `i' == `r', not `q'.
4107 2000-05-18 Jeffrey A Law (law@cygnus.com)
4109 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4111 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4112 Rick Gorton <gorton@scrugs.lkg.dec.com>
4114 Add support for '-q' == '--emit-relocs' switch.
4115 * ldmain.c (main): Default to false.
4116 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4117 * NEWS: Describe the emitrelocations switch.
4118 * ld.texinfo: Describe the emitrelocations switch.
4120 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4122 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4123 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4124 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4127 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4129 * lexsup.c (parse_args): Update the year in the copyright notice.
4131 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4133 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4134 Replace defines with those from intl/libgettext.h to quieten gcc
4137 2000-05-10 H.J. Lu <hjl@gnu.org>
4139 * ldlang.c (open_input_bfds): Don't load the same file within
4140 a group again if the whole archive has been loaded already.
4142 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4144 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4145 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4148 2000-05-01 Jim Wilson <wilson@cygnus.com>
4150 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4152 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4153 host "ia64-*-linux-gnu*".
4155 2000-04-29 Andreas Jaeger <aj@suse.de>
4157 * ld.h: Correctly check GCC version.
4159 2000-04-25 Jeffrey A Law (law@cygnus.com)
4161 * Makefile.am: Add PA64 support. Add missing dependencies for
4163 * Makefile.in: Rebuilt.
4164 * configure.tgt: Add PA64 support (currently disabled).
4166 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4168 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4169 (output_rel_find): New function.
4170 (hold_section, hold_use): Delete.
4171 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4172 hold_interp): Make local to place_orphan.
4173 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4174 rather than place_section to find possible previous use of orphan.
4175 Similarly find the place-holder output sections. Use returned
4176 value from lang_enter_output_section_statement rather than calling
4177 lang_output_section_statement_lookup.
4178 * emultempl/armelf.em: Same here.
4179 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4181 * ldlang.c (lang_enter_output_section_statement): Return output
4183 * ldlang.h (lang_enter_output_section_statement): Change
4186 * ldlang.h (lang_output_section_statement): Export it.
4187 * ldlang.c (lang_output_section_statement): Ditto.
4189 2000-04-24 Nick Clifton <nickc@cygnus.com>
4191 * ld.texinfo (Output Section Data): Add note that section data
4192 commands cannot appear outside of section directives.
4194 2000-04-2 Matthew Green <mrg@cygnus.com>
4196 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4198 2000-04-21 Richard Henderson <rth@cygnus.com>
4199 David Mosberger <davidm@hpl.hp.com>
4201 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4202 (eelf64_ia64.c): New rule.
4203 * Makefile.in: Rebuild.
4204 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4205 * emulparams/elf64_ia64.sh: New file.
4207 2000-04-21 Richard Henderson <rth@cygnus.com>
4209 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4211 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4213 * dep-in.sed: Match space at start of file name, not at end.
4215 2000-04-18 H.J. Lu <hjl@gnu.org>
4217 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4218 lang_leave_output_section_statement () after calling
4219 lang_enter_output_section_statement ().
4220 * emultempl/armelf.em: Likewise.
4222 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4224 * emultempl/elf32.em (struct orphan_save): Add section field.
4225 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4226 better order, and place first orphan section as we did before the
4227 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4228 Don't call make_bfd_section here, let wild_doit do the job for us.
4229 Don't build a statement list when we'll only throw it away.
4230 * emultempl/armelf.em: Ditto.
4231 * emultempl/pe.em: Similarly.
4233 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4235 * scripttempl/elfppc.sc: Remove.
4236 * emulparams/elf32ppc.sh: Use elf.sc.
4237 * emulparams/elf32lppc.sh: Use elf.sc.
4238 * emulparams/elf32ppclinux.sh: Use elf.sc.
4239 * emulparams/elf32ppcsim.sh: New file.
4240 * emulparams/elf32lppcsim.sh: New file.
4241 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4242 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4243 * Makefile.in: Regenerate.
4244 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4246 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4248 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4249 ~SEC_ALLOC sections too. Init start address of debug sections.
4250 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4251 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4252 Also set all relocateable section start addresses.
4254 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4256 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4257 Add new BSS_PLT variable for when .plt need not be contained in
4258 the file. Move _etext so that it is also after .fini, and provide
4259 both etext and _etext with a leading underscore. Mark the start
4262 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4264 * emultempl/elf32.em (struct orphan_save): New.
4265 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4266 hold_interp): Make them struct orphan_save.
4267 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4268 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4269 the end of the relevant section list. Also add associated section
4270 statements to the end of any previous orphan statements.
4271 * emultempl/armelf.em: Similarly.
4272 * emultempl/pe.em: Similarly.
4274 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4276 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4278 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4280 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4281 --enable-build-warnings option.
4282 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4283 * Makefile.in, configure: Re-generate.
4285 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4287 * po/ld.pot: Regenerate.
4289 * lexsup.c (help): Restore translated part of bug string.
4291 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4292 (DEP): Quote when passing vars to sub-make. Add warning message
4294 (DEP1): Rewrite for "gcc -MM".
4295 (CLEANFILES): Add DEP2.
4296 Update dependencies.
4297 * Makefile.in: Regenerate.
4299 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4301 * ld.h: #include "bin-bugs.h"
4302 * lexsup.c (help): Use REPORT_BUGS_TO.
4304 2000-03-27 Denis Chertykov <denisc@overta.ru>
4306 * configure.tgt (avr-*-*): New target support.
4307 * Makefile.am: Likewise.
4308 * scripttempl/elf32avr.sc: New script file.
4309 * emulparams/avr1200.sh: New file.
4310 * emulparams/avr23xx.sh: New file.
4311 * emulparams/avr4433.sh New file.
4312 * emulparams/avr44x4.sh New file.
4313 * emulparams/avr85xx.sh New file.
4314 * emulparams/avrmega103.sh New file.
4315 * emulparams/avrmega161.sh New file.
4316 * emulparams/avrmega603.sh New file.
4317 * Makefile.in: Regenerate.
4319 2000-03-09 Andreas Jaeger <aj@suse.de>
4321 * Makefile.am (check-DEJAGNU): Also unset LANG.
4322 * Makefile.in: Rebuild.
4324 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4326 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4329 2000-03-02 H.J. Lu <hjl@gnu.org>
4331 * emulparams/elf32mcore.sh: Include "getopt.h".
4333 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4335 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4337 2000-03-01 H.J. Lu <hjl@gnu.org>
4339 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4340 * emulparams/shpe.sh: Likewise.
4342 2000-03-01 Nick Clifton <nickc@cygnus.com>
4344 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4345 to unused parameters.
4347 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4348 functions only used by DLL code.
4349 (_place_orphan): Initialise 'dollar'.
4351 2000-03-01 H.J. Lu <hjl@gnu.org>
4353 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4354 indicate if the undefined symbol is a fatal error or not.
4355 Don't delete the output file if "fatal" is false.
4357 2000-02-29 H.J. Lu <hjl@gnu.org>
4359 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4360 Set LC_COLLATE and LC_ALL to null and export them. It is for
4361 sort which expects the C locale.
4362 Add $(LIBS) to all $(HOSTING_LIBS).
4363 * Makefile.in: Rebuild.
4365 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4367 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4368 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4369 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4370 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4371 find_potential_libraries.
4373 2000-02-28 Jim Blandy <jimb@redhat.com>
4375 * ldgram.y (exclude_name_list): Don't require a comma to separate
4376 list entries; the lexer considers commas to be valid part of a
4377 filename, so in something like `foo, bar' the comma is considered
4378 part of the first filename, `foo,'.
4379 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4381 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4383 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4384 host "i[3456]86-*-freebsdelf*".
4386 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4388 * scripttempl/i386go32.sc: Move misplaced semicolons.
4390 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4392 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4393 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4394 (eelf64hppa.c, ehppaelf.c): Remove targets.
4395 * Makefile.in: Rebuild.
4397 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4399 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4400 GNU/Linux/sparc, but keep the default as 32.
4402 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4403 it default if sparcv9 or sparc64.
4405 2000-02-24 Nick Clifton <nickc@cygnus.com>
4407 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4408 * Makefile.in: Regenerate.
4409 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4411 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4412 find_potential_libraries.
4413 * ldemul.c (ldemul_find_potential_libraries): New function.
4415 * ldfile.c (ldfile_open_file_search): Allow function to be
4417 (ldfile_open_file): Call ldemul_find_potential_libraries.
4418 * ldfile.h: Add prototype for ldfile_open_file_search.
4420 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4422 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4423 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4425 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4426 (gld_X_find_potential_libraries): New function. Search for
4427 libraries called "*.lib".
4429 * scripttempl/pe.sc: Add .pdata section.
4431 2000-02-23 Richard Henderson <rth@cygnus.com>
4433 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4434 Add and use memory regions.
4436 2000-02-23 Linas Vepstas (linas@linas.org)
4438 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4440 * Makefile.am: Add support for Linux/IBM 370.
4441 * configure.tgt: Likewise.
4443 * Makefile.in: Regenerate.
4445 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4447 * ldlang.c (print_input_section, print_data_statement,
4448 print_reloc_statement, print_padding_statement, insert_pad,
4449 size_input_section, lang_check_section_addresses,
4450 lang_size_sections, lang_do_assignments, lang_set_startof,
4451 lang_one_common): Change `opb' to unsigned.
4452 (lang_do_assignments): Also change `size' to unsigned.
4454 2000-02-16 Richard Henderson <rth@cygnus.com>
4456 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4458 2000-02-16 Timothy Wall <twall@cygnus.com>
4460 * mri.c (mri_draw_tree): Add default LMA region argument to call
4461 to lang_leave_output_section_statement.
4462 * ldlang.h: Update prototypes with LMA region arguments.
4463 * ldlang.c (lang_size_sections): Encapsulate region bounds
4464 checking in os_check_region call.
4465 (os_check_region): New function.
4466 (lang_output_section_statement_lookup): Initialize lma_region.
4467 (lang_leave_output_section_statement): Add LMA region argument.
4468 (lang_leave_overlay): Ditto.
4469 * ldgram.y: Handle LMA region syntax.
4470 * ld.texinfo (Output Section Description): Describe LMA region usage.
4471 * emultempl/armelf.em (gld$place_orphan): Add default value for
4472 lma region in call to lang_leave_output_section_statement.
4473 * emultempl/elf32.em (gld$place_orphan): Add default value for
4474 lma region in call to lang_leave_output_section_statement.
4475 * emultempl/pe.em (gld$place_orphan): Add default value for
4476 lma region in call to lang_leave_output_section_statement.
4479 2000-02-04 Timothy Wall <twall@redhat.com>
4481 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4482 octets when calculating section end addresses.
4484 2000-02-04 Timothy Wall <twall@redhat.com>
4486 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4488 2000-02-03 Timothy Wall <twall@redhat.com>
4490 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4492 * ldlang.c (print_input_section, print_data_statement,
4493 print_reloc_statement, print_padding_statement): Print target
4494 address values and section sizes as bytes, not octets.
4495 (insert_pad) Calculate padding size in octets, and adjust "dot"
4497 (size_input_section) Always adjust "dot" by bytes, not octets.
4498 (lang_check_section_addresses, lang_do_assignments) Adjust
4499 "dot" by bytes, not octets. Use the larger of the directive size
4500 or octets_per_byte for the number of octets actually allocated in
4502 (lang_set_startof) Make sure STARTOF returns a target address.
4503 (lang_one_common) Record size changes in octets.
4504 (lang_abs_symbol_at_end_of) Section end symbol's value is
4505 recorded in target bytes.
4506 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4507 to be clear about behavior when an octet is smaller than one byte.
4509 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4511 * ldcref.c (output_cref): Don't pass message strings to printf
4515 * ldmisc.c (vfinfo): Same here.
4518 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4520 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4521 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4522 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4523 Add missing NULL initialisers, and comments.
4525 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4527 2000-01-21 Nick Clifton <nickc@cygnus.com>
4529 * ldlang.c (lang_size_sections): Fix typo in comment.
4531 2000-01-18 H.J. Lu <hjl@gnu.org>
4533 * ldlang.c (lang_size_sections): Also update the current
4534 address of a region if the SEC_NEVER_LOAD bit is not set.
4536 2000-01-10 Philip Blundell <pb@futuretv.com>
4538 * configure.tgt (arm*-*-conix*): New target.
4540 2000-01-07 Nick Clifton <nickc@cygnus.com>
4542 * ld.texinfo (Options): Remind users to preceed linker command
4543 line switches with -Wl, (or whatever is appropriate) if it is
4544 being invoked by a comnpiler driver program.
4545 Fix description of the behaviour of the -n command line switch.
4547 2000-01-05 Catherine Moore <clm@cygnus.com>
4549 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4551 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4552 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4553 (exclude_name_list): New.
4554 ldlang.c (walk_wild_section): Support list of excluded files.
4555 (print_wild_statement): Likewise.
4556 (lang_add_wild): Likewise.
4557 * ldlang.h (lang_wild_statement_type): Likewise.
4558 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4560 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4562 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4563 (process_def_file): Use.
4564 (pe_dll_compat_implib): New variable.
4567 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4568 pe_dll_compat_implib.
4570 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4571 compat-implib options.
4572 (gld_${EMULATION_NAME}_list_options): List new options.
4573 (gld_${EMULATION_NAME}_parse_args): Handle.
4575 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4578 * deffilep.y (opt_name): Allow "." in name.
4580 For older changes see ChangeLog-9899
4586 version-control: never