1 Thu Jun 13 20:18:38 2002 J"orn Rennecke <joern.rennecke@superh.com>
3 * configure.tgt: Add support for sh[1234]*le*-*-elf, sh[1234]*-*-elf.
5 2002-06-12 H.J. Lu <hjl@gnu.org>
7 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Return
8 false if xvec doesn't match.
10 2002-06-10 Richard Sandiford <rsandifo@redhat.com>
12 * ldlang.c (lang_size_sections_1): Skip removed output sections.
14 2002-06-08 Alan Modra <amodra@bigpond.net.au>
16 * ldexp.c: Replace CONST with const.
23 2002-06-07 Alan Modra <amodra@bigpond.net.au>
25 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
27 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
29 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
30 to -1 == implicit enable.
31 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
32 initialize link_info.pei386_auto_import to -1 == implicit
34 (gld_${EMULATION_NAME}_parse_args): When processing
35 --enable-auto-import and --disable-auto-import options, use
36 '1' and '0' instead of 'true' and 'false'.
37 (pe_find_data_imports): Only issue message about auto-import
38 when the feature is implicitly enabled. Downgrade message to
39 informational instead of warning.
41 2002-06-07 Alan Modra <amodra@bigpond.net.au>
43 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
45 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
47 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
48 HOSTING_CRT0 and HOSTING_LIBS.
50 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
52 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
54 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
56 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
57 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
59 2002-06-05 Alan Modra <amodra@bigpond.net.au>
61 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
62 SEC_EXCLUDE sections when doing a relocatable link.
64 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
66 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
67 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
68 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
69 (eshlelf64_nbsd.c): New rules.
70 * Makefile.in: Regenerate.
71 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
72 (sh64-*-netbsd*): New targets.
73 * emulparams/shelf32_nbsd.sh: New file.
74 * emulparams/shelf64_nbsd.sh: New file.
75 * emulparams/shlelf32_nbsd.sh: New file.
76 * emulparams/shlelf64_nbsd.sh: New file.
78 2002-06-04 Alan Modra <amodra@bigpond.net.au>
80 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
82 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
84 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
85 C++ constructors/destructors, loosely based on the m68hc11 port.
87 2002-05-31 Alan Modra <amodra@bigpond.net.au>
89 * Makefile.in: Regenerate.
90 * aclocal.m4: Regenerate.
91 * config.in: Regenerate.
92 * configure: Regenerate.
94 2002-05-31 Graeme Peterson <gp@qnx.com>
96 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
97 (ei386nto.c): Add rule.
98 * Makefile.in: Regenerate.
99 * configure.tgt: Add i[3456]86-*-nto-qnx*.
100 * emulparams/i386nto.sh: New file.
102 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
104 * NEWS: Add entry for VAX ELF support.
106 2002-05-29 Matt Thomas <matt@3am-software.com>
107 Jason Thorpe <thorpej@wasabisystems.com>
109 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
111 (evaxnbsd.c): New rules.
112 * Makefile.in: Regenerate.
113 * configure.tgt (vax-*-netbsdelf*)
115 (vax-*-netbsd*): New targets.
116 * emulparams/elf32vax.sh: New file.
117 * emulparams/vaxnbsd.sh: New file.
119 2002-05-29 Adam Nemet <anemet@lnxw.com>
121 * emultempl/armelf.em (arm_elf_after_open): Don't determine
122 bfd_for_interwork, instead add glue sections to each input bfd.
123 (bfd_for_interwork): New global.
124 (arm_elf_set_bfd_for_interworking): New function.
125 (arm_elf_before_allocation): Use it.
127 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
129 * Makefile.am: Add DLX make target.
130 * configure.tgt: Add DLX configuration.
131 * Makefile.in: Regenerate.
132 * emulparams/elf32_dlx.sh: New file
133 * scripttempl/dlx.sc: New file
135 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
137 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
138 * Makefile.in: Regenerate.
139 * emulparams/elf_chaos.sh: Use elf_chaos script.
140 * scripttempl/elf_chaos.sc: New file.
142 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
144 * ldlang.c (lang_size_sections_1): Move check for conflicting load
145 addresses and regions from here...
146 (lang_get_regions): ...to this new function.
147 (lang_leave_output_section_statement): Use lang_get_regions.
148 (lang_leave_overlay): Likewise.
149 * mri.c (mri_draw_tree): Pass null as last argument to
150 lang_leave_output_section_statement.
151 * emultempl/elf32.em (gld*_place_orphan): Likewise.
152 * emultempl/mmo.em (mmo_place_orphan): Likewise.
153 * emultempl/pe.em (gld*_place_orphan): Likewise.
155 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
157 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
159 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
161 * ldemul.c: Fix formatting.
162 * ldfile.c: Likewise.
163 * pe-dll.c: Likewise.
164 * pe-dll.h: Likewise.
166 2002-05-25 Alan Modra <amodra@bigpond.net.au>
168 * ldlang.c (lang_process): Formatting, grammar.
170 * ldlex.l: Use #include "" instead of <> for local header files.
172 2002-05-24 TAMURA Kent <kent@netbsd.org>
174 * configure.tgt: Add a target for i386-netbsdpe.
176 2002-05-23 Jakub Jelinek <jakub@redhat.com>
178 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
179 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
180 output section if necessary. Handle .tbss.
181 (lang_size_sections): Clear _raw_size for .tbss section
182 (it allocates space in PT_TLS segment only).
183 * ldwrite.c (build_link_order): Build link order for .tbss too.
185 2002-05-23 Alan Modra <amodra@bigpond.net.au>
187 * configure.in: Correct spelling of AC_PREREQ.
189 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
191 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
193 (autofilter_objlist): Add crtbegin.o, crtend.o.
195 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
197 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
198 (longopts): Add new option --exclude-libs.
199 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
200 (gld_${EMULATION_NAME}_parse_args): Use it.
201 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
202 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
204 (pe_dll_add_excludes): Set excludes->type.
205 (auto_export): Add new variable libname and set to archive basename if
206 abfd. Use it when filtering default and user-specified libarary
207 excludes. Let string "ALL" mean all libs when filtering user-specified
209 * ld.texinfo: Document --exclude-libs.
211 2002-05-22 Alan Modra <amodra@bigpond.net.au>
213 * ldemul.c (ldemul_new_vers_pattern): New function.
214 * ldemul.h (ldemul_new_vers_pattern): Declare.
215 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
216 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
217 * emultempl/ppc64elf.em (dotsyms): New static var.
218 (gld${EMULATION_NAME}_new_vers_pattern): New function.
219 (LDEMUL_NEW_VERS_PATTERN): Define.
220 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
221 (PARSE_AND_LIST_LONGOPTS): Likewise.
222 (PARSE_AND_LIST_ARGS_CASES): Handle them.
223 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
225 * emultempl/armcoff.em: Likewise.
226 * emultempl/armelf_oabi.em: Likewise.
227 * emultempl/beos.em: Likewise.
228 * emultempl/elf32.em: Likewise.
229 * emultempl/generic.em: Likewise.
230 * emultempl/gld960.em: Likewise.
231 * emultempl/gld960c.em: Likewise.
232 * emultempl/linux.em: Likewise.
233 * emultempl/lnk960.em: Likewise.
234 * emultempl/m68kcoff.em: Likewise.
235 * emultempl/mipsecoff.em: Likewise.
236 * emultempl/pe.em: Likewise.
237 * emultempl/sunos.em: Likewise.
238 * emultempl/ticoff.em: Likewise.
239 * emultempl/vanilla.em: Likewise.
241 2002-05-22 Alan Modra <amodra@bigpond.net.au>
243 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
244 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
245 (LIB_SEARCH_DIRS): No need to use "tr".
246 (COMPILE_IN): Only set for native targets.
247 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
248 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
249 * configure.tgt (powerpc*): Set tdir_*.
250 (powerpcle*): Correct targ_extra_emuls.
251 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
252 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
254 2002-05-22 Alan Modra <amodra@bigpond.net.au>
256 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
257 calling lang_add_entry.
259 2002-05-21 H.J. Lu (hjl@gnu.org)
261 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
263 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
265 * ld.texinfo: Updated for --allow-multiple-definition and
268 * ldmain.c (main): Initialize the allow_multiple_definition
271 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
272 (ld_options): Add --allow-multiple-definition.
273 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
275 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
277 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
278 (earmelfb_nbsd.c): New rule.
279 * Makefile.in: Regenerate.
280 * configure.tgt (armeb-*-netbsdelf*): New target.
281 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
282 (arm-*-netbsd*): Likewise.
283 * emulparams/armelfb_nbsd.sh: New file.
285 2002-05-18 Tom Rix <trix@redhat.com>
287 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
290 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
292 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
293 * Makefile.in: Regenerate.
294 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
296 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
298 * emulparams/avr1.sh: New file.
299 * emulparams/avr2.sh: New file.
300 * emulparams/avr3.sh: New file.
301 * emulparams/avr4.sh: New file.
302 * emulparams/avr5.sh: New file.
303 * scripttempl/avr.sc: New file.
305 2002-05-15 Alan Modra <amodra@bigpond.net.au>
307 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
308 (lang_place_orphans): Abort if just_syms_flag.
310 2002-05-10 Tom Rix <trix@redhat.com>
312 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
313 architecture and machine information in the output bfd.
314 (gld*_before_parse): Remove old arch and machine code.
315 (choose_target): Rename to gld*_choose_target.
316 (rtld): Change type to int.
317 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
318 objects in XCOFF archives.
319 * ldfile.h: Update copyright date.
321 2002-05-10 Jakub Jelinek <jakub@redhat.com>
323 * ldmain.c (main): Enable -z combreloc by default.
325 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
327 * Makefile.am: Honour DESTDIR.
328 * Makefile.in: Regenerate.
330 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
332 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
333 (lang_enter_overlay): Remove the last two parameters.
334 (lang_leave_overlay): Take them here instead.
335 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
336 (section): Pass LMA and crossref flag to lang_leave_overlay rather
337 than lang_enter_overlay.
338 * ldlang.c (lang_memory_region_lookup): Return null for null names.
339 (lang_output_section_statement_lookup): Initialize update_dot_tree.
340 (lang_size_sections_1): Evaluate it.
341 (lang_leave_output_section_statement): Rework LMA lookup.
342 (overlay_lma, overlay_nocrossrefs): Remove.
343 (lang_enter_overlay): Remove LMA and crossref arguments.
344 (lang_enter_overlay_section): Don't set the LMA here.
345 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
346 assignment to the last section's update_dot_tree. Unconditionally
347 use the load and run-time regions specified in the OVERLAY statement.
348 Likewise the first section's LMA. Only set the other sections' LMAs
349 when no load region is given.
351 2002-05-06 Nick Clifton <nickc@redhat.com>
353 * po/sv.po: New translation.
355 2002-05-04 Alan Modra <amodra@bigpond.net.au>
357 * emultempl/hppaelf.em (build_section_lists): New function.
358 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
359 and build_section_lists.
361 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
363 * ld.h: Fix formatting.
365 * ldfile.c: Likewise.
366 * ldlang.c: Likewise.
367 * ldmain.c: Likewise.
368 * lexsup.c: Likewise.
369 * pe-dll.c: Likewise.
371 2002-05-02 Alan Modra <amodra@bigpond.net.au>
373 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
374 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
375 (build_section_lists): Do output_section tests here.
377 2002-04-30 Tom Rix <trix@redhat.com>
379 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
381 2002-05-01 Alan Modra <amodra@bigpond.net.au>
383 Long branch stubs, multiple stub sections.
384 * emultempl/ppc64elf.em: Include ldctor.h.
385 (stub_file): New var.
386 (group_size): New var.
387 (ppc_create_output_section_statements): New function.
388 (struct hook_stub_info): New.
389 (hook_in_stub): New function.
390 (ppc_add_stub_section): New function.
391 (ppc_layout_sections_again): New function.
392 (build_section_lists): New function.
393 (gld${EMULATION_NAME}_finish): Rewrite.
394 (real_func): New var.
395 (ppc_for_each_input_file_wrapper): New function.
396 (ppc_lang_for_each_input_file): New function.
397 (lang_for_each_input_file): Define.
398 (PARSE_AND_LIST_PROLOGUE): Define.
399 (PARSE_AND_LIST_LONGOPTS): Define.
400 (PARSE_AND_LIST_OPTIONS): Define.
401 (PARSE_AND_LIST_ARGS_CASES): Define.
402 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
404 2002-04-30 Tom Rix <trix@redhat.com>
406 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
407 -blibpath, -bnolibpath support.
409 2002-04-30 Mark Mitchell <mark@codesourcery.com>
411 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
412 (eelf32ppcwindiss.c): New target.
413 * Makefile.in: Regenerated.
414 * configure.tgt: Add support for powerpc-*-windiss.
415 * emulparams/elf32ppcwindiss.sh: New file.
417 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
419 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
420 * ldexp.c (exp_print_token): Add "infix_p" argument.
421 (exp_print_tree): Update accordingly.
423 2002-04-28 Alan Modra <amodra@bigpond.net.au>
425 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
426 * Makefile.in: Regenerate.
427 * mpw-elfmips.c: Delete.
428 * mpw-eppcmac.c: Delete.
430 * mpw-idtmips.c: Delete.
432 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
434 * emulparams/shelf32.sh (MACHINE): Now sh5.
436 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
438 * ldgram.y: Fix syntax warning.
440 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
442 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
443 to prevent "-n" from being taken as an abbreviation for
444 "--no-pipeline-knowledge".
446 2002-04-08 Alan Modra <amodra@bigpond.net.au>
448 * ldlang.c (lang_size_sections_1): Don't complain about
449 SEC_NEVER_LOAD sections having no memory region specified.
451 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
453 2002-04-07 matthew green <mrg@redhat.com>
455 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
457 2002-04-04 Alan Modra <amodra@bigpond.net.au>
459 * dep-in.sed: Cope with absolute paths.
460 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
462 * Makefile.in: Regenerate.
464 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
466 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
468 2002-04-03 Jakub Jelinek <jakub@redhat.com>
470 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
471 is smaller than maximum, round dot up to common page boundary.
473 2002-03-28 Alan Modra <amodra@bigpond.net.au>
475 * configure.host: Set up for generic hosts first, then tweak as
476 necessary in more specific targets.
477 (HOSTING_LIBS): Include libgcc_eh.a if found.
479 2002-03-23 Andreas Jaeger <aj@suse.de>
481 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
483 2002-03-21 Alan Modra <amodra@bigpond.net.au>
485 * Makefile.am: Run "make dep-am".
486 * Makefile.in: Regenerate.
488 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
490 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
492 2002-03-20 Alan Modra <amodra@bigpond.net.au>
494 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
495 add the symbol to the linker hash table immediately.
496 (lang_place_undefineds): Split symbol creation out..
497 (insert_undefined): ..to here.
499 2002-03-18 David O'Brien <obrien@FreeBSD.org>
501 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
502 the contents of the buffer returned from basename function will are
503 getting overwritten while still being used.
505 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
506 Andreas Jaeger <aj@suse.de>
507 Andreas Schwab <schwab@suse.de>
509 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
510 * elf_x86_64.sh (ARCH): Set to i386:x86-64
511 set libraries to default to lib64 paths.
513 2002-03-18 Tom Rix <trix@redhat.com>
515 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
516 * configure.tgt : Same.
517 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
518 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
519 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
520 emulation parameters for better -b32, -b64 support.
521 * emulparms/aixrs6.sh : Same.
522 * emulparms/ppcmacos.sh : Same.
523 * emultempl/aix.em (choose_target) : Use new emulation parameters
524 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
525 * Makefile.in : Regenerate.
527 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
529 * po/fr.po: Updated version.
531 2002-03-18 Alan Modra <amodra@bigpond.net.au>
533 * ldmain.c (main): Move .text readonly flag fudges from here..
534 * ldlang.c (lang_process): ..to here.
536 2002-03-14 Alan Modra <amodra@bigpond.net.au>
538 * ldlang.c (lang_check): Remove the word size check added in last
539 change. Treat emitrelocations case as for relocatable links.
541 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
543 * po/fr.po: Updated version.
545 2002-03-13 Alan Modra <amodra@bigpond.net.au>
547 * ldlang.c (lang_check): Do relocatable link checks first, so that
548 warn_mismatch can't override. Check compatible and word size too.
550 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
552 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
554 2002-03-05 Jakub Jelinek <jakub@redhat.com>
556 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
559 2002-03-04 H.J. Lu <hjl@gnu.org>
561 * scripttempl/elf.sc: Put .preinit_array, .init_array and
562 .fini_array in the data segment.
564 2002-03-04 Alan Modra <amodra@bigpond.net.au>
566 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
568 2002-03-01 David Mosberger <davidm@hpl.hp.com>
570 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
571 .init_array, and .fini_array.
573 2002-02-20 Andreas Schwab <schwab@suse.de>
575 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
576 .IA64_unwind* in a relocatable link.
578 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
580 * NEWS: Mark 2.12 branch.
582 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
584 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
585 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
587 2002-02-18 Tom Rix <trix@redhat.com>
589 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
590 (gld*_before_allocation): Same.
591 (gld*_create_output_section_statements): Generate
592 __rtinit if run time linking. Add librtl.a to the link.
593 (gld*_read_file): Clean.
595 2002-02-18 Alan Modra <amodra@bigpond.net.au>
597 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
599 2002-02-18 David O'Brien <obrien@FreeBSD.org>
601 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
602 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
603 and eelf64alpha_fbsd.
604 * Makefile.in: Regenerate.
605 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
606 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
607 use a FreeBSD-specific emulation rather than the psABI one.
608 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
609 for all FreeBSD ELF systems.
610 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
612 * emulparams/elf32ppc_fbsd.sh: Likewise.
613 * emulparams/elf64_ia64_fbsd.sh: Likewise.
614 * emulparams/elf64_sparc_fbsd.sh: Likewise.
615 * emulparams/elf64alpha_fbsd.sh: Likewise.
616 * emulparams/elf_i386_fbsd.sh: Likewise.
617 * emulparams/elf_x86_64_fbsd.sh: Likewise.
619 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
621 * po/tr.po: Updated version.
623 2002-02-18 Alan Modra <amodra@bigpond.net.au>
625 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
628 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
630 * emultempl/mmo.em (mmo_after_open): Don't call
631 _bfd_mmix_check_all_relocs when producing ELF output.
633 2002-02-15 Richard Henderson <rth@redhat.com>
635 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
636 definition. Emit a unop+nop pair.
638 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
640 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
641 for presence of .MMIX.reg_contents.linker_allocated before early
644 * NEWS: Mention support for MMIX.
646 2002-02-15 Alan Modra <amodra@bigpond.net.au>
648 Support arbitrary length fill patterns.
649 * ld.texinfo (Output Section Fill): Describe fill expressions.
650 (FILL): Refer to the above.
651 * ldexp.h (etree_value_type): Add "str" field.
652 (union etree_union): Add "str" to "value" struct.
653 (exp_bigintop): Declare.
654 (exp_get_fill): Declare.
655 * ldexp.c: Include "safe-ctype.h".
656 (exp_intop): Set value.str to NULL.
657 (exp_bigintop): New function.
658 (new_rel): Pass in "str", and set new.str from it.
659 (new_rel_from_section): Set new.str to NULL.
660 (fold_name): Adjust calls to new_rel.
661 (exp_fold_tree): Likewise.
662 (exp_get_fill): New function.
663 * ldgram.y (struct big_int bigint, fill_type *fill): New.
664 (INT): Returns a "bigint". Adjust all code handling INTs.
665 (fill_opt): Returns a "fill".
666 (fill_exp): Split out of fill_opt, use for FILL.
667 * ldlang.h (struct _fill_type): New.
668 (fill_type): Move typedef to ldexp.h.
669 (lang_output_section_statement_type): "fill" is now a pointer.
670 (lang_fill_statement_type): Likewise.
671 (lang_padding_statement_type): Likewise.
672 (lang_add_fill): Now takes a "fill_type *" param.
673 (lang_leave_output_section_statement): Likewise.
674 (lang_do_assignments): Likewise.
675 (lang_size_sections): Likewise.
676 (lang_leave_overlay_section): Likewise.
677 (lang_leave_overlay): Likewise.
678 * ldlang.c: Include ldgram.h after ldexp.h.
679 (lang_output_section_statement_lookup): Adjust for fill_type change.
680 (print_fill_statement): Likewise.
681 (print_padding_statement): Likewise.
682 (insert_pad): Now takes a "fill_type *" arg.
683 (size_input_section): Likewise.
684 (lang_size_sections_1): Likewise.
685 (lang_size_sections): Likewise.
686 (lang_do_assignments): Likewise.
687 (lang_add_fill): Likewise.
688 (lang_leave_output_section_statement): Likewise.
689 (lang_leave_overlay_section): Likewise.
690 (lang_leave_overlay): Likewise.
691 Adjust all callers of the above function.
692 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
693 starting with "0X" as well as "0x". Return bigint.str for hex
694 numbers starting with "0x" or "0X", zero bigint.str otherwise.
695 Always use base 16 for numbers starting with "$".
696 * ldmain.c: Include ldgram.h after ldexp.h.
697 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
698 of bfd_fill_link_order.
699 * pe-dll.c: Adjust lang_do_assignments calls.
700 * emultempl/elf32.em: Likewise.
701 * emultempl/hppaelf.em: Likewise.
702 * emultempl/ppc64elf.em: Likewise.
703 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
704 lang_add_assignment call.
705 * emultempl/pe.em: Likewise.
707 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
709 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
710 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
711 the pattern in question is not a regexp.
712 * ldlang.c: Likewise.
713 * ldlang.h: Likewise.
714 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
716 2002-02-12 Jakub Jelinek <jakub@redhat.com>
718 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
719 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
720 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
721 * ldexp.c (exp_data_seg): New variable.
722 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
723 (fold_binary): Handle DATA_SEGMENT_ALIGN.
724 (exp_fold_tree): Handle DATA_SEGMENT_END.
725 Pass allocation_done when recursing instead of hardcoding
726 lang_allocating_phase_enum.
727 * ldexp.h (exp_data_seg): New.
728 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
729 (lang_size_sections): New.
730 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
731 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
732 if COMMONPAGESIZE is defined.
733 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
734 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
735 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
736 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
737 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
740 2002-02-11 Alan Modra <amodra@bigpond.net.au>
742 * Makefile.in: Regenerate.
744 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
746 * lexsup.c: Remove strtoul declaration.
748 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
750 * ldmain.c: Add prototype for main ().
751 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
752 * emultempl/lnk960.em (lnk960_choose_target): Function should
755 2002-02-10 Alan Modra <amodra@bigpond.net.au>
757 * ldlang.c (entry_section): New initialised variable.
758 (lang_finish): Use it.
759 * ldlang.h (entry_section): Declare.
760 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
761 entry_section to ".opd".
763 2002-02-09 Chris Demetriou <cgd@broadcom.com>
765 * ld.texinfo (Options): Add back in -nostdlib documentation,
766 which had been inadvertently removed.
768 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
770 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
771 register section vma to a sane value after emitting error. Make
772 fatal conditions cause program exit when emitting message.
774 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
776 * configure.tgt: Add or32-*-rtems target.
778 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
781 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
782 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
783 in OTHER_RELOCATABLE_SECTIONS.
784 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
785 * emulparams/shelf32.sh (STACK_ADDR): Define.
786 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
787 (OTHER_SECTIONS): this. Removed stack settings.
788 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
789 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
790 2001-03-12 DJ Delorie <dj@redhat.com>
791 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
792 relaxing if any shmedia or mixed sections are found.
793 2001-03-07 DJ Delorie <dj@redhat.com>
794 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
795 einfo. Gracefully decline to output to non-elf formats.
796 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
797 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
798 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
799 * emulparams/shelf32.sh: Ditto.
800 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
801 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
803 2001-01-10 Ben Elliston <bje@redhat.com>
804 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
805 non-portable shell constructs. From Hans-Peter Nilsson.
806 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
807 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
808 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
809 dependencies to the shell script include chain.
810 * Makefile.in: Regenerate.
811 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
812 * emultempl/sh64elf.em: Update and tweak comments.
813 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
814 make a .cranges section SEC_IN_MEMORY.
815 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
816 * emultempl/sh64elf.em
817 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
818 .cranges section found to be necessary; continue and set stored
819 section contents flags for sections with non-mixed contents.
820 Use a struct sh64_section_data container and sh64_elf_section_data
821 to store contents-type flags.
822 Remove unused update of "isec".
823 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
824 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
825 access contents-type flags. Assert that the associated container
826 is initialized. Use that container, not elf_gp_size, to hold size
827 of linker-generated cranges contents.
828 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
829 * emultempl/sh64elf.em
830 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
831 there's already a .cranges section. When section flag difference
832 is found, don't NULL-check cranges a second time. Tweak comments.
833 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
834 merging, not max size, as size of ld-generated .cranges contents.
835 Don't set ELF section flags in output section. When checking for
836 needed .cranges descriptors, don't use a variable; compare
837 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
839 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
840 * emultempl/sh64elf.em: New file.
841 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
842 * Makefile.in: Regenerate.
843 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
844 (OTHER_RELOCATING_SECTIONS): Ditto.
845 (EXTRA_EM_FILE): New, set to sh64elf if not set.
846 * emulparams/shlelf32.sh: Stub out all settings except
847 OUTPUT_FORMAT. Source shelf32.sh.
848 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
849 OTHER_RELOCATING_SECTIONS.
850 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
851 * emulparams/shlelf64.sh: Stub out all settings except
852 OUTPUT_FORMAT. Source shelf64.sh.
853 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
854 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
856 (DATA_START_SYMBOLS): Define, provide ___data.
857 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
858 for consecutive .data section.
859 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
860 section after .data section.
861 * emulparams/shlelf64.sh: Ditto.
862 * emulparams/shelf32.sh: Ditto.
863 (ALIGNMENT): Define to 8.
864 * emulparams/shelf32.sh: Ditto.
865 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
866 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
867 built-in linker scripts.
868 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
869 * emulparams/shlelf64.sh: New.
870 * emulparams/shelf64.sh: New.
871 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
873 * Makefile.am: Add support for shlelf64 and shelf64.
874 * Makefile.in: Regenerate.
875 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
876 * configure.tgt (sh64-*-elf*): Add shelf as default.
877 Add shlelf to targ_extra_emuls.
878 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
879 * emulparams/shelf32.sh: New file.
880 * emulparams/shlelf32.sh: New file.
881 * Makefile.am: Add support for shlelf32 and shelf32.
882 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
883 * Makefile.in: Regenerate.
885 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
887 * ldlang.c (lang_reset_memory_regions): Rename from
888 reset_memory_regions. Change all callers. Make public.
889 * ldlang.h (lang_reset_memory_regions): Prototype.
890 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
891 lang_reset_memory_regions before lang_size_sections.
892 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
893 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
895 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
897 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
898 arithmetic when checking for too many global registers.
900 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
902 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
903 (ehppanbsd.c): New rule.
904 * Makefile.in: Regenerate.
905 * configure.tgt (hppa*-*-netbsd*): New target.
906 * emulparams/hppalinux.sh: Add comment to check other files
907 that source this file it is modified, and list which
909 * emulparams/hppanbsd.sh: New file.
911 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
913 * scripttempl/xstormy16.sc: Don't allocate extra space for the
916 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
918 Support on-demand global register allocation from
919 R_MMIX_BASE_PLUS_OFFSET relocs.
920 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
921 mmix_set_reg_section_vma. Call
922 _bfd_mmix_finalize_linker_allocated_gregs.
923 (mmix_before_allocation): New function.
924 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
925 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
926 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
927 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
928 before .MMIX.reg_contents.
929 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
930 (mmo_after_open): New function.
931 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
932 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
933 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
935 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
937 * emulparams/or32.sh: New file.
938 * emulparams/or32elf.sh: New file.
939 * scripttempl/or32.sc: New file.
940 * configure.tgt : Add support for or32.
941 * configure: Regenerate
942 * Makefile.am: Add support for or32.
943 * Makefile.in: Regenerate.
944 * NEWS: Mention support for or32.
945 * po/ld.pot: Regenerate.
947 2002-01-29 Chris Demetriou <cgd@broadcom.com>
948 Mitch Lichtenberg <mpl@broadcom.com>
950 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
951 * emultempl/mipself.em: New file to handle MIPS ELF embedded
952 reloc creation (ld --embedded-relocs).
954 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
956 * configure: Regenerated.
958 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
960 * Makefile.am (install): Depend on install-info.
961 * Makefile.in: Regenerate.
963 2002-01-26 Christian Rose <menthos@menthos.com>
965 * ldmain.c (main): Use full sentences to ease translation.
967 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
969 * po/fr.po: Updated version.
971 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
973 * po/es.po: Updated version.
975 2002-01-25 Andreas Jaeger <aj@suse.de>
977 * ldlex.l (yy_input): Correct error check.
979 2002-01-25 Alan Modra <amodra@bigpond.net.au>
981 * ldmisc.c (demangle): Put back dots when string not demangled.
983 2002-01-22 Richard Henderson <rth@redhat.com>
985 * emulparams/elf64alpha.sh (NOP): Use unop.
987 2002-01-21 Andreas Jaeger <aj@suse.de>
989 * ldlex.l: Use fread instead of read.
991 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
993 * configure.tgt (ia64-*-netbsd*): New target.
995 2002-01-21 H.J. Lu <hjl@gnu.org>
997 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
999 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
1001 2002-01-18 Andreas Jaeger <aj@suse.de>
1003 * ldver.c (ldversion): Update year.
1005 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
1007 * po/ld.pot: Regenerate.
1009 2002-01-16 Alan Modra <amodra@bigpond.net.au>
1011 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
1012 * Makefile.in: Regenerate.
1013 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
1014 * emultempl/ppc64elf.em: New file.
1016 2002-01-15 DJ Delorie <dj@redhat.com>
1018 * scripttempl/pe.sc: Add support for constructor priorities.
1020 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1022 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1023 * emulparams/avr23xx.sh: Likewise.
1024 * emulparams/avr4433.sh: Likewise.
1025 * emulparams/avr44x4.sh: Likewise.
1026 * emulparams/avr85xx.sh: Likewise.
1027 * emulparams/avrmega103.sh: Likewise.
1028 * emulparams/avrmega161.sh: Likewise.
1029 * emulparams/avrmega603.sh: Likewise.
1030 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1032 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1034 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1035 archive is excluded.
1037 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1039 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1040 (eshelf_nbsd.c): New rule.
1041 (eshlelf_nbsd.c): New rule.
1042 * Makefile.in: Regenerate.
1043 * configure.tgt (sh*le-*-netbsdelf*): New target.
1044 (sh*-*-netbsdelf*): New target.
1045 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1046 * ld/emulparams/shelf_nbsd.sh: New emulation.
1047 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1049 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1051 * po/es.po: New file: Spanish translation.
1052 * configure.in (ALL_LINGUAS): Add es.
1053 * configure: Regenerate.
1055 2002-01-06 John Marshall <jmarshall@acm.org>
1057 * ld.texinfo: Note that --emit-relocs is currently only
1058 implemented for ELF.
1060 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1062 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1063 of bfd_section_list_remove and bfd_section_list_insert macros.
1064 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1065 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1067 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1069 * configure.tgt (x86_64-*-netbsd*): New target.
1071 2001-12-21 Tom Rix <trix@redhat.com>
1073 (gld*_create_output_section_statements): New function.
1074 For -binitfini support.
1075 * emultempl/aix.em (gld*_before_parse): Fix comment.
1076 * emultempl/aix.em (gld*_parse_args): Fix comment.
1078 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1080 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1082 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1084 * configure.tgt (arm-*-netbsdelf*): Add target.
1085 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1086 * emulparams/armelf_nbsd.sh: Added.
1087 * Makefile.am: Add rules for earmelf_nbsd.
1088 * Makefile.in: Regenerate.
1090 2001-12-19 Andreas Jaeger <aj@suse.de>,
1091 Susanne Oberhauser <froh@suse.de>
1093 * configure.host: Add rules for x86_64-*linux-gnu. Change
1094 s390x-linux entry to use gcc to report configuration, replace gcc
1095 with $CC in s390-linux
1097 2001-12-19 Andreas Jaeger <aj@suse.de>
1099 * ld.texinfo (VERSION): Fix markup.
1101 2001-12-18 matthew green <mrg@eterna.com.au>
1103 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1104 (m68kelfnbsd.c): New rule.
1105 * Makefile.in: Regenerate.
1106 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1107 (m68*-*-netbsd*4k*): .. this.
1108 (m68*-*-netbsdelf*): New target.
1109 (m68*-*-netbsd*): Also include ELF support.
1110 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1111 * emulparams/m68kelfnbsd.sh: New emulation.
1113 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1115 * ldgram.y (vers_node): Support anonymous version tags.
1116 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1117 tag is not defined together with non-anonymous versions.
1118 * ld.texinfo: Document it.
1120 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1122 * po/tr.po: New file: Turkish translation.
1123 * configure.in (ALL_LINGUAS): Add tr.
1124 * configure: Regenerate.
1126 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1128 * Makefile.am: Add rules for eelf64alpha_nbsd.
1129 * Makefile.in: Regenerate.
1130 * configure.tgt (alpha*-*-netbsd*): Set
1131 targ_emul to elf64alpha_nbsd.
1132 * emulparams/elf64alpha_nbsd.sh: Added.
1134 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1136 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1137 section_tail when fiddling with section list.
1138 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1139 broken into separate strings to make translation easier.
1140 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1141 fiddling with section list.
1142 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1144 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1146 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1148 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1150 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1152 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1154 * emultempl/elf32.em (finish): Supply output_bfd
1155 to bfd_elf*_discard_info.
1156 (OPTION_EH_FRAME_HDR): Define.
1157 (longopts): Add --eh-frame-hdr.
1158 (parse_args): Handle it.
1159 (list_options): Add --eh-frame-hdr to help.
1160 * emultempl/hppaelf.em (finish): Supply output_bfd
1161 to bfd_elf*_discard_info.
1162 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1164 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1166 * lexsup.c (parse_args): Don't pass shortopts to second call to
1167 getopt functions. Restore optind rather than decrementing before
1168 second call. Remove errind as it now duplicates last_optind.
1170 2001-12-11 Christopher Faylor <cgf@redhat.com>
1172 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1174 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1175 Richard Henderson <rth@redhat.com>
1177 * Makefile.am: Add support for xstormy16.
1178 * configure.tgt: Add support for xstormy16.
1179 * Makefile.in: Regenerate.
1180 * emulparams/elf32xstormy16.sh: New file.
1181 * scripttempl/xstormy16.sc: New file.
1183 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1185 * Makefile.in (LIB_PATH): Make configurable.
1186 (GENSCRIPTS): Set LIB_PATH in environment.
1187 * configure.in: Substitute LIB_PATH.
1188 * configure: Regenerate.
1189 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1190 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1192 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1194 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1195 describing the -N option so that it is easier to translate into
1198 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1200 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1201 statements describing a single option with a single, newline
1202 escaped fprintf. This allows better translation into other
1205 * ldmain.c (add_archive_element): Combine multiple strings
1206 into a single string to permit better translation into other
1209 2001-12-05 Tom Rix <trix@redhat.com>
1211 * Makefile.am: Remove eaixppc64.
1212 * Makefile.in: Regenerate.
1214 2001-12-04 Tom Rix <trix@redhat.com>
1216 * emultempl/aix.em (choose_target): Change default target to
1217 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1219 (gld*_read_file): Fix typo.
1220 (change_symbol_mode): Add prototype.
1223 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1224 * emulparams/aixrs6.sh : Same.
1225 * emulparams/ppcmacos.sh : Same.
1226 * emulparams/aixppc64.sh : Delete file.
1227 * emultempl/aix.em : Formatting changes.
1229 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1231 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1232 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1234 (OTHER_END_SYMBOLS): Fix formatting.
1235 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1236 (OTHER_END_SYMBOLS): Fix formatting.
1238 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1240 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1242 2001-12-02 Tom Rix <trix@redhat.com>
1244 * configure.tgt : Remove eaixppc64 emulations.
1245 * Makefile.in : Remove eaixppc64.c
1246 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1247 (ldemul_default_target): Same.
1248 * emultempl/gld960.em (gld960_choose_target): Same.
1249 * emultempl/gld960c.em (gld960_choose_target): Same.
1250 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1251 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1252 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1253 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1254 * emultempl/aix.em (choose_target): New function. Handle emulation of
1257 2001-11-27 H.J. Lu <hjl@gnu.org>
1259 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1260 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1261 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1262 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1263 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1264 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1265 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1266 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1268 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1271 (REL_SDATA): Likewise.
1272 (REL_SBSS): Likewise.
1273 (REL_SDATA2): Likewise.
1274 (REL_SBSS2): Likewise.
1275 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1278 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1280 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1282 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1284 2001-11-22 H.J. Lu <hjl@gnu.org>
1286 * Makefile.in: Regenerated with automake based on automake
1287 1.4-8 in RedHat 7.1.
1289 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1291 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1292 (config.status): Delete rule.
1293 Add extra dependencies to cover sourced emulparams files.
1294 * Makefile.in: Regenerate.
1296 * scripttempl/elf.sc: Order <section>, <section>.* and
1297 corresponding linkonce sections as seen in input files.
1298 Formatting fixes. Zero vma of all sections if not relocating.
1299 (STACK): Define and insert if STACK_ADDR defined.
1300 (OTHER_RELOCATING_SECTIONS): Delete.
1301 (OTHER_END_SYMBOLS): Define.
1302 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1303 (OTHER_READWRITE_SECTIONS): Likewise.
1304 (OTHER_GOT_SECTIONS): Likewise.
1305 (OTHER_SDATA_SECTIONS): Likewise.
1306 (OTHER_BSS_SECTIONS): Likewise.
1307 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1308 (OTHER_READWRITE_SECTIONS): Likewise.
1309 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1310 (OTHER_READWRITE_SECTIONS): Likewise
1312 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1313 (STACK_ADDR): Define.
1314 * emulparams/armelf_oabi.sh: As for armelf.sh.
1315 * emulparams/elf32mcore.sh: As for armelf.sh.
1316 * emulparams/h8300elf.sh: As for armelf.sh.
1317 * emulparams/mn10200.sh: As for armelf.sh.
1318 * emulparams/shelf.sh: As for armelf.sh.
1320 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1321 (OTHER_END_SYMBOLS): Define.
1322 * emulparams/m32relf.sh: As for elf32fr30.sh.
1323 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1324 * emulparams/h8300self.sh: As for elf32fr30.sh.
1326 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1327 defines with RELOCATING test.
1328 (OTHER_SDATA_SECTIONS): Likewise.
1329 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1330 (OTHER_END_SYMBOLS): ..this.
1331 * emulparams/crislinux.sh: As for criself.sh.
1333 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1335 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1336 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1337 normal and linkonce sections as seen in input files.
1338 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1339 (TEXT_DYNAMIC): Likewise.
1340 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1341 (OTHER_SDATA_SECTIONS): Likewise.
1342 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1343 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1344 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1345 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1346 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1347 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1348 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1349 sections as seen in input files.
1350 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1351 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1353 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1354 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1355 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1356 (OTHER_SECTIONS): Instead, use this..
1357 (OTHER_END_SYMBOLS): ..and this.
1359 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1360 * emulparams/elf32bsmip.sh: Likewise.
1361 * emulparams/elf32btsmip.sh: Likewise.
1362 * emulparams/elf32ebmip.sh: Likewise.
1363 * emulparams/elf32lmip.sh: Likewise.
1364 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1365 * emulparams/elf32lsmip.sh: Likewise.
1366 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1367 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1368 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1369 * emulparams/elf64btsmip.sh: Likewise.
1370 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1371 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1372 * emulparams/elf32ppclinux.sh: Likewise.
1373 * emulparams/elf32ppcsim.sh: Likewise.
1374 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1375 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1376 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1377 * emulparams/h8300self.sh: Likewise.
1378 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1379 * emulparams/sh.sh: Comment.
1380 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1381 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1382 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1384 2001-11-21 David Heine <dlheine@tensilica.com>
1385 Alan Modra <amodra@bigpond.net.au>
1387 * ldlang.c (map_input_to_output_sections): Replace "break"
1388 accidentally removed with 2001-08-03 change.
1389 (lang_gc_sections_1): Likewise.
1391 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1393 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1395 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1397 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1398 of false when calling lang_size_sections.
1399 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1401 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1403 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1404 function when LDEMUL_FINISH isn't set to the same name. Don't
1405 call ${LDEMUL_FINISH}.
1406 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1407 * emultempl/armelf.em (arm_elf_finish): Call
1408 gld${EMULATION_NAME}_finish.
1409 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1410 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1411 hppaelf_layout_sections_again if necessary.
1412 (need_laying_out): New var.
1413 (hppaelf_layaout_sections_again): Rename to
1414 hppaelf_layout_sections_again. Clear need_laying_out.
1415 (PARSE_AND_LIST_OPTIONS): Format text.
1417 2001-11-14 H.J. Lu <hjl@gnu.org>
1419 * emultempl/armelf.em (arm_elf_finish): Renamed from
1420 gld${EMULATION_NAME}_finish.
1421 (LDEMUL_FINISH): Set to arm_elf_finish.
1423 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1425 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1426 (struct ld_emulation_xfer_struct): Use it.
1428 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1430 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1431 additional symbols referenced by newer crt0.o files from HP.
1433 2001-11-12 Anthony Green <green@redhat.com>
1435 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1437 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1439 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1440 * Makefile.in: Regenerate.
1442 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1444 * ld.texinfo: Use @command for commands, @option for options.
1445 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1447 * Makefile.in: Rebuild.
1449 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1451 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1452 Add support for targets.
1454 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1456 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1457 * configure: Regernate.
1458 * po/fr.po: New file.
1459 * po/sv.po: New file.
1461 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1463 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1464 as little endian default and to support big endian.
1466 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1468 * ld.texinfo (Options): Document new option, -nostdlib.
1469 * lexsup.c (OPTION_NOSTDLIB): New definition.
1470 (ld_options): Add entry for "nostdlib".
1471 (parse_args): Handle OPTIONS_NOSTDLIB.
1472 * ldfile.c (ldfile_add_library_path): Don't add directories
1473 to the search path if they weren't specified on the command line
1474 and -nostdlib was specified.
1475 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1477 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1479 * lexsup.c (parse_args): Prevent infinite parsing loop when
1480 "-rpath.a" is specified on the command line.
1481 Replace calls to fprintf with calls to einfo.
1483 2001-10-31 John Marshall <jmarshall@acm.org>
1485 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1486 appear only once across all the linker scripts involved in a link
1487 invocation no longer applies. Make the documentation reflect
1490 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1492 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1494 (sh-*-linux*): Added targ_extra_libpath.
1496 2001-10-31 David Heine <dlheine@tensilica.com>
1498 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1499 for padding statements.
1501 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1503 * configure.tgt (mmix-*-*): New target.
1504 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1505 Add dependencies to match.
1506 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1507 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1508 scripttempl/mmo.sc: New files.
1509 * gen-doc.texi: @set MMIX.
1510 * ld.texinfo: Ditto.
1511 [MMIX] Add MMIX node.
1512 * Makefile.in: Regenerate.
1514 2001-10-29 Kazu Hirata <kazu@hxi.com>
1516 * ldlang.c: Fix a comment typo.
1518 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1520 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1521 entries, and match *-*-linux*.
1523 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1525 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1526 with ldlex_script, ldlex_popstate.
1527 (ifile_p1): Likewise.
1528 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1530 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1531 to 1. Don't BEGIN(SCRIPT).
1532 (lex_redirect): Similarly.
1533 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1535 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1537 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1538 __EH_FRAME_END__ and accept eh frames into data section.
1539 Add ctor and dtor sections.
1541 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1543 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1544 (auto-export): Fix indentation.
1546 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1548 * pe-dll.c (autofilter_objectlist): Add startup objects
1550 (auto-export): Constify char * p.
1551 Extract file basename and use strcmp rather than ststr
1554 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1556 * ldmain.c (get_emulation): Improve comment about the handling
1559 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1561 * po/POTFILES.in: Regenerate.
1563 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1565 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1566 -z nocopyreloc and -z nocombreloc usage strings.
1568 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1570 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1573 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1575 * scripttempl/armaout.sc: Place .bss section after end of aligned
1576 data section to match behaviour of aout code in constructrion of
1579 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1581 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1582 startup files for mingw32 dlls to list.
1584 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1586 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1588 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1590 * configure.tgt (targ): Add arm9e-*-elf.
1592 2001-10-05 H.J. Lu <hjl@gnu.org>
1594 * genscripts.sh: Fix a typo in the last change.
1596 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1598 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1599 -z nocombreloc in usage.
1601 2001-10-03 Jim Blandy <jimb@redhat.com>
1603 * genscripts.sh: Include a comment at the top of each generated
1604 script, explaining its purpose.
1606 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1608 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1609 * NEWS: Mention -z nocopyreloc.
1610 * ld.texinfo (Options): Describe nocopyreloc.
1612 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1614 * configure: Regenerate.
1616 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1618 * ldver.h (ld_program_version): Remove declaration.
1619 * lexsup.c (parse_args): Move printing of copyright message..
1620 * ldver.c (ldversion): .. to here.
1621 Use BFD_VERSION_STRING in place of BFD_VERSION.
1622 (ld_program_version): Remove.
1623 * Makefile.am (Makefile): Depend on bfd/configure.in.
1625 * Makefile.in: Regenerate.
1627 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1629 * Makefile.am: Update dependencies with "make dep-am".
1630 * Makefile.in: Regenerate.
1632 2001-09-29 John Reiser <jreiser@BitWagon.com>
1634 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1635 * lexsup.c: Add --no-define-common commandline option.
1636 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1637 * ldlex.l: Likewise.
1638 * ld.h: Add command_line.inhibit_common_definition.
1639 * ldmain.c (main): Initialize.
1640 * ld.texinfo: Document.
1642 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1644 * ldmisc.c (USE_STDARG): Remove.
1645 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1650 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1651 declarations. Update copyright.
1653 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1655 * pe-dll.c: Remove obsoleted declaration of
1656 pe_get_data_import_dll_name.
1657 (pe_create_import_fixup): Fix thinko.
1659 * ld.texinfo(enable-auto-import): Clarify the explanation.
1661 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1663 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1664 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1665 DLL_SUPPORT controlled code.
1667 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1669 * emultempl/pe.em(pe_data_import_dll): Make static.
1670 (pe_get_data_import_dll_name): New accessor function.
1671 * pe-dll.c(pe_create_import_fixup): call
1672 pe_get_data_import_dll_name() from pe.em, instead of
1673 directly accessing pe_data_import_dll variable from pe.em.
1675 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1677 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1678 (def_file_add_directive): Use ISSPACE instead of isspace.
1679 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1680 isdigit/isxdigit/isalpha/isalnum.
1681 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1682 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1683 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1684 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1686 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1687 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1689 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1690 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1691 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1692 (ctor_prio): Use ISDIGIT instead of isdigit.
1693 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1694 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1695 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1697 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1698 (stricpy): Use TOLOWER instead of isupper/tolower.
1699 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1700 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1701 (lex_warn_invalid): Use ISPRINT instead of isprint.
1702 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1703 (main): For gettext, also set the LC_CTYPE locate facet.
1704 (add_keepsyms_file): Use ISSPACE instead of isspace.
1705 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1706 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1707 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1708 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1709 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1710 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1711 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1712 (quoteput): Use ISSPACE instead of isspace.
1713 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1716 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1718 * deffilep.y (def_stash_module): Constify "name" param.
1720 * pe-dll.c: Replace CONST with const throughout.
1721 (quick_symbol): Constify "n1", "n2", "n3" params.
1722 (make_singleton_name_thunk): Constify "import" param. Make
1723 "buffer_len" a size_t.
1724 (make_import_fixup_entry): Constify "name", "fixup_name",
1725 "dll_symname" params.
1726 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1727 (pe_get32): Likewise.
1728 (pe_implied_import_dll): Likewise.
1730 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1731 (sort_by_section_name): Likewise.
1733 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1734 (make_import_fixup): Cast printf arg, rel->address to long rather
1736 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1738 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1740 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1741 defines BufferSize. Increase buffer size by one.
1743 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1745 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1747 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1749 * configure.tgt: Add arm-openbsd target.
1751 2001-09-12 H.J. Lu <hjl@gnu.org>
1753 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1755 (ALL_64_EMULATIONS): Here.
1756 * Makefile.in: Regenerated.
1758 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1760 * emultempl/pe.em(make_import_fixup): change signature to
1761 take asection as well as arelec; we need this for proper
1762 error reporting. Only call pe_create_import_fixup() if
1763 there is no attempt to add a constant addend to the reloc;
1764 otherwise, report error condition.
1765 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1766 since final argument is a pointer to make_import_fixup().
1767 Change call to cb() to match make_import_fixup() signature.
1768 (make_import_fixup_mark): make buffer_len unsigned.
1769 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1771 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1773 * ld.texinfo: add verbose documentation for auto-import
1774 direct-addressing workaround, to compliment the terse
1777 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1779 * scripttempl/v850.sc: Add gcc_except_table sections.
1781 2001-09-11 Jeffrey A Law (law@cygnus.com)
1783 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1784 * emulparams/h8300self.sh: Similarly.
1786 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1788 * ld.texinfo (Options, --stack): Correct default value for stack
1791 2001-09-05 Tom Rix <trix@redhat.com>
1793 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1795 2001-09-03 Andreas Jaeger <aj@suse.de>
1797 * emultempl/beos.em: Declare prototypes for comparions functions,
1800 2001-09-02 Andreas Jaeger <aj@suse.de>
1802 * emultempl/aix.em: Add missing prototype.
1803 * emultempl/lnk960.em: Likewise.
1804 * emultempl/vanilla.em: Likewise.
1805 * emultempl/armcoff.em: Likewise.
1806 * emultempl/armelf_oabi.em: Likewise.
1807 * emultempl/beos.em: Likewise.
1808 * emultempl/gld960c.em: Likewise.
1809 * emultempl/gld960.em: Likewise.
1811 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1812 for prototype declaration.
1814 2001-08-31 Eric Christopher <echristo@redhat.com>
1815 Jason Eckhardt <jle@redhat.com>
1817 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1819 2001-08-31 Andreas Jaeger <aj@suse.de>
1821 * emultempl/pe.em: Add missing prototypes.
1822 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1823 pe_find_data_imports.
1824 (pr_sym): Add unused attribute.
1826 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1828 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1829 default from coff to elf.
1831 2001-08-29 Jeff Law <law@redhat.com>
1833 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1835 * emulparams/h8300self.sh: Similarly.
1837 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1839 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1841 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1842 * configure.tgt (h8300-*-elf*): New case.
1843 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1844 * emulparams/h8300self.sh: New file.
1845 * Makefile.in: Regenerated.
1847 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1849 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1852 2001-08-27 Linus Nordberg <linus@swox.com>
1853 Alan Modra <amodra@bigpond.net.au>
1855 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1856 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1858 * Makefile.in: Regenerate.
1859 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1860 entries to correct alphabetical position.
1861 * emulparams/elf64ppc.sh: New.
1862 * emulparams/elf64lppc.sh: New.
1864 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1866 * ldmain.c (main): Declare BSIZE as static.
1868 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1870 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1871 into .rel.dyn resp. .rela.dyn if combreloc.
1872 (get_script): If .x linker script is equal to .xn, only put it
1873 once into the binary.
1874 Add .xc and .xsc scripts.
1875 (parse_args): Handle -z combreloc and -z nocombreloc.
1876 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1877 For .xc and .xsc scripts put all .rel* or .rela* input sections
1878 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1879 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1881 Strip trailing whitespace from script.
1882 Generate .xc and .xsc scripts if requested.
1883 * ldmain.c (main): Initialize link_info.combreloc and
1884 link_info.spare_dynamic_tags.
1885 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1886 (ld_options): Add --spare-dynamic-tags option.
1887 (parse_args): Likewise.
1888 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1889 * ldint.texinfo: Document .xc and .xsc linker scripts.
1890 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1892 2001-08-22 H.J. Lu <hjl@gnu.org>
1894 * emulparams/elf32fr30.sh: Add a newline.
1896 2001-08-21 Andreas Jaeger <aj@suse.de>
1898 * deffilep.y: Add missing prototypes.
1899 * pe-dll.c: Likewise.
1901 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1903 * ldlang.c (insert_pad): Fix typos in last patch.
1905 * ldlang.c: When traversing lang_statement_union_type lists,
1906 consistently use "header.next" rather than "next".
1907 * mpw-eppcmac.c: Likewise.
1908 * emultempl/beos.em: Likewise.
1909 * emultempl/hppaelf.em: Likewise.
1910 * emultempl/pe.em: Likewise.
1911 * ldlang.h (union lang_statement_union): Remove "next" field.
1913 * ldlang.c (insert_pad): Use offsetof macro.
1914 (lang_size_sections): Always neuter padding statements.
1915 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1917 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1918 passed to lang_size_sections.
1919 (pe_exe_fill_sections): Likewise.
1920 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1921 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1923 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1925 * emultempl/aix.em: Formatting fixes.
1927 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1929 * ldlang.c (insert_pad): Make use of an existing pad statement if
1930 available. Move code calculating alignment, adjusting section
1931 alignment power, and adjusting dot to ..
1932 (size_input_section): .. here. Remove unused relax param.
1933 (lang_size_sections): Change boolean `relax' param to boolean *.
1934 Adjust call to size_input_section. Make use of insert_pad to
1935 place pad after the assignment statement. If relaxing, zap
1937 (reset_memory_regions): Reset output_bfd section sizes too.
1938 (relax_again): Move to..
1939 (lang_process): ..here. Adjust call to lang_size_sections, and
1940 remove duplicated code.
1941 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1943 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1945 * ld.texinfo: Document that fill values now use the four least
1947 * emulparams/elf32fr30.sh (NOP): Update.
1948 * emulparams/elf32mcore.sh: Likewise.
1949 * emulparams/elf64_s390.sh: Likewise.
1950 * emulparams/elf_i386.sh: Likewise.
1951 * emulparams/elf_i386_be.sh: Likewise.
1952 * emulparams/elf_i386_chaos.sh: Likewise.
1953 * emulparams/elf_i386_ldso.sh: Likewise.
1954 * emulparams/elf_s390.sh: Likewise.
1955 * emulparams/elf_x86_64.sh: Likewise.
1956 * emulparams/i386moss.sh: Likewise.
1957 * emulparams/i386nw.sh: Likewise.
1958 * emulparams/m68kelf.sh: Likewise.
1959 * scripttempl/elf.sc: Update NOP comment.
1960 * scripttempl/elfi370.sc: Likewise.
1961 * scripttempl/elfm68hc11.sc: Likewise.
1962 * scripttempl/elfm68hc12.sc: Likewise.
1963 * scripttempl/nw.sc: Likewise.
1965 2001-08-15 Tom Rix <trix@redhat.com>
1967 * ldgram.y (saved_script_handle): Initialize to NULL.
1968 * ldmain.c (main): Change check on saved_script_handle.
1970 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1972 * emultempl/elf32.em: Formatting fixes.
1973 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1974 looking at sec->owner.
1975 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1976 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1977 unused code, and reorganize orphan section placement code.
1979 * ldlang.c (wild_doit): Rename to lang_add_section.
1980 * ldlang.h: Here too.
1981 * mpw-elfmips.c: And here.
1982 * emultempl/beos.em: And here.
1983 * emultempl/elf32.em: And here.
1984 * emultempl/hppaelf.em: And here.
1985 * emultempl/pe.em: And here.
1987 2001-08-13 Richard Henderson <rth@redhat.com>
1989 * emultempl/needrelax.em: New file.
1990 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1991 * Makefile.am (eelf64_ia64.c): Depend on it.
1992 * Makefile.in: Rebuild.
1994 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1996 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1997 output_section is set non-NULL.
1999 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
2000 `true' for SEC_EXCLUDE sections so that the generic code doesn't
2001 needlessly create an output_section_statement. Treat a correctly
2002 named output_section_statement with NULL bfd_section as compatible.
2004 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
2006 * emultempl/generic.em: Support EXTRA_EM_FILE.
2007 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
2008 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2009 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2010 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2011 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2012 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2013 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2014 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2015 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2016 LDEMUL_FIND_POTENTIAL_LIBRARIES.
2018 2001-08-12 Richard Henderson <rth@redhat.com>
2020 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
2021 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2022 scripttempl/v850.sc: Keep .jcr data.
2024 2001-08-12 H.J. Lu <hjl@gnu.org>
2025 Andrew Haley <aph@cambridge.redhat.com>
2026 Nick Clifton <nickc@redhat.com>
2028 * ldgram.y (had_script): Change name to saved_script_handle.
2029 Change type to file handle.
2030 * ld.h (had_script): Rename and retype.
2031 * ldfile.c (ldfile_open_command_file): Save the file handle
2032 used in saved_script_handle.
2033 * lexsup.c (parse_args): Do not allow -c option to alter
2034 saved_script_handle.
2035 * ldmain.c (main): Print out the linker script used if
2036 --verbose is given. Check saved_script_handle to obtain the
2037 external linker script used, or if NULL, dump the builtin
2039 * ld.texinfo: Document that --verbose now dumps the linker
2040 script used, regardless of whether it was an internal or an
2043 2001-08-10 Andreas Jaeger <aj@suse.de>
2045 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2047 * configure: Regenerate.
2049 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2051 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2053 * scripttempl/elf.sc: Move non-text .dynamic section before
2054 .plt/.got/.sdata* group.
2055 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2056 (OTHER_SDATA_SECTIONS): Add.
2057 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2059 * emulparams/crislinux.sh: Likewise.
2060 * emulparams/elf32b4300.sh: Likewise.
2061 * emulparams/elf32bmip.sh: Likewise.
2062 * emulparams/elf32bmipn32.sh: Likewise.
2063 * emulparams/elf32bsmip.sh: Likewise.
2064 * emulparams/elf32btsmip.sh: Likewise.
2065 * emulparams/elf32ebmip.sh: Likewise.
2066 * emulparams/elf32elmip.sh: Likewise.
2067 * emulparams/elf32l4300.sh: Likewise.
2068 * emulparams/elf32lmip.sh: Likewise.
2069 * emulparams/elf32lsmip.sh: Likewise.
2070 * emulparams/elf32ltsmip.sh: Likewise.
2071 * emulparams/elf64bmip.sh: Likewise.
2072 * emulparams/elf64btsmip.sh: Likewise.
2073 * emulparams/elf64ltsmip.sh: Likewise.
2075 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2077 * genscripts.sh: Source the emulparams script before each output
2078 script is generated so that variables like `RELOCATING' may affect
2079 variables defined in the emulparams script.
2081 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2083 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2086 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2087 ie. iterate over wild_statement.section_list.
2088 (gld${EMULATION_NAME}_place_orphan): Likewise.
2090 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2092 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2093 .fini[0-4] sections used by _exit
2094 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2095 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2096 * scripttempl/elfm68hc11.sc: Likewise.
2098 2001-08-03 H.J. Lu <hjl@gnu.org>
2100 * emultempl/beos.em (init): Add the missing initialization.
2102 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2104 * ld.texinfo (Input Section Basics): Clarify ordering of output
2106 * ldlang.c (callback_t): Add wildcard_list param.
2107 (walk_wild_section): Remove "section" param. Rewrite for
2108 lang_wild_statement_type change. Remove unique_section_p test.
2109 (walk_wild_file): Remove "section" param.
2110 (walk_wild): Remove "section" and "file" params.
2111 (lang_gc_wild): Likewise.
2112 (wild): Likewise. Modify for lang_wild_statement_type change.
2113 (wild_sort): Likewise. Add "sec" param.
2114 (gc_section_callback): Likewise.
2115 (output_section_callback): Likewise. Do unique_section_p test.
2116 (map_input_to_output_sections): Modify call to wild.
2117 (lang_gc_sections_1): Likewise.
2118 (print_wild_statement): Modify for lang_wild_statement_type
2120 (lang_add_wild): Replace filename, filenames_sorted param with
2121 filespec. Replace section_name, sections_sorted,
2122 exclude_filename_list with section_list.
2123 * ldlang.h (lang_add_wild): Here too.
2124 (lang_wild_statement_type): Replace section_name, sections_sorted,
2125 and exclude_filename_list with section_list.
2126 * ldgram.y (current_file): Delete.
2127 (%union): Add wildcard_list.
2128 (file_NAME_list): Set type to wildcard_list. Build a linked list
2129 rather than calling lang_add_wild for each entry.
2130 (input_section_spec_no_keep): Call lang_add_wild here instead.
2131 * ld.h (struct wildcard_list): Declare.
2132 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2134 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2136 * ldmain.c (main): initialize link_info.pei386_auto_import
2137 * pe-dll.c: new tables for auto-export filtering
2138 (auto_export): change API, pass abfd for contextual filtering.
2139 Loop thru tables of excluded symbols instead of comparing
2142 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2144 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2145 static variable current_sec (static struct sec *). Add
2146 forward declaration for add_bfd_to_link.
2147 (process_def_file): Don't export undefined symbols. Do not
2148 export symbols starting with "_imp__". Call auto_export()
2150 (pe_walk_relocs_of_symbol): New function.
2151 (generate_reloc): add optional extra debugging
2152 (pe_dll_generate_def_file): eliminate extraneous initial blank
2154 (make_one): enlarge symtab to make room for __nm__ symbols
2155 (DATA auto-import support).
2156 (make_singleton_name_thunk): New function.
2157 (make_import_fixup_mark): New function.
2158 (make_import_fixup_entry): New function.
2159 (pe_create_import_fixup): New function.
2160 (add_bfd_to_link): Specify that 'name' argument is a CONST
2162 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2163 declare new functions pe_walk_relocs_of_symbol and
2164 pe_create_import_fixup.
2165 * emultempl/pe.em: add new options --enable-auto-import,
2166 --disable-auto-import, and --enable-extra-pe-debug.
2167 (make_import_fixup): New function.
2168 (pe_find_data_imports): New function.
2169 (pr_sym): New function.
2170 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2171 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2174 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2176 * ld.texinfo: add additional documentation for
2177 --export-all-symbols. Document --out-implib,
2178 --enable-auto-image-base, --disable-auto-image-base,
2179 --dll-search-prefix, --enable-auto-import, and
2180 --disable-auto-import.
2181 * ldint.texinfo: Add detailed documentation on auto-import
2184 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2186 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2189 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2191 * Makefile.am: Update dependencies with "make dep-am".
2192 * Makefile.in: Regenerate
2194 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2196 * ldcref.c (check_section_sym_xref): New function.
2197 (check_nocrossrefs): Call it.
2198 (check_nocrossref): Interate over h->refs here instead of..
2199 (check_refs): ..here. Pass in the symbol name, section, and bfd
2200 rather than hash_entry pointers.
2201 (struct check_refs_info): Keep symbol name rather than hash entry.
2203 (check_reloc_refs): Tweak for above changes in check_refs_info.
2204 Only report references to section syms when symname is NULL to
2205 prevent duplicate messages for the same reloc.
2207 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2209 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2210 available. Do not print NULL trees.
2211 (exp_print_token): Print unknown tokens with values > 126 as
2212 decimal values not ASCII characters.
2214 * ldlang.c (lang_leave_overlay): If a region is specified assign
2215 it to all sections inside the overlay unless they have been
2216 assigned to the own, non-default, memory region.
2218 * README: Add header for consistency with other README files.
2220 2001-07-14 H.J. Lu <hjl@gnu.org>
2222 * emultempl/elf32.em (output_prev_sec_find): Never return
2223 bfd_abs_section_ptr, bfd_com_section_ptr nor
2224 bfd_und_section_ptr.
2226 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2228 * Makefile.am (em32relf.c): Change dependency from generic.em to
2230 * Makefile.in: Regenerate.
2232 2001-07-14 matthew green <mrg@eterna.com.au>
2234 * configure.tgt (i386-*-netbsdelf*): New target.
2235 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2237 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2239 * emultempl/elf32.em (output_prev_sec_find): New.
2240 (place_orphan): Use it.
2242 2001-07-11 H.J. Lu <hjl@gnu.org>
2244 * ldmain.c (main): Fix typos in the last change.
2246 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2248 * ldmain.c (main): Disallow -F and -f without -shared.
2250 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2252 * emultempl/pe.em (after_open): Check for the output_bfd not
2253 having any coff_data structure allocated to it.
2255 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2257 * emultempl/elf32.em: Do not assuming that contents of the buffer
2258 returned from basename function will remain unchanged accross other
2261 2001-07-03 H.J. Lu <hjl@gnu.org>
2263 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2264 2001-07-03. It creates dynamic entries even for static binaries.
2266 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2268 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2269 (DYNAMIC): Use it to reserve few dynamic entries for
2272 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2274 * emulparams/hppa64linux.sh: New file.
2275 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2276 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2277 (ehppa64linux.c): Add rule to make it.
2279 * Makefile.in: Regenerate.
2281 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2283 * ld.texinfo (Options, -r): Mention restrictions when using
2284 different object formats.
2286 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2288 * ldlang.c (lang_check): Emit fatal error if relocatable link
2289 between different object flavours with relocations in input.
2291 2001-06-19 H.J. Lu <hjl@gnu.org>
2293 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2294 (--version-script): Mention the language support.
2296 2001-06-19 H.J. Lu <hjl@gnu.org>
2298 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2300 2001-06-18 H.J. Lu <hjl@gnu.org>
2302 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2303 (diststuff): Add $(MANS).
2304 * Makefile.in: Regenerated.
2308 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2310 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2311 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2312 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2313 * ld.h (args_type): Remove member export_dynamic. All users
2314 changed to use struct bfd_link_info member.
2316 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2317 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2318 * Makefile.in: Regenerate.
2320 2001-06-18 H.J. Lu <hjl@gnu.org>
2322 * ldlang.c (init_os): Add the newline to the einfo call.
2323 (lang_check): Likewise.
2324 (lang_do_version_exports_section): Likewise.
2326 2001-06-15 H.J. Lu <hjl@gnu.org>
2328 * lexsup.c (parse_args); Save optind to report unrecognized
2331 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2333 * ldlang.c (lang_check): Emit fatal error if relocatable link
2334 between different object flavours.
2336 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2337 Set new link_info member export_dynamic.
2338 * ldmain.c (main): Initialize new link_info member export_dynamic.
2340 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2342 * ldlang.c (walk_wild): Only call walk_wild_file if
2343 lookup_name returns something.
2344 (lookup_name): If load_symbols fails, return NULL.
2345 (load_symbols): Change to a boolean function.
2346 (open_input_bfds): If load_symbols fails then do not make the
2349 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2351 * ldlang.c (record_bfd_errors): Remove.
2353 * emultempl/aix.em: Fix copyright dates.
2355 2001-06-07 Andreas Jaeger <aj@suse.de>
2357 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2358 (TEXT_START_ADDR): Likewise.
2360 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2362 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2364 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2366 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2368 2001-05-31 H.J. Lu <hjl@gnu.org>
2370 * ldlang.c (open_input_bfds): Don't change the bfd error
2371 handler whilst loading symbols.
2373 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2375 * configure.tgt: Remove i370-mvs architecture, it is not currently
2378 2001-05-25 H.J. Lu <hjl@gnu.org>
2380 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2381 like emulparams/aixppc.sh.
2383 2001-05-25 H.J. Lu <hjl@gnu.org>
2385 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2386 setting of output_filename after bfd_scan_arch.
2387 * emultempl/pe.em: Likewise.
2389 2001-05-25 H.J. Lu <hjl@gnu.org>
2391 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2392 like emulparams/aixppc.sh.
2394 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2395 instead of ${srcdir}/emultempl/stringify.sed.
2397 2001-05-25 Timothy Wall <twall@oculustech.com>
2399 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2402 2001-05-25 Alan Modra <amodra@one.net.au>
2404 * configure.host: Replace linuxoldld with linux*oldld.
2405 * configure.tgt: Likewise.
2407 2001-05-24 H.J. Lu <hjl@gnu.org>
2409 * emultempl/stringify.sed: Removed again.
2411 2001-05-24 H.J. Lu <hjl@gnu.org>
2413 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2414 (gld${EMULATION_NAME}_before_parse): Initialize
2415 ldfile_output_architecture, ldfile_output_machine and
2416 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2417 * emultempl/beos.em: Likewise.
2418 * emultempl/elf32.em: Likewise.
2419 * emultempl/linux.em: Likewise.
2420 * emultempl/mipsecoff.em: Likewise.
2421 * emultempl/pe.em: Likewise.
2422 * emultempl/sunos.em: Likewise.
2424 2001-05-24 Tom Rix <trix@redhat.com>
2426 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2427 udate import file format.
2428 (change_symbol_mode) New, same
2429 (is_syscall) New, same
2430 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2431 * emulparams/aixppc64.sh : same
2432 * emulparams/aixrs6.sh : same
2433 * emulparams/ppcmacos.sh : same
2434 * emultempl/aix.em : use strtoull to parse options
2435 * Makefile.am : add eaixppc64 emulation for xcoff64
2436 * Makefile.in : same
2437 * configure.tgt : same
2439 * scripttempl/aix.sc : default text section offset to 0x10000000
2440 default data section offset to 0x20000000
2441 add .sv3264 and .sv64 pseudo sections
2442 loader and debug sections use the currect section offset.
2444 * emultempl/aix.em : Add xcoff64 support
2445 Add -binitfini support
2446 (gld${EMULATION_NAME}_before_parse) -binitfini
2447 (gld${EMULATION_NAME}_parse_args) same
2448 (gld${EMULATION_NAME}_before_allocation) format change for special
2451 * emulparams/aixppc64.sh : New file for xcoff64 support
2453 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2455 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2456 variable to avoid non-portable shell construct.
2458 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2460 * ldmain.c (get_emulation): Add -mips5 command line argument.
2462 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2464 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2465 (ELF_INTERPRETER_NAME): Define it.
2466 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2468 * configure.tgt (targ_emul, targ_extra_emuls)
2469 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2470 as primary, elf_i386 as extra.
2471 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2472 (eelf_i386_ldso.c): New rule.
2473 * Makefile.in: Rebuilt.
2475 2001-05-22 Nick Clifton <nickc@redhat.com>
2477 * lexsup.c (ld_options): Allow -I to be an alias for
2478 --dynamic-linker. This is for Solaris compatability.
2479 * ld.texinfo: Document that -I can be used.
2482 2001-05-16 Alan Modra <amodra@one.net.au>
2484 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2485 whether an input section is the first one assigned to an output
2487 Assorted formatting fixes.
2489 2001-05-14 DJ Delorie <dj@delorie.com>
2491 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2492 * Makefile.in: Ditto.
2494 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2496 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2497 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2499 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2501 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2503 * ldlang.c (lang_process): Call bfd_merge_sections.
2505 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2507 * ldgram.y: Fix typo.
2509 2001-05-03 H.J. Lu <hjl@gnu.org>
2511 * emultempl/elf32.em: Include "libiberty.h".
2512 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2513 basename of the bfd filename.
2514 (gld${EMULATION_NAME}_stat_needed): Likewise.
2515 (gld${EMULATION_NAME}_try_needed): Likewise.
2516 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2518 2001-05-02 H.J. Lu <hjl@gnu.org>
2520 * emultempl/pe.em: Include <ctype.h>.
2522 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2524 * emulparams/elf32openrisc.sh: New file.
2526 * Makefile.am: Add OpenRISC target.
2527 * Makefile.in: Regenerated.
2529 * configure.tgt: Add openrisc-*-* mapping.
2531 2001-05-02 Nick Clifton <nickc@redhat.com>
2533 * emultempl/aix.em: Replace buystring with xstrdup.
2534 * emultempl/beos.em: Replace buystring with xstrdup.
2536 2001-05-02 H.J. Lu <hjl@gnu.org>
2538 * ldfile.c: Include "libiberty.h".
2539 * ldlex.l: Likewise.
2541 * ldmisc.c (buystring): Removed.
2542 * ldmisc.h: Likewise.
2544 * ldfile.c: Replace buystring with xstrdup.
2545 * ldlang.c: Likewise.
2546 * ldlex.l: Likewise.
2547 * ldmain.c: Likewise.
2548 * ldmisc.c: Likewise.
2549 * lexsup.c: Likewise.
2550 * mpw-eppcmac.c: Likewise.
2552 2001-04-30 Andreas Jaeger <aj@suse.de>
2554 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2556 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2558 * ldlang.c (load_symbols): Give emulation a chance
2559 to process unrecognized file before fatal error is
2560 reported, not after.
2562 2001-04-27 Sean McNeil <sean@mcneil.com>
2564 * configure.tgt: Add arm-vxworks target.
2565 * scripttempl/armcoff.sc: Support .text or .data as a section name
2569 2001-04-13 J.T. Conklin <jtc@redback.com>
2571 * ld.texinfo: Document --fatal-warnings.
2574 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2575 warnings have been turned into errors.
2576 * lexsup.c (OPTION_WARN_FATAL): Define.
2577 (ld_options): Entry for --fatal-warnings.
2578 (parse_args): Handle OPTION_WARN_FATAL.
2579 * ld.h (ld_config_type): Add fatal_warnings field.
2581 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2583 * ldmain.c (main): Default to discard_sec_merge.
2584 * lexsup.c (OPTION_DISCARD_NONE): Define.
2585 (ld_options): Add --discard-none.
2586 (parse_args): Handle OPTION_DISCARD_NONE.
2587 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2588 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2589 all its input sections match.
2591 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2593 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2594 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2595 (eelf32ltsmip.c): New target.
2596 (eelf64btsmip.c): Likewise.
2597 (eelf64ltsmip.c): Likewise.
2598 * Makefile.in: Regenerated.
2600 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2602 (mips*-*-linux-gnu*): Likewise.
2604 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2606 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2608 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2611 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2613 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2614 correct value of __Stext here.
2615 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2618 * emulparams/crislinux.sh: Remove FIXME.
2620 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2622 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2623 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2625 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2627 * configure.tgt (cris-*-*): Change default emulation to criself.
2628 (cris-*-*aout*): New rule.
2630 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2632 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2633 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2635 2001-03-26 Andreas Jaeger <aj@suse.de>
2637 * ld.texinfo (Overview): Fix syntax in texi code.
2639 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2641 * ld.texinfo: Put @c man indications to generate the ld man page.
2642 When generating man, define all the variables. Define SEEALSO
2643 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2644 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2645 (ld.1): Generate from ld.texinfo.
2646 * Makefile.in: Regenerate.
2648 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2650 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2651 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2653 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2655 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2656 is an absolute path look only for this file and not along the path.
2658 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2660 * emultempl/elf32.em (OPTION_GROUP): New macro.
2661 Add new option Bgroup to longopts.
2662 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2663 (gld*_list_options): Add -Bgroup and -z defs.
2664 * ld.1: Document -Bgroup and -z defs.
2665 * ld.texinfo: Likewise.
2667 2001-03-07 Michael Meissner <meissner@redhat.com>
2669 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2670 with sections created by -fdata-sections.
2671 (.dynbss,.bss): Ditto.
2673 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2675 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2676 after_allocation_default, not gld..._before_allocation.
2678 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2680 * configure.in (BFD_VERSION): New.
2681 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2682 * configure: Regenerate.
2683 * Makefile.am: Run "make dep-am"
2684 * Makefile.in: Regenerate.
2686 2001-02-26 Timothy Wall <twall@cygnus.com>
2688 * emulparams/elf64_aix.sh: Add additional read-only sections;
2689 uncomment lines which are now required.
2691 2001-02-26 H.J. Lu <hjl@gnu.org>
2693 * ldlang.c (open_input_bfds): Set the bfd error handler so
2694 that problems can be caught whilst loading symbols.
2695 (record_bfd_errors): New function: Report BFD errors and mark
2696 the executable output as being invalid.
2698 2001-02-22 Timothy Wall <twall@cygnus.com>
2700 * configure.host: Add configuration for ia64-*-aix*.
2701 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2702 Add dependencies for eelf64_aix.c.
2703 * Makefile.in: Regenerate.
2704 * configure.tgt: Add ia64-*-aix* mapping.
2705 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2706 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2709 2001-02-20 H.J. Lu <hjl@gnu.org>
2711 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2712 false if we found the file.
2714 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2716 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2717 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2719 2001-02-18 lars brinkhoff <lars@nocrew.org>
2721 * Makefile.am: Add PDP-11 target.
2722 * configure.tgt: Likewise.
2723 * emulparams/pdp11.sh: New file.
2725 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2727 * configure.host: Add a generic FreeBSD configuration entry such that
2728 all [modern] FreeBSD systems on all platforms will look the same.
2730 2001-02-14 H.J. Lu <hjl@gnu.org>
2732 * configure.tgt: Remove mention of earmelf_linux26.
2734 2001-02-13 Richard Henderson <rth@redhat.com>
2736 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2738 2001-02-13 H.J. Lu <hjl@gnu.org>
2740 * ldexp.h (node_type): Add etree_provided.
2741 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2742 type to etree_provided if defined by PROVIDE. Allow updating
2744 (exp_print_tree): Handle etree_provided.
2745 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2748 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2750 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2751 .IA_64.unwind.* pattern to unwind table section and
2752 .IA_64.unwind_info* pattern to unwind info section.
2754 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2756 * Makefile.am: Add linux target for S/390.
2757 * Makefile.in: Likewise.
2758 * configure.host: Likewise.
2759 * configure.tgt: Likewise.
2760 * emulparams/elf64_s390.sh: New file.
2761 * emulparams/elf_s390.sh: New file.
2763 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2765 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2767 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2769 2001-02-06 Philip Blundell <philb@gnu.org>
2771 * Makefile.am: Remove mention of earmelf_linux26.
2772 * Makefile.in: Regenerate.
2774 2001-02-04 Philip Blundell <philb@gnu.org>
2776 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2777 * emulparams/armelf_linux26.sh: Delete.
2778 * configure.tgt: Remove mention of armelf_linux26 emulation.
2780 2001-02-01 Nick Clifton <nickc@redhat.com>
2782 * ld.1: Replace occurances of -oformat with --oformat.
2784 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2786 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2787 load_base is specified.
2789 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2791 * emultempl/elf32.em: Correct spelling in comments and listed
2794 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2796 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2797 default for the first section of a group of overlay sections.
2799 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2801 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2802 * Makefile.in: Regenerate.
2803 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2804 Check for null tool_dir.
2806 2001-01-16 Jim Wilson <wilson@redhat.com>
2808 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2809 and IA_64.unwind.info.
2811 2001-01-16 H.J. Lu <hjl@gnu.org>
2813 * ldlang.c (lang_check): Merge the private data only if the
2814 input file has contents.
2816 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2818 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2820 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2821 enabling search for libmilli. On a relocatable link, make .text
2823 (LDEMUL_AFTER_PARSE): Define.
2824 (hppaelf_finish): Correct spelling of relocatable in comments.
2826 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2827 rummage through the script for sections on the unique list.
2828 Correct length of strncmp for ".note".
2829 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2831 * ldlang.c (unique_section_list): New var.
2832 (unique_section_p): New function.
2833 (walk_wild_section): Don't match sections on unique_section_list.
2834 (lang_add_unique): New function.
2835 Correct spelling of relocatable in comments.
2837 * ldlang.h (struct unique_sections): Declare.
2838 (unique_section_list): Declare.
2839 (unique_section_p): Declare.
2840 (lang_add_unique): Declare.
2842 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2843 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2845 * ld.texinfo (--unique): Update.
2847 2001-01-13 Nick Clifton <nickc@redhat.com>
2849 * lexsup.c (parse_args): Remove spurious white space.
2851 2001-01-12 Nick Clifton <nickc@redhat.com>
2853 * lexsup.c (parse_args): Update copyright date.
2855 2001-01-12 Philip Blundell <pb@futuretv.com>
2857 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2859 2001-01-10 Kazu Hirata <kazu@hxi.com>
2861 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2862 * scripttempl/h8300h.sc: Fix formatting.
2863 * scripttempl/h8300s.sc: Likewise.
2864 * scripttempl/h8500.sc: Likewise.
2865 * scripttempl/h8500b.sc: Likewise.
2866 * scripttempl/h8500c.sc: Likewise.
2867 * scripttempl/h8500m.sc: Likewise.
2868 * scripttempl/h8500s.sc: Likewise.
2870 2000-01-07 David O'Brien <obrien@BSDi.com>
2872 * emultempl/elf32.em: Only perform Linux ld hints processing when
2875 2001-01-07 Philip Blundell <philb@gnu.org>
2877 * ld.texinfo (Bug Reporting): Update email address for reports.
2879 2000-12-31 Nick Clifton <nickc@redhat.com>
2881 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2882 options by checking for a return value of '?' not -1.
2884 2000-12-28 Nick Clifton <nickc@redhat.com>
2886 * lexsup.c (struct ld_option): Add new enum value:
2888 (ld_options[]): Change -omagic, -output and -oformat options
2889 to be EXACTLY_TWO_DASHES.
2890 (OUTPUT_COUNT): Use ARRAY_SIZE.
2891 (parse_args): Change parameter 'argc' to unsigned.
2892 Place EXACTLY_TWO_DASHES options into new really_longopts
2894 If getopt_long_only fails, try calling getopt_long using the
2895 really_longopts array.
2896 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2899 * ldlex.h: Fix prototype of parse_args.
2901 * ld.texinfo: Document that long options starting with 'o'
2902 must be preceeded by two dashes. Change example of a single
2903 dashed long option from -oformat to -trace-symbol.
2905 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2907 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2908 (longopts[]): New --no-default-excludes option.
2909 (gld_${EMULATION_NAME}_list_options): Document.
2910 (gld_${EMULATION_NAME}_parse_args): Handle.
2912 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2914 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2915 whitespace, it breaks the K&R C preprocessor.
2917 2000-12-11 DJ Delorie <dj@redhat.com>
2919 * ld.texinfo: Add notes about --whole-archive and gcc.
2921 2000-11-18 Fred Fish <fnf@be.com>
2923 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2924 (ld_options): Entry for --allow-shlib-undefined.
2925 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2926 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2928 * ld.texinfo: Document new command line switch.
2930 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2932 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2933 .fixup is actually read/write.
2934 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2935 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2936 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2938 2000-12-11 Jan Hubicka <jh@suse.cz>
2940 * NEWS: Add note about x86_64 architecture.
2942 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2944 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2945 Set DWARF2 sections to a VMA of zero.
2947 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2949 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2951 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2952 (sparc*-*-rtems*): Switched from a.out to ELF.
2954 2000-11-30 Jan Hubicka <jh@suse.cz>
2956 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2957 (eelf_x86_64.c): New.
2958 * Makefile.in: Regenerate.
2959 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2960 * emulparams/elf_x86_64.sh: New.
2962 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2964 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2965 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2967 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2968 merging non-a.out sections into CONSTRUCTING.
2970 2000-11-28 Nick Clifton <nickc@redhat.com>
2972 * ld.1 (COPYING): Mention that the GNU Free Documentation
2973 License is present in the sources, but not the output, and
2974 also available from the GNU website.
2975 (GNU Free Documentation License): Comment out this section.
2977 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2979 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2982 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2984 * ld.1: Remove old date so it does not give the impression the manpage
2987 2000-11-24 Nick Clifton <nickc@redhat.com>
2989 * configure.tgt (xscale-coff): Add target.
2990 (xscale-elf): Add target.
2992 2000-11-24 Fred Fish <fnf@be.com>
2994 * ldmain.c (main): Remove redundant init of config.make_executable
2997 2000-11-15 Richard Henderson <rth@redhat.com>
2999 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
3001 2000-11-14 Kazu Hirata <kazu@hxi.com>
3003 * scripttempl/h8300.sc: Fix formatting.
3004 * scripttempl/h8300h.sc: Likewise.
3005 * scripttempl/h8300s.sc: Likewise.
3007 2000-11-14 Denis Chertykov <denisc@overta.ru>
3009 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
3011 2000-11-09 Philip Blundell <pb@futuretv.com>
3013 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
3014 around orphan sections whose names can be represented in C.
3016 2000-11-07 Jim Wilson <wilson@redhat.com>
3018 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
3019 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
3021 2000-11-06 Nick Clifton <nickc@redhat.com>
3023 * ld.texinfo: Add GNU Free Documentation License.
3024 * ldint.texinfo: Add GNU Free Documentation License.
3025 * ld.1: Add GNU Free Documentation License.
3027 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3029 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3030 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3032 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3033 Move 2000-11-02 Makefile.in changes to this file.
3034 * Makefile.in: Regenerate.
3036 2000-11-03 Nick Clifton <nickc@redhat.com>
3038 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3039 constructors and destructors.
3040 * scripttempl/h8300h.sc: Ditto.
3041 * scripttempl/h8300s.sc: Ditto.
3042 * scripttempl/h8500.sc: Ditto.
3043 * scripttempl/h8500b.sc: Ditto.
3044 * scripttempl/h8500c.sc: Ditto.
3045 * scripttempl/h8500m.sc: Ditto.
3046 * scripttempl/h8500s.sc: Ditto.
3047 * scripttempl/v850.sc: Ditto.
3048 * scripttempl/w65.sc: Ditto.
3049 * scripttempl/z8000.sc: Ditto.
3051 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3053 * Makefile.in (e_i386_chaos.c): New rule.
3054 (ALL_EMULATIONS): Added e_i386_chaos.o.
3055 * emulparams/elf_i386_chaos.sh: New file.
3056 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3058 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3060 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3061 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3062 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3063 library path suffix.
3064 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3066 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3068 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3069 for consecutive sections.
3071 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3073 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3075 * ld.texinfo: Added notes about this new option.
3077 2000-10-16 Nick Clifton <nickc@redhat.com>
3079 * emultempl/pe.em (_after_open): Add tests of return values from
3080 bfd functions. Emit appropriate error messages if necessary.
3082 2000-10-13 Nick Clifton <nickc@redhat.com>
3084 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3085 local variables - they are not used, but leave in the call to
3086 bfd_canonicalize_symtab.
3087 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3088 pe_dll_search_prefix.
3090 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3092 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3093 (longopts): New --dll-search-prefix option.
3094 (gld_${EMULATION_NAME}_list_options): Document.
3095 (gld_${EMULATION_NAME}_parse_args): Handle.
3096 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3097 dynamically, search for a dll named '<prefix><basename>.dll'
3098 in preference to 'lib<basename>.dll' if --dll-search-prefix
3101 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3103 * ldlang.c (section_already_linked): Set kept_section instead of
3106 2000-10-10 Kazu Hirata <kazu@hxi.com>
3108 * deffile.h: Fix formatting.
3109 * lexsup.c: Likewise.
3112 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3114 * pe-dll.c (make_one): Do not generate code thunk for DATA
3116 (process_def_file): deduce DATA flag for auto-export sumbols.
3118 2000-10-09 Kazu Hirata <kazu@hxi.com>
3120 * ld.h: Fix formatting.
3121 * ldcref.c: Likewise.
3122 * ldctor.h: Likewise.
3123 * ldemul.c: Likewise.
3124 * ldemul.h: Likewise.
3125 * ldexp.c: Likewise.
3126 * ldexp.h: Likewise.
3127 * ldfile.c: Likewise.
3128 * ldfile.h: Likewise.
3129 * ldlang.c: Likewise.
3130 * ldlang.h: Likewise.
3131 * ldmain.c: Likewise.
3132 * pe-dll.c: Likewise.
3134 * pe-dll.c: Revert some formatting fixes.
3136 2000-10-08 Kazu Hirata <kazu@hxi.com>
3138 * pe-dll.c: Fix formatting.
3140 2000-10-05 Kazu Hirata <kazu@hxi.com>
3142 * ldlang.c: Fix formatting.
3144 2000-10-03 DJ Delorie <dj@redhat.com>
3146 * pe-dll.c (fill_edata): initialize entire block
3147 (make_one): fill in correct section.
3149 2000-10-03 Kazu Hirata <kazu@hxi.com>
3151 * ldexp.c: Fix formatting.
3153 2000-10-02 DJ Delorie <dj@redhat.com>
3155 * emultempl/pe.em (gld_*_after_open): detect case where there two
3156 import libraries for same dll; rename one to ensure proper link
3159 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3161 (generate_edata): fix typo
3163 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3165 * scripttempl/crisaout.sc (ENTRY): Now __start.
3166 (.text): Add default setting for __start.
3167 Remove CONSTRUCTORS handling.
3168 (/DISCARD/): Add .gnu.warning.*.
3169 * emulparams/crislinux.sh (ENTRY): Now __start.
3170 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3171 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3172 (ENTRY): Now __start.
3173 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3174 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3176 2000-09-29 Kazu Hirata <kazu@hxi.com>
3178 * deffile.h: Fix formatting.
3180 * ldcref.c: Likewise.
3181 * ldctor.c: Likewise.
3182 * ldctor.h: Likewise.
3183 * ldemul.c: Likewise.
3184 * ldemul.h: Likewise.
3185 * ldexp.c: Likewise.
3186 * ldexp.h: Likewise.
3187 * ldfile.c: Likewise.
3188 * ldfile.h: Likewise.
3189 * ldlang.c: Likewise.
3190 * ldlang.h: Likewise.
3191 * lexsup.c: Likewise.
3193 * pe-dll.c: Likewise.
3195 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3197 * pe-dll.c (process_def_file): Uninitialized data wasn't
3198 exported with --export-all-symbols switch.
3200 2000-09-28 DJ Delorie <dj@redhat.com>
3202 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3203 noname work properly.
3205 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3207 * ld.texinfo (HPPA ELF32): New section.
3209 * emultempl/hppaelf.em (group_size): New.
3210 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3211 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3212 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3213 options to prevent abbreviations matching.
3214 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3215 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3217 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3219 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3220 on the m68*-*-elf target. Make it support COFF input objects.
3222 2000-09-21 Kazu Hirata <kazu@hxi.com>
3224 * ldmain.c: Fix formatting.
3225 * ldmisc.c: Likewise.
3226 * ldver.c: Likewise.
3227 * ldwrite.c: Likewise.
3229 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3231 * ldwrite.c (clone_section): Silence gcc warnings.
3233 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3235 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3236 out of memory failure.
3238 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3239 (clone_section): Handle out of memory failures. Rename var to
3240 avoid c++ reserved word.
3242 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3244 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3245 stub_name param to stub_sec_name.
3246 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3248 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3250 * emultempl/m68kelf.em: New file.
3251 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3252 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3253 * Makefile.in: Regenerate.
3255 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3257 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3260 2000-09-13 Nick Clifton <nickc@redhat.com>
3262 * ldmain.c (multiple_definition): Disable relaxation if
3263 multiple symbol definitions are encountered - otherwise the
3264 linker could abort with an assertion failure.
3266 2000-09-10 Nick Clifton <nickc@redhat.com>
3268 * mri.c: Fix formatting.
3270 2000-09-07 H.J. Lu <hjl@gnu.org>
3272 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3273 * configure: Rebuild.
3275 2000-09-07 H.J. Lu <hjl@gnu.org>
3277 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3278 * Makefile.in: Rebuild.
3280 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3282 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3283 broken list handling. Create __start_SECNAME and __stop_SECNAME
3284 when no place-holder. Add some comments. Test both SEC_CODE and
3285 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3286 Handle case where no output section statement created.
3288 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3290 * configure.tgt (sh-*-linux*): Added.
3291 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3292 * Makefile.in: Rebuilt.
3293 * emulparams/shelf_linux.sh: New file.
3294 * emulparams/shlelf_linux.sh: New file.
3296 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3298 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3299 try shuffling sections when the orphan happens to be the place
3300 holder. Keep count of unique section names generated so we speed
3301 the search for a new name.
3303 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3305 * configure: Rebuilt with new libtool.m4.
3307 2000-09-05 Nick Clifton <nickc@redhat.com>
3309 * Makefile.in: Regenerate.
3310 * aclocal.m4: Regenerate.
3311 * configure: Regenerate.
3312 * config.in: Regenerate.
3313 * po/ld.pot: Regenerate.
3315 * ldint.texinfo: Remove CVS revision marker - it foils local
3318 * emultempl/ticoff.em: Remove extraneous comma.
3320 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3322 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3323 to stub section flags.
3324 (hppa_for_each_input_file_wrapper): New.
3325 (hppa_lang_for_each_input_file): New.
3326 (lang_for_each_input_file): Define to call above.
3327 (multi_subspace): New.
3328 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3329 (PARSE_AND_LIST_PROLOGUE): Define.
3330 (PARSE_AND_LIST_LONGOPTS): Define.
3331 (PARSE_AND_LIST_OPTIONS): Define.
3332 (PARSE_AND_LIST_ARGS_CASES): Define.
3333 (hppaelf_finish): Call elf32_hppa_set_gp.
3334 (hppaelf_set_output_arch): Remove.
3335 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3337 * emulparams/hppalinux.sh (ELFSIZE): Define.
3339 (OTHER_READONLY_SECTIONS): Define.
3341 (GENERATE_SHLIB_SCRIPT): Define.
3343 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3344 to const throughout. Change `void *' to `PTR' throughout.
3345 (lang_memory_default): Function is local to file, add `static'.
3347 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3348 (ehppalinux.c): Likewise.
3349 (earmelf.c): Likewise.
3350 (earmelf_linux.c): Likewise.
3351 (earmelf_linux26.c): Likewise.
3352 * Makefile.in: Regenerate.
3354 * ld.h (ld_config_type): Add unique_orphan_sections.
3355 * lexsup.c (OPTION_UNIQUE): Define.
3356 (ld_options): Add "--unique".
3357 (parse_args): Handle it.
3358 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3359 search for an existing output section if unique_orphan_sections is
3360 set. Make use of bfd_get_unique_section_name rather than
3361 duplicating code here.
3362 * ld.texinfo: Describe --unique.
3364 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3365 optional arg to split-by-file.
3366 (parse_args): Handle them.
3367 * ld.texinfo: Update description of these options.
3368 * ldwrite.c (clone_section): Pass in the section name. Replace
3369 local code with bfd_get_unique_section_name.
3370 (split_sections): Tidy code and comments. Use a list traversal
3371 more appropriate to the list construction. Handle cooked section
3372 sizes. Split when split_by_reloc reached rather than exceeded.
3373 Track section size and split when split_by_file reached. Fix
3374 link_order_tail (even though it's not used).
3375 (ldwrite): Modify condition for calling split_sections to suit
3376 changed split_by_reloc and split_by_file.
3377 * ldmain.c (main): Init config.split_by_reloc and
3378 config.split_by_file to -1.
3379 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3380 Change split_by_file to bfd_size_type.
3382 2000-09-02 Nick Clifton <nickc@redhat.com>
3384 * configure.in: Increase version number to 2.10.91.
3385 * NEWS: Mention new ability to support removal of duplicate DWARF2
3387 * configure: Regenerate.
3388 * aclocal.m4: Regenerate.
3389 * config.in: Regenerate.
3391 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3393 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3395 * scripttempl/elf32avr.sc: Ditto.
3396 * scripttempl/elfd10v.sc: Ditto.
3397 * scripttempl/elfd30v.sc: Ditto.
3398 * scripttempl/elfi370.sc: Ditto.
3399 * scripttempl/elfm68hc11.sc: Ditto.
3400 * scripttempl/elfm68hc12.sc: Ditto.
3401 * scripttempl/elfi386beos.sc: Ditto.
3402 * scripttempl/v850.sc: Ditto.
3404 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3406 * acinclude.m4: Include libtool and gettext macros from the
3408 * aclocal.m4, configure: Rebuilt.
3410 2000-08-25 Nick Clifton <nickc@redhat.com>
3412 * ldlang.c (open_output): When choosing the target for a
3413 particular endianness, do nothing if the target is not
3416 2000-08-25 H.J. Lu <hjl@gnu.org>
3418 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3419 check -rpath nor LD_RUN_PATH for cross link.
3420 * ld.texinfo: Document the change.
3422 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3424 * NEWS: Mention support for CRIS.
3426 2000-08-23 H.J. Lu <hjl@gnu.org>
3428 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3429 the current runpath list from bfd_elf_get_runpath_list ()
3432 2000-08-22 H.J. Lu <hjl@gnu.org>
3434 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3435 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3436 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3437 trace_file_tries is non-zero.
3438 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3439 if trace_file_tries is non-zero.
3441 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3444 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3446 * NEWS: Mention i860 support.
3448 2000-08-14 Andreas Schwab <schwab@suse.de>
3450 * scripttempl/elf.sc: Fix last change to use correct comment
3453 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3455 * scripttempl/elf.sc: Add a comment giving the correspondence
3456 between sections, per-datum sections, and linkonce sections. Make
3457 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3460 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3462 * emulparams/elf32_i860.sh: New file.
3463 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3464 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3465 (eelf32_i860.c): New rule.
3466 * Makefile.in: Regenerate.
3468 2000-08-10 Nick Clifton <nickc@cygnus.com>
3470 * emulparams/mipspe.sh (ENTRY): Add definition.
3472 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3474 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3477 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3479 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3480 the final size of .bss section.
3481 * scripttempl/elfm68hc12.sc: Likewise.
3483 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3485 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3486 gld${EMULATION_NAME}_parse_args for consistency. Combine
3487 lastoptind and prevoptind vars, and keep track of last optind.
3488 (gld_${EMULATION_NAME}_list_options): Rename to
3489 gld${EMULATION_NAME}_list_options.
3491 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3493 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3494 (i586-sco-sysv5uw7.1.0).
3496 2000-07-27 H.J. Lu <hjl@gnu.org>
3498 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3499 (PARSE_AND_LIST_PROLOGUE): New.
3500 (PARSE_AND_LIST_LONGOPTS): Likewise.
3501 (PARSE_AND_LIST_OPTIONS): Likewise.
3502 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3503 (PARSE_AND_LIST_EPILOGUE): Likewise.
3505 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3507 * emultempl/armelf.em: Elide functions common to elf32.em,
3508 ie. most of the file.
3509 (arm_elf_after_open): New. Do arm specific things then call
3510 gld${EMULATION_NAME}_after_open.
3511 (arm_elf_before_allocation): New. Call
3512 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3513 (PARSE_AND_LIST_PROLOGUE): Define.
3514 (PARSE_AND_LIST_SHORTOPTS): Define.
3515 (PARSE_AND_LIST_LONGOPTS): Define.
3516 (PARSE_AND_LIST_OPTIONS): Define.
3517 (PARSE_AND_LIST_ARGS_CASES): Define.
3518 (LDEMUL_AFTER_OPEN): Define.
3519 (LDEMUL_BEFORE_ALLOCATION): Define.
3520 (LDEMUL_BEFORE_PARSE): Define.
3521 (LDEMUL_FINISH): Define.
3523 * emultempl/hppaelf.em: Similarly zap most of this file.
3524 (hppaelf_add_stub_section): Prototype.
3525 (hppaelf_layaout_sections_again): Prototype.
3526 (hook_in_stub): Prototype.
3527 (LDEMUL_SET_OUTPUT_ARCH): Define.
3528 (LDEMUL_FINISH): Define.
3529 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3531 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3532 (EXTRA_EM_FILE): New.
3533 * emulparams/armelf_linux.sh: Likewise.
3534 * emulparams/armelf_linux26.sh: Likewise.
3535 * emulparams/hppalinux.sh: Likewise.
3536 * emulparams/hppaelf.sh: Likewise.
3539 * emultempl/elf32.em: Fix formatting.
3540 (EXTRA_EM_FILE): Source it.
3541 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3542 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3543 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3544 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3545 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3546 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3547 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3548 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3549 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3550 allow functions in this file to be overridden.
3551 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3553 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3555 * emultempl/elf32.em: Reorganize file.
3557 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3559 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3560 specific option to fit 64-bit executable in the lower
3561 31-bit address range. This is done by changing start
3562 address of .interp (the very first section of executable)
3563 and then setting EF_ALPHA_32BIT elf header flag.
3565 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3567 * emultempl/m68kcoff.em: New file.
3568 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3569 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3571 * Makefile.in: Regenerate.
3573 2000-07-20 H.J. Lu <hjl@gnu.org>
3575 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3576 and "disable-new-dtags" to stop getopt from treating -d/-e as
3577 abbreviations for these options.
3579 2000-07-20 H.J. Lu <hjl@gnu.org>
3581 * ld.texinfo: Add documentation for --disable-new-dtags and
3584 * ldmain.c (main): Initialize link_info.new_dtags to false.
3586 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3587 --disable-new-dtags and --enable-new-dtags.
3588 (gld_${EMULATION_NAME}_list_options): Likewise.
3590 2000-07-05 Kenneth Block <krblock@computer.org>
3592 * lexsup.c: Add optional style to demangle switch
3593 * ld.texinfo: Document optional style to demangle switch.
3595 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3597 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3599 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3600 Regenerate dependencies.
3601 * Makefile.in: Rebuild.
3602 * configure.tgt (cris-*-*): New target.
3603 * emulparams/crisaout.sh, emulparams/criself.sh,
3604 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3605 * po/POTFILES.in, po/ld.pot: Regenerate.
3607 2000-07-20 H.J. Lu <hjl@gnu.org>
3609 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3610 Print out ignored -z options.
3612 2000-07-19 H.J. Lu <hjl@gnu.org>
3614 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3615 (PARSE_AND_LIST_PROLOGUE): New.
3616 (PARSE_AND_LIST_LONGOPTS): Likewise.
3617 (PARSE_AND_LIST_OPTIONS): Likewise.
3618 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3620 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3622 * lexsup.c (ld_options): Comment out 'z'.
3623 (parse_args): Likewise.
3625 * emultempl/elf32.em: Include "elf/common.h".
3626 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3628 (gld_${EMULATION_NAME}_list_options): Likewise.
3630 * ld.texinfo: Add documentation for the recognized -z options.
3632 2000-07-19 H.J. Lu <hjl@gnu.org>
3634 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3635 bfd_elf_set_dt_needed_soname ().
3637 2000-07-18 DJ Delorie <dj@cygnus.com>
3639 * pe-dll.c (pe_dll_id_target): check object target name also
3641 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3643 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3644 ${INIT_END} if relocating.
3645 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3647 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3649 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3650 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3651 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3652 errors introduced by the old dynamic lib search order.
3654 2000-07-17 DJ Delorie <dj@cygnus.com>
3656 * pe-dll.c (process_def_file): auto-export data items also
3657 (pe_process_import_defs): also see if _imp_ form needed
3659 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3661 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3662 for dll import libraries
3664 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3666 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3667 gcc 2.95.2 and later.
3669 2000-07-11 Kazu Hirata <kazu@hxi.com>
3671 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3674 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3676 * ldemul.h (struct lang_input_statement_struct): Remove forward
3678 (struct search_dirs): Likewise.
3679 * ldfile.h (struct lang_input_statement_struct): Likewise.
3680 Protect file from multiple inclusion.
3681 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3682 declaration from macro to file scope.
3684 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3685 * ldgram.y: Likewise here.
3686 * ldlang.c: And here.
3687 * ldmain.c: And here.
3688 * mpw-elfmips.c: And here.
3689 * mpw-eppcmac.c: And here.
3690 * emultempl/aix.em: And here.
3691 * emultempl/armcoff.em: And here.
3692 * emultempl/armelf.em: And here.
3693 * emultempl/armelf_oabi.em: And here.
3694 * emultempl/beos.em: And here.
3695 * emultempl/elf32.em: And here.
3696 * emultempl/hppaelf.em: And here.
3697 * emultempl/linux.em: And here.
3698 * emultempl/lnk960.em: And here.
3699 * emultempl/pe.em: And here.
3700 * emultempl/sunos.em: And here.
3701 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3702 * mpw-idtmips.c: Ditto.
3703 * emultempl/generic.em: Ditto.
3704 * emultempl/gld960.em: Ditto.
3705 * emultempl/gld960c.em: Ditto.
3706 * emultempl/mipsecoff.em: Ditto.
3707 * emultempl/ticoff.em: Ditto.
3708 * emultempl/vanilla.em: Ditto.
3710 * pe-dll.c: Include ldfile.h
3711 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3713 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3714 arguments to bfd_elf32_size_dynamic_sections call.
3715 (gldelf32ebmip_place_orphan): Add missing arguments to
3716 lang_leave_output_section_statement call.
3718 2000-07-10 H.J. Lu <hjl@gnu.org>
3720 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3722 (strhash): Likewise.
3723 (compute_dll_image_base): Likewise.
3724 (pe_undef_found_sym): Likewise.
3725 (pe_undef_cdecl_match): Likewise.
3726 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3727 argument "arch" with ATTRIBUTE_UNUSED.
3729 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3731 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3733 From Ryan Bradetich <rbradetich@uswest.net>
3734 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3736 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3738 Changes to create multiple linker stubs, positioned immediately
3739 before the section where they are required.
3740 * emultempl/hppaelf.em: Include elf32-hppa.h.
3741 (stub_sec, file_chain): Delete.
3742 (hppaelf_create_output_section_statements): Don't make a stub
3744 (hook_stub_info): New struct.
3745 (hook_in_stub): New function.
3746 (hppaelf_add_stub_section): New function.
3747 (hppaelf_finish): Do nothing for relocateable links. Modify the
3748 call to elf32_hppa_size_stubs. Move code for updating section
3750 (hppaelf_layaout_sections_again): ..to here, a new function.
3752 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3753 broken list handling. Pass in a pointer to the list.
3754 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3756 (hppaelf_before_parse): Prototype.
3757 (hppaelf_set_output_arch): Prototype.
3758 (hppaelf_create_output_section_statements): Prototype.
3759 (hppaelf_delete_padding_statements): Prototype.
3760 (hppaelf_finish): Prototype.
3763 * emultempl/hppaelf.em: Include ctype.h.
3764 (struct orphan_save): New.
3765 (gld${EMULATION_NAME}_place_orphan): New.
3766 (output_rel_find): New.
3767 (hppaelf_get_script): Update from elf32.em.
3768 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3769 Change emulation_name field to "${EMULATION_NAME}". Add
3770 gld${EMULATION_NAME}_place_orphan.
3772 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3773 ehppalinux.o, sort it. Regenerate dependencies.
3774 (ehppalinux.c): Depend on hppaelf.em
3775 * Makefile.in: Regenerate.
3777 * configure.tgt: targ_emul=hppalinux for hppa*linux
3779 * emulparams/hppalinux.sh: New.
3780 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3782 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3784 * lexsup.c (parse_args): Copy section name.
3786 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3788 * emultempl/pe.em: institute the following search order for
3789 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3790 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3791 static lib (libfoo.a) if none of the above are found.
3793 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3795 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3796 (longopts): New --{enable,disable}-auto-image-base options.
3797 (gld_${EMULATION_NAME}_list_options): Document.
3798 (gld_${EMULATION_NAME}_parse): Handle.
3799 (strhash): New static function.
3800 (compute_dll_image_base): New static function.
3801 (gld_${EMULATION_NAME}_set_symbols): Use.
3803 2000-07-05 DJ Delorie <dj@redhat.com>
3807 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3809 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3810 * emulparams/elf32btsmip.sh: New file.
3811 * Makefile.am: Add traditional mips target.
3812 * Makefile.in: Rebuild.
3814 2000-07-01 H.J. Lu <hjl@gnu.org>
3816 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3817 automake to use YLWRAP.
3818 * Makefile.in: Rebuild.
3820 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3822 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3823 (CLEANFILES): Add DEPA.
3824 * Makefile.in: Regenerate.
3826 2000-06-30 Timothy Wall <twall@ppc>
3828 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3829 the page in the upper octet of the address.
3831 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3833 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3835 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3837 * NEWS: arm-elf does --gc-sections too.
3839 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3841 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3843 * Makefile.in: Regenerate.
3845 2000-06-21 H.J. Lu <hjl@gnu.org>
3847 * Makefile.am: Rebuild dependency.
3848 * Makefile.in: Rebuild.
3850 2000-06-20 H.J. Lu <hjl@gnu.org>
3852 * Makefile.am: Rebuild dependency.
3853 * Makefile.in: Rebuild.
3855 2000-06-20 Timothy Wall <twall@cygnus.com>
3857 * scripttempl/tic54xcoff.sc: New.
3858 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3859 * gen-doc.texi: Add flag for TI COFF.
3860 * ld.texinfo: Add documentation for TI COFF handling switches.
3861 * emultempl/ticoff.em: New. TI COFF handling.
3862 * configure.tgt: Add tic54x target.
3863 * Makefile.am: Add tic54x target.
3864 * Makefile.in: Ditto.
3866 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3868 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3869 checking for backslashes.
3871 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3873 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3875 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3877 * NEWS: Update list of targets supporting --gc-sections.
3879 * scripttempl/elf.sc: KEEP .eh_frame contents.
3880 * scripttempl/elfd30v.sc: Same here.
3882 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3884 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3886 * Makefile.in: Rebuild.
3887 * configure.tgt: Recognize m68hc12 and m68hc11.
3888 * scripttempl/elfm68hc12.sc: New file.
3889 * emulparams/m68hc12elfb: New emulation.
3890 * emulparams/m68hc12elf: New emulation.
3891 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3892 (includes a memory.x script to define the ROM and RAM banks).
3893 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3894 New configuration files for support of Motorola 68hc11
3896 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3898 * ldmain.c (main): Only change SEC_READONLY for final link.
3900 2000-06-13 H.J. Lu <hjl@gnu.org>
3902 * configure: Regenerate.
3904 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3906 * configure.in (VERSION): Update to show this is the CVS mainline.
3908 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3910 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3911 input objects to be ECOFF.
3912 (check_sections): einfo takes %B, not %P, to print a BFD name.
3914 2000-06-05 Michael Matz <matz@ifh.de>
3916 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3919 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3921 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3923 * emulparams/avr1200.sh (STACK): Define as 0.
3924 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3925 * emulparams/avr4433.sh (STACK): Likewise.
3926 * emulparams/avr44x4.sh (STACK): Likewise.
3927 * emulparams/avr85xx.sh (STACK): Likewise.
3928 * emulparams/avrmega103.sh (STACK): Likewise.
3929 * emulparams/avrmega161.sh (STACK): Likewise.
3930 * emulparams/avrmega603.sh (STACK): Likewise.
3931 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3932 (__stack): Define from ${STACK} for main().
3934 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3936 * Makefile.am: Update dependencies with "make dep-am"
3937 * Makefile.in: Regenerate.
3939 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3941 * ldmain.c: Include filenames.h.
3942 (set_scripts_dir): Support backslashes in program name.
3944 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3946 * ldmain.c (main): When deciding if ".text" section should be
3947 read-only, don't forget to reset SEC_READONLY because it
3948 could be already set.
3950 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3952 * ld.1: Add documentation for new command line option:
3953 --section-start <sectionname>=<sectionorg>
3954 This is a generic version of -Ttext etc. which accepts
3955 any section name as a parameter instead of just text/data/
3957 * ld.texinfo: More docs.
3959 * lexsup.c: (parse_args): Recognize new command line option.
3960 (ld_options): Add new option.
3962 2000-05-18 H.J. Lu <hjl@gnu.org>
3964 * lexsup.c (parse_args): `i' == `r', not `q'.
3966 2000-05-18 Jeffrey A Law (law@cygnus.com)
3968 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3970 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3971 Rick Gorton <gorton@scrugs.lkg.dec.com>
3973 Add support for '-q' == '--emit-relocs' switch.
3974 * ldmain.c (main): Default to false.
3975 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3976 * NEWS: Describe the emitrelocations switch.
3977 * ld.texinfo: Describe the emitrelocations switch.
3979 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3981 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3982 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3983 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3986 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3988 * lexsup.c (parse_args): Update the year in the copyright notice.
3990 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3992 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3993 Replace defines with those from intl/libgettext.h to quieten gcc
3996 2000-05-10 H.J. Lu <hjl@gnu.org>
3998 * ldlang.c (open_input_bfds): Don't load the same file within
3999 a group again if the whole archive has been loaded already.
4001 2000-05-03 Alan Modra <alan@linuxcare.com.au>
4003 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
4004 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
4007 2000-05-01 Jim Wilson <wilson@cygnus.com>
4009 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
4011 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4012 host "ia64-*-linux-gnu*".
4014 2000-04-29 Andreas Jaeger <aj@suse.de>
4016 * ld.h: Correctly check GCC version.
4018 2000-04-25 Jeffrey A Law (law@cygnus.com)
4020 * Makefile.am: Add PA64 support. Add missing dependencies for
4022 * Makefile.in: Rebuilt.
4023 * configure.tgt: Add PA64 support (currently disabled).
4025 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4027 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4028 (output_rel_find): New function.
4029 (hold_section, hold_use): Delete.
4030 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4031 hold_interp): Make local to place_orphan.
4032 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4033 rather than place_section to find possible previous use of orphan.
4034 Similarly find the place-holder output sections. Use returned
4035 value from lang_enter_output_section_statement rather than calling
4036 lang_output_section_statement_lookup.
4037 * emultempl/armelf.em: Same here.
4038 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4040 * ldlang.c (lang_enter_output_section_statement): Return output
4042 * ldlang.h (lang_enter_output_section_statement): Change
4045 * ldlang.h (lang_output_section_statement): Export it.
4046 * ldlang.c (lang_output_section_statement): Ditto.
4048 2000-04-24 Nick Clifton <nickc@cygnus.com>
4050 * ld.texinfo (Output Section Data): Add note that section data
4051 commands cannot appear outside of section directives.
4053 2000-04-2 Matthew Green <mrg@cygnus.com>
4055 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4057 2000-04-21 Richard Henderson <rth@cygnus.com>
4058 David Mosberger <davidm@hpl.hp.com>
4060 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4061 (eelf64_ia64.c): New rule.
4062 * Makefile.in: Rebuild.
4063 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4064 * emulparams/elf64_ia64.sh: New file.
4066 2000-04-21 Richard Henderson <rth@cygnus.com>
4068 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4070 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4072 * dep-in.sed: Match space at start of file name, not at end.
4074 2000-04-18 H.J. Lu <hjl@gnu.org>
4076 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4077 lang_leave_output_section_statement () after calling
4078 lang_enter_output_section_statement ().
4079 * emultempl/armelf.em: Likewise.
4081 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4083 * emultempl/elf32.em (struct orphan_save): Add section field.
4084 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4085 better order, and place first orphan section as we did before the
4086 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4087 Don't call make_bfd_section here, let wild_doit do the job for us.
4088 Don't build a statement list when we'll only throw it away.
4089 * emultempl/armelf.em: Ditto.
4090 * emultempl/pe.em: Similarly.
4092 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4094 * scripttempl/elfppc.sc: Remove.
4095 * emulparams/elf32ppc.sh: Use elf.sc.
4096 * emulparams/elf32lppc.sh: Use elf.sc.
4097 * emulparams/elf32ppclinux.sh: Use elf.sc.
4098 * emulparams/elf32ppcsim.sh: New file.
4099 * emulparams/elf32lppcsim.sh: New file.
4100 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4101 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4102 * Makefile.in: Regenerate.
4103 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4105 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4107 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4108 ~SEC_ALLOC sections too. Init start address of debug sections.
4109 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4110 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4111 Also set all relocateable section start addresses.
4113 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4115 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4116 Add new BSS_PLT variable for when .plt need not be contained in
4117 the file. Move _etext so that it is also after .fini, and provide
4118 both etext and _etext with a leading underscore. Mark the start
4121 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4123 * emultempl/elf32.em (struct orphan_save): New.
4124 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4125 hold_interp): Make them struct orphan_save.
4126 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4127 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4128 the end of the relevant section list. Also add associated section
4129 statements to the end of any previous orphan statements.
4130 * emultempl/armelf.em: Similarly.
4131 * emultempl/pe.em: Similarly.
4133 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4135 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4137 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4139 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4140 --enable-build-warnings option.
4141 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4142 * Makefile.in, configure: Re-generate.
4144 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4146 * po/ld.pot: Regenerate.
4148 * lexsup.c (help): Restore translated part of bug string.
4150 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4151 (DEP): Quote when passing vars to sub-make. Add warning message
4153 (DEP1): Rewrite for "gcc -MM".
4154 (CLEANFILES): Add DEP2.
4155 Update dependencies.
4156 * Makefile.in: Regenerate.
4158 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4160 * ld.h: #include "bin-bugs.h"
4161 * lexsup.c (help): Use REPORT_BUGS_TO.
4163 2000-03-27 Denis Chertykov <denisc@overta.ru>
4165 * configure.tgt (avr-*-*): New target support.
4166 * Makefile.am: Likewise.
4167 * scripttempl/elf32avr.sc: New script file.
4168 * emulparams/avr1200.sh: New file.
4169 * emulparams/avr23xx.sh: New file.
4170 * emulparams/avr4433.sh New file.
4171 * emulparams/avr44x4.sh New file.
4172 * emulparams/avr85xx.sh New file.
4173 * emulparams/avrmega103.sh New file.
4174 * emulparams/avrmega161.sh New file.
4175 * emulparams/avrmega603.sh New file.
4176 * Makefile.in: Regenerate.
4178 2000-03-09 Andreas Jaeger <aj@suse.de>
4180 * Makefile.am (check-DEJAGNU): Also unset LANG.
4181 * Makefile.in: Rebuild.
4183 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4185 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4188 2000-03-02 H.J. Lu <hjl@gnu.org>
4190 * emulparams/elf32mcore.sh: Include "getopt.h".
4192 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4194 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4196 2000-03-01 H.J. Lu <hjl@gnu.org>
4198 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4199 * emulparams/shpe.sh: Likewise.
4201 2000-03-01 Nick Clifton <nickc@cygnus.com>
4203 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4204 to unused parameters.
4206 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4207 functions only used by DLL code.
4208 (_place_orphan): Initialise 'dollar'.
4210 2000-03-01 H.J. Lu <hjl@gnu.org>
4212 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4213 indicate if the undefined symbol is a fatal error or not.
4214 Don't delete the output file if "fatal" is false.
4216 2000-02-29 H.J. Lu <hjl@gnu.org>
4218 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4219 Set LC_COLLATE and LC_ALL to null and export them. It is for
4220 sort which expects the C locale.
4221 Add $(LIBS) to all $(HOSTING_LIBS).
4222 * Makefile.in: Rebuild.
4224 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4226 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4227 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4228 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4229 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4230 find_potential_libraries.
4232 2000-02-28 Jim Blandy <jimb@redhat.com>
4234 * ldgram.y (exclude_name_list): Don't require a comma to separate
4235 list entries; the lexer considers commas to be valid part of a
4236 filename, so in something like `foo, bar' the comma is considered
4237 part of the first filename, `foo,'.
4238 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4240 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4242 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4243 host "i[3456]86-*-freebsdelf*".
4245 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4247 * scripttempl/i386go32.sc: Move misplaced semicolons.
4249 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4251 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4252 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4253 (eelf64hppa.c, ehppaelf.c): Remove targets.
4254 * Makefile.in: Rebuild.
4256 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4258 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4259 GNU/Linux/sparc, but keep the default as 32.
4261 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4262 it default if sparcv9 or sparc64.
4264 2000-02-24 Nick Clifton <nickc@cygnus.com>
4266 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4267 * Makefile.in: Regenerate.
4268 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4270 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4271 find_potential_libraries.
4272 * ldemul.c (ldemul_find_potential_libraries): New function.
4274 * ldfile.c (ldfile_open_file_search): Allow function to be
4276 (ldfile_open_file): Call ldemul_find_potential_libraries.
4277 * ldfile.h: Add prototype for ldfile_open_file_search.
4279 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4281 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4282 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4284 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4285 (gld_X_find_potential_libraries): New function. Search for
4286 libraries called "*.lib".
4288 * scripttempl/pe.sc: Add .pdata section.
4290 2000-02-23 Richard Henderson <rth@cygnus.com>
4292 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4293 Add and use memory regions.
4295 2000-02-23 Linas Vepstas (linas@linas.org)
4297 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4299 * Makefile.am: Add support for Linux/IBM 370.
4300 * configure.tgt: Likewise.
4302 * Makefile.in: Regenerate.
4304 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4306 * ldlang.c (print_input_section, print_data_statement,
4307 print_reloc_statement, print_padding_statement, insert_pad,
4308 size_input_section, lang_check_section_addresses,
4309 lang_size_sections, lang_do_assignments, lang_set_startof,
4310 lang_one_common): Change `opb' to unsigned.
4311 (lang_do_assignments): Also change `size' to unsigned.
4313 2000-02-16 Richard Henderson <rth@cygnus.com>
4315 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4317 2000-02-16 Timothy Wall <twall@cygnus.com>
4319 * mri.c (mri_draw_tree): Add default LMA region argument to call
4320 to lang_leave_output_section_statement.
4321 * ldlang.h: Update prototypes with LMA region arguments.
4322 * ldlang.c (lang_size_sections): Encapsulate region bounds
4323 checking in os_check_region call.
4324 (os_check_region): New function.
4325 (lang_output_section_statement_lookup): Initialize lma_region.
4326 (lang_leave_output_section_statement): Add LMA region argument.
4327 (lang_leave_overlay): Ditto.
4328 * ldgram.y: Handle LMA region syntax.
4329 * ld.texinfo (Output Section Description): Describe LMA region usage.
4330 * emultempl/armelf.em (gld$place_orphan): Add default value for
4331 lma region in call to lang_leave_output_section_statement.
4332 * emultempl/elf32.em (gld$place_orphan): Add default value for
4333 lma region in call to lang_leave_output_section_statement.
4334 * emultempl/pe.em (gld$place_orphan): Add default value for
4335 lma region in call to lang_leave_output_section_statement.
4338 2000-02-04 Timothy Wall <twall@redhat.com>
4340 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4341 octets when calculating section end addresses.
4343 2000-02-04 Timothy Wall <twall@redhat.com>
4345 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4347 2000-02-03 Timothy Wall <twall@redhat.com>
4349 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4351 * ldlang.c (print_input_section, print_data_statement,
4352 print_reloc_statement, print_padding_statement): Print target
4353 address values and section sizes as bytes, not octets.
4354 (insert_pad) Calculate padding size in octets, and adjust "dot"
4356 (size_input_section) Always adjust "dot" by bytes, not octets.
4357 (lang_check_section_addresses, lang_do_assignments) Adjust
4358 "dot" by bytes, not octets. Use the larger of the directive size
4359 or octets_per_byte for the number of octets actually allocated in
4361 (lang_set_startof) Make sure STARTOF returns a target address.
4362 (lang_one_common) Record size changes in octets.
4363 (lang_abs_symbol_at_end_of) Section end symbol's value is
4364 recorded in target bytes.
4365 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4366 to be clear about behavior when an octet is smaller than one byte.
4368 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4370 * ldcref.c (output_cref): Don't pass message strings to printf
4374 * ldmisc.c (vfinfo): Same here.
4377 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4379 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4380 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4381 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4382 Add missing NULL initialisers, and comments.
4384 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4386 2000-01-21 Nick Clifton <nickc@cygnus.com>
4388 * ldlang.c (lang_size_sections): Fix typo in comment.
4390 2000-01-18 H.J. Lu <hjl@gnu.org>
4392 * ldlang.c (lang_size_sections): Also update the current
4393 address of a region if the SEC_NEVER_LOAD bit is not set.
4395 2000-01-10 Philip Blundell <pb@futuretv.com>
4397 * configure.tgt (arm*-*-conix*): New target.
4399 2000-01-07 Nick Clifton <nickc@cygnus.com>
4401 * ld.texinfo (Options): Remind users to preceed linker command
4402 line switches with -Wl, (or whatever is appropriate) if it is
4403 being invoked by a comnpiler driver program.
4404 Fix description of the behaviour of the -n command line switch.
4406 2000-01-05 Catherine Moore <clm@cygnus.com>
4408 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4410 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4411 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4412 (exclude_name_list): New.
4413 ldlang.c (walk_wild_section): Support list of excluded files.
4414 (print_wild_statement): Likewise.
4415 (lang_add_wild): Likewise.
4416 * ldlang.h (lang_wild_statement_type): Likewise.
4417 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4419 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4421 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4422 (process_def_file): Use.
4423 (pe_dll_compat_implib): New variable.
4426 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4427 pe_dll_compat_implib.
4429 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4430 compat-implib options.
4431 (gld_${EMULATION_NAME}_list_options): List new options.
4432 (gld_${EMULATION_NAME}_parse_args): Handle.
4434 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4437 * deffilep.y (opt_name): Allow "." in name.
4439 For older changes see ChangeLog-9899
4445 version-control: never