1 2002-07-01 Alan Modra <amodra@bigpond.net.au>
3 * ldlang.h (entry_sym): Make it a struct bfd_sym_chain.
4 * ldlang.c (entry_sym): Likewise.
5 (ldlang_undef_chain_list_type): Likewise.
6 (lang_finish): Adjust references to entry_symbol.
7 (lang_add_entry): Likewise.
8 (lang_gc_sections): Use link_info.gc_sym_list.
9 (lang_process): Set link_info.gc_sym_list.
10 * ldlex.l: Include bfdlink.h.
11 * ldmain.c (main): Init link_info.gc_sym_list.
12 * emultempl/aix.em: Adjust references to entry_symbol.
13 * emultempl/armcoff.em: Likewise.
14 * emultempl/armelf.em: Likewise.
15 * emultempl/pe.em: Likewise.
16 * emultempl/ppc64elf.em (ppc_after_open): New function.
17 (LDEMUL_AFTER_OPEN): Define.
18 * emulparams/elf64ppc.sh: KEEP .opd sections.
20 2002-06-29 Stephane Carrez <stcarrez@nerim.fr>
22 * emulparams/m68hc12elfb.sh (EEPROM_MEMORY): Define.
23 * emulparams/m68hc11elfb.sh (EEPROM_MEMORY): Define.
24 * emulparams/m68hc11elf.sh (EEPROM_SIZE): Define.
25 (EEPROM_START_ADDR): Define.
26 (EEPROM_MEMORY): Define.
27 * emulparams/m68hc12elf.sh: Likewise.
28 * scripttempl/elfm68hc11.sc: Handle .eeprom section; handle .softregs
29 section to put soft registers in .page0.
30 * scripttempl/elfm68hc12.sc: Likewise but put soft registers in bss.
32 2002-06-26 John David Anglin <dave@hiauly1.hia.nrc.ca>
34 * emulparams/hppa64linux.sh (OTHER_GOT_RELOC_SECTIONS): Add rela.opd
35 section. Add ${RELOCATING-0}.
37 Wed Jun 26 16:33:58 2002 J"orn Rennecke <joern.rennecke@superh.com>
39 * emulparams/shelf.sh (STACK_ADDR): Don't define.
40 (OTHER_SECTIONS): Define.
41 * emulparams/shelf_nbsd.sh ((STACK_ADDR): Don't undef.
42 (OTHER_SECTIONS): Undef.
44 2002-06-26 Alan Modra <amodra@bigpond.net.au>
46 * ldmisc.c (demangle): Restore dots stripped from sym name.
48 2002-06-25 H.J. Lu <hjl@gnu.org>
50 * Makefile.am (check-DEJAGNU): Set LC_ALL=C and export it.
51 * Makefile.in: Regenerated.
53 2002-06-20 Nick Clifton <nickc@cambridge.redhat.com>
55 * ld.texinfo (Bug Reporting): Update text to suggest a limit on
56 the size of attached object files, to allow make the object files
57 available via FTP or HTTP and to mention that the mail will be
58 sent to a mailing list.
60 2002-06-20 Nathanael Nerode <neroden@twcny.rr.com>
62 * ld/configure.host (romp): Drop support.
64 2002-06-18 Chris Demetriou <cgd@broadcom.com>
66 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Check
67 section flags for SEC_DATA, rather than for SEC_CODE being unset.
69 2002-06-18 Chris Demetriou <cgd@broadcom.com>
71 * emultempl/mipself.em (mips_elf${ELFSIZE}_check_sections): Fix
72 format specifier used to print BFD name.
74 2002-06-18 Dave Brolley <brolley@redhat.com>
76 From Catherine Moore, Michael Meissner, Jim Blandy:
77 * emulparams/elf32frv.sh: New file.
78 * configure.tgt: Support frv-*-*.
79 * Makefile.am (ALL_EMULATIONS): Add eelf32frv.o.
80 (eelf32frv.c): New target.
82 2002-06-17 Tom Rix <trix@redhat.com>
84 * emultempl/elf32.em: gld*_get_script: Check for
85 GENERATE_COMBRELOC_SCRIPT.
86 * scripttempl/elfd10v.sc : Fix STACK and INSN.
87 * emulparams/d10velf.sh : Fix TEXT_START_ADDR.
89 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
91 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
93 2002-06-12 H.J. Lu <hjl@gnu.org>
95 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
96 false if xvec doesn't match.
98 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
100 * ldlang.c (lang_size_sections_1): Skip removed output sections.
102 2002-06-08 Alan Modra <amodra@bigpond.net.au>
104 * ldexp.c: Replace CONST with const.
105 * ldfile.c: Likewise.
106 * ldfile.h: Likewise.
109 * pe-dll.h: Likewise.
111 2002-06-07 Alan Modra <amodra@bigpond.net.au>
113 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
115 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
117 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
118 to -1 == implicit enable.
119 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
120 initialize link_info.pei386_auto_import to -1 == implicit
122 (gld_${EMULATION_NAME}_parse_args): When processing
123 --enable-auto-import and --disable-auto-import options, use
124 '1' and '0' instead of 'true' and 'false'.
125 (pe_find_data_imports): Only issue message about auto-import
126 when the feature is implicitly enabled. Downgrade message to
127 informational instead of warning.
129 2002-06-07 Alan Modra <amodra@bigpond.net.au>
131 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
133 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
135 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
136 HOSTING_CRT0 and HOSTING_LIBS.
138 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
140 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
142 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
144 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
145 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
147 2002-06-05 Alan Modra <amodra@bigpond.net.au>
149 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
150 SEC_EXCLUDE sections when doing a relocatable link.
152 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
154 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
155 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
156 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
157 (eshlelf64_nbsd.c): New rules.
158 * Makefile.in: Regenerate.
159 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
160 (sh64-*-netbsd*): New targets.
161 * emulparams/shelf32_nbsd.sh: New file.
162 * emulparams/shelf64_nbsd.sh: New file.
163 * emulparams/shlelf32_nbsd.sh: New file.
164 * emulparams/shlelf64_nbsd.sh: New file.
166 2002-06-04 Alan Modra <amodra@bigpond.net.au>
168 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
170 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
172 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
173 C++ constructors/destructors, loosely based on the m68hc11 port.
175 2002-05-31 Alan Modra <amodra@bigpond.net.au>
177 * Makefile.in: Regenerate.
178 * aclocal.m4: Regenerate.
179 * config.in: Regenerate.
180 * configure: Regenerate.
182 2002-05-31 Graeme Peterson <gp@qnx.com>
184 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
185 (ei386nto.c): Add rule.
186 * Makefile.in: Regenerate.
187 * configure.tgt: Add i[3456]86-*-nto-qnx*.
188 * emulparams/i386nto.sh: New file.
190 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
192 * NEWS: Add entry for VAX ELF support.
194 2002-05-29 Matt Thomas <matt@3am-software.com>
195 Jason Thorpe <thorpej@wasabisystems.com>
197 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
199 (evaxnbsd.c): New rules.
200 * Makefile.in: Regenerate.
201 * configure.tgt (vax-*-netbsdelf*)
203 (vax-*-netbsd*): New targets.
204 * emulparams/elf32vax.sh: New file.
205 * emulparams/vaxnbsd.sh: New file.
207 2002-05-29 Adam Nemet <anemet@lnxw.com>
209 * emultempl/armelf.em (arm_elf_after_open): Don't determine
210 bfd_for_interwork, instead add glue sections to each input bfd.
211 (bfd_for_interwork): New global.
212 (arm_elf_set_bfd_for_interworking): New function.
213 (arm_elf_before_allocation): Use it.
215 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
217 * Makefile.am: Add DLX make target.
218 * configure.tgt: Add DLX configuration.
219 * Makefile.in: Regenerate.
220 * emulparams/elf32_dlx.sh: New file
221 * scripttempl/dlx.sc: New file
223 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
225 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
226 * Makefile.in: Regenerate.
227 * emulparams/elf_chaos.sh: Use elf_chaos script.
228 * scripttempl/elf_chaos.sc: New file.
230 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
232 * ldlang.c (lang_size_sections_1): Move check for conflicting load
233 addresses and regions from here...
234 (lang_get_regions): ...to this new function.
235 (lang_leave_output_section_statement): Use lang_get_regions.
236 (lang_leave_overlay): Likewise.
237 * mri.c (mri_draw_tree): Pass null as last argument to
238 lang_leave_output_section_statement.
239 * emultempl/elf32.em (gld*_place_orphan): Likewise.
240 * emultempl/mmo.em (mmo_place_orphan): Likewise.
241 * emultempl/pe.em (gld*_place_orphan): Likewise.
243 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
245 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
247 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
249 * ldemul.c: Fix formatting.
250 * ldfile.c: Likewise.
251 * pe-dll.c: Likewise.
252 * pe-dll.h: Likewise.
254 2002-05-25 Alan Modra <amodra@bigpond.net.au>
256 * ldlang.c (lang_process): Formatting, grammar.
258 * ldlex.l: Use #include "" instead of <> for local header files.
260 2002-05-24 TAMURA Kent <kent@netbsd.org>
262 * configure.tgt: Add a target for i386-netbsdpe.
264 2002-05-23 Jakub Jelinek <jakub@redhat.com>
266 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
267 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
268 output section if necessary. Handle .tbss.
269 (lang_size_sections): Clear _raw_size for .tbss section
270 (it allocates space in PT_TLS segment only).
271 * ldwrite.c (build_link_order): Build link order for .tbss too.
273 2002-05-23 Alan Modra <amodra@bigpond.net.au>
275 * configure.in: Correct spelling of AC_PREREQ.
277 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
279 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
281 (autofilter_objlist): Add crtbegin.o, crtend.o.
283 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
285 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
286 (longopts): Add new option --exclude-libs.
287 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
288 (gld_${EMULATION_NAME}_parse_args): Use it.
289 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
290 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
292 (pe_dll_add_excludes): Set excludes->type.
293 (auto_export): Add new variable libname and set to archive basename if
294 abfd. Use it when filtering default and user-specified libarary
295 excludes. Let string "ALL" mean all libs when filtering user-specified
297 * ld.texinfo: Document --exclude-libs.
299 2002-05-22 Alan Modra <amodra@bigpond.net.au>
301 * ldemul.c (ldemul_new_vers_pattern): New function.
302 * ldemul.h (ldemul_new_vers_pattern): Declare.
303 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
304 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
305 * emultempl/ppc64elf.em (dotsyms): New static var.
306 (gld${EMULATION_NAME}_new_vers_pattern): New function.
307 (LDEMUL_NEW_VERS_PATTERN): Define.
308 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
309 (PARSE_AND_LIST_LONGOPTS): Likewise.
310 (PARSE_AND_LIST_ARGS_CASES): Handle them.
311 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
313 * emultempl/armcoff.em: Likewise.
314 * emultempl/armelf_oabi.em: Likewise.
315 * emultempl/beos.em: Likewise.
316 * emultempl/elf32.em: Likewise.
317 * emultempl/generic.em: Likewise.
318 * emultempl/gld960.em: Likewise.
319 * emultempl/gld960c.em: Likewise.
320 * emultempl/linux.em: Likewise.
321 * emultempl/lnk960.em: Likewise.
322 * emultempl/m68kcoff.em: Likewise.
323 * emultempl/mipsecoff.em: Likewise.
324 * emultempl/pe.em: Likewise.
325 * emultempl/sunos.em: Likewise.
326 * emultempl/ticoff.em: Likewise.
327 * emultempl/vanilla.em: Likewise.
329 2002-05-22 Alan Modra <amodra@bigpond.net.au>
331 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
332 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
333 (LIB_SEARCH_DIRS): No need to use "tr".
334 (COMPILE_IN): Only set for native targets.
335 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
336 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
337 * configure.tgt (powerpc*): Set tdir_*.
338 (powerpcle*): Correct targ_extra_emuls.
339 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
340 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
342 2002-05-22 Alan Modra <amodra@bigpond.net.au>
344 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
345 calling lang_add_entry.
347 2002-05-21 H.J. Lu (hjl@gnu.org)
349 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
351 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
353 * ld.texinfo: Updated for --allow-multiple-definition and
356 * ldmain.c (main): Initialize the allow_multiple_definition
359 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
360 (ld_options): Add --allow-multiple-definition.
361 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
363 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
365 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
366 (earmelfb_nbsd.c): New rule.
367 * Makefile.in: Regenerate.
368 * configure.tgt (armeb-*-netbsdelf*): New target.
369 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
370 (arm-*-netbsd*): Likewise.
371 * emulparams/armelfb_nbsd.sh: New file.
373 2002-05-18 Tom Rix <trix@redhat.com>
375 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
378 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
380 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
381 * Makefile.in: Regenerate.
382 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
384 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
386 * emulparams/avr1.sh: New file.
387 * emulparams/avr2.sh: New file.
388 * emulparams/avr3.sh: New file.
389 * emulparams/avr4.sh: New file.
390 * emulparams/avr5.sh: New file.
391 * scripttempl/avr.sc: New file.
393 2002-05-15 Alan Modra <amodra@bigpond.net.au>
395 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
396 (lang_place_orphans): Abort if just_syms_flag.
398 2002-05-10 Tom Rix <trix@redhat.com>
400 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
401 architecture and machine information in the output bfd.
402 (gld*_before_parse): Remove old arch and machine code.
403 (choose_target): Rename to gld*_choose_target.
404 (rtld): Change type to int.
405 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
406 objects in XCOFF archives.
407 * ldfile.h: Update copyright date.
409 2002-05-10 Jakub Jelinek <jakub@redhat.com>
411 * ldmain.c (main): Enable -z combreloc by default.
413 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
415 * Makefile.am: Honour DESTDIR.
416 * Makefile.in: Regenerate.
418 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
420 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
421 (lang_enter_overlay): Remove the last two parameters.
422 (lang_leave_overlay): Take them here instead.
423 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
424 (section): Pass LMA and crossref flag to lang_leave_overlay rather
425 than lang_enter_overlay.
426 * ldlang.c (lang_memory_region_lookup): Return null for null names.
427 (lang_output_section_statement_lookup): Initialize update_dot_tree.
428 (lang_size_sections_1): Evaluate it.
429 (lang_leave_output_section_statement): Rework LMA lookup.
430 (overlay_lma, overlay_nocrossrefs): Remove.
431 (lang_enter_overlay): Remove LMA and crossref arguments.
432 (lang_enter_overlay_section): Don't set the LMA here.
433 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
434 assignment to the last section's update_dot_tree. Unconditionally
435 use the load and run-time regions specified in the OVERLAY statement.
436 Likewise the first section's LMA. Only set the other sections' LMAs
437 when no load region is given.
439 2002-05-06 Nick Clifton <nickc@redhat.com>
441 * po/sv.po: New translation.
443 2002-05-04 Alan Modra <amodra@bigpond.net.au>
445 * emultempl/hppaelf.em (build_section_lists): New function.
446 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
447 and build_section_lists.
449 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
451 * ld.h: Fix formatting.
453 * ldfile.c: Likewise.
454 * ldlang.c: Likewise.
455 * ldmain.c: Likewise.
456 * lexsup.c: Likewise.
457 * pe-dll.c: Likewise.
459 2002-05-02 Alan Modra <amodra@bigpond.net.au>
461 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
462 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
463 (build_section_lists): Do output_section tests here.
465 2002-04-30 Tom Rix <trix@redhat.com>
467 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
469 2002-05-01 Alan Modra <amodra@bigpond.net.au>
471 Long branch stubs, multiple stub sections.
472 * emultempl/ppc64elf.em: Include ldctor.h.
473 (stub_file): New var.
474 (group_size): New var.
475 (ppc_create_output_section_statements): New function.
476 (struct hook_stub_info): New.
477 (hook_in_stub): New function.
478 (ppc_add_stub_section): New function.
479 (ppc_layout_sections_again): New function.
480 (build_section_lists): New function.
481 (gld${EMULATION_NAME}_finish): Rewrite.
482 (real_func): New var.
483 (ppc_for_each_input_file_wrapper): New function.
484 (ppc_lang_for_each_input_file): New function.
485 (lang_for_each_input_file): Define.
486 (PARSE_AND_LIST_PROLOGUE): Define.
487 (PARSE_AND_LIST_LONGOPTS): Define.
488 (PARSE_AND_LIST_OPTIONS): Define.
489 (PARSE_AND_LIST_ARGS_CASES): Define.
490 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
492 2002-04-30 Tom Rix <trix@redhat.com>
494 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
495 -blibpath, -bnolibpath support.
497 2002-04-30 Mark Mitchell <mark@codesourcery.com>
499 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
500 (eelf32ppcwindiss.c): New target.
501 * Makefile.in: Regenerated.
502 * configure.tgt: Add support for powerpc-*-windiss.
503 * emulparams/elf32ppcwindiss.sh: New file.
505 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
507 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
508 * ldexp.c (exp_print_token): Add "infix_p" argument.
509 (exp_print_tree): Update accordingly.
511 2002-04-28 Alan Modra <amodra@bigpond.net.au>
513 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
514 * Makefile.in: Regenerate.
515 * mpw-elfmips.c: Delete.
516 * mpw-eppcmac.c: Delete.
518 * mpw-idtmips.c: Delete.
520 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
522 * emulparams/shelf32.sh (MACHINE): Now sh5.
524 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
526 * ldgram.y: Fix syntax warning.
528 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
530 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
531 to prevent "-n" from being taken as an abbreviation for
532 "--no-pipeline-knowledge".
534 2002-04-08 Alan Modra <amodra@bigpond.net.au>
536 * ldlang.c (lang_size_sections_1): Don't complain about
537 SEC_NEVER_LOAD sections having no memory region specified.
539 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
541 2002-04-07 matthew green <mrg@redhat.com>
543 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
545 2002-04-04 Alan Modra <amodra@bigpond.net.au>
547 * dep-in.sed: Cope with absolute paths.
548 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
550 * Makefile.in: Regenerate.
552 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
554 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
556 2002-04-03 Jakub Jelinek <jakub@redhat.com>
558 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
559 is smaller than maximum, round dot up to common page boundary.
561 2002-03-28 Alan Modra <amodra@bigpond.net.au>
563 * configure.host: Set up for generic hosts first, then tweak as
564 necessary in more specific targets.
565 (HOSTING_LIBS): Include libgcc_eh.a if found.
567 2002-03-23 Andreas Jaeger <aj@suse.de>
569 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
571 2002-03-21 Alan Modra <amodra@bigpond.net.au>
573 * Makefile.am: Run "make dep-am".
574 * Makefile.in: Regenerate.
576 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
578 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
580 2002-03-20 Alan Modra <amodra@bigpond.net.au>
582 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
583 add the symbol to the linker hash table immediately.
584 (lang_place_undefineds): Split symbol creation out..
585 (insert_undefined): ..to here.
587 2002-03-18 David O'Brien <obrien@FreeBSD.org>
589 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
590 the contents of the buffer returned from basename function will are
591 getting overwritten while still being used.
593 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
594 Andreas Jaeger <aj@suse.de>
595 Andreas Schwab <schwab@suse.de>
597 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
598 * elf_x86_64.sh (ARCH): Set to i386:x86-64
599 set libraries to default to lib64 paths.
601 2002-03-18 Tom Rix <trix@redhat.com>
603 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
604 * configure.tgt : Same.
605 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
606 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
607 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
608 emulation parameters for better -b32, -b64 support.
609 * emulparms/aixrs6.sh : Same.
610 * emulparms/ppcmacos.sh : Same.
611 * emultempl/aix.em (choose_target) : Use new emulation parameters
612 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
613 * Makefile.in : Regenerate.
615 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
617 * po/fr.po: Updated version.
619 2002-03-18 Alan Modra <amodra@bigpond.net.au>
621 * ldmain.c (main): Move .text readonly flag fudges from here..
622 * ldlang.c (lang_process): ..to here.
624 2002-03-14 Alan Modra <amodra@bigpond.net.au>
626 * ldlang.c (lang_check): Remove the word size check added in last
627 change. Treat emitrelocations case as for relocatable links.
629 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
631 * po/fr.po: Updated version.
633 2002-03-13 Alan Modra <amodra@bigpond.net.au>
635 * ldlang.c (lang_check): Do relocatable link checks first, so that
636 warn_mismatch can't override. Check compatible and word size too.
638 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
640 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
642 2002-03-05 Jakub Jelinek <jakub@redhat.com>
644 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
647 2002-03-04 H.J. Lu <hjl@gnu.org>
649 * scripttempl/elf.sc: Put .preinit_array, .init_array and
650 .fini_array in the data segment.
652 2002-03-04 Alan Modra <amodra@bigpond.net.au>
654 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
656 2002-03-01 David Mosberger <davidm@hpl.hp.com>
658 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
659 .init_array, and .fini_array.
661 2002-02-20 Andreas Schwab <schwab@suse.de>
663 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
664 .IA64_unwind* in a relocatable link.
666 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
668 * NEWS: Mark 2.12 branch.
670 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
672 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
673 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
675 2002-02-18 Tom Rix <trix@redhat.com>
677 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
678 (gld*_before_allocation): Same.
679 (gld*_create_output_section_statements): Generate
680 __rtinit if run time linking. Add librtl.a to the link.
681 (gld*_read_file): Clean.
683 2002-02-18 Alan Modra <amodra@bigpond.net.au>
685 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
687 2002-02-18 David O'Brien <obrien@FreeBSD.org>
689 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
690 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
691 and eelf64alpha_fbsd.
692 * Makefile.in: Regenerate.
693 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
694 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
695 use a FreeBSD-specific emulation rather than the psABI one.
696 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
697 for all FreeBSD ELF systems.
698 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
700 * emulparams/elf32ppc_fbsd.sh: Likewise.
701 * emulparams/elf64_ia64_fbsd.sh: Likewise.
702 * emulparams/elf64_sparc_fbsd.sh: Likewise.
703 * emulparams/elf64alpha_fbsd.sh: Likewise.
704 * emulparams/elf_i386_fbsd.sh: Likewise.
705 * emulparams/elf_x86_64_fbsd.sh: Likewise.
707 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
709 * po/tr.po: Updated version.
711 2002-02-18 Alan Modra <amodra@bigpond.net.au>
713 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
716 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
718 * emultempl/mmo.em (mmo_after_open): Don't call
719 _bfd_mmix_check_all_relocs when producing ELF output.
721 2002-02-15 Richard Henderson <rth@redhat.com>
723 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
724 definition. Emit a unop+nop pair.
726 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
728 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
729 for presence of .MMIX.reg_contents.linker_allocated before early
732 * NEWS: Mention support for MMIX.
734 2002-02-15 Alan Modra <amodra@bigpond.net.au>
736 Support arbitrary length fill patterns.
737 * ld.texinfo (Output Section Fill): Describe fill expressions.
738 (FILL): Refer to the above.
739 * ldexp.h (etree_value_type): Add "str" field.
740 (union etree_union): Add "str" to "value" struct.
741 (exp_bigintop): Declare.
742 (exp_get_fill): Declare.
743 * ldexp.c: Include "safe-ctype.h".
744 (exp_intop): Set value.str to NULL.
745 (exp_bigintop): New function.
746 (new_rel): Pass in "str", and set new.str from it.
747 (new_rel_from_section): Set new.str to NULL.
748 (fold_name): Adjust calls to new_rel.
749 (exp_fold_tree): Likewise.
750 (exp_get_fill): New function.
751 * ldgram.y (struct big_int bigint, fill_type *fill): New.
752 (INT): Returns a "bigint". Adjust all code handling INTs.
753 (fill_opt): Returns a "fill".
754 (fill_exp): Split out of fill_opt, use for FILL.
755 * ldlang.h (struct _fill_type): New.
756 (fill_type): Move typedef to ldexp.h.
757 (lang_output_section_statement_type): "fill" is now a pointer.
758 (lang_fill_statement_type): Likewise.
759 (lang_padding_statement_type): Likewise.
760 (lang_add_fill): Now takes a "fill_type *" param.
761 (lang_leave_output_section_statement): Likewise.
762 (lang_do_assignments): Likewise.
763 (lang_size_sections): Likewise.
764 (lang_leave_overlay_section): Likewise.
765 (lang_leave_overlay): Likewise.
766 * ldlang.c: Include ldgram.h after ldexp.h.
767 (lang_output_section_statement_lookup): Adjust for fill_type change.
768 (print_fill_statement): Likewise.
769 (print_padding_statement): Likewise.
770 (insert_pad): Now takes a "fill_type *" arg.
771 (size_input_section): Likewise.
772 (lang_size_sections_1): Likewise.
773 (lang_size_sections): Likewise.
774 (lang_do_assignments): Likewise.
775 (lang_add_fill): Likewise.
776 (lang_leave_output_section_statement): Likewise.
777 (lang_leave_overlay_section): Likewise.
778 (lang_leave_overlay): Likewise.
779 Adjust all callers of the above function.
780 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
781 starting with "0X" as well as "0x". Return bigint.str for hex
782 numbers starting with "0x" or "0X", zero bigint.str otherwise.
783 Always use base 16 for numbers starting with "$".
784 * ldmain.c: Include ldgram.h after ldexp.h.
785 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
786 of bfd_fill_link_order.
787 * pe-dll.c: Adjust lang_do_assignments calls.
788 * emultempl/elf32.em: Likewise.
789 * emultempl/hppaelf.em: Likewise.
790 * emultempl/ppc64elf.em: Likewise.
791 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
792 lang_add_assignment call.
793 * emultempl/pe.em: Likewise.
795 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
797 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
798 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
799 the pattern in question is not a regexp.
800 * ldlang.c: Likewise.
801 * ldlang.h: Likewise.
802 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
804 2002-02-12 Jakub Jelinek <jakub@redhat.com>
806 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
807 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
808 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
809 * ldexp.c (exp_data_seg): New variable.
810 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
811 (fold_binary): Handle DATA_SEGMENT_ALIGN.
812 (exp_fold_tree): Handle DATA_SEGMENT_END.
813 Pass allocation_done when recursing instead of hardcoding
814 lang_allocating_phase_enum.
815 * ldexp.h (exp_data_seg): New.
816 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
817 (lang_size_sections): New.
818 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
819 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
820 if COMMONPAGESIZE is defined.
821 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
822 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
823 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
824 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
825 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
828 2002-02-11 Alan Modra <amodra@bigpond.net.au>
830 * Makefile.in: Regenerate.
832 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
834 * lexsup.c: Remove strtoul declaration.
836 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
838 * ldmain.c: Add prototype for main ().
839 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
840 * emultempl/lnk960.em (lnk960_choose_target): Function should
843 2002-02-10 Alan Modra <amodra@bigpond.net.au>
845 * ldlang.c (entry_section): New initialised variable.
846 (lang_finish): Use it.
847 * ldlang.h (entry_section): Declare.
848 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
849 entry_section to ".opd".
851 2002-02-09 Chris Demetriou <cgd@broadcom.com>
853 * ld.texinfo (Options): Add back in -nostdlib documentation,
854 which had been inadvertently removed.
856 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
858 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
859 register section vma to a sane value after emitting error. Make
860 fatal conditions cause program exit when emitting message.
862 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
864 * configure.tgt: Add or32-*-rtems target.
866 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
869 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
870 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
871 in OTHER_RELOCATABLE_SECTIONS.
872 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
873 * emulparams/shelf32.sh (STACK_ADDR): Define.
874 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
875 (OTHER_SECTIONS): this. Removed stack settings.
876 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
877 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
878 2001-03-12 DJ Delorie <dj@redhat.com>
879 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
880 relaxing if any shmedia or mixed sections are found.
881 2001-03-07 DJ Delorie <dj@redhat.com>
882 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
883 einfo. Gracefully decline to output to non-elf formats.
884 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
885 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
886 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
887 * emulparams/shelf32.sh: Ditto.
888 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
889 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
891 2001-01-10 Ben Elliston <bje@redhat.com>
892 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
893 non-portable shell constructs. From Hans-Peter Nilsson.
894 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
895 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
896 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
897 dependencies to the shell script include chain.
898 * Makefile.in: Regenerate.
899 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
900 * emultempl/sh64elf.em: Update and tweak comments.
901 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
902 make a .cranges section SEC_IN_MEMORY.
903 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
904 * emultempl/sh64elf.em
905 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
906 .cranges section found to be necessary; continue and set stored
907 section contents flags for sections with non-mixed contents.
908 Use a struct sh64_section_data container and sh64_elf_section_data
909 to store contents-type flags.
910 Remove unused update of "isec".
911 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
912 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
913 access contents-type flags. Assert that the associated container
914 is initialized. Use that container, not elf_gp_size, to hold size
915 of linker-generated cranges contents.
916 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
917 * emultempl/sh64elf.em
918 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
919 there's already a .cranges section. When section flag difference
920 is found, don't NULL-check cranges a second time. Tweak comments.
921 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
922 merging, not max size, as size of ld-generated .cranges contents.
923 Don't set ELF section flags in output section. When checking for
924 needed .cranges descriptors, don't use a variable; compare
925 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
927 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
928 * emultempl/sh64elf.em: New file.
929 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
930 * Makefile.in: Regenerate.
931 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
932 (OTHER_RELOCATING_SECTIONS): Ditto.
933 (EXTRA_EM_FILE): New, set to sh64elf if not set.
934 * emulparams/shlelf32.sh: Stub out all settings except
935 OUTPUT_FORMAT. Source shelf32.sh.
936 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
937 OTHER_RELOCATING_SECTIONS.
938 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
939 * emulparams/shlelf64.sh: Stub out all settings except
940 OUTPUT_FORMAT. Source shelf64.sh.
941 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
942 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
944 (DATA_START_SYMBOLS): Define, provide ___data.
945 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
946 for consecutive .data section.
947 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
948 section after .data section.
949 * emulparams/shlelf64.sh: Ditto.
950 * emulparams/shelf32.sh: Ditto.
951 (ALIGNMENT): Define to 8.
952 * emulparams/shelf32.sh: Ditto.
953 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
954 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
955 built-in linker scripts.
956 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
957 * emulparams/shlelf64.sh: New.
958 * emulparams/shelf64.sh: New.
959 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
961 * Makefile.am: Add support for shlelf64 and shelf64.
962 * Makefile.in: Regenerate.
963 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
964 * configure.tgt (sh64-*-elf*): Add shelf as default.
965 Add shlelf to targ_extra_emuls.
966 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
967 * emulparams/shelf32.sh: New file.
968 * emulparams/shlelf32.sh: New file.
969 * Makefile.am: Add support for shlelf32 and shelf32.
970 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
971 * Makefile.in: Regenerate.
973 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
975 * ldlang.c (lang_reset_memory_regions): Rename from
976 reset_memory_regions. Change all callers. Make public.
977 * ldlang.h (lang_reset_memory_regions): Prototype.
978 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
979 lang_reset_memory_regions before lang_size_sections.
980 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
981 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
983 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
985 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
986 arithmetic when checking for too many global registers.
988 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
990 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
991 (ehppanbsd.c): New rule.
992 * Makefile.in: Regenerate.
993 * configure.tgt (hppa*-*-netbsd*): New target.
994 * emulparams/hppalinux.sh: Add comment to check other files
995 that source this file it is modified, and list which
997 * emulparams/hppanbsd.sh: New file.
999 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
1001 * scripttempl/xstormy16.sc: Don't allocate extra space for the
1004 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
1006 Support on-demand global register allocation from
1007 R_MMIX_BASE_PLUS_OFFSET relocs.
1008 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
1009 mmix_set_reg_section_vma. Call
1010 _bfd_mmix_finalize_linker_allocated_gregs.
1011 (mmix_before_allocation): New function.
1012 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
1013 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
1014 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
1015 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
1016 before .MMIX.reg_contents.
1017 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
1018 (mmo_after_open): New function.
1019 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
1020 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
1021 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
1023 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
1025 * emulparams/or32.sh: New file.
1026 * emulparams/or32elf.sh: New file.
1027 * scripttempl/or32.sc: New file.
1028 * configure.tgt : Add support for or32.
1029 * configure: Regenerate
1030 * Makefile.am: Add support for or32.
1031 * Makefile.in: Regenerate.
1032 * NEWS: Mention support for or32.
1033 * po/ld.pot: Regenerate.
1035 2002-01-29 Chris Demetriou <cgd@broadcom.com>
1036 Mitch Lichtenberg <mpl@broadcom.com>
1038 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
1039 * emultempl/mipself.em: New file to handle MIPS ELF embedded
1040 reloc creation (ld --embedded-relocs).
1042 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
1044 * configure: Regenerated.
1046 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
1048 * Makefile.am (install): Depend on install-info.
1049 * Makefile.in: Regenerate.
1051 2002-01-26 Christian Rose <menthos@menthos.com>
1053 * ldmain.c (main): Use full sentences to ease translation.
1055 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
1057 * po/fr.po: Updated version.
1059 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
1061 * po/es.po: Updated version.
1063 2002-01-25 Andreas Jaeger <aj@suse.de>
1065 * ldlex.l (yy_input): Correct error check.
1067 2002-01-25 Alan Modra <amodra@bigpond.net.au>
1069 * ldmisc.c (demangle): Put back dots when string not demangled.
1071 2002-01-22 Richard Henderson <rth@redhat.com>
1073 * emulparams/elf64alpha.sh (NOP): Use unop.
1075 2002-01-21 Andreas Jaeger <aj@suse.de>
1077 * ldlex.l: Use fread instead of read.
1079 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
1081 * configure.tgt (ia64-*-netbsd*): New target.
1083 2002-01-21 H.J. Lu <hjl@gnu.org>
1085 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
1087 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1089 2002-01-18 Andreas Jaeger <aj@suse.de>
1091 * ldver.c (ldversion): Update year.
1093 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1095 * po/ld.pot: Regenerate.
1097 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1099 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1100 * Makefile.in: Regenerate.
1101 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1102 * emultempl/ppc64elf.em: New file.
1104 2002-01-15 DJ Delorie <dj@redhat.com>
1106 * scripttempl/pe.sc: Add support for constructor priorities.
1108 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1110 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1111 * emulparams/avr23xx.sh: Likewise.
1112 * emulparams/avr4433.sh: Likewise.
1113 * emulparams/avr44x4.sh: Likewise.
1114 * emulparams/avr85xx.sh: Likewise.
1115 * emulparams/avrmega103.sh: Likewise.
1116 * emulparams/avrmega161.sh: Likewise.
1117 * emulparams/avrmega603.sh: Likewise.
1118 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1120 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1122 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1123 archive is excluded.
1125 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1127 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1128 (eshelf_nbsd.c): New rule.
1129 (eshlelf_nbsd.c): New rule.
1130 * Makefile.in: Regenerate.
1131 * configure.tgt (sh*le-*-netbsdelf*): New target.
1132 (sh*-*-netbsdelf*): New target.
1133 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1134 * ld/emulparams/shelf_nbsd.sh: New emulation.
1135 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1137 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1139 * po/es.po: New file: Spanish translation.
1140 * configure.in (ALL_LINGUAS): Add es.
1141 * configure: Regenerate.
1143 2002-01-06 John Marshall <jmarshall@acm.org>
1145 * ld.texinfo: Note that --emit-relocs is currently only
1146 implemented for ELF.
1148 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1150 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1151 of bfd_section_list_remove and bfd_section_list_insert macros.
1152 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1153 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1155 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1157 * configure.tgt (x86_64-*-netbsd*): New target.
1159 2001-12-21 Tom Rix <trix@redhat.com>
1161 (gld*_create_output_section_statements): New function.
1162 For -binitfini support.
1163 * emultempl/aix.em (gld*_before_parse): Fix comment.
1164 * emultempl/aix.em (gld*_parse_args): Fix comment.
1166 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1168 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1170 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1172 * configure.tgt (arm-*-netbsdelf*): Add target.
1173 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1174 * emulparams/armelf_nbsd.sh: Added.
1175 * Makefile.am: Add rules for earmelf_nbsd.
1176 * Makefile.in: Regenerate.
1178 2001-12-19 Andreas Jaeger <aj@suse.de>,
1179 Susanne Oberhauser <froh@suse.de>
1181 * configure.host: Add rules for x86_64-*linux-gnu. Change
1182 s390x-linux entry to use gcc to report configuration, replace gcc
1183 with $CC in s390-linux
1185 2001-12-19 Andreas Jaeger <aj@suse.de>
1187 * ld.texinfo (VERSION): Fix markup.
1189 2001-12-18 matthew green <mrg@eterna.com.au>
1191 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1192 (m68kelfnbsd.c): New rule.
1193 * Makefile.in: Regenerate.
1194 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1195 (m68*-*-netbsd*4k*): .. this.
1196 (m68*-*-netbsdelf*): New target.
1197 (m68*-*-netbsd*): Also include ELF support.
1198 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1199 * emulparams/m68kelfnbsd.sh: New emulation.
1201 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1203 * ldgram.y (vers_node): Support anonymous version tags.
1204 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1205 tag is not defined together with non-anonymous versions.
1206 * ld.texinfo: Document it.
1208 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1210 * po/tr.po: New file: Turkish translation.
1211 * configure.in (ALL_LINGUAS): Add tr.
1212 * configure: Regenerate.
1214 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1216 * Makefile.am: Add rules for eelf64alpha_nbsd.
1217 * Makefile.in: Regenerate.
1218 * configure.tgt (alpha*-*-netbsd*): Set
1219 targ_emul to elf64alpha_nbsd.
1220 * emulparams/elf64alpha_nbsd.sh: Added.
1222 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1224 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1225 section_tail when fiddling with section list.
1226 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1227 broken into separate strings to make translation easier.
1228 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1229 fiddling with section list.
1230 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1232 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1234 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1236 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1238 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1240 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1242 * emultempl/elf32.em (finish): Supply output_bfd
1243 to bfd_elf*_discard_info.
1244 (OPTION_EH_FRAME_HDR): Define.
1245 (longopts): Add --eh-frame-hdr.
1246 (parse_args): Handle it.
1247 (list_options): Add --eh-frame-hdr to help.
1248 * emultempl/hppaelf.em (finish): Supply output_bfd
1249 to bfd_elf*_discard_info.
1250 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1252 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1254 * lexsup.c (parse_args): Don't pass shortopts to second call to
1255 getopt functions. Restore optind rather than decrementing before
1256 second call. Remove errind as it now duplicates last_optind.
1258 2001-12-11 Christopher Faylor <cgf@redhat.com>
1260 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1262 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1263 Richard Henderson <rth@redhat.com>
1265 * Makefile.am: Add support for xstormy16.
1266 * configure.tgt: Add support for xstormy16.
1267 * Makefile.in: Regenerate.
1268 * emulparams/elf32xstormy16.sh: New file.
1269 * scripttempl/xstormy16.sc: New file.
1271 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1273 * Makefile.in (LIB_PATH): Make configurable.
1274 (GENSCRIPTS): Set LIB_PATH in environment.
1275 * configure.in: Substitute LIB_PATH.
1276 * configure: Regenerate.
1277 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1278 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1280 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1282 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1283 describing the -N option so that it is easier to translate into
1286 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1288 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1289 statements describing a single option with a single, newline
1290 escaped fprintf. This allows better translation into other
1293 * ldmain.c (add_archive_element): Combine multiple strings
1294 into a single string to permit better translation into other
1297 2001-12-05 Tom Rix <trix@redhat.com>
1299 * Makefile.am: Remove eaixppc64.
1300 * Makefile.in: Regenerate.
1302 2001-12-04 Tom Rix <trix@redhat.com>
1304 * emultempl/aix.em (choose_target): Change default target to
1305 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1307 (gld*_read_file): Fix typo.
1308 (change_symbol_mode): Add prototype.
1311 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1312 * emulparams/aixrs6.sh : Same.
1313 * emulparams/ppcmacos.sh : Same.
1314 * emulparams/aixppc64.sh : Delete file.
1315 * emultempl/aix.em : Formatting changes.
1317 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1319 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1320 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1322 (OTHER_END_SYMBOLS): Fix formatting.
1323 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1324 (OTHER_END_SYMBOLS): Fix formatting.
1326 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1328 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1330 2001-12-02 Tom Rix <trix@redhat.com>
1332 * configure.tgt : Remove eaixppc64 emulations.
1333 * Makefile.in : Remove eaixppc64.c
1334 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1335 (ldemul_default_target): Same.
1336 * emultempl/gld960.em (gld960_choose_target): Same.
1337 * emultempl/gld960c.em (gld960_choose_target): Same.
1338 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1339 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1340 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1341 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1342 * emultempl/aix.em (choose_target): New function. Handle emulation of
1345 2001-11-27 H.J. Lu <hjl@gnu.org>
1347 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1348 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1349 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1350 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1351 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1352 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1353 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1354 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1356 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1359 (REL_SDATA): Likewise.
1360 (REL_SBSS): Likewise.
1361 (REL_SDATA2): Likewise.
1362 (REL_SBSS2): Likewise.
1363 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1366 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1368 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1370 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1372 2001-11-22 H.J. Lu <hjl@gnu.org>
1374 * Makefile.in: Regenerated with automake based on automake
1375 1.4-8 in RedHat 7.1.
1377 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1379 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1380 (config.status): Delete rule.
1381 Add extra dependencies to cover sourced emulparams files.
1382 * Makefile.in: Regenerate.
1384 * scripttempl/elf.sc: Order <section>, <section>.* and
1385 corresponding linkonce sections as seen in input files.
1386 Formatting fixes. Zero vma of all sections if not relocating.
1387 (STACK): Define and insert if STACK_ADDR defined.
1388 (OTHER_RELOCATING_SECTIONS): Delete.
1389 (OTHER_END_SYMBOLS): Define.
1390 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1391 (OTHER_READWRITE_SECTIONS): Likewise.
1392 (OTHER_GOT_SECTIONS): Likewise.
1393 (OTHER_SDATA_SECTIONS): Likewise.
1394 (OTHER_BSS_SECTIONS): Likewise.
1395 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1396 (OTHER_READWRITE_SECTIONS): Likewise.
1397 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1398 (OTHER_READWRITE_SECTIONS): Likewise
1400 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1401 (STACK_ADDR): Define.
1402 * emulparams/armelf_oabi.sh: As for armelf.sh.
1403 * emulparams/elf32mcore.sh: As for armelf.sh.
1404 * emulparams/h8300elf.sh: As for armelf.sh.
1405 * emulparams/mn10200.sh: As for armelf.sh.
1406 * emulparams/shelf.sh: As for armelf.sh.
1408 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1409 (OTHER_END_SYMBOLS): Define.
1410 * emulparams/m32relf.sh: As for elf32fr30.sh.
1411 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1412 * emulparams/h8300self.sh: As for elf32fr30.sh.
1414 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1415 defines with RELOCATING test.
1416 (OTHER_SDATA_SECTIONS): Likewise.
1417 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1418 (OTHER_END_SYMBOLS): ..this.
1419 * emulparams/crislinux.sh: As for criself.sh.
1421 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1423 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1424 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1425 normal and linkonce sections as seen in input files.
1426 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1427 (TEXT_DYNAMIC): Likewise.
1428 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1429 (OTHER_SDATA_SECTIONS): Likewise.
1430 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1431 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1432 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1433 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1434 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1435 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1436 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1437 sections as seen in input files.
1438 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1439 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1441 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1442 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1443 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1444 (OTHER_SECTIONS): Instead, use this..
1445 (OTHER_END_SYMBOLS): ..and this.
1447 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1448 * emulparams/elf32bsmip.sh: Likewise.
1449 * emulparams/elf32btsmip.sh: Likewise.
1450 * emulparams/elf32ebmip.sh: Likewise.
1451 * emulparams/elf32lmip.sh: Likewise.
1452 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1453 * emulparams/elf32lsmip.sh: Likewise.
1454 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1455 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1456 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1457 * emulparams/elf64btsmip.sh: Likewise.
1458 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1459 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1460 * emulparams/elf32ppclinux.sh: Likewise.
1461 * emulparams/elf32ppcsim.sh: Likewise.
1462 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1463 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1464 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1465 * emulparams/h8300self.sh: Likewise.
1466 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1467 * emulparams/sh.sh: Comment.
1468 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1469 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1470 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1472 2001-11-21 David Heine <dlheine@tensilica.com>
1473 Alan Modra <amodra@bigpond.net.au>
1475 * ldlang.c (map_input_to_output_sections): Replace "break"
1476 accidentally removed with 2001-08-03 change.
1477 (lang_gc_sections_1): Likewise.
1479 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1481 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1483 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1485 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1486 of false when calling lang_size_sections.
1487 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1489 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1491 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1492 function when LDEMUL_FINISH isn't set to the same name. Don't
1493 call ${LDEMUL_FINISH}.
1494 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1495 * emultempl/armelf.em (arm_elf_finish): Call
1496 gld${EMULATION_NAME}_finish.
1497 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1498 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1499 hppaelf_layout_sections_again if necessary.
1500 (need_laying_out): New var.
1501 (hppaelf_layaout_sections_again): Rename to
1502 hppaelf_layout_sections_again. Clear need_laying_out.
1503 (PARSE_AND_LIST_OPTIONS): Format text.
1505 2001-11-14 H.J. Lu <hjl@gnu.org>
1507 * emultempl/armelf.em (arm_elf_finish): Renamed from
1508 gld${EMULATION_NAME}_finish.
1509 (LDEMUL_FINISH): Set to arm_elf_finish.
1511 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1513 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1514 (struct ld_emulation_xfer_struct): Use it.
1516 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1518 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1519 additional symbols referenced by newer crt0.o files from HP.
1521 2001-11-12 Anthony Green <green@redhat.com>
1523 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1525 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1527 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1528 * Makefile.in: Regenerate.
1530 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1532 * ld.texinfo: Use @command for commands, @option for options.
1533 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1535 * Makefile.in: Rebuild.
1537 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1539 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1540 Add support for targets.
1542 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1544 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1545 * configure: Regernate.
1546 * po/fr.po: New file.
1547 * po/sv.po: New file.
1549 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1551 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1552 as little endian default and to support big endian.
1554 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1556 * ld.texinfo (Options): Document new option, -nostdlib.
1557 * lexsup.c (OPTION_NOSTDLIB): New definition.
1558 (ld_options): Add entry for "nostdlib".
1559 (parse_args): Handle OPTIONS_NOSTDLIB.
1560 * ldfile.c (ldfile_add_library_path): Don't add directories
1561 to the search path if they weren't specified on the command line
1562 and -nostdlib was specified.
1563 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1565 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1567 * lexsup.c (parse_args): Prevent infinite parsing loop when
1568 "-rpath.a" is specified on the command line.
1569 Replace calls to fprintf with calls to einfo.
1571 2001-10-31 John Marshall <jmarshall@acm.org>
1573 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1574 appear only once across all the linker scripts involved in a link
1575 invocation no longer applies. Make the documentation reflect
1578 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1580 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1582 (sh-*-linux*): Added targ_extra_libpath.
1584 2001-10-31 David Heine <dlheine@tensilica.com>
1586 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1587 for padding statements.
1589 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1591 * configure.tgt (mmix-*-*): New target.
1592 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1593 Add dependencies to match.
1594 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1595 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1596 scripttempl/mmo.sc: New files.
1597 * gen-doc.texi: @set MMIX.
1598 * ld.texinfo: Ditto.
1599 [MMIX] Add MMIX node.
1600 * Makefile.in: Regenerate.
1602 2001-10-29 Kazu Hirata <kazu@hxi.com>
1604 * ldlang.c: Fix a comment typo.
1606 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1608 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1609 entries, and match *-*-linux*.
1611 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1613 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1614 with ldlex_script, ldlex_popstate.
1615 (ifile_p1): Likewise.
1616 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1618 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1619 to 1. Don't BEGIN(SCRIPT).
1620 (lex_redirect): Similarly.
1621 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1623 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1625 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1626 __EH_FRAME_END__ and accept eh frames into data section.
1627 Add ctor and dtor sections.
1629 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1631 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1632 (auto-export): Fix indentation.
1634 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1636 * pe-dll.c (autofilter_objectlist): Add startup objects
1638 (auto-export): Constify char * p.
1639 Extract file basename and use strcmp rather than ststr
1642 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1644 * ldmain.c (get_emulation): Improve comment about the handling
1647 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1649 * po/POTFILES.in: Regenerate.
1651 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1653 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1654 -z nocopyreloc and -z nocombreloc usage strings.
1656 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1658 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1661 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1663 * scripttempl/armaout.sc: Place .bss section after end of aligned
1664 data section to match behaviour of aout code in constructrion of
1667 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1669 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1670 startup files for mingw32 dlls to list.
1672 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1674 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1676 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1678 * configure.tgt (targ): Add arm9e-*-elf.
1680 2001-10-05 H.J. Lu <hjl@gnu.org>
1682 * genscripts.sh: Fix a typo in the last change.
1684 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1686 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1687 -z nocombreloc in usage.
1689 2001-10-03 Jim Blandy <jimb@redhat.com>
1691 * genscripts.sh: Include a comment at the top of each generated
1692 script, explaining its purpose.
1694 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1696 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1697 * NEWS: Mention -z nocopyreloc.
1698 * ld.texinfo (Options): Describe nocopyreloc.
1700 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1702 * configure: Regenerate.
1704 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1706 * ldver.h (ld_program_version): Remove declaration.
1707 * lexsup.c (parse_args): Move printing of copyright message..
1708 * ldver.c (ldversion): .. to here.
1709 Use BFD_VERSION_STRING in place of BFD_VERSION.
1710 (ld_program_version): Remove.
1711 * Makefile.am (Makefile): Depend on bfd/configure.in.
1713 * Makefile.in: Regenerate.
1715 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1717 * Makefile.am: Update dependencies with "make dep-am".
1718 * Makefile.in: Regenerate.
1720 2001-09-29 John Reiser <jreiser@BitWagon.com>
1722 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1723 * lexsup.c: Add --no-define-common commandline option.
1724 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1725 * ldlex.l: Likewise.
1726 * ld.h: Add command_line.inhibit_common_definition.
1727 * ldmain.c (main): Initialize.
1728 * ld.texinfo: Document.
1730 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1732 * ldmisc.c (USE_STDARG): Remove.
1733 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1738 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1739 declarations. Update copyright.
1741 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1743 * pe-dll.c: Remove obsoleted declaration of
1744 pe_get_data_import_dll_name.
1745 (pe_create_import_fixup): Fix thinko.
1747 * ld.texinfo(enable-auto-import): Clarify the explanation.
1749 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1751 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1752 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1753 DLL_SUPPORT controlled code.
1755 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1757 * emultempl/pe.em(pe_data_import_dll): Make static.
1758 (pe_get_data_import_dll_name): New accessor function.
1759 * pe-dll.c(pe_create_import_fixup): call
1760 pe_get_data_import_dll_name() from pe.em, instead of
1761 directly accessing pe_data_import_dll variable from pe.em.
1763 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1765 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1766 (def_file_add_directive): Use ISSPACE instead of isspace.
1767 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1768 isdigit/isxdigit/isalpha/isalnum.
1769 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1770 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1771 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1772 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1774 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1775 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1777 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1778 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1779 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1780 (ctor_prio): Use ISDIGIT instead of isdigit.
1781 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1782 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1783 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1785 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1786 (stricpy): Use TOLOWER instead of isupper/tolower.
1787 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1788 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1789 (lex_warn_invalid): Use ISPRINT instead of isprint.
1790 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1791 (main): For gettext, also set the LC_CTYPE locate facet.
1792 (add_keepsyms_file): Use ISSPACE instead of isspace.
1793 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1794 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1795 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1796 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1797 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1798 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1799 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1800 (quoteput): Use ISSPACE instead of isspace.
1801 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1804 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1806 * deffilep.y (def_stash_module): Constify "name" param.
1808 * pe-dll.c: Replace CONST with const throughout.
1809 (quick_symbol): Constify "n1", "n2", "n3" params.
1810 (make_singleton_name_thunk): Constify "import" param. Make
1811 "buffer_len" a size_t.
1812 (make_import_fixup_entry): Constify "name", "fixup_name",
1813 "dll_symname" params.
1814 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1815 (pe_get32): Likewise.
1816 (pe_implied_import_dll): Likewise.
1818 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1819 (sort_by_section_name): Likewise.
1821 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1822 (make_import_fixup): Cast printf arg, rel->address to long rather
1824 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1826 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1828 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1829 defines BufferSize. Increase buffer size by one.
1831 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1833 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1835 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1837 * configure.tgt: Add arm-openbsd target.
1839 2001-09-12 H.J. Lu <hjl@gnu.org>
1841 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1843 (ALL_64_EMULATIONS): Here.
1844 * Makefile.in: Regenerated.
1846 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1848 * emultempl/pe.em(make_import_fixup): change signature to
1849 take asection as well as arelec; we need this for proper
1850 error reporting. Only call pe_create_import_fixup() if
1851 there is no attempt to add a constant addend to the reloc;
1852 otherwise, report error condition.
1853 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1854 since final argument is a pointer to make_import_fixup().
1855 Change call to cb() to match make_import_fixup() signature.
1856 (make_import_fixup_mark): make buffer_len unsigned.
1857 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1859 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1861 * ld.texinfo: add verbose documentation for auto-import
1862 direct-addressing workaround, to compliment the terse
1865 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1867 * scripttempl/v850.sc: Add gcc_except_table sections.
1869 2001-09-11 Jeffrey A Law (law@cygnus.com)
1871 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1872 * emulparams/h8300self.sh: Similarly.
1874 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1876 * ld.texinfo (Options, --stack): Correct default value for stack
1879 2001-09-05 Tom Rix <trix@redhat.com>
1881 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1883 2001-09-03 Andreas Jaeger <aj@suse.de>
1885 * emultempl/beos.em: Declare prototypes for comparions functions,
1888 2001-09-02 Andreas Jaeger <aj@suse.de>
1890 * emultempl/aix.em: Add missing prototype.
1891 * emultempl/lnk960.em: Likewise.
1892 * emultempl/vanilla.em: Likewise.
1893 * emultempl/armcoff.em: Likewise.
1894 * emultempl/armelf_oabi.em: Likewise.
1895 * emultempl/beos.em: Likewise.
1896 * emultempl/gld960c.em: Likewise.
1897 * emultempl/gld960.em: Likewise.
1899 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1900 for prototype declaration.
1902 2001-08-31 Eric Christopher <echristo@redhat.com>
1903 Jason Eckhardt <jle@redhat.com>
1905 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1907 2001-08-31 Andreas Jaeger <aj@suse.de>
1909 * emultempl/pe.em: Add missing prototypes.
1910 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1911 pe_find_data_imports.
1912 (pr_sym): Add unused attribute.
1914 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1916 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1917 default from coff to elf.
1919 2001-08-29 Jeff Law <law@redhat.com>
1921 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1923 * emulparams/h8300self.sh: Similarly.
1925 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1927 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1929 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1930 * configure.tgt (h8300-*-elf*): New case.
1931 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1932 * emulparams/h8300self.sh: New file.
1933 * Makefile.in: Regenerated.
1935 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1937 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1940 2001-08-27 Linus Nordberg <linus@swox.com>
1941 Alan Modra <amodra@bigpond.net.au>
1943 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1944 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1946 * Makefile.in: Regenerate.
1947 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1948 entries to correct alphabetical position.
1949 * emulparams/elf64ppc.sh: New.
1950 * emulparams/elf64lppc.sh: New.
1952 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1954 * ldmain.c (main): Declare BSIZE as static.
1956 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1958 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1959 into .rel.dyn resp. .rela.dyn if combreloc.
1960 (get_script): If .x linker script is equal to .xn, only put it
1961 once into the binary.
1962 Add .xc and .xsc scripts.
1963 (parse_args): Handle -z combreloc and -z nocombreloc.
1964 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1965 For .xc and .xsc scripts put all .rel* or .rela* input sections
1966 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1967 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1969 Strip trailing whitespace from script.
1970 Generate .xc and .xsc scripts if requested.
1971 * ldmain.c (main): Initialize link_info.combreloc and
1972 link_info.spare_dynamic_tags.
1973 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1974 (ld_options): Add --spare-dynamic-tags option.
1975 (parse_args): Likewise.
1976 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1977 * ldint.texinfo: Document .xc and .xsc linker scripts.
1978 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1980 2001-08-22 H.J. Lu <hjl@gnu.org>
1982 * emulparams/elf32fr30.sh: Add a newline.
1984 2001-08-21 Andreas Jaeger <aj@suse.de>
1986 * deffilep.y: Add missing prototypes.
1987 * pe-dll.c: Likewise.
1989 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1991 * ldlang.c (insert_pad): Fix typos in last patch.
1993 * ldlang.c: When traversing lang_statement_union_type lists,
1994 consistently use "header.next" rather than "next".
1995 * mpw-eppcmac.c: Likewise.
1996 * emultempl/beos.em: Likewise.
1997 * emultempl/hppaelf.em: Likewise.
1998 * emultempl/pe.em: Likewise.
1999 * ldlang.h (union lang_statement_union): Remove "next" field.
2001 * ldlang.c (insert_pad): Use offsetof macro.
2002 (lang_size_sections): Always neuter padding statements.
2003 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
2005 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
2006 passed to lang_size_sections.
2007 (pe_exe_fill_sections): Likewise.
2008 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
2009 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
2011 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2013 * emultempl/aix.em: Formatting fixes.
2015 2001-08-18 Alan Modra <amodra@bigpond.net.au>
2017 * ldlang.c (insert_pad): Make use of an existing pad statement if
2018 available. Move code calculating alignment, adjusting section
2019 alignment power, and adjusting dot to ..
2020 (size_input_section): .. here. Remove unused relax param.
2021 (lang_size_sections): Change boolean `relax' param to boolean *.
2022 Adjust call to size_input_section. Make use of insert_pad to
2023 place pad after the assignment statement. If relaxing, zap
2025 (reset_memory_regions): Reset output_bfd section sizes too.
2026 (relax_again): Move to..
2027 (lang_process): ..here. Adjust call to lang_size_sections, and
2028 remove duplicated code.
2029 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
2031 2001-08-17 Alan Modra <amodra@bigpond.net.au>
2033 * ld.texinfo: Document that fill values now use the four least
2035 * emulparams/elf32fr30.sh (NOP): Update.
2036 * emulparams/elf32mcore.sh: Likewise.
2037 * emulparams/elf64_s390.sh: Likewise.
2038 * emulparams/elf_i386.sh: Likewise.
2039 * emulparams/elf_i386_be.sh: Likewise.
2040 * emulparams/elf_i386_chaos.sh: Likewise.
2041 * emulparams/elf_i386_ldso.sh: Likewise.
2042 * emulparams/elf_s390.sh: Likewise.
2043 * emulparams/elf_x86_64.sh: Likewise.
2044 * emulparams/i386moss.sh: Likewise.
2045 * emulparams/i386nw.sh: Likewise.
2046 * emulparams/m68kelf.sh: Likewise.
2047 * scripttempl/elf.sc: Update NOP comment.
2048 * scripttempl/elfi370.sc: Likewise.
2049 * scripttempl/elfm68hc11.sc: Likewise.
2050 * scripttempl/elfm68hc12.sc: Likewise.
2051 * scripttempl/nw.sc: Likewise.
2053 2001-08-15 Tom Rix <trix@redhat.com>
2055 * ldgram.y (saved_script_handle): Initialize to NULL.
2056 * ldmain.c (main): Change check on saved_script_handle.
2058 2001-08-14 Alan Modra <amodra@bigpond.net.au>
2060 * emultempl/elf32.em: Formatting fixes.
2061 (output_prev_sec_find): Test for bfd_ind_section too; do so by
2062 looking at sec->owner.
2063 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
2064 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
2065 unused code, and reorganize orphan section placement code.
2067 * ldlang.c (wild_doit): Rename to lang_add_section.
2068 * ldlang.h: Here too.
2069 * mpw-elfmips.c: And here.
2070 * emultempl/beos.em: And here.
2071 * emultempl/elf32.em: And here.
2072 * emultempl/hppaelf.em: And here.
2073 * emultempl/pe.em: And here.
2075 2001-08-13 Richard Henderson <rth@redhat.com>
2077 * emultempl/needrelax.em: New file.
2078 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
2079 * Makefile.am (eelf64_ia64.c): Depend on it.
2080 * Makefile.in: Rebuild.
2082 2001-08-13 Alan Modra <amodra@bigpond.net.au>
2084 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
2085 output_section is set non-NULL.
2087 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2088 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2089 needlessly create an output_section_statement. Treat a correctly
2090 named output_section_statement with NULL bfd_section as compatible.
2092 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2094 * emultempl/generic.em: Support EXTRA_EM_FILE.
2095 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2096 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2097 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2098 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2099 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2100 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2101 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2102 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2103 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2104 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2106 2001-08-12 Richard Henderson <rth@redhat.com>
2108 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2109 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2110 scripttempl/v850.sc: Keep .jcr data.
2112 2001-08-12 H.J. Lu <hjl@gnu.org>
2113 Andrew Haley <aph@cambridge.redhat.com>
2114 Nick Clifton <nickc@redhat.com>
2116 * ldgram.y (had_script): Change name to saved_script_handle.
2117 Change type to file handle.
2118 * ld.h (had_script): Rename and retype.
2119 * ldfile.c (ldfile_open_command_file): Save the file handle
2120 used in saved_script_handle.
2121 * lexsup.c (parse_args): Do not allow -c option to alter
2122 saved_script_handle.
2123 * ldmain.c (main): Print out the linker script used if
2124 --verbose is given. Check saved_script_handle to obtain the
2125 external linker script used, or if NULL, dump the builtin
2127 * ld.texinfo: Document that --verbose now dumps the linker
2128 script used, regardless of whether it was an internal or an
2131 2001-08-10 Andreas Jaeger <aj@suse.de>
2133 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2135 * configure: Regenerate.
2137 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2139 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2141 * scripttempl/elf.sc: Move non-text .dynamic section before
2142 .plt/.got/.sdata* group.
2143 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2144 (OTHER_SDATA_SECTIONS): Add.
2145 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2147 * emulparams/crislinux.sh: Likewise.
2148 * emulparams/elf32b4300.sh: Likewise.
2149 * emulparams/elf32bmip.sh: Likewise.
2150 * emulparams/elf32bmipn32.sh: Likewise.
2151 * emulparams/elf32bsmip.sh: Likewise.
2152 * emulparams/elf32btsmip.sh: Likewise.
2153 * emulparams/elf32ebmip.sh: Likewise.
2154 * emulparams/elf32elmip.sh: Likewise.
2155 * emulparams/elf32l4300.sh: Likewise.
2156 * emulparams/elf32lmip.sh: Likewise.
2157 * emulparams/elf32lsmip.sh: Likewise.
2158 * emulparams/elf32ltsmip.sh: Likewise.
2159 * emulparams/elf64bmip.sh: Likewise.
2160 * emulparams/elf64btsmip.sh: Likewise.
2161 * emulparams/elf64ltsmip.sh: Likewise.
2163 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2165 * genscripts.sh: Source the emulparams script before each output
2166 script is generated so that variables like `RELOCATING' may affect
2167 variables defined in the emulparams script.
2169 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2171 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2174 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2175 ie. iterate over wild_statement.section_list.
2176 (gld${EMULATION_NAME}_place_orphan): Likewise.
2178 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2180 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2181 .fini[0-4] sections used by _exit
2182 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2183 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2184 * scripttempl/elfm68hc11.sc: Likewise.
2186 2001-08-03 H.J. Lu <hjl@gnu.org>
2188 * emultempl/beos.em (init): Add the missing initialization.
2190 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2192 * ld.texinfo (Input Section Basics): Clarify ordering of output
2194 * ldlang.c (callback_t): Add wildcard_list param.
2195 (walk_wild_section): Remove "section" param. Rewrite for
2196 lang_wild_statement_type change. Remove unique_section_p test.
2197 (walk_wild_file): Remove "section" param.
2198 (walk_wild): Remove "section" and "file" params.
2199 (lang_gc_wild): Likewise.
2200 (wild): Likewise. Modify for lang_wild_statement_type change.
2201 (wild_sort): Likewise. Add "sec" param.
2202 (gc_section_callback): Likewise.
2203 (output_section_callback): Likewise. Do unique_section_p test.
2204 (map_input_to_output_sections): Modify call to wild.
2205 (lang_gc_sections_1): Likewise.
2206 (print_wild_statement): Modify for lang_wild_statement_type
2208 (lang_add_wild): Replace filename, filenames_sorted param with
2209 filespec. Replace section_name, sections_sorted,
2210 exclude_filename_list with section_list.
2211 * ldlang.h (lang_add_wild): Here too.
2212 (lang_wild_statement_type): Replace section_name, sections_sorted,
2213 and exclude_filename_list with section_list.
2214 * ldgram.y (current_file): Delete.
2215 (%union): Add wildcard_list.
2216 (file_NAME_list): Set type to wildcard_list. Build a linked list
2217 rather than calling lang_add_wild for each entry.
2218 (input_section_spec_no_keep): Call lang_add_wild here instead.
2219 * ld.h (struct wildcard_list): Declare.
2220 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2222 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2224 * ldmain.c (main): initialize link_info.pei386_auto_import
2225 * pe-dll.c: new tables for auto-export filtering
2226 (auto_export): change API, pass abfd for contextual filtering.
2227 Loop thru tables of excluded symbols instead of comparing
2230 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2232 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2233 static variable current_sec (static struct sec *). Add
2234 forward declaration for add_bfd_to_link.
2235 (process_def_file): Don't export undefined symbols. Do not
2236 export symbols starting with "_imp__". Call auto_export()
2238 (pe_walk_relocs_of_symbol): New function.
2239 (generate_reloc): add optional extra debugging
2240 (pe_dll_generate_def_file): eliminate extraneous initial blank
2242 (make_one): enlarge symtab to make room for __nm__ symbols
2243 (DATA auto-import support).
2244 (make_singleton_name_thunk): New function.
2245 (make_import_fixup_mark): New function.
2246 (make_import_fixup_entry): New function.
2247 (pe_create_import_fixup): New function.
2248 (add_bfd_to_link): Specify that 'name' argument is a CONST
2250 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2251 declare new functions pe_walk_relocs_of_symbol and
2252 pe_create_import_fixup.
2253 * emultempl/pe.em: add new options --enable-auto-import,
2254 --disable-auto-import, and --enable-extra-pe-debug.
2255 (make_import_fixup): New function.
2256 (pe_find_data_imports): New function.
2257 (pr_sym): New function.
2258 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2259 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2262 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2264 * ld.texinfo: add additional documentation for
2265 --export-all-symbols. Document --out-implib,
2266 --enable-auto-image-base, --disable-auto-image-base,
2267 --dll-search-prefix, --enable-auto-import, and
2268 --disable-auto-import.
2269 * ldint.texinfo: Add detailed documentation on auto-import
2272 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2274 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2277 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2279 * Makefile.am: Update dependencies with "make dep-am".
2280 * Makefile.in: Regenerate
2282 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2284 * ldcref.c (check_section_sym_xref): New function.
2285 (check_nocrossrefs): Call it.
2286 (check_nocrossref): Interate over h->refs here instead of..
2287 (check_refs): ..here. Pass in the symbol name, section, and bfd
2288 rather than hash_entry pointers.
2289 (struct check_refs_info): Keep symbol name rather than hash entry.
2291 (check_reloc_refs): Tweak for above changes in check_refs_info.
2292 Only report references to section syms when symname is NULL to
2293 prevent duplicate messages for the same reloc.
2295 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2297 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2298 available. Do not print NULL trees.
2299 (exp_print_token): Print unknown tokens with values > 126 as
2300 decimal values not ASCII characters.
2302 * ldlang.c (lang_leave_overlay): If a region is specified assign
2303 it to all sections inside the overlay unless they have been
2304 assigned to the own, non-default, memory region.
2306 * README: Add header for consistency with other README files.
2308 2001-07-14 H.J. Lu <hjl@gnu.org>
2310 * emultempl/elf32.em (output_prev_sec_find): Never return
2311 bfd_abs_section_ptr, bfd_com_section_ptr nor
2312 bfd_und_section_ptr.
2314 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2316 * Makefile.am (em32relf.c): Change dependency from generic.em to
2318 * Makefile.in: Regenerate.
2320 2001-07-14 matthew green <mrg@eterna.com.au>
2322 * configure.tgt (i386-*-netbsdelf*): New target.
2323 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2325 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2327 * emultempl/elf32.em (output_prev_sec_find): New.
2328 (place_orphan): Use it.
2330 2001-07-11 H.J. Lu <hjl@gnu.org>
2332 * ldmain.c (main): Fix typos in the last change.
2334 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2336 * ldmain.c (main): Disallow -F and -f without -shared.
2338 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2340 * emultempl/pe.em (after_open): Check for the output_bfd not
2341 having any coff_data structure allocated to it.
2343 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2345 * emultempl/elf32.em: Do not assuming that contents of the buffer
2346 returned from basename function will remain unchanged accross other
2349 2001-07-03 H.J. Lu <hjl@gnu.org>
2351 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2352 2001-07-03. It creates dynamic entries even for static binaries.
2354 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2356 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2357 (DYNAMIC): Use it to reserve few dynamic entries for
2360 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2362 * emulparams/hppa64linux.sh: New file.
2363 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2364 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2365 (ehppa64linux.c): Add rule to make it.
2367 * Makefile.in: Regenerate.
2369 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2371 * ld.texinfo (Options, -r): Mention restrictions when using
2372 different object formats.
2374 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2376 * ldlang.c (lang_check): Emit fatal error if relocatable link
2377 between different object flavours with relocations in input.
2379 2001-06-19 H.J. Lu <hjl@gnu.org>
2381 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2382 (--version-script): Mention the language support.
2384 2001-06-19 H.J. Lu <hjl@gnu.org>
2386 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2388 2001-06-18 H.J. Lu <hjl@gnu.org>
2390 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2391 (diststuff): Add $(MANS).
2392 * Makefile.in: Regenerated.
2396 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2398 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2399 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2400 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2401 * ld.h (args_type): Remove member export_dynamic. All users
2402 changed to use struct bfd_link_info member.
2404 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2405 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2406 * Makefile.in: Regenerate.
2408 2001-06-18 H.J. Lu <hjl@gnu.org>
2410 * ldlang.c (init_os): Add the newline to the einfo call.
2411 (lang_check): Likewise.
2412 (lang_do_version_exports_section): Likewise.
2414 2001-06-15 H.J. Lu <hjl@gnu.org>
2416 * lexsup.c (parse_args); Save optind to report unrecognized
2419 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2421 * ldlang.c (lang_check): Emit fatal error if relocatable link
2422 between different object flavours.
2424 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2425 Set new link_info member export_dynamic.
2426 * ldmain.c (main): Initialize new link_info member export_dynamic.
2428 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2430 * ldlang.c (walk_wild): Only call walk_wild_file if
2431 lookup_name returns something.
2432 (lookup_name): If load_symbols fails, return NULL.
2433 (load_symbols): Change to a boolean function.
2434 (open_input_bfds): If load_symbols fails then do not make the
2437 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2439 * ldlang.c (record_bfd_errors): Remove.
2441 * emultempl/aix.em: Fix copyright dates.
2443 2001-06-07 Andreas Jaeger <aj@suse.de>
2445 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2446 (TEXT_START_ADDR): Likewise.
2448 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2450 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2452 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2454 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2456 2001-05-31 H.J. Lu <hjl@gnu.org>
2458 * ldlang.c (open_input_bfds): Don't change the bfd error
2459 handler whilst loading symbols.
2461 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2463 * configure.tgt: Remove i370-mvs architecture, it is not currently
2466 2001-05-25 H.J. Lu <hjl@gnu.org>
2468 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2469 like emulparams/aixppc.sh.
2471 2001-05-25 H.J. Lu <hjl@gnu.org>
2473 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2474 setting of output_filename after bfd_scan_arch.
2475 * emultempl/pe.em: Likewise.
2477 2001-05-25 H.J. Lu <hjl@gnu.org>
2479 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2480 like emulparams/aixppc.sh.
2482 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2483 instead of ${srcdir}/emultempl/stringify.sed.
2485 2001-05-25 Timothy Wall <twall@oculustech.com>
2487 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2490 2001-05-25 Alan Modra <amodra@one.net.au>
2492 * configure.host: Replace linuxoldld with linux*oldld.
2493 * configure.tgt: Likewise.
2495 2001-05-24 H.J. Lu <hjl@gnu.org>
2497 * emultempl/stringify.sed: Removed again.
2499 2001-05-24 H.J. Lu <hjl@gnu.org>
2501 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2502 (gld${EMULATION_NAME}_before_parse): Initialize
2503 ldfile_output_architecture, ldfile_output_machine and
2504 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2505 * emultempl/beos.em: Likewise.
2506 * emultempl/elf32.em: Likewise.
2507 * emultempl/linux.em: Likewise.
2508 * emultempl/mipsecoff.em: Likewise.
2509 * emultempl/pe.em: Likewise.
2510 * emultempl/sunos.em: Likewise.
2512 2001-05-24 Tom Rix <trix@redhat.com>
2514 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2515 udate import file format.
2516 (change_symbol_mode) New, same
2517 (is_syscall) New, same
2518 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2519 * emulparams/aixppc64.sh : same
2520 * emulparams/aixrs6.sh : same
2521 * emulparams/ppcmacos.sh : same
2522 * emultempl/aix.em : use strtoull to parse options
2523 * Makefile.am : add eaixppc64 emulation for xcoff64
2524 * Makefile.in : same
2525 * configure.tgt : same
2527 * scripttempl/aix.sc : default text section offset to 0x10000000
2528 default data section offset to 0x20000000
2529 add .sv3264 and .sv64 pseudo sections
2530 loader and debug sections use the currect section offset.
2532 * emultempl/aix.em : Add xcoff64 support
2533 Add -binitfini support
2534 (gld${EMULATION_NAME}_before_parse) -binitfini
2535 (gld${EMULATION_NAME}_parse_args) same
2536 (gld${EMULATION_NAME}_before_allocation) format change for special
2539 * emulparams/aixppc64.sh : New file for xcoff64 support
2541 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2543 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2544 variable to avoid non-portable shell construct.
2546 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2548 * ldmain.c (get_emulation): Add -mips5 command line argument.
2550 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2552 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2553 (ELF_INTERPRETER_NAME): Define it.
2554 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2556 * configure.tgt (targ_emul, targ_extra_emuls)
2557 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2558 as primary, elf_i386 as extra.
2559 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2560 (eelf_i386_ldso.c): New rule.
2561 * Makefile.in: Rebuilt.
2563 2001-05-22 Nick Clifton <nickc@redhat.com>
2565 * lexsup.c (ld_options): Allow -I to be an alias for
2566 --dynamic-linker. This is for Solaris compatability.
2567 * ld.texinfo: Document that -I can be used.
2570 2001-05-16 Alan Modra <amodra@one.net.au>
2572 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2573 whether an input section is the first one assigned to an output
2575 Assorted formatting fixes.
2577 2001-05-14 DJ Delorie <dj@delorie.com>
2579 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2580 * Makefile.in: Ditto.
2582 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2584 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2585 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2587 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2589 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2591 * ldlang.c (lang_process): Call bfd_merge_sections.
2593 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2595 * ldgram.y: Fix typo.
2597 2001-05-03 H.J. Lu <hjl@gnu.org>
2599 * emultempl/elf32.em: Include "libiberty.h".
2600 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2601 basename of the bfd filename.
2602 (gld${EMULATION_NAME}_stat_needed): Likewise.
2603 (gld${EMULATION_NAME}_try_needed): Likewise.
2604 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2606 2001-05-02 H.J. Lu <hjl@gnu.org>
2608 * emultempl/pe.em: Include <ctype.h>.
2610 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2612 * emulparams/elf32openrisc.sh: New file.
2614 * Makefile.am: Add OpenRISC target.
2615 * Makefile.in: Regenerated.
2617 * configure.tgt: Add openrisc-*-* mapping.
2619 2001-05-02 Nick Clifton <nickc@redhat.com>
2621 * emultempl/aix.em: Replace buystring with xstrdup.
2622 * emultempl/beos.em: Replace buystring with xstrdup.
2624 2001-05-02 H.J. Lu <hjl@gnu.org>
2626 * ldfile.c: Include "libiberty.h".
2627 * ldlex.l: Likewise.
2629 * ldmisc.c (buystring): Removed.
2630 * ldmisc.h: Likewise.
2632 * ldfile.c: Replace buystring with xstrdup.
2633 * ldlang.c: Likewise.
2634 * ldlex.l: Likewise.
2635 * ldmain.c: Likewise.
2636 * ldmisc.c: Likewise.
2637 * lexsup.c: Likewise.
2638 * mpw-eppcmac.c: Likewise.
2640 2001-04-30 Andreas Jaeger <aj@suse.de>
2642 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2644 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2646 * ldlang.c (load_symbols): Give emulation a chance
2647 to process unrecognized file before fatal error is
2648 reported, not after.
2650 2001-04-27 Sean McNeil <sean@mcneil.com>
2652 * configure.tgt: Add arm-vxworks target.
2653 * scripttempl/armcoff.sc: Support .text or .data as a section name
2657 2001-04-13 J.T. Conklin <jtc@redback.com>
2659 * ld.texinfo: Document --fatal-warnings.
2662 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2663 warnings have been turned into errors.
2664 * lexsup.c (OPTION_WARN_FATAL): Define.
2665 (ld_options): Entry for --fatal-warnings.
2666 (parse_args): Handle OPTION_WARN_FATAL.
2667 * ld.h (ld_config_type): Add fatal_warnings field.
2669 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2671 * ldmain.c (main): Default to discard_sec_merge.
2672 * lexsup.c (OPTION_DISCARD_NONE): Define.
2673 (ld_options): Add --discard-none.
2674 (parse_args): Handle OPTION_DISCARD_NONE.
2675 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2676 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2677 all its input sections match.
2679 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2681 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2682 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2683 (eelf32ltsmip.c): New target.
2684 (eelf64btsmip.c): Likewise.
2685 (eelf64ltsmip.c): Likewise.
2686 * Makefile.in: Regenerated.
2688 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2690 (mips*-*-linux-gnu*): Likewise.
2692 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2694 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2696 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2699 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2701 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2702 correct value of __Stext here.
2703 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2706 * emulparams/crislinux.sh: Remove FIXME.
2708 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2710 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2711 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2713 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2715 * configure.tgt (cris-*-*): Change default emulation to criself.
2716 (cris-*-*aout*): New rule.
2718 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2720 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2721 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2723 2001-03-26 Andreas Jaeger <aj@suse.de>
2725 * ld.texinfo (Overview): Fix syntax in texi code.
2727 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2729 * ld.texinfo: Put @c man indications to generate the ld man page.
2730 When generating man, define all the variables. Define SEEALSO
2731 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2732 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2733 (ld.1): Generate from ld.texinfo.
2734 * Makefile.in: Regenerate.
2736 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2738 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2739 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2741 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2743 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2744 is an absolute path look only for this file and not along the path.
2746 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2748 * emultempl/elf32.em (OPTION_GROUP): New macro.
2749 Add new option Bgroup to longopts.
2750 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2751 (gld*_list_options): Add -Bgroup and -z defs.
2752 * ld.1: Document -Bgroup and -z defs.
2753 * ld.texinfo: Likewise.
2755 2001-03-07 Michael Meissner <meissner@redhat.com>
2757 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2758 with sections created by -fdata-sections.
2759 (.dynbss,.bss): Ditto.
2761 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2763 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2764 after_allocation_default, not gld..._before_allocation.
2766 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2768 * configure.in (BFD_VERSION): New.
2769 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2770 * configure: Regenerate.
2771 * Makefile.am: Run "make dep-am"
2772 * Makefile.in: Regenerate.
2774 2001-02-26 Timothy Wall <twall@cygnus.com>
2776 * emulparams/elf64_aix.sh: Add additional read-only sections;
2777 uncomment lines which are now required.
2779 2001-02-26 H.J. Lu <hjl@gnu.org>
2781 * ldlang.c (open_input_bfds): Set the bfd error handler so
2782 that problems can be caught whilst loading symbols.
2783 (record_bfd_errors): New function: Report BFD errors and mark
2784 the executable output as being invalid.
2786 2001-02-22 Timothy Wall <twall@cygnus.com>
2788 * configure.host: Add configuration for ia64-*-aix*.
2789 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2790 Add dependencies for eelf64_aix.c.
2791 * Makefile.in: Regenerate.
2792 * configure.tgt: Add ia64-*-aix* mapping.
2793 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2794 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2797 2001-02-20 H.J. Lu <hjl@gnu.org>
2799 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2800 false if we found the file.
2802 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2804 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2805 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2807 2001-02-18 lars brinkhoff <lars@nocrew.org>
2809 * Makefile.am: Add PDP-11 target.
2810 * configure.tgt: Likewise.
2811 * emulparams/pdp11.sh: New file.
2813 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2815 * configure.host: Add a generic FreeBSD configuration entry such that
2816 all [modern] FreeBSD systems on all platforms will look the same.
2818 2001-02-14 H.J. Lu <hjl@gnu.org>
2820 * configure.tgt: Remove mention of earmelf_linux26.
2822 2001-02-13 Richard Henderson <rth@redhat.com>
2824 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2826 2001-02-13 H.J. Lu <hjl@gnu.org>
2828 * ldexp.h (node_type): Add etree_provided.
2829 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2830 type to etree_provided if defined by PROVIDE. Allow updating
2832 (exp_print_tree): Handle etree_provided.
2833 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2836 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2838 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2839 .IA_64.unwind.* pattern to unwind table section and
2840 .IA_64.unwind_info* pattern to unwind info section.
2842 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2844 * Makefile.am: Add linux target for S/390.
2845 * Makefile.in: Likewise.
2846 * configure.host: Likewise.
2847 * configure.tgt: Likewise.
2848 * emulparams/elf64_s390.sh: New file.
2849 * emulparams/elf_s390.sh: New file.
2851 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2853 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2855 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2857 2001-02-06 Philip Blundell <philb@gnu.org>
2859 * Makefile.am: Remove mention of earmelf_linux26.
2860 * Makefile.in: Regenerate.
2862 2001-02-04 Philip Blundell <philb@gnu.org>
2864 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2865 * emulparams/armelf_linux26.sh: Delete.
2866 * configure.tgt: Remove mention of armelf_linux26 emulation.
2868 2001-02-01 Nick Clifton <nickc@redhat.com>
2870 * ld.1: Replace occurances of -oformat with --oformat.
2872 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2874 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2875 load_base is specified.
2877 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2879 * emultempl/elf32.em: Correct spelling in comments and listed
2882 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2884 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2885 default for the first section of a group of overlay sections.
2887 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2889 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2890 * Makefile.in: Regenerate.
2891 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2892 Check for null tool_dir.
2894 2001-01-16 Jim Wilson <wilson@redhat.com>
2896 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2897 and IA_64.unwind.info.
2899 2001-01-16 H.J. Lu <hjl@gnu.org>
2901 * ldlang.c (lang_check): Merge the private data only if the
2902 input file has contents.
2904 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2906 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2908 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2909 enabling search for libmilli. On a relocatable link, make .text
2911 (LDEMUL_AFTER_PARSE): Define.
2912 (hppaelf_finish): Correct spelling of relocatable in comments.
2914 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2915 rummage through the script for sections on the unique list.
2916 Correct length of strncmp for ".note".
2917 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2919 * ldlang.c (unique_section_list): New var.
2920 (unique_section_p): New function.
2921 (walk_wild_section): Don't match sections on unique_section_list.
2922 (lang_add_unique): New function.
2923 Correct spelling of relocatable in comments.
2925 * ldlang.h (struct unique_sections): Declare.
2926 (unique_section_list): Declare.
2927 (unique_section_p): Declare.
2928 (lang_add_unique): Declare.
2930 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2931 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2933 * ld.texinfo (--unique): Update.
2935 2001-01-13 Nick Clifton <nickc@redhat.com>
2937 * lexsup.c (parse_args): Remove spurious white space.
2939 2001-01-12 Nick Clifton <nickc@redhat.com>
2941 * lexsup.c (parse_args): Update copyright date.
2943 2001-01-12 Philip Blundell <pb@futuretv.com>
2945 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2947 2001-01-10 Kazu Hirata <kazu@hxi.com>
2949 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2950 * scripttempl/h8300h.sc: Fix formatting.
2951 * scripttempl/h8300s.sc: Likewise.
2952 * scripttempl/h8500.sc: Likewise.
2953 * scripttempl/h8500b.sc: Likewise.
2954 * scripttempl/h8500c.sc: Likewise.
2955 * scripttempl/h8500m.sc: Likewise.
2956 * scripttempl/h8500s.sc: Likewise.
2958 2000-01-07 David O'Brien <obrien@BSDi.com>
2960 * emultempl/elf32.em: Only perform Linux ld hints processing when
2963 2001-01-07 Philip Blundell <philb@gnu.org>
2965 * ld.texinfo (Bug Reporting): Update email address for reports.
2967 2000-12-31 Nick Clifton <nickc@redhat.com>
2969 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2970 options by checking for a return value of '?' not -1.
2972 2000-12-28 Nick Clifton <nickc@redhat.com>
2974 * lexsup.c (struct ld_option): Add new enum value:
2976 (ld_options[]): Change -omagic, -output and -oformat options
2977 to be EXACTLY_TWO_DASHES.
2978 (OUTPUT_COUNT): Use ARRAY_SIZE.
2979 (parse_args): Change parameter 'argc' to unsigned.
2980 Place EXACTLY_TWO_DASHES options into new really_longopts
2982 If getopt_long_only fails, try calling getopt_long using the
2983 really_longopts array.
2984 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2987 * ldlex.h: Fix prototype of parse_args.
2989 * ld.texinfo: Document that long options starting with 'o'
2990 must be preceeded by two dashes. Change example of a single
2991 dashed long option from -oformat to -trace-symbol.
2993 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2995 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2996 (longopts[]): New --no-default-excludes option.
2997 (gld_${EMULATION_NAME}_list_options): Document.
2998 (gld_${EMULATION_NAME}_parse_args): Handle.
3000 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3002 * ldlang.c (new_stat): Revert the last beautification with "innocent"
3003 whitespace, it breaks the K&R C preprocessor.
3005 2000-12-11 DJ Delorie <dj@redhat.com>
3007 * ld.texinfo: Add notes about --whole-archive and gcc.
3009 2000-11-18 Fred Fish <fnf@be.com>
3011 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
3012 (ld_options): Entry for --allow-shlib-undefined.
3013 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
3014 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
3016 * ld.texinfo: Document new command line switch.
3018 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
3020 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
3021 .fixup is actually read/write.
3022 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
3023 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3024 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
3026 2000-12-11 Jan Hubicka <jh@suse.cz>
3028 * NEWS: Add note about x86_64 architecture.
3030 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
3032 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
3033 Set DWARF2 sections to a VMA of zero.
3035 2000-12-01 Joel Sherrill <joel@OARcorp.com>
3037 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
3039 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
3040 (sparc*-*-rtems*): Switched from a.out to ELF.
3042 2000-11-30 Jan Hubicka <jh@suse.cz>
3044 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
3045 (eelf_x86_64.c): New.
3046 * Makefile.in: Regenerate.
3047 * configure.tgt: Add support for x86_64-*-linux-gnu*.
3048 * emulparams/elf_x86_64.sh: New.
3050 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
3052 * emulparams/crislinux.sh (ENTRY): Change back to _start.
3053 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
3055 * scripttempl/crisaout.sc: Change all RELOCATING not related to
3056 merging non-a.out sections into CONSTRUCTING.
3058 2000-11-28 Nick Clifton <nickc@redhat.com>
3060 * ld.1 (COPYING): Mention that the GNU Free Documentation
3061 License is present in the sources, but not the output, and
3062 also available from the GNU website.
3063 (GNU Free Documentation License): Comment out this section.
3065 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
3067 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
3070 2000-11-25 David O'Brien <obrien@FreeBSD.org>
3072 * ld.1: Remove old date so it does not give the impression the manpage
3075 2000-11-24 Nick Clifton <nickc@redhat.com>
3077 * configure.tgt (xscale-coff): Add target.
3078 (xscale-elf): Add target.
3080 2000-11-24 Fred Fish <fnf@be.com>
3082 * ldmain.c (main): Remove redundant init of config.make_executable
3085 2000-11-15 Richard Henderson <rth@redhat.com>
3087 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3089 2000-11-14 Kazu Hirata <kazu@hxi.com>
3091 * scripttempl/h8300.sc: Fix formatting.
3092 * scripttempl/h8300h.sc: Likewise.
3093 * scripttempl/h8300s.sc: Likewise.
3095 2000-11-14 Denis Chertykov <denisc@overta.ru>
3097 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3099 2000-11-09 Philip Blundell <pb@futuretv.com>
3101 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3102 around orphan sections whose names can be represented in C.
3104 2000-11-07 Jim Wilson <wilson@redhat.com>
3106 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3107 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3109 2000-11-06 Nick Clifton <nickc@redhat.com>
3111 * ld.texinfo: Add GNU Free Documentation License.
3112 * ldint.texinfo: Add GNU Free Documentation License.
3113 * ld.1: Add GNU Free Documentation License.
3115 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3117 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3118 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3120 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3121 Move 2000-11-02 Makefile.in changes to this file.
3122 * Makefile.in: Regenerate.
3124 2000-11-03 Nick Clifton <nickc@redhat.com>
3126 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3127 constructors and destructors.
3128 * scripttempl/h8300h.sc: Ditto.
3129 * scripttempl/h8300s.sc: Ditto.
3130 * scripttempl/h8500.sc: Ditto.
3131 * scripttempl/h8500b.sc: Ditto.
3132 * scripttempl/h8500c.sc: Ditto.
3133 * scripttempl/h8500m.sc: Ditto.
3134 * scripttempl/h8500s.sc: Ditto.
3135 * scripttempl/v850.sc: Ditto.
3136 * scripttempl/w65.sc: Ditto.
3137 * scripttempl/z8000.sc: Ditto.
3139 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3141 * Makefile.in (e_i386_chaos.c): New rule.
3142 (ALL_EMULATIONS): Added e_i386_chaos.o.
3143 * emulparams/elf_i386_chaos.sh: New file.
3144 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3146 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3148 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3149 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3150 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3151 library path suffix.
3152 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3154 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3156 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3157 for consecutive sections.
3159 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3161 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3163 * ld.texinfo: Added notes about this new option.
3165 2000-10-16 Nick Clifton <nickc@redhat.com>
3167 * emultempl/pe.em (_after_open): Add tests of return values from
3168 bfd functions. Emit appropriate error messages if necessary.
3170 2000-10-13 Nick Clifton <nickc@redhat.com>
3172 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3173 local variables - they are not used, but leave in the call to
3174 bfd_canonicalize_symtab.
3175 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3176 pe_dll_search_prefix.
3178 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3180 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3181 (longopts): New --dll-search-prefix option.
3182 (gld_${EMULATION_NAME}_list_options): Document.
3183 (gld_${EMULATION_NAME}_parse_args): Handle.
3184 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3185 dynamically, search for a dll named '<prefix><basename>.dll'
3186 in preference to 'lib<basename>.dll' if --dll-search-prefix
3189 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3191 * ldlang.c (section_already_linked): Set kept_section instead of
3194 2000-10-10 Kazu Hirata <kazu@hxi.com>
3196 * deffile.h: Fix formatting.
3197 * lexsup.c: Likewise.
3200 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3202 * pe-dll.c (make_one): Do not generate code thunk for DATA
3204 (process_def_file): deduce DATA flag for auto-export sumbols.
3206 2000-10-09 Kazu Hirata <kazu@hxi.com>
3208 * ld.h: Fix formatting.
3209 * ldcref.c: Likewise.
3210 * ldctor.h: Likewise.
3211 * ldemul.c: Likewise.
3212 * ldemul.h: Likewise.
3213 * ldexp.c: Likewise.
3214 * ldexp.h: Likewise.
3215 * ldfile.c: Likewise.
3216 * ldfile.h: Likewise.
3217 * ldlang.c: Likewise.
3218 * ldlang.h: Likewise.
3219 * ldmain.c: Likewise.
3220 * pe-dll.c: Likewise.
3222 * pe-dll.c: Revert some formatting fixes.
3224 2000-10-08 Kazu Hirata <kazu@hxi.com>
3226 * pe-dll.c: Fix formatting.
3228 2000-10-05 Kazu Hirata <kazu@hxi.com>
3230 * ldlang.c: Fix formatting.
3232 2000-10-03 DJ Delorie <dj@redhat.com>
3234 * pe-dll.c (fill_edata): initialize entire block
3235 (make_one): fill in correct section.
3237 2000-10-03 Kazu Hirata <kazu@hxi.com>
3239 * ldexp.c: Fix formatting.
3241 2000-10-02 DJ Delorie <dj@redhat.com>
3243 * emultempl/pe.em (gld_*_after_open): detect case where there two
3244 import libraries for same dll; rename one to ensure proper link
3247 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3249 (generate_edata): fix typo
3251 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3253 * scripttempl/crisaout.sc (ENTRY): Now __start.
3254 (.text): Add default setting for __start.
3255 Remove CONSTRUCTORS handling.
3256 (/DISCARD/): Add .gnu.warning.*.
3257 * emulparams/crislinux.sh (ENTRY): Now __start.
3258 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3259 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3260 (ENTRY): Now __start.
3261 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3262 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3264 2000-09-29 Kazu Hirata <kazu@hxi.com>
3266 * deffile.h: Fix formatting.
3268 * ldcref.c: Likewise.
3269 * ldctor.c: Likewise.
3270 * ldctor.h: Likewise.
3271 * ldemul.c: Likewise.
3272 * ldemul.h: Likewise.
3273 * ldexp.c: Likewise.
3274 * ldexp.h: Likewise.
3275 * ldfile.c: Likewise.
3276 * ldfile.h: Likewise.
3277 * ldlang.c: Likewise.
3278 * ldlang.h: Likewise.
3279 * lexsup.c: Likewise.
3281 * pe-dll.c: Likewise.
3283 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3285 * pe-dll.c (process_def_file): Uninitialized data wasn't
3286 exported with --export-all-symbols switch.
3288 2000-09-28 DJ Delorie <dj@redhat.com>
3290 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3291 noname work properly.
3293 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3295 * ld.texinfo (HPPA ELF32): New section.
3297 * emultempl/hppaelf.em (group_size): New.
3298 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3299 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3300 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3301 options to prevent abbreviations matching.
3302 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3303 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3305 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3307 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3308 on the m68*-*-elf target. Make it support COFF input objects.
3310 2000-09-21 Kazu Hirata <kazu@hxi.com>
3312 * ldmain.c: Fix formatting.
3313 * ldmisc.c: Likewise.
3314 * ldver.c: Likewise.
3315 * ldwrite.c: Likewise.
3317 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3319 * ldwrite.c (clone_section): Silence gcc warnings.
3321 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3323 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3324 out of memory failure.
3326 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3327 (clone_section): Handle out of memory failures. Rename var to
3328 avoid c++ reserved word.
3330 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3332 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3333 stub_name param to stub_sec_name.
3334 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3336 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3338 * emultempl/m68kelf.em: New file.
3339 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3340 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3341 * Makefile.in: Regenerate.
3343 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3345 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3348 2000-09-13 Nick Clifton <nickc@redhat.com>
3350 * ldmain.c (multiple_definition): Disable relaxation if
3351 multiple symbol definitions are encountered - otherwise the
3352 linker could abort with an assertion failure.
3354 2000-09-10 Nick Clifton <nickc@redhat.com>
3356 * mri.c: Fix formatting.
3358 2000-09-07 H.J. Lu <hjl@gnu.org>
3360 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3361 * configure: Rebuild.
3363 2000-09-07 H.J. Lu <hjl@gnu.org>
3365 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3366 * Makefile.in: Rebuild.
3368 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3370 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3371 broken list handling. Create __start_SECNAME and __stop_SECNAME
3372 when no place-holder. Add some comments. Test both SEC_CODE and
3373 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3374 Handle case where no output section statement created.
3376 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3378 * configure.tgt (sh-*-linux*): Added.
3379 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3380 * Makefile.in: Rebuilt.
3381 * emulparams/shelf_linux.sh: New file.
3382 * emulparams/shlelf_linux.sh: New file.
3384 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3386 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3387 try shuffling sections when the orphan happens to be the place
3388 holder. Keep count of unique section names generated so we speed
3389 the search for a new name.
3391 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3393 * configure: Rebuilt with new libtool.m4.
3395 2000-09-05 Nick Clifton <nickc@redhat.com>
3397 * Makefile.in: Regenerate.
3398 * aclocal.m4: Regenerate.
3399 * configure: Regenerate.
3400 * config.in: Regenerate.
3401 * po/ld.pot: Regenerate.
3403 * ldint.texinfo: Remove CVS revision marker - it foils local
3406 * emultempl/ticoff.em: Remove extraneous comma.
3408 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3410 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3411 to stub section flags.
3412 (hppa_for_each_input_file_wrapper): New.
3413 (hppa_lang_for_each_input_file): New.
3414 (lang_for_each_input_file): Define to call above.
3415 (multi_subspace): New.
3416 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3417 (PARSE_AND_LIST_PROLOGUE): Define.
3418 (PARSE_AND_LIST_LONGOPTS): Define.
3419 (PARSE_AND_LIST_OPTIONS): Define.
3420 (PARSE_AND_LIST_ARGS_CASES): Define.
3421 (hppaelf_finish): Call elf32_hppa_set_gp.
3422 (hppaelf_set_output_arch): Remove.
3423 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3425 * emulparams/hppalinux.sh (ELFSIZE): Define.
3427 (OTHER_READONLY_SECTIONS): Define.
3429 (GENERATE_SHLIB_SCRIPT): Define.
3431 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3432 to const throughout. Change `void *' to `PTR' throughout.
3433 (lang_memory_default): Function is local to file, add `static'.
3435 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3436 (ehppalinux.c): Likewise.
3437 (earmelf.c): Likewise.
3438 (earmelf_linux.c): Likewise.
3439 (earmelf_linux26.c): Likewise.
3440 * Makefile.in: Regenerate.
3442 * ld.h (ld_config_type): Add unique_orphan_sections.
3443 * lexsup.c (OPTION_UNIQUE): Define.
3444 (ld_options): Add "--unique".
3445 (parse_args): Handle it.
3446 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3447 search for an existing output section if unique_orphan_sections is
3448 set. Make use of bfd_get_unique_section_name rather than
3449 duplicating code here.
3450 * ld.texinfo: Describe --unique.
3452 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3453 optional arg to split-by-file.
3454 (parse_args): Handle them.
3455 * ld.texinfo: Update description of these options.
3456 * ldwrite.c (clone_section): Pass in the section name. Replace
3457 local code with bfd_get_unique_section_name.
3458 (split_sections): Tidy code and comments. Use a list traversal
3459 more appropriate to the list construction. Handle cooked section
3460 sizes. Split when split_by_reloc reached rather than exceeded.
3461 Track section size and split when split_by_file reached. Fix
3462 link_order_tail (even though it's not used).
3463 (ldwrite): Modify condition for calling split_sections to suit
3464 changed split_by_reloc and split_by_file.
3465 * ldmain.c (main): Init config.split_by_reloc and
3466 config.split_by_file to -1.
3467 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3468 Change split_by_file to bfd_size_type.
3470 2000-09-02 Nick Clifton <nickc@redhat.com>
3472 * configure.in: Increase version number to 2.10.91.
3473 * NEWS: Mention new ability to support removal of duplicate DWARF2
3475 * configure: Regenerate.
3476 * aclocal.m4: Regenerate.
3477 * config.in: Regenerate.
3479 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3481 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3483 * scripttempl/elf32avr.sc: Ditto.
3484 * scripttempl/elfd10v.sc: Ditto.
3485 * scripttempl/elfd30v.sc: Ditto.
3486 * scripttempl/elfi370.sc: Ditto.
3487 * scripttempl/elfm68hc11.sc: Ditto.
3488 * scripttempl/elfm68hc12.sc: Ditto.
3489 * scripttempl/elfi386beos.sc: Ditto.
3490 * scripttempl/v850.sc: Ditto.
3492 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3494 * acinclude.m4: Include libtool and gettext macros from the
3496 * aclocal.m4, configure: Rebuilt.
3498 2000-08-25 Nick Clifton <nickc@redhat.com>
3500 * ldlang.c (open_output): When choosing the target for a
3501 particular endianness, do nothing if the target is not
3504 2000-08-25 H.J. Lu <hjl@gnu.org>
3506 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3507 check -rpath nor LD_RUN_PATH for cross link.
3508 * ld.texinfo: Document the change.
3510 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3512 * NEWS: Mention support for CRIS.
3514 2000-08-23 H.J. Lu <hjl@gnu.org>
3516 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3517 the current runpath list from bfd_elf_get_runpath_list ()
3520 2000-08-22 H.J. Lu <hjl@gnu.org>
3522 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3523 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3524 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3525 trace_file_tries is non-zero.
3526 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3527 if trace_file_tries is non-zero.
3529 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3532 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3534 * NEWS: Mention i860 support.
3536 2000-08-14 Andreas Schwab <schwab@suse.de>
3538 * scripttempl/elf.sc: Fix last change to use correct comment
3541 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3543 * scripttempl/elf.sc: Add a comment giving the correspondence
3544 between sections, per-datum sections, and linkonce sections. Make
3545 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3548 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3550 * emulparams/elf32_i860.sh: New file.
3551 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3552 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3553 (eelf32_i860.c): New rule.
3554 * Makefile.in: Regenerate.
3556 2000-08-10 Nick Clifton <nickc@cygnus.com>
3558 * emulparams/mipspe.sh (ENTRY): Add definition.
3560 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3562 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3565 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3567 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3568 the final size of .bss section.
3569 * scripttempl/elfm68hc12.sc: Likewise.
3571 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3573 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3574 gld${EMULATION_NAME}_parse_args for consistency. Combine
3575 lastoptind and prevoptind vars, and keep track of last optind.
3576 (gld_${EMULATION_NAME}_list_options): Rename to
3577 gld${EMULATION_NAME}_list_options.
3579 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3581 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3582 (i586-sco-sysv5uw7.1.0).
3584 2000-07-27 H.J. Lu <hjl@gnu.org>
3586 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3587 (PARSE_AND_LIST_PROLOGUE): New.
3588 (PARSE_AND_LIST_LONGOPTS): Likewise.
3589 (PARSE_AND_LIST_OPTIONS): Likewise.
3590 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3591 (PARSE_AND_LIST_EPILOGUE): Likewise.
3593 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3595 * emultempl/armelf.em: Elide functions common to elf32.em,
3596 ie. most of the file.
3597 (arm_elf_after_open): New. Do arm specific things then call
3598 gld${EMULATION_NAME}_after_open.
3599 (arm_elf_before_allocation): New. Call
3600 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3601 (PARSE_AND_LIST_PROLOGUE): Define.
3602 (PARSE_AND_LIST_SHORTOPTS): Define.
3603 (PARSE_AND_LIST_LONGOPTS): Define.
3604 (PARSE_AND_LIST_OPTIONS): Define.
3605 (PARSE_AND_LIST_ARGS_CASES): Define.
3606 (LDEMUL_AFTER_OPEN): Define.
3607 (LDEMUL_BEFORE_ALLOCATION): Define.
3608 (LDEMUL_BEFORE_PARSE): Define.
3609 (LDEMUL_FINISH): Define.
3611 * emultempl/hppaelf.em: Similarly zap most of this file.
3612 (hppaelf_add_stub_section): Prototype.
3613 (hppaelf_layaout_sections_again): Prototype.
3614 (hook_in_stub): Prototype.
3615 (LDEMUL_SET_OUTPUT_ARCH): Define.
3616 (LDEMUL_FINISH): Define.
3617 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3619 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3620 (EXTRA_EM_FILE): New.
3621 * emulparams/armelf_linux.sh: Likewise.
3622 * emulparams/armelf_linux26.sh: Likewise.
3623 * emulparams/hppalinux.sh: Likewise.
3624 * emulparams/hppaelf.sh: Likewise.
3627 * emultempl/elf32.em: Fix formatting.
3628 (EXTRA_EM_FILE): Source it.
3629 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3630 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3631 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3632 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3633 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3634 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3635 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3636 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3637 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3638 allow functions in this file to be overridden.
3639 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3641 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3643 * emultempl/elf32.em: Reorganize file.
3645 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3647 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3648 specific option to fit 64-bit executable in the lower
3649 31-bit address range. This is done by changing start
3650 address of .interp (the very first section of executable)
3651 and then setting EF_ALPHA_32BIT elf header flag.
3653 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3655 * emultempl/m68kcoff.em: New file.
3656 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3657 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3659 * Makefile.in: Regenerate.
3661 2000-07-20 H.J. Lu <hjl@gnu.org>
3663 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3664 and "disable-new-dtags" to stop getopt from treating -d/-e as
3665 abbreviations for these options.
3667 2000-07-20 H.J. Lu <hjl@gnu.org>
3669 * ld.texinfo: Add documentation for --disable-new-dtags and
3672 * ldmain.c (main): Initialize link_info.new_dtags to false.
3674 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3675 --disable-new-dtags and --enable-new-dtags.
3676 (gld_${EMULATION_NAME}_list_options): Likewise.
3678 2000-07-05 Kenneth Block <krblock@computer.org>
3680 * lexsup.c: Add optional style to demangle switch
3681 * ld.texinfo: Document optional style to demangle switch.
3683 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3685 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3687 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3688 Regenerate dependencies.
3689 * Makefile.in: Rebuild.
3690 * configure.tgt (cris-*-*): New target.
3691 * emulparams/crisaout.sh, emulparams/criself.sh,
3692 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3693 * po/POTFILES.in, po/ld.pot: Regenerate.
3695 2000-07-20 H.J. Lu <hjl@gnu.org>
3697 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3698 Print out ignored -z options.
3700 2000-07-19 H.J. Lu <hjl@gnu.org>
3702 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3703 (PARSE_AND_LIST_PROLOGUE): New.
3704 (PARSE_AND_LIST_LONGOPTS): Likewise.
3705 (PARSE_AND_LIST_OPTIONS): Likewise.
3706 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3708 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3710 * lexsup.c (ld_options): Comment out 'z'.
3711 (parse_args): Likewise.
3713 * emultempl/elf32.em: Include "elf/common.h".
3714 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3716 (gld_${EMULATION_NAME}_list_options): Likewise.
3718 * ld.texinfo: Add documentation for the recognized -z options.
3720 2000-07-19 H.J. Lu <hjl@gnu.org>
3722 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3723 bfd_elf_set_dt_needed_soname ().
3725 2000-07-18 DJ Delorie <dj@cygnus.com>
3727 * pe-dll.c (pe_dll_id_target): check object target name also
3729 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3731 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3732 ${INIT_END} if relocating.
3733 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3735 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3737 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3738 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3739 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3740 errors introduced by the old dynamic lib search order.
3742 2000-07-17 DJ Delorie <dj@cygnus.com>
3744 * pe-dll.c (process_def_file): auto-export data items also
3745 (pe_process_import_defs): also see if _imp_ form needed
3747 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3749 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3750 for dll import libraries
3752 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3754 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3755 gcc 2.95.2 and later.
3757 2000-07-11 Kazu Hirata <kazu@hxi.com>
3759 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3762 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3764 * ldemul.h (struct lang_input_statement_struct): Remove forward
3766 (struct search_dirs): Likewise.
3767 * ldfile.h (struct lang_input_statement_struct): Likewise.
3768 Protect file from multiple inclusion.
3769 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3770 declaration from macro to file scope.
3772 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3773 * ldgram.y: Likewise here.
3774 * ldlang.c: And here.
3775 * ldmain.c: And here.
3776 * mpw-elfmips.c: And here.
3777 * mpw-eppcmac.c: And here.
3778 * emultempl/aix.em: And here.
3779 * emultempl/armcoff.em: And here.
3780 * emultempl/armelf.em: And here.
3781 * emultempl/armelf_oabi.em: And here.
3782 * emultempl/beos.em: And here.
3783 * emultempl/elf32.em: And here.
3784 * emultempl/hppaelf.em: And here.
3785 * emultempl/linux.em: And here.
3786 * emultempl/lnk960.em: And here.
3787 * emultempl/pe.em: And here.
3788 * emultempl/sunos.em: And here.
3789 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3790 * mpw-idtmips.c: Ditto.
3791 * emultempl/generic.em: Ditto.
3792 * emultempl/gld960.em: Ditto.
3793 * emultempl/gld960c.em: Ditto.
3794 * emultempl/mipsecoff.em: Ditto.
3795 * emultempl/ticoff.em: Ditto.
3796 * emultempl/vanilla.em: Ditto.
3798 * pe-dll.c: Include ldfile.h
3799 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3801 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3802 arguments to bfd_elf32_size_dynamic_sections call.
3803 (gldelf32ebmip_place_orphan): Add missing arguments to
3804 lang_leave_output_section_statement call.
3806 2000-07-10 H.J. Lu <hjl@gnu.org>
3808 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3810 (strhash): Likewise.
3811 (compute_dll_image_base): Likewise.
3812 (pe_undef_found_sym): Likewise.
3813 (pe_undef_cdecl_match): Likewise.
3814 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3815 argument "arch" with ATTRIBUTE_UNUSED.
3817 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3819 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3821 From Ryan Bradetich <rbradetich@uswest.net>
3822 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3824 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3826 Changes to create multiple linker stubs, positioned immediately
3827 before the section where they are required.
3828 * emultempl/hppaelf.em: Include elf32-hppa.h.
3829 (stub_sec, file_chain): Delete.
3830 (hppaelf_create_output_section_statements): Don't make a stub
3832 (hook_stub_info): New struct.
3833 (hook_in_stub): New function.
3834 (hppaelf_add_stub_section): New function.
3835 (hppaelf_finish): Do nothing for relocateable links. Modify the
3836 call to elf32_hppa_size_stubs. Move code for updating section
3838 (hppaelf_layaout_sections_again): ..to here, a new function.
3840 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3841 broken list handling. Pass in a pointer to the list.
3842 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3844 (hppaelf_before_parse): Prototype.
3845 (hppaelf_set_output_arch): Prototype.
3846 (hppaelf_create_output_section_statements): Prototype.
3847 (hppaelf_delete_padding_statements): Prototype.
3848 (hppaelf_finish): Prototype.
3851 * emultempl/hppaelf.em: Include ctype.h.
3852 (struct orphan_save): New.
3853 (gld${EMULATION_NAME}_place_orphan): New.
3854 (output_rel_find): New.
3855 (hppaelf_get_script): Update from elf32.em.
3856 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3857 Change emulation_name field to "${EMULATION_NAME}". Add
3858 gld${EMULATION_NAME}_place_orphan.
3860 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3861 ehppalinux.o, sort it. Regenerate dependencies.
3862 (ehppalinux.c): Depend on hppaelf.em
3863 * Makefile.in: Regenerate.
3865 * configure.tgt: targ_emul=hppalinux for hppa*linux
3867 * emulparams/hppalinux.sh: New.
3868 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3870 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3872 * lexsup.c (parse_args): Copy section name.
3874 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3876 * emultempl/pe.em: institute the following search order for
3877 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3878 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3879 static lib (libfoo.a) if none of the above are found.
3881 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3883 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3884 (longopts): New --{enable,disable}-auto-image-base options.
3885 (gld_${EMULATION_NAME}_list_options): Document.
3886 (gld_${EMULATION_NAME}_parse): Handle.
3887 (strhash): New static function.
3888 (compute_dll_image_base): New static function.
3889 (gld_${EMULATION_NAME}_set_symbols): Use.
3891 2000-07-05 DJ Delorie <dj@redhat.com>
3895 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3897 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3898 * emulparams/elf32btsmip.sh: New file.
3899 * Makefile.am: Add traditional mips target.
3900 * Makefile.in: Rebuild.
3902 2000-07-01 H.J. Lu <hjl@gnu.org>
3904 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3905 automake to use YLWRAP.
3906 * Makefile.in: Rebuild.
3908 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3910 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3911 (CLEANFILES): Add DEPA.
3912 * Makefile.in: Regenerate.
3914 2000-06-30 Timothy Wall <twall@ppc>
3916 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3917 the page in the upper octet of the address.
3919 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3921 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3923 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3925 * NEWS: arm-elf does --gc-sections too.
3927 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3929 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3931 * Makefile.in: Regenerate.
3933 2000-06-21 H.J. Lu <hjl@gnu.org>
3935 * Makefile.am: Rebuild dependency.
3936 * Makefile.in: Rebuild.
3938 2000-06-20 H.J. Lu <hjl@gnu.org>
3940 * Makefile.am: Rebuild dependency.
3941 * Makefile.in: Rebuild.
3943 2000-06-20 Timothy Wall <twall@cygnus.com>
3945 * scripttempl/tic54xcoff.sc: New.
3946 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3947 * gen-doc.texi: Add flag for TI COFF.
3948 * ld.texinfo: Add documentation for TI COFF handling switches.
3949 * emultempl/ticoff.em: New. TI COFF handling.
3950 * configure.tgt: Add tic54x target.
3951 * Makefile.am: Add tic54x target.
3952 * Makefile.in: Ditto.
3954 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3956 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3957 checking for backslashes.
3959 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3961 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3963 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3965 * NEWS: Update list of targets supporting --gc-sections.
3967 * scripttempl/elf.sc: KEEP .eh_frame contents.
3968 * scripttempl/elfd30v.sc: Same here.
3970 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3972 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3974 * Makefile.in: Rebuild.
3975 * configure.tgt: Recognize m68hc12 and m68hc11.
3976 * scripttempl/elfm68hc12.sc: New file.
3977 * emulparams/m68hc12elfb: New emulation.
3978 * emulparams/m68hc12elf: New emulation.
3979 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3980 (includes a memory.x script to define the ROM and RAM banks).
3981 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3982 New configuration files for support of Motorola 68hc11
3984 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3986 * ldmain.c (main): Only change SEC_READONLY for final link.
3988 2000-06-13 H.J. Lu <hjl@gnu.org>
3990 * configure: Regenerate.
3992 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3994 * configure.in (VERSION): Update to show this is the CVS mainline.
3996 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3998 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3999 input objects to be ECOFF.
4000 (check_sections): einfo takes %B, not %P, to print a BFD name.
4002 2000-06-05 Michael Matz <matz@ifh.de>
4004 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
4007 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
4009 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
4011 * emulparams/avr1200.sh (STACK): Define as 0.
4012 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
4013 * emulparams/avr4433.sh (STACK): Likewise.
4014 * emulparams/avr44x4.sh (STACK): Likewise.
4015 * emulparams/avr85xx.sh (STACK): Likewise.
4016 * emulparams/avrmega103.sh (STACK): Likewise.
4017 * emulparams/avrmega161.sh (STACK): Likewise.
4018 * emulparams/avrmega603.sh (STACK): Likewise.
4019 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
4020 (__stack): Define from ${STACK} for main().
4022 2000-05-26 Alan Modra <alan@linuxcare.com.au>
4024 * Makefile.am: Update dependencies with "make dep-am"
4025 * Makefile.in: Regenerate.
4027 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
4029 * ldmain.c: Include filenames.h.
4030 (set_scripts_dir): Support backslashes in program name.
4032 2000-05-22 Igor Shevlyakov <igor@windriver.com>
4034 * ldmain.c (main): When deciding if ".text" section should be
4035 read-only, don't forget to reset SEC_READONLY because it
4036 could be already set.
4038 2000-05-22 Thomas de Lellis <tdel@windriver.com>
4040 * ld.1: Add documentation for new command line option:
4041 --section-start <sectionname>=<sectionorg>
4042 This is a generic version of -Ttext etc. which accepts
4043 any section name as a parameter instead of just text/data/
4045 * ld.texinfo: More docs.
4047 * lexsup.c: (parse_args): Recognize new command line option.
4048 (ld_options): Add new option.
4050 2000-05-18 H.J. Lu <hjl@gnu.org>
4052 * lexsup.c (parse_args): `i' == `r', not `q'.
4054 2000-05-18 Jeffrey A Law (law@cygnus.com)
4056 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
4058 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
4059 Rick Gorton <gorton@scrugs.lkg.dec.com>
4061 Add support for '-q' == '--emit-relocs' switch.
4062 * ldmain.c (main): Default to false.
4063 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
4064 * NEWS: Describe the emitrelocations switch.
4065 * ld.texinfo: Describe the emitrelocations switch.
4067 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
4069 * emultempl/pe.em (_open_dynamic_archive): New function: Search
4070 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
4071 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
4074 2000-05-15 David O'Brien <obrien@FreeBSD.org>
4076 * lexsup.c (parse_args): Update the year in the copyright notice.
4078 2000-05-13 Alan Modra <alan@linuxcare.com.au>
4080 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
4081 Replace defines with those from intl/libgettext.h to quieten gcc
4084 2000-05-10 H.J. Lu <hjl@gnu.org>
4086 * ldlang.c (open_input_bfds): Don't load the same file within
4087 a group again if the whole archive has been loaded already.
4089 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4091 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4092 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4095 2000-05-01 Jim Wilson <wilson@cygnus.com>
4097 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4099 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4100 host "ia64-*-linux-gnu*".
4102 2000-04-29 Andreas Jaeger <aj@suse.de>
4104 * ld.h: Correctly check GCC version.
4106 2000-04-25 Jeffrey A Law (law@cygnus.com)
4108 * Makefile.am: Add PA64 support. Add missing dependencies for
4110 * Makefile.in: Rebuilt.
4111 * configure.tgt: Add PA64 support (currently disabled).
4113 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4115 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4116 (output_rel_find): New function.
4117 (hold_section, hold_use): Delete.
4118 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4119 hold_interp): Make local to place_orphan.
4120 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4121 rather than place_section to find possible previous use of orphan.
4122 Similarly find the place-holder output sections. Use returned
4123 value from lang_enter_output_section_statement rather than calling
4124 lang_output_section_statement_lookup.
4125 * emultempl/armelf.em: Same here.
4126 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4128 * ldlang.c (lang_enter_output_section_statement): Return output
4130 * ldlang.h (lang_enter_output_section_statement): Change
4133 * ldlang.h (lang_output_section_statement): Export it.
4134 * ldlang.c (lang_output_section_statement): Ditto.
4136 2000-04-24 Nick Clifton <nickc@cygnus.com>
4138 * ld.texinfo (Output Section Data): Add note that section data
4139 commands cannot appear outside of section directives.
4141 2000-04-2 Matthew Green <mrg@cygnus.com>
4143 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4145 2000-04-21 Richard Henderson <rth@cygnus.com>
4146 David Mosberger <davidm@hpl.hp.com>
4148 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4149 (eelf64_ia64.c): New rule.
4150 * Makefile.in: Rebuild.
4151 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4152 * emulparams/elf64_ia64.sh: New file.
4154 2000-04-21 Richard Henderson <rth@cygnus.com>
4156 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4158 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4160 * dep-in.sed: Match space at start of file name, not at end.
4162 2000-04-18 H.J. Lu <hjl@gnu.org>
4164 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4165 lang_leave_output_section_statement () after calling
4166 lang_enter_output_section_statement ().
4167 * emultempl/armelf.em: Likewise.
4169 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4171 * emultempl/elf32.em (struct orphan_save): Add section field.
4172 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4173 better order, and place first orphan section as we did before the
4174 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4175 Don't call make_bfd_section here, let wild_doit do the job for us.
4176 Don't build a statement list when we'll only throw it away.
4177 * emultempl/armelf.em: Ditto.
4178 * emultempl/pe.em: Similarly.
4180 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4182 * scripttempl/elfppc.sc: Remove.
4183 * emulparams/elf32ppc.sh: Use elf.sc.
4184 * emulparams/elf32lppc.sh: Use elf.sc.
4185 * emulparams/elf32ppclinux.sh: Use elf.sc.
4186 * emulparams/elf32ppcsim.sh: New file.
4187 * emulparams/elf32lppcsim.sh: New file.
4188 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4189 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4190 * Makefile.in: Regenerate.
4191 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4193 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4195 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4196 ~SEC_ALLOC sections too. Init start address of debug sections.
4197 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4198 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4199 Also set all relocateable section start addresses.
4201 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4203 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4204 Add new BSS_PLT variable for when .plt need not be contained in
4205 the file. Move _etext so that it is also after .fini, and provide
4206 both etext and _etext with a leading underscore. Mark the start
4209 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4211 * emultempl/elf32.em (struct orphan_save): New.
4212 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4213 hold_interp): Make them struct orphan_save.
4214 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4215 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4216 the end of the relevant section list. Also add associated section
4217 statements to the end of any previous orphan statements.
4218 * emultempl/armelf.em: Similarly.
4219 * emultempl/pe.em: Similarly.
4221 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4223 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4225 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4227 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4228 --enable-build-warnings option.
4229 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4230 * Makefile.in, configure: Re-generate.
4232 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4234 * po/ld.pot: Regenerate.
4236 * lexsup.c (help): Restore translated part of bug string.
4238 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4239 (DEP): Quote when passing vars to sub-make. Add warning message
4241 (DEP1): Rewrite for "gcc -MM".
4242 (CLEANFILES): Add DEP2.
4243 Update dependencies.
4244 * Makefile.in: Regenerate.
4246 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4248 * ld.h: #include "bin-bugs.h"
4249 * lexsup.c (help): Use REPORT_BUGS_TO.
4251 2000-03-27 Denis Chertykov <denisc@overta.ru>
4253 * configure.tgt (avr-*-*): New target support.
4254 * Makefile.am: Likewise.
4255 * scripttempl/elf32avr.sc: New script file.
4256 * emulparams/avr1200.sh: New file.
4257 * emulparams/avr23xx.sh: New file.
4258 * emulparams/avr4433.sh New file.
4259 * emulparams/avr44x4.sh New file.
4260 * emulparams/avr85xx.sh New file.
4261 * emulparams/avrmega103.sh New file.
4262 * emulparams/avrmega161.sh New file.
4263 * emulparams/avrmega603.sh New file.
4264 * Makefile.in: Regenerate.
4266 2000-03-09 Andreas Jaeger <aj@suse.de>
4268 * Makefile.am (check-DEJAGNU): Also unset LANG.
4269 * Makefile.in: Rebuild.
4271 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4273 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4276 2000-03-02 H.J. Lu <hjl@gnu.org>
4278 * emulparams/elf32mcore.sh: Include "getopt.h".
4280 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4282 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4284 2000-03-01 H.J. Lu <hjl@gnu.org>
4286 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4287 * emulparams/shpe.sh: Likewise.
4289 2000-03-01 Nick Clifton <nickc@cygnus.com>
4291 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4292 to unused parameters.
4294 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4295 functions only used by DLL code.
4296 (_place_orphan): Initialise 'dollar'.
4298 2000-03-01 H.J. Lu <hjl@gnu.org>
4300 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4301 indicate if the undefined symbol is a fatal error or not.
4302 Don't delete the output file if "fatal" is false.
4304 2000-02-29 H.J. Lu <hjl@gnu.org>
4306 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4307 Set LC_COLLATE and LC_ALL to null and export them. It is for
4308 sort which expects the C locale.
4309 Add $(LIBS) to all $(HOSTING_LIBS).
4310 * Makefile.in: Rebuild.
4312 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4314 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4315 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4316 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4317 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4318 find_potential_libraries.
4320 2000-02-28 Jim Blandy <jimb@redhat.com>
4322 * ldgram.y (exclude_name_list): Don't require a comma to separate
4323 list entries; the lexer considers commas to be valid part of a
4324 filename, so in something like `foo, bar' the comma is considered
4325 part of the first filename, `foo,'.
4326 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4328 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4330 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4331 host "i[3456]86-*-freebsdelf*".
4333 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4335 * scripttempl/i386go32.sc: Move misplaced semicolons.
4337 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4339 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4340 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4341 (eelf64hppa.c, ehppaelf.c): Remove targets.
4342 * Makefile.in: Rebuild.
4344 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4346 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4347 GNU/Linux/sparc, but keep the default as 32.
4349 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4350 it default if sparcv9 or sparc64.
4352 2000-02-24 Nick Clifton <nickc@cygnus.com>
4354 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4355 * Makefile.in: Regenerate.
4356 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4358 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4359 find_potential_libraries.
4360 * ldemul.c (ldemul_find_potential_libraries): New function.
4362 * ldfile.c (ldfile_open_file_search): Allow function to be
4364 (ldfile_open_file): Call ldemul_find_potential_libraries.
4365 * ldfile.h: Add prototype for ldfile_open_file_search.
4367 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4369 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4370 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4372 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4373 (gld_X_find_potential_libraries): New function. Search for
4374 libraries called "*.lib".
4376 * scripttempl/pe.sc: Add .pdata section.
4378 2000-02-23 Richard Henderson <rth@cygnus.com>
4380 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4381 Add and use memory regions.
4383 2000-02-23 Linas Vepstas (linas@linas.org)
4385 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4387 * Makefile.am: Add support for Linux/IBM 370.
4388 * configure.tgt: Likewise.
4390 * Makefile.in: Regenerate.
4392 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4394 * ldlang.c (print_input_section, print_data_statement,
4395 print_reloc_statement, print_padding_statement, insert_pad,
4396 size_input_section, lang_check_section_addresses,
4397 lang_size_sections, lang_do_assignments, lang_set_startof,
4398 lang_one_common): Change `opb' to unsigned.
4399 (lang_do_assignments): Also change `size' to unsigned.
4401 2000-02-16 Richard Henderson <rth@cygnus.com>
4403 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4405 2000-02-16 Timothy Wall <twall@cygnus.com>
4407 * mri.c (mri_draw_tree): Add default LMA region argument to call
4408 to lang_leave_output_section_statement.
4409 * ldlang.h: Update prototypes with LMA region arguments.
4410 * ldlang.c (lang_size_sections): Encapsulate region bounds
4411 checking in os_check_region call.
4412 (os_check_region): New function.
4413 (lang_output_section_statement_lookup): Initialize lma_region.
4414 (lang_leave_output_section_statement): Add LMA region argument.
4415 (lang_leave_overlay): Ditto.
4416 * ldgram.y: Handle LMA region syntax.
4417 * ld.texinfo (Output Section Description): Describe LMA region usage.
4418 * emultempl/armelf.em (gld$place_orphan): Add default value for
4419 lma region in call to lang_leave_output_section_statement.
4420 * emultempl/elf32.em (gld$place_orphan): Add default value for
4421 lma region in call to lang_leave_output_section_statement.
4422 * emultempl/pe.em (gld$place_orphan): Add default value for
4423 lma region in call to lang_leave_output_section_statement.
4426 2000-02-04 Timothy Wall <twall@redhat.com>
4428 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4429 octets when calculating section end addresses.
4431 2000-02-04 Timothy Wall <twall@redhat.com>
4433 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4435 2000-02-03 Timothy Wall <twall@redhat.com>
4437 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4439 * ldlang.c (print_input_section, print_data_statement,
4440 print_reloc_statement, print_padding_statement): Print target
4441 address values and section sizes as bytes, not octets.
4442 (insert_pad) Calculate padding size in octets, and adjust "dot"
4444 (size_input_section) Always adjust "dot" by bytes, not octets.
4445 (lang_check_section_addresses, lang_do_assignments) Adjust
4446 "dot" by bytes, not octets. Use the larger of the directive size
4447 or octets_per_byte for the number of octets actually allocated in
4449 (lang_set_startof) Make sure STARTOF returns a target address.
4450 (lang_one_common) Record size changes in octets.
4451 (lang_abs_symbol_at_end_of) Section end symbol's value is
4452 recorded in target bytes.
4453 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4454 to be clear about behavior when an octet is smaller than one byte.
4456 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4458 * ldcref.c (output_cref): Don't pass message strings to printf
4462 * ldmisc.c (vfinfo): Same here.
4465 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4467 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4468 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4469 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4470 Add missing NULL initialisers, and comments.
4472 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4474 2000-01-21 Nick Clifton <nickc@cygnus.com>
4476 * ldlang.c (lang_size_sections): Fix typo in comment.
4478 2000-01-18 H.J. Lu <hjl@gnu.org>
4480 * ldlang.c (lang_size_sections): Also update the current
4481 address of a region if the SEC_NEVER_LOAD bit is not set.
4483 2000-01-10 Philip Blundell <pb@futuretv.com>
4485 * configure.tgt (arm*-*-conix*): New target.
4487 2000-01-07 Nick Clifton <nickc@cygnus.com>
4489 * ld.texinfo (Options): Remind users to preceed linker command
4490 line switches with -Wl, (or whatever is appropriate) if it is
4491 being invoked by a comnpiler driver program.
4492 Fix description of the behaviour of the -n command line switch.
4494 2000-01-05 Catherine Moore <clm@cygnus.com>
4496 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4498 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4499 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4500 (exclude_name_list): New.
4501 ldlang.c (walk_wild_section): Support list of excluded files.
4502 (print_wild_statement): Likewise.
4503 (lang_add_wild): Likewise.
4504 * ldlang.h (lang_wild_statement_type): Likewise.
4505 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4507 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4509 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4510 (process_def_file): Use.
4511 (pe_dll_compat_implib): New variable.
4514 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4515 pe_dll_compat_implib.
4517 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4518 compat-implib options.
4519 (gld_${EMULATION_NAME}_list_options): List new options.
4520 (gld_${EMULATION_NAME}_parse_args): Handle.
4522 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4525 * deffilep.y (opt_name): Allow "." in name.
4527 For older changes see ChangeLog-9899
4533 version-control: never