1 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
3 * ldlang.c (lang_size_sections_1): Move check for conflicting load
4 addresses and regions from here...
5 (lang_get_regions): ...to this new function.
6 (lang_leave_output_section_statement): Use lang_get_regions.
7 (lang_leave_overlay): Likewise.
8 * mri.c (mri_draw_tree): Pass null as last argument to
9 lang_leave_output_section_statement.
10 * emultempl/elf32.em (gld*_place_orphan): Likewise.
11 * emultempl/mmo.em (mmo_place_orphan): Likewise.
12 * emultempl/pe.em (gld*_place_orphan): Likewise.
14 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
16 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
18 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
20 * ldemul.c: Fix formatting.
25 2002-05-25 Alan Modra <amodra@bigpond.net.au>
27 * ldlang.c (lang_process): Formatting, grammar.
29 * ldlex.l: Use #include "" instead of <> for local header files.
31 2002-05-24 TAMURA Kent <kent@netbsd.org>
33 * configure.tgt: Add a target for i386-netbsdpe.
35 2002-05-23 Jakub Jelinek <jakub@redhat.com>
37 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
38 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
39 output section if necessary. Handle .tbss.
40 (lang_size_sections): Clear _raw_size for .tbss section
41 (it allocates space in PT_TLS segment only).
42 * ldwrite.c (build_link_order): Build link order for .tbss too.
44 2002-05-23 Alan Modra <amodra@bigpond.net.au>
46 * configure.in: Correct spelling of AC_PREREQ.
48 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
50 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
52 (autofilter_objlist): Add crtbegin.o, crtend.o.
54 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
56 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
57 (longopts): Add new option --exclude-libs.
58 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
59 (gld_${EMULATION_NAME}_parse_args): Use it.
60 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
61 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
63 (pe_dll_add_excludes): Set excludes->type.
64 (auto_export): Add new variable libname and set to archive basename if
65 abfd. Use it when filtering default and user-specified libarary
66 excludes. Let string "ALL" mean all libs when filtering user-specified
68 * ld.texinfo: Document --exclude-libs.
70 2002-05-22 Alan Modra <amodra@bigpond.net.au>
72 * ldemul.c (ldemul_new_vers_pattern): New function.
73 * ldemul.h (ldemul_new_vers_pattern): Declare.
74 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
75 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
76 * emultempl/ppc64elf.em (dotsyms): New static var.
77 (gld${EMULATION_NAME}_new_vers_pattern): New function.
78 (LDEMUL_NEW_VERS_PATTERN): Define.
79 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
80 (PARSE_AND_LIST_LONGOPTS): Likewise.
81 (PARSE_AND_LIST_ARGS_CASES): Handle them.
82 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
84 * emultempl/armcoff.em: Likewise.
85 * emultempl/armelf_oabi.em: Likewise.
86 * emultempl/beos.em: Likewise.
87 * emultempl/elf32.em: Likewise.
88 * emultempl/generic.em: Likewise.
89 * emultempl/gld960.em: Likewise.
90 * emultempl/gld960c.em: Likewise.
91 * emultempl/linux.em: Likewise.
92 * emultempl/lnk960.em: Likewise.
93 * emultempl/m68kcoff.em: Likewise.
94 * emultempl/mipsecoff.em: Likewise.
95 * emultempl/pe.em: Likewise.
96 * emultempl/sunos.em: Likewise.
97 * emultempl/ticoff.em: Likewise.
98 * emultempl/vanilla.em: Likewise.
100 2002-05-22 Alan Modra <amodra@bigpond.net.au>
102 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
103 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
104 (LIB_SEARCH_DIRS): No need to use "tr".
105 (COMPILE_IN): Only set for native targets.
106 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
107 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
108 * configure.tgt (powerpc*): Set tdir_*.
109 (powerpcle*): Correct targ_extra_emuls.
110 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
111 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
113 2002-05-22 Alan Modra <amodra@bigpond.net.au>
115 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
116 calling lang_add_entry.
118 2002-05-21 H.J. Lu (hjl@gnu.org)
120 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
122 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
124 * ld.texinfo: Updated for --allow-multiple-definition and
127 * ldmain.c (main): Initialize the allow_multiple_definition
130 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
131 (ld_options): Add --allow-multiple-definition.
132 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
134 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
136 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
137 (earmelfb_nbsd.c): New rule.
138 * Makefile.in: Regenerate.
139 * configure.tgt (armeb-*-netbsdelf*): New target.
140 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
141 (arm-*-netbsd*): Likewise.
142 * emulparams/armelfb_nbsd.sh: New file.
144 2002-05-18 Tom Rix <trix@redhat.com>
146 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
149 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
151 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
152 * Makefile.in: Regenerate.
153 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
155 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
157 * emulparams/avr1.sh: New file.
158 * emulparams/avr2.sh: New file.
159 * emulparams/avr3.sh: New file.
160 * emulparams/avr4.sh: New file.
161 * emulparams/avr5.sh: New file.
162 * scripttempl/avr.sc: New file.
164 2002-05-15 Alan Modra <amodra@bigpond.net.au>
166 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
167 (lang_place_orphans): Abort if just_syms_flag.
169 2002-05-10 Tom Rix <trix@redhat.com>
171 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
172 architecture and machine information in the output bfd.
173 (gld*_before_parse): Remove old arch and machine code.
174 (choose_target): Rename to gld*_choose_target.
175 (rtld): Change type to int.
176 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
177 objects in XCOFF archives.
178 * ldfile.h: Update copyright date.
180 2002-05-10 Jakub Jelinek <jakub@redhat.com>
182 * ldmain.c (main): Enable -z combreloc by default.
184 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
186 * Makefile.am: Honour DESTDIR.
187 * Makefile.in: Regenerate.
189 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
191 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
192 (lang_enter_overlay): Remove the last two parameters.
193 (lang_leave_overlay): Take them here instead.
194 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
195 (section): Pass LMA and crossref flag to lang_leave_overlay rather
196 than lang_enter_overlay.
197 * ldlang.c (lang_memory_region_lookup): Return null for null names.
198 (lang_output_section_statement_lookup): Initialize update_dot_tree.
199 (lang_size_sections_1): Evaluate it.
200 (lang_leave_output_section_statement): Rework LMA lookup.
201 (overlay_lma, overlay_nocrossrefs): Remove.
202 (lang_enter_overlay): Remove LMA and crossref arguments.
203 (lang_enter_overlay_section): Don't set the LMA here.
204 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
205 assignment to the last section's update_dot_tree. Unconditionally
206 use the load and run-time regions specified in the OVERLAY statement.
207 Likewise the first section's LMA. Only set the other sections' LMAs
208 when no load region is given.
210 2002-05-06 Nick Clifton <nickc@redhat.com>
212 * po/sv.po: New translation.
214 2002-05-04 Alan Modra <amodra@bigpond.net.au>
216 * emultempl/hppaelf.em (build_section_lists): New function.
217 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
218 and build_section_lists.
220 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
222 * ld.h: Fix formatting.
224 * ldfile.c: Likewise.
225 * ldlang.c: Likewise.
226 * ldmain.c: Likewise.
227 * lexsup.c: Likewise.
228 * pe-dll.c: Likewise.
230 2002-05-02 Alan Modra <amodra@bigpond.net.au>
232 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
233 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
234 (build_section_lists): Do output_section tests here.
236 2002-04-30 Tom Rix <trix@redhat.com>
238 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
240 2002-05-01 Alan Modra <amodra@bigpond.net.au>
242 Long branch stubs, multiple stub sections.
243 * emultempl/ppc64elf.em: Include ldctor.h.
244 (stub_file): New var.
245 (group_size): New var.
246 (ppc_create_output_section_statements): New function.
247 (struct hook_stub_info): New.
248 (hook_in_stub): New function.
249 (ppc_add_stub_section): New function.
250 (ppc_layout_sections_again): New function.
251 (build_section_lists): New function.
252 (gld${EMULATION_NAME}_finish): Rewrite.
253 (real_func): New var.
254 (ppc_for_each_input_file_wrapper): New function.
255 (ppc_lang_for_each_input_file): New function.
256 (lang_for_each_input_file): Define.
257 (PARSE_AND_LIST_PROLOGUE): Define.
258 (PARSE_AND_LIST_LONGOPTS): Define.
259 (PARSE_AND_LIST_OPTIONS): Define.
260 (PARSE_AND_LIST_ARGS_CASES): Define.
261 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
263 2002-04-30 Tom Rix <trix@redhat.com>
265 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
266 -blibpath, -bnolibpath support.
268 2002-04-30 Mark Mitchell <mark@codesourcery.com>
270 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
271 (eelf32ppcwindiss.c): New target.
272 * Makefile.in: Regenerated.
273 * configure.tgt: Add support for powerpc-*-windiss.
274 * emulparams/elf32ppcwindiss.sh: New file.
276 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
278 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
279 * ldexp.c (exp_print_token): Add "infix_p" argument.
280 (exp_print_tree): Update accordingly.
282 2002-04-28 Alan Modra <amodra@bigpond.net.au>
284 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
285 * Makefile.in: Regenerate.
286 * mpw-elfmips.c: Delete.
287 * mpw-eppcmac.c: Delete.
289 * mpw-idtmips.c: Delete.
291 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
293 * emulparams/shelf32.sh (MACHINE): Now sh5.
295 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
297 * ldgram.y: Fix syntax warning.
299 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
301 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
302 to prevent "-n" from being taken as an abbreviation for
303 "--no-pipeline-knowledge".
305 2002-04-08 Alan Modra <amodra@bigpond.net.au>
307 * ldlang.c (lang_size_sections_1): Don't complain about
308 SEC_NEVER_LOAD sections having no memory region specified.
310 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
312 2002-04-07 matthew green <mrg@redhat.com>
314 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
316 2002-04-04 Alan Modra <amodra@bigpond.net.au>
318 * dep-in.sed: Cope with absolute paths.
319 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
321 * Makefile.in: Regenerate.
323 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
325 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
327 2002-04-03 Jakub Jelinek <jakub@redhat.com>
329 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
330 is smaller than maximum, round dot up to common page boundary.
332 2002-03-28 Alan Modra <amodra@bigpond.net.au>
334 * configure.host: Set up for generic hosts first, then tweak as
335 necessary in more specific targets.
336 (HOSTING_LIBS): Include libgcc_eh.a if found.
338 2002-03-23 Andreas Jaeger <aj@suse.de>
340 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
342 2002-03-21 Alan Modra <amodra@bigpond.net.au>
344 * Makefile.am: Run "make dep-am".
345 * Makefile.in: Regenerate.
347 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
349 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
351 2002-03-20 Alan Modra <amodra@bigpond.net.au>
353 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
354 add the symbol to the linker hash table immediately.
355 (lang_place_undefineds): Split symbol creation out..
356 (insert_undefined): ..to here.
358 2002-03-18 David O'Brien <obrien@FreeBSD.org>
360 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
361 the contents of the buffer returned from basename function will are
362 getting overwritten while still being used.
364 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
365 Andreas Jaeger <aj@suse.de>
366 Andreas Schwab <schwab@suse.de>
368 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
369 * elf_x86_64.sh (ARCH): Set to i386:x86-64
370 set libraries to default to lib64 paths.
372 2002-03-18 Tom Rix <trix@redhat.com>
374 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
375 * configure.tgt : Same.
376 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
377 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
378 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
379 emulation parameters for better -b32, -b64 support.
380 * emulparms/aixrs6.sh : Same.
381 * emulparms/ppcmacos.sh : Same.
382 * emultempl/aix.em (choose_target) : Use new emulation parameters
383 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
384 * Makefile.in : Regenerate.
386 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
388 * po/fr.po: Updated version.
390 2002-03-18 Alan Modra <amodra@bigpond.net.au>
392 * ldmain.c (main): Move .text readonly flag fudges from here..
393 * ldlang.c (lang_process): ..to here.
395 2002-03-14 Alan Modra <amodra@bigpond.net.au>
397 * ldlang.c (lang_check): Remove the word size check added in last
398 change. Treat emitrelocations case as for relocatable links.
400 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
402 * po/fr.po: Updated version.
404 2002-03-13 Alan Modra <amodra@bigpond.net.au>
406 * ldlang.c (lang_check): Do relocatable link checks first, so that
407 warn_mismatch can't override. Check compatible and word size too.
409 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
411 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
413 2002-03-05 Jakub Jelinek <jakub@redhat.com>
415 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
418 2002-03-04 H.J. Lu <hjl@gnu.org>
420 * scripttempl/elf.sc: Put .preinit_array, .init_array and
421 .fini_array in the data segment.
423 2002-03-04 Alan Modra <amodra@bigpond.net.au>
425 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
427 2002-03-01 David Mosberger <davidm@hpl.hp.com>
429 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
430 .init_array, and .fini_array.
432 2002-02-20 Andreas Schwab <schwab@suse.de>
434 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
435 .IA64_unwind* in a relocatable link.
437 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
439 * NEWS: Mark 2.12 branch.
441 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
443 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
444 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
446 2002-02-18 Tom Rix <trix@redhat.com>
448 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
449 (gld*_before_allocation): Same.
450 (gld*_create_output_section_statements): Generate
451 __rtinit if run time linking. Add librtl.a to the link.
452 (gld*_read_file): Clean.
454 2002-02-18 Alan Modra <amodra@bigpond.net.au>
456 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
458 2002-02-18 David O'Brien <obrien@FreeBSD.org>
460 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
461 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
462 and eelf64alpha_fbsd.
463 * Makefile.in: Regenerate.
464 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
465 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
466 use a FreeBSD-specific emulation rather than the psABI one.
467 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
468 for all FreeBSD ELF systems.
469 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
471 * emulparams/elf32ppc_fbsd.sh: Likewise.
472 * emulparams/elf64_ia64_fbsd.sh: Likewise.
473 * emulparams/elf64_sparc_fbsd.sh: Likewise.
474 * emulparams/elf64alpha_fbsd.sh: Likewise.
475 * emulparams/elf_i386_fbsd.sh: Likewise.
476 * emulparams/elf_x86_64_fbsd.sh: Likewise.
478 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
480 * po/tr.po: Updated version.
482 2002-02-18 Alan Modra <amodra@bigpond.net.au>
484 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
487 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
489 * emultempl/mmo.em (mmo_after_open): Don't call
490 _bfd_mmix_check_all_relocs when producing ELF output.
492 2002-02-15 Richard Henderson <rth@redhat.com>
494 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
495 definition. Emit a unop+nop pair.
497 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
499 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
500 for presence of .MMIX.reg_contents.linker_allocated before early
503 * NEWS: Mention support for MMIX.
505 2002-02-15 Alan Modra <amodra@bigpond.net.au>
507 Support arbitrary length fill patterns.
508 * ld.texinfo (Output Section Fill): Describe fill expressions.
509 (FILL): Refer to the above.
510 * ldexp.h (etree_value_type): Add "str" field.
511 (union etree_union): Add "str" to "value" struct.
512 (exp_bigintop): Declare.
513 (exp_get_fill): Declare.
514 * ldexp.c: Include "safe-ctype.h".
515 (exp_intop): Set value.str to NULL.
516 (exp_bigintop): New function.
517 (new_rel): Pass in "str", and set new.str from it.
518 (new_rel_from_section): Set new.str to NULL.
519 (fold_name): Adjust calls to new_rel.
520 (exp_fold_tree): Likewise.
521 (exp_get_fill): New function.
522 * ldgram.y (struct big_int bigint, fill_type *fill): New.
523 (INT): Returns a "bigint". Adjust all code handling INTs.
524 (fill_opt): Returns a "fill".
525 (fill_exp): Split out of fill_opt, use for FILL.
526 * ldlang.h (struct _fill_type): New.
527 (fill_type): Move typedef to ldexp.h.
528 (lang_output_section_statement_type): "fill" is now a pointer.
529 (lang_fill_statement_type): Likewise.
530 (lang_padding_statement_type): Likewise.
531 (lang_add_fill): Now takes a "fill_type *" param.
532 (lang_leave_output_section_statement): Likewise.
533 (lang_do_assignments): Likewise.
534 (lang_size_sections): Likewise.
535 (lang_leave_overlay_section): Likewise.
536 (lang_leave_overlay): Likewise.
537 * ldlang.c: Include ldgram.h after ldexp.h.
538 (lang_output_section_statement_lookup): Adjust for fill_type change.
539 (print_fill_statement): Likewise.
540 (print_padding_statement): Likewise.
541 (insert_pad): Now takes a "fill_type *" arg.
542 (size_input_section): Likewise.
543 (lang_size_sections_1): Likewise.
544 (lang_size_sections): Likewise.
545 (lang_do_assignments): Likewise.
546 (lang_add_fill): Likewise.
547 (lang_leave_output_section_statement): Likewise.
548 (lang_leave_overlay_section): Likewise.
549 (lang_leave_overlay): Likewise.
550 Adjust all callers of the above function.
551 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
552 starting with "0X" as well as "0x". Return bigint.str for hex
553 numbers starting with "0x" or "0X", zero bigint.str otherwise.
554 Always use base 16 for numbers starting with "$".
555 * ldmain.c: Include ldgram.h after ldexp.h.
556 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
557 of bfd_fill_link_order.
558 * pe-dll.c: Adjust lang_do_assignments calls.
559 * emultempl/elf32.em: Likewise.
560 * emultempl/hppaelf.em: Likewise.
561 * emultempl/ppc64elf.em: Likewise.
562 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
563 lang_add_assignment call.
564 * emultempl/pe.em: Likewise.
566 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
568 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
569 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
570 the pattern in question is not a regexp.
571 * ldlang.c: Likewise.
572 * ldlang.h: Likewise.
573 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
575 2002-02-12 Jakub Jelinek <jakub@redhat.com>
577 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
578 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
579 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
580 * ldexp.c (exp_data_seg): New variable.
581 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
582 (fold_binary): Handle DATA_SEGMENT_ALIGN.
583 (exp_fold_tree): Handle DATA_SEGMENT_END.
584 Pass allocation_done when recursing instead of hardcoding
585 lang_allocating_phase_enum.
586 * ldexp.h (exp_data_seg): New.
587 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
588 (lang_size_sections): New.
589 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
590 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
591 if COMMONPAGESIZE is defined.
592 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
593 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
594 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
595 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
596 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
599 2002-02-11 Alan Modra <amodra@bigpond.net.au>
601 * Makefile.in: Regenerate.
603 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
605 * lexsup.c: Remove strtoul declaration.
607 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
609 * ldmain.c: Add prototype for main ().
610 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
611 * emultempl/lnk960.em (lnk960_choose_target): Function should
614 2002-02-10 Alan Modra <amodra@bigpond.net.au>
616 * ldlang.c (entry_section): New initialised variable.
617 (lang_finish): Use it.
618 * ldlang.h (entry_section): Declare.
619 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
620 entry_section to ".opd".
622 2002-02-09 Chris Demetriou <cgd@broadcom.com>
624 * ld.texinfo (Options): Add back in -nostdlib documentation,
625 which had been inadvertently removed.
627 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
629 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
630 register section vma to a sane value after emitting error. Make
631 fatal conditions cause program exit when emitting message.
633 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
635 * configure.tgt: Add or32-*-rtems target.
637 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
640 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
641 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
642 in OTHER_RELOCATABLE_SECTIONS.
643 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
644 * emulparams/shelf32.sh (STACK_ADDR): Define.
645 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
646 (OTHER_SECTIONS): this. Removed stack settings.
647 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
648 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
649 2001-03-12 DJ Delorie <dj@redhat.com>
650 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
651 relaxing if any shmedia or mixed sections are found.
652 2001-03-07 DJ Delorie <dj@redhat.com>
653 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
654 einfo. Gracefully decline to output to non-elf formats.
655 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
656 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
657 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
658 * emulparams/shelf32.sh: Ditto.
659 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
660 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
662 2001-01-10 Ben Elliston <bje@redhat.com>
663 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
664 non-portable shell constructs. From Hans-Peter Nilsson.
665 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
666 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
667 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
668 dependencies to the shell script include chain.
669 * Makefile.in: Regenerate.
670 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
671 * emultempl/sh64elf.em: Update and tweak comments.
672 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
673 make a .cranges section SEC_IN_MEMORY.
674 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
675 * emultempl/sh64elf.em
676 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
677 .cranges section found to be necessary; continue and set stored
678 section contents flags for sections with non-mixed contents.
679 Use a struct sh64_section_data container and sh64_elf_section_data
680 to store contents-type flags.
681 Remove unused update of "isec".
682 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
683 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
684 access contents-type flags. Assert that the associated container
685 is initialized. Use that container, not elf_gp_size, to hold size
686 of linker-generated cranges contents.
687 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
688 * emultempl/sh64elf.em
689 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
690 there's already a .cranges section. When section flag difference
691 is found, don't NULL-check cranges a second time. Tweak comments.
692 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
693 merging, not max size, as size of ld-generated .cranges contents.
694 Don't set ELF section flags in output section. When checking for
695 needed .cranges descriptors, don't use a variable; compare
696 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
698 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
699 * emultempl/sh64elf.em: New file.
700 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
701 * Makefile.in: Regenerate.
702 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
703 (OTHER_RELOCATING_SECTIONS): Ditto.
704 (EXTRA_EM_FILE): New, set to sh64elf if not set.
705 * emulparams/shlelf32.sh: Stub out all settings except
706 OUTPUT_FORMAT. Source shelf32.sh.
707 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
708 OTHER_RELOCATING_SECTIONS.
709 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
710 * emulparams/shlelf64.sh: Stub out all settings except
711 OUTPUT_FORMAT. Source shelf64.sh.
712 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
713 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
715 (DATA_START_SYMBOLS): Define, provide ___data.
716 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
717 for consecutive .data section.
718 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
719 section after .data section.
720 * emulparams/shlelf64.sh: Ditto.
721 * emulparams/shelf32.sh: Ditto.
722 (ALIGNMENT): Define to 8.
723 * emulparams/shelf32.sh: Ditto.
724 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
725 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
726 built-in linker scripts.
727 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
728 * emulparams/shlelf64.sh: New.
729 * emulparams/shelf64.sh: New.
730 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
732 * Makefile.am: Add support for shlelf64 and shelf64.
733 * Makefile.in: Regenerate.
734 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
735 * configure.tgt (sh64-*-elf*): Add shelf as default.
736 Add shlelf to targ_extra_emuls.
737 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
738 * emulparams/shelf32.sh: New file.
739 * emulparams/shlelf32.sh: New file.
740 * Makefile.am: Add support for shlelf32 and shelf32.
741 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
742 * Makefile.in: Regenerate.
744 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
746 * ldlang.c (lang_reset_memory_regions): Rename from
747 reset_memory_regions. Change all callers. Make public.
748 * ldlang.h (lang_reset_memory_regions): Prototype.
749 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
750 lang_reset_memory_regions before lang_size_sections.
751 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
752 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
754 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
756 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
757 arithmetic when checking for too many global registers.
759 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
761 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
762 (ehppanbsd.c): New rule.
763 * Makefile.in: Regenerate.
764 * configure.tgt (hppa*-*-netbsd*): New target.
765 * emulparams/hppalinux.sh: Add comment to check other files
766 that source this file it is modified, and list which
768 * emulparams/hppanbsd.sh: New file.
770 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
772 * scripttempl/xstormy16.sc: Don't allocate extra space for the
775 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
777 Support on-demand global register allocation from
778 R_MMIX_BASE_PLUS_OFFSET relocs.
779 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
780 mmix_set_reg_section_vma. Call
781 _bfd_mmix_finalize_linker_allocated_gregs.
782 (mmix_before_allocation): New function.
783 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
784 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
785 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
786 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
787 before .MMIX.reg_contents.
788 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
789 (mmo_after_open): New function.
790 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
791 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
792 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
794 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
796 * emulparams/or32.sh: New file.
797 * emulparams/or32elf.sh: New file.
798 * scripttempl/or32.sc: New file.
799 * configure.tgt : Add support for or32.
800 * configure: Regenerate
801 * Makefile.am: Add support for or32.
802 * Makefile.in: Regenerate.
803 * NEWS: Mention support for or32.
804 * po/ld.pot: Regenerate.
806 2002-01-29 Chris Demetriou <cgd@broadcom.com>
807 Mitch Lichtenberg <mpl@broadcom.com>
809 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
810 * emultempl/mipself.em: New file to handle MIPS ELF embedded
811 reloc creation (ld --embedded-relocs).
813 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
815 * configure: Regenerated.
817 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
819 * Makefile.am (install): Depend on install-info.
820 * Makefile.in: Regenerate.
822 2002-01-26 Christian Rose <menthos@menthos.com>
824 * ldmain.c (main): Use full sentences to ease translation.
826 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
828 * po/fr.po: Updated version.
830 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
832 * po/es.po: Updated version.
834 2002-01-25 Andreas Jaeger <aj@suse.de>
836 * ldlex.l (yy_input): Correct error check.
838 2002-01-25 Alan Modra <amodra@bigpond.net.au>
840 * ldmisc.c (demangle): Put back dots when string not demangled.
842 2002-01-22 Richard Henderson <rth@redhat.com>
844 * emulparams/elf64alpha.sh (NOP): Use unop.
846 2002-01-21 Andreas Jaeger <aj@suse.de>
848 * ldlex.l: Use fread instead of read.
850 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
852 * configure.tgt (ia64-*-netbsd*): New target.
854 2002-01-21 H.J. Lu <hjl@gnu.org>
856 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
858 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
860 2002-01-18 Andreas Jaeger <aj@suse.de>
862 * ldver.c (ldversion): Update year.
864 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
866 * po/ld.pot: Regenerate.
868 2002-01-16 Alan Modra <amodra@bigpond.net.au>
870 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
871 * Makefile.in: Regenerate.
872 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
873 * emultempl/ppc64elf.em: New file.
875 2002-01-15 DJ Delorie <dj@redhat.com>
877 * scripttempl/pe.sc: Add support for constructor priorities.
879 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
881 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
882 * emulparams/avr23xx.sh: Likewise.
883 * emulparams/avr4433.sh: Likewise.
884 * emulparams/avr44x4.sh: Likewise.
885 * emulparams/avr85xx.sh: Likewise.
886 * emulparams/avrmega103.sh: Likewise.
887 * emulparams/avrmega161.sh: Likewise.
888 * emulparams/avrmega603.sh: Likewise.
889 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
891 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
893 * ldlang.c (walk_wild_section): Exclude object file if enclosing
896 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
898 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
899 (eshelf_nbsd.c): New rule.
900 (eshlelf_nbsd.c): New rule.
901 * Makefile.in: Regenerate.
902 * configure.tgt (sh*le-*-netbsdelf*): New target.
903 (sh*-*-netbsdelf*): New target.
904 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
905 * ld/emulparams/shelf_nbsd.sh: New emulation.
906 * ld/emulparams/shlelf_nbsd.sh: New emulation.
908 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
910 * po/es.po: New file: Spanish translation.
911 * configure.in (ALL_LINGUAS): Add es.
912 * configure: Regenerate.
914 2002-01-06 John Marshall <jmarshall@acm.org>
916 * ld.texinfo: Note that --emit-relocs is currently only
919 2002-01-05 Alan Modra <amodra@bigpond.net.au>
921 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
922 of bfd_section_list_remove and bfd_section_list_insert macros.
923 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
924 * emultempl/mmo.em (mmo_place_orphan): Likewise.
926 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
928 * configure.tgt (x86_64-*-netbsd*): New target.
930 2001-12-21 Tom Rix <trix@redhat.com>
932 (gld*_create_output_section_statements): New function.
933 For -binitfini support.
934 * emultempl/aix.em (gld*_before_parse): Fix comment.
935 * emultempl/aix.em (gld*_parse_args): Fix comment.
937 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
939 * configure.tgt (mips*-dec-netbsd*): Delete alias for
941 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
943 * configure.tgt (arm-*-netbsdelf*): Add target.
944 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
945 * emulparams/armelf_nbsd.sh: Added.
946 * Makefile.am: Add rules for earmelf_nbsd.
947 * Makefile.in: Regenerate.
949 2001-12-19 Andreas Jaeger <aj@suse.de>,
950 Susanne Oberhauser <froh@suse.de>
952 * configure.host: Add rules for x86_64-*linux-gnu. Change
953 s390x-linux entry to use gcc to report configuration, replace gcc
954 with $CC in s390-linux
956 2001-12-19 Andreas Jaeger <aj@suse.de>
958 * ld.texinfo (VERSION): Fix markup.
960 2001-12-18 matthew green <mrg@eterna.com.au>
962 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
963 (m68kelfnbsd.c): New rule.
964 * Makefile.in: Regenerate.
965 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
966 (m68*-*-netbsd*4k*): .. this.
967 (m68*-*-netbsdelf*): New target.
968 (m68*-*-netbsd*): Also include ELF support.
969 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
970 * emulparams/m68kelfnbsd.sh: New emulation.
972 2001-12-18 Jakub Jelinek <jakub@redhat.com>
974 * ldgram.y (vers_node): Support anonymous version tags.
975 * ldlang.c (lang_register_vers_node): Ensure anonymous version
976 tag is not defined together with non-anonymous versions.
977 * ld.texinfo: Document it.
979 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
981 * po/tr.po: New file: Turkish translation.
982 * configure.in (ALL_LINGUAS): Add tr.
983 * configure: Regenerate.
985 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
987 * Makefile.am: Add rules for eelf64alpha_nbsd.
988 * Makefile.in: Regenerate.
989 * configure.tgt (alpha*-*-netbsd*): Set
990 targ_emul to elf64alpha_nbsd.
991 * emulparams/elf64alpha_nbsd.sh: Added.
993 2001-12-17 Alan Modra <amodra@bigpond.net.au>
995 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
996 section_tail when fiddling with section list.
997 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
998 broken into separate strings to make translation easier.
999 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1000 fiddling with section list.
1001 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1003 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1005 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1007 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1009 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1011 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1013 * emultempl/elf32.em (finish): Supply output_bfd
1014 to bfd_elf*_discard_info.
1015 (OPTION_EH_FRAME_HDR): Define.
1016 (longopts): Add --eh-frame-hdr.
1017 (parse_args): Handle it.
1018 (list_options): Add --eh-frame-hdr to help.
1019 * emultempl/hppaelf.em (finish): Supply output_bfd
1020 to bfd_elf*_discard_info.
1021 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1023 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1025 * lexsup.c (parse_args): Don't pass shortopts to second call to
1026 getopt functions. Restore optind rather than decrementing before
1027 second call. Remove errind as it now duplicates last_optind.
1029 2001-12-11 Christopher Faylor <cgf@redhat.com>
1031 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1033 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1034 Richard Henderson <rth@redhat.com>
1036 * Makefile.am: Add support for xstormy16.
1037 * configure.tgt: Add support for xstormy16.
1038 * Makefile.in: Regenerate.
1039 * emulparams/elf32xstormy16.sh: New file.
1040 * scripttempl/xstormy16.sc: New file.
1042 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1044 * Makefile.in (LIB_PATH): Make configurable.
1045 (GENSCRIPTS): Set LIB_PATH in environment.
1046 * configure.in: Substitute LIB_PATH.
1047 * configure: Regenerate.
1048 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1049 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1051 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1053 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1054 describing the -N option so that it is easier to translate into
1057 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1059 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1060 statements describing a single option with a single, newline
1061 escaped fprintf. This allows better translation into other
1064 * ldmain.c (add_archive_element): Combine multiple strings
1065 into a single string to permit better translation into other
1068 2001-12-05 Tom Rix <trix@redhat.com>
1070 * Makefile.am: Remove eaixppc64.
1071 * Makefile.in: Regenerate.
1073 2001-12-04 Tom Rix <trix@redhat.com>
1075 * emultempl/aix.em (choose_target): Change default target to
1076 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1078 (gld*_read_file): Fix typo.
1079 (change_symbol_mode): Add prototype.
1082 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1083 * emulparams/aixrs6.sh : Same.
1084 * emulparams/ppcmacos.sh : Same.
1085 * emulparams/aixppc64.sh : Delete file.
1086 * emultempl/aix.em : Formatting changes.
1088 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1090 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1091 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1093 (OTHER_END_SYMBOLS): Fix formatting.
1094 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1095 (OTHER_END_SYMBOLS): Fix formatting.
1097 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1099 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1101 2001-12-02 Tom Rix <trix@redhat.com>
1103 * configure.tgt : Remove eaixppc64 emulations.
1104 * Makefile.in : Remove eaixppc64.c
1105 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1106 (ldemul_default_target): Same.
1107 * emultempl/gld960.em (gld960_choose_target): Same.
1108 * emultempl/gld960c.em (gld960_choose_target): Same.
1109 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1110 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1111 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1112 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1113 * emultempl/aix.em (choose_target): New function. Handle emulation of
1116 2001-11-27 H.J. Lu <hjl@gnu.org>
1118 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1119 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1120 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1121 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1122 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1123 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1124 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1125 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1127 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1130 (REL_SDATA): Likewise.
1131 (REL_SBSS): Likewise.
1132 (REL_SDATA2): Likewise.
1133 (REL_SBSS2): Likewise.
1134 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1137 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1139 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1141 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1143 2001-11-22 H.J. Lu <hjl@gnu.org>
1145 * Makefile.in: Regenerated with automake based on automake
1146 1.4-8 in RedHat 7.1.
1148 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1150 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1151 (config.status): Delete rule.
1152 Add extra dependencies to cover sourced emulparams files.
1153 * Makefile.in: Regenerate.
1155 * scripttempl/elf.sc: Order <section>, <section>.* and
1156 corresponding linkonce sections as seen in input files.
1157 Formatting fixes. Zero vma of all sections if not relocating.
1158 (STACK): Define and insert if STACK_ADDR defined.
1159 (OTHER_RELOCATING_SECTIONS): Delete.
1160 (OTHER_END_SYMBOLS): Define.
1161 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1162 (OTHER_READWRITE_SECTIONS): Likewise.
1163 (OTHER_GOT_SECTIONS): Likewise.
1164 (OTHER_SDATA_SECTIONS): Likewise.
1165 (OTHER_BSS_SECTIONS): Likewise.
1166 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1167 (OTHER_READWRITE_SECTIONS): Likewise.
1168 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1169 (OTHER_READWRITE_SECTIONS): Likewise
1171 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1172 (STACK_ADDR): Define.
1173 * emulparams/armelf_oabi.sh: As for armelf.sh.
1174 * emulparams/elf32mcore.sh: As for armelf.sh.
1175 * emulparams/h8300elf.sh: As for armelf.sh.
1176 * emulparams/mn10200.sh: As for armelf.sh.
1177 * emulparams/shelf.sh: As for armelf.sh.
1179 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1180 (OTHER_END_SYMBOLS): Define.
1181 * emulparams/m32relf.sh: As for elf32fr30.sh.
1182 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1183 * emulparams/h8300self.sh: As for elf32fr30.sh.
1185 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1186 defines with RELOCATING test.
1187 (OTHER_SDATA_SECTIONS): Likewise.
1188 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1189 (OTHER_END_SYMBOLS): ..this.
1190 * emulparams/crislinux.sh: As for criself.sh.
1192 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1194 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1195 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1196 normal and linkonce sections as seen in input files.
1197 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1198 (TEXT_DYNAMIC): Likewise.
1199 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1200 (OTHER_SDATA_SECTIONS): Likewise.
1201 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1202 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1203 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1204 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1205 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1206 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1207 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1208 sections as seen in input files.
1209 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1210 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1212 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1213 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1214 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1215 (OTHER_SECTIONS): Instead, use this..
1216 (OTHER_END_SYMBOLS): ..and this.
1218 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1219 * emulparams/elf32bsmip.sh: Likewise.
1220 * emulparams/elf32btsmip.sh: Likewise.
1221 * emulparams/elf32ebmip.sh: Likewise.
1222 * emulparams/elf32lmip.sh: Likewise.
1223 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1224 * emulparams/elf32lsmip.sh: Likewise.
1225 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1226 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1227 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1228 * emulparams/elf64btsmip.sh: Likewise.
1229 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1230 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1231 * emulparams/elf32ppclinux.sh: Likewise.
1232 * emulparams/elf32ppcsim.sh: Likewise.
1233 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1234 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1235 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1236 * emulparams/h8300self.sh: Likewise.
1237 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1238 * emulparams/sh.sh: Comment.
1239 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1240 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1241 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1243 2001-11-21 David Heine <dlheine@tensilica.com>
1244 Alan Modra <amodra@bigpond.net.au>
1246 * ldlang.c (map_input_to_output_sections): Replace "break"
1247 accidentally removed with 2001-08-03 change.
1248 (lang_gc_sections_1): Likewise.
1250 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1252 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1254 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1256 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1257 of false when calling lang_size_sections.
1258 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1260 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1262 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1263 function when LDEMUL_FINISH isn't set to the same name. Don't
1264 call ${LDEMUL_FINISH}.
1265 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1266 * emultempl/armelf.em (arm_elf_finish): Call
1267 gld${EMULATION_NAME}_finish.
1268 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1269 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1270 hppaelf_layout_sections_again if necessary.
1271 (need_laying_out): New var.
1272 (hppaelf_layaout_sections_again): Rename to
1273 hppaelf_layout_sections_again. Clear need_laying_out.
1274 (PARSE_AND_LIST_OPTIONS): Format text.
1276 2001-11-14 H.J. Lu <hjl@gnu.org>
1278 * emultempl/armelf.em (arm_elf_finish): Renamed from
1279 gld${EMULATION_NAME}_finish.
1280 (LDEMUL_FINISH): Set to arm_elf_finish.
1282 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1284 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1285 (struct ld_emulation_xfer_struct): Use it.
1287 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1289 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1290 additional symbols referenced by newer crt0.o files from HP.
1292 2001-11-12 Anthony Green <green@redhat.com>
1294 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1296 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1298 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1299 * Makefile.in: Regenerate.
1301 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1303 * ld.texinfo: Use @command for commands, @option for options.
1304 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1306 * Makefile.in: Rebuild.
1308 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1310 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1311 Add support for targets.
1313 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1315 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1316 * configure: Regernate.
1317 * po/fr.po: New file.
1318 * po/sv.po: New file.
1320 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1322 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1323 as little endian default and to support big endian.
1325 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1327 * ld.texinfo (Options): Document new option, -nostdlib.
1328 * lexsup.c (OPTION_NOSTDLIB): New definition.
1329 (ld_options): Add entry for "nostdlib".
1330 (parse_args): Handle OPTIONS_NOSTDLIB.
1331 * ldfile.c (ldfile_add_library_path): Don't add directories
1332 to the search path if they weren't specified on the command line
1333 and -nostdlib was specified.
1334 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1336 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1338 * lexsup.c (parse_args): Prevent infinite parsing loop when
1339 "-rpath.a" is specified on the command line.
1340 Replace calls to fprintf with calls to einfo.
1342 2001-10-31 John Marshall <jmarshall@acm.org>
1344 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1345 appear only once across all the linker scripts involved in a link
1346 invocation no longer applies. Make the documentation reflect
1349 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1351 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1353 (sh-*-linux*): Added targ_extra_libpath.
1355 2001-10-31 David Heine <dlheine@tensilica.com>
1357 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1358 for padding statements.
1360 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1362 * configure.tgt (mmix-*-*): New target.
1363 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1364 Add dependencies to match.
1365 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1366 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1367 scripttempl/mmo.sc: New files.
1368 * gen-doc.texi: @set MMIX.
1369 * ld.texinfo: Ditto.
1370 [MMIX] Add MMIX node.
1371 * Makefile.in: Regenerate.
1373 2001-10-29 Kazu Hirata <kazu@hxi.com>
1375 * ldlang.c: Fix a comment typo.
1377 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1379 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1380 entries, and match *-*-linux*.
1382 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1384 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1385 with ldlex_script, ldlex_popstate.
1386 (ifile_p1): Likewise.
1387 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1389 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1390 to 1. Don't BEGIN(SCRIPT).
1391 (lex_redirect): Similarly.
1392 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1394 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1396 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1397 __EH_FRAME_END__ and accept eh frames into data section.
1398 Add ctor and dtor sections.
1400 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1402 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1403 (auto-export): Fix indentation.
1405 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1407 * pe-dll.c (autofilter_objectlist): Add startup objects
1409 (auto-export): Constify char * p.
1410 Extract file basename and use strcmp rather than ststr
1413 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1415 * ldmain.c (get_emulation): Improve comment about the handling
1418 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1420 * po/POTFILES.in: Regenerate.
1422 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1424 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1425 -z nocopyreloc and -z nocombreloc usage strings.
1427 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1429 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1432 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1434 * scripttempl/armaout.sc: Place .bss section after end of aligned
1435 data section to match behaviour of aout code in constructrion of
1438 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1440 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1441 startup files for mingw32 dlls to list.
1443 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1445 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1447 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1449 * configure.tgt (targ): Add arm9e-*-elf.
1451 2001-10-05 H.J. Lu <hjl@gnu.org>
1453 * genscripts.sh: Fix a typo in the last change.
1455 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1457 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1458 -z nocombreloc in usage.
1460 2001-10-03 Jim Blandy <jimb@redhat.com>
1462 * genscripts.sh: Include a comment at the top of each generated
1463 script, explaining its purpose.
1465 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1467 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1468 * NEWS: Mention -z nocopyreloc.
1469 * ld.texinfo (Options): Describe nocopyreloc.
1471 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1473 * configure: Regenerate.
1475 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1477 * ldver.h (ld_program_version): Remove declaration.
1478 * lexsup.c (parse_args): Move printing of copyright message..
1479 * ldver.c (ldversion): .. to here.
1480 Use BFD_VERSION_STRING in place of BFD_VERSION.
1481 (ld_program_version): Remove.
1482 * Makefile.am (Makefile): Depend on bfd/configure.in.
1484 * Makefile.in: Regenerate.
1486 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1488 * Makefile.am: Update dependencies with "make dep-am".
1489 * Makefile.in: Regenerate.
1491 2001-09-29 John Reiser <jreiser@BitWagon.com>
1493 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1494 * lexsup.c: Add --no-define-common commandline option.
1495 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1496 * ldlex.l: Likewise.
1497 * ld.h: Add command_line.inhibit_common_definition.
1498 * ldmain.c (main): Initialize.
1499 * ld.texinfo: Document.
1501 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1503 * ldmisc.c (USE_STDARG): Remove.
1504 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1509 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1510 declarations. Update copyright.
1512 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1514 * pe-dll.c: Remove obsoleted declaration of
1515 pe_get_data_import_dll_name.
1516 (pe_create_import_fixup): Fix thinko.
1518 * ld.texinfo(enable-auto-import): Clarify the explanation.
1520 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1522 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1523 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1524 DLL_SUPPORT controlled code.
1526 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1528 * emultempl/pe.em(pe_data_import_dll): Make static.
1529 (pe_get_data_import_dll_name): New accessor function.
1530 * pe-dll.c(pe_create_import_fixup): call
1531 pe_get_data_import_dll_name() from pe.em, instead of
1532 directly accessing pe_data_import_dll variable from pe.em.
1534 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1536 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1537 (def_file_add_directive): Use ISSPACE instead of isspace.
1538 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1539 isdigit/isxdigit/isalpha/isalnum.
1540 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1541 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1542 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1543 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1545 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1546 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1548 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1549 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1550 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1551 (ctor_prio): Use ISDIGIT instead of isdigit.
1552 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1553 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1554 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1556 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1557 (stricpy): Use TOLOWER instead of isupper/tolower.
1558 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1559 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1560 (lex_warn_invalid): Use ISPRINT instead of isprint.
1561 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1562 (main): For gettext, also set the LC_CTYPE locate facet.
1563 (add_keepsyms_file): Use ISSPACE instead of isspace.
1564 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1565 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1566 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1567 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1568 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1569 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1570 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1571 (quoteput): Use ISSPACE instead of isspace.
1572 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1575 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1577 * deffilep.y (def_stash_module): Constify "name" param.
1579 * pe-dll.c: Replace CONST with const throughout.
1580 (quick_symbol): Constify "n1", "n2", "n3" params.
1581 (make_singleton_name_thunk): Constify "import" param. Make
1582 "buffer_len" a size_t.
1583 (make_import_fixup_entry): Constify "name", "fixup_name",
1584 "dll_symname" params.
1585 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1586 (pe_get32): Likewise.
1587 (pe_implied_import_dll): Likewise.
1589 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1590 (sort_by_section_name): Likewise.
1592 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1593 (make_import_fixup): Cast printf arg, rel->address to long rather
1595 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1597 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1599 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1600 defines BufferSize. Increase buffer size by one.
1602 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1604 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1606 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1608 * configure.tgt: Add arm-openbsd target.
1610 2001-09-12 H.J. Lu <hjl@gnu.org>
1612 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1614 (ALL_64_EMULATIONS): Here.
1615 * Makefile.in: Regenerated.
1617 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1619 * emultempl/pe.em(make_import_fixup): change signature to
1620 take asection as well as arelec; we need this for proper
1621 error reporting. Only call pe_create_import_fixup() if
1622 there is no attempt to add a constant addend to the reloc;
1623 otherwise, report error condition.
1624 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1625 since final argument is a pointer to make_import_fixup().
1626 Change call to cb() to match make_import_fixup() signature.
1627 (make_import_fixup_mark): make buffer_len unsigned.
1628 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1630 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1632 * ld.texinfo: add verbose documentation for auto-import
1633 direct-addressing workaround, to compliment the terse
1636 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1638 * scripttempl/v850.sc: Add gcc_except_table sections.
1640 2001-09-11 Jeffrey A Law (law@cygnus.com)
1642 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1643 * emulparams/h8300self.sh: Similarly.
1645 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1647 * ld.texinfo (Options, --stack): Correct default value for stack
1650 2001-09-05 Tom Rix <trix@redhat.com>
1652 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1654 2001-09-03 Andreas Jaeger <aj@suse.de>
1656 * emultempl/beos.em: Declare prototypes for comparions functions,
1659 2001-09-02 Andreas Jaeger <aj@suse.de>
1661 * emultempl/aix.em: Add missing prototype.
1662 * emultempl/lnk960.em: Likewise.
1663 * emultempl/vanilla.em: Likewise.
1664 * emultempl/armcoff.em: Likewise.
1665 * emultempl/armelf_oabi.em: Likewise.
1666 * emultempl/beos.em: Likewise.
1667 * emultempl/gld960c.em: Likewise.
1668 * emultempl/gld960.em: Likewise.
1670 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1671 for prototype declaration.
1673 2001-08-31 Eric Christopher <echristo@redhat.com>
1674 Jason Eckhardt <jle@redhat.com>
1676 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1678 2001-08-31 Andreas Jaeger <aj@suse.de>
1680 * emultempl/pe.em: Add missing prototypes.
1681 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1682 pe_find_data_imports.
1683 (pr_sym): Add unused attribute.
1685 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1687 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1688 default from coff to elf.
1690 2001-08-29 Jeff Law <law@redhat.com>
1692 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1694 * emulparams/h8300self.sh: Similarly.
1696 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1698 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1700 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1701 * configure.tgt (h8300-*-elf*): New case.
1702 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1703 * emulparams/h8300self.sh: New file.
1704 * Makefile.in: Regenerated.
1706 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1708 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1711 2001-08-27 Linus Nordberg <linus@swox.com>
1712 Alan Modra <amodra@bigpond.net.au>
1714 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1715 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1717 * Makefile.in: Regenerate.
1718 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1719 entries to correct alphabetical position.
1720 * emulparams/elf64ppc.sh: New.
1721 * emulparams/elf64lppc.sh: New.
1723 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1725 * ldmain.c (main): Declare BSIZE as static.
1727 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1729 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1730 into .rel.dyn resp. .rela.dyn if combreloc.
1731 (get_script): If .x linker script is equal to .xn, only put it
1732 once into the binary.
1733 Add .xc and .xsc scripts.
1734 (parse_args): Handle -z combreloc and -z nocombreloc.
1735 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1736 For .xc and .xsc scripts put all .rel* or .rela* input sections
1737 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1738 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1740 Strip trailing whitespace from script.
1741 Generate .xc and .xsc scripts if requested.
1742 * ldmain.c (main): Initialize link_info.combreloc and
1743 link_info.spare_dynamic_tags.
1744 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1745 (ld_options): Add --spare-dynamic-tags option.
1746 (parse_args): Likewise.
1747 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1748 * ldint.texinfo: Document .xc and .xsc linker scripts.
1749 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1751 2001-08-22 H.J. Lu <hjl@gnu.org>
1753 * emulparams/elf32fr30.sh: Add a newline.
1755 2001-08-21 Andreas Jaeger <aj@suse.de>
1757 * deffilep.y: Add missing prototypes.
1758 * pe-dll.c: Likewise.
1760 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1762 * ldlang.c (insert_pad): Fix typos in last patch.
1764 * ldlang.c: When traversing lang_statement_union_type lists,
1765 consistently use "header.next" rather than "next".
1766 * mpw-eppcmac.c: Likewise.
1767 * emultempl/beos.em: Likewise.
1768 * emultempl/hppaelf.em: Likewise.
1769 * emultempl/pe.em: Likewise.
1770 * ldlang.h (union lang_statement_union): Remove "next" field.
1772 * ldlang.c (insert_pad): Use offsetof macro.
1773 (lang_size_sections): Always neuter padding statements.
1774 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1776 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1777 passed to lang_size_sections.
1778 (pe_exe_fill_sections): Likewise.
1779 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1780 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1782 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1784 * emultempl/aix.em: Formatting fixes.
1786 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1788 * ldlang.c (insert_pad): Make use of an existing pad statement if
1789 available. Move code calculating alignment, adjusting section
1790 alignment power, and adjusting dot to ..
1791 (size_input_section): .. here. Remove unused relax param.
1792 (lang_size_sections): Change boolean `relax' param to boolean *.
1793 Adjust call to size_input_section. Make use of insert_pad to
1794 place pad after the assignment statement. If relaxing, zap
1796 (reset_memory_regions): Reset output_bfd section sizes too.
1797 (relax_again): Move to..
1798 (lang_process): ..here. Adjust call to lang_size_sections, and
1799 remove duplicated code.
1800 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1802 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1804 * ld.texinfo: Document that fill values now use the four least
1806 * emulparams/elf32fr30.sh (NOP): Update.
1807 * emulparams/elf32mcore.sh: Likewise.
1808 * emulparams/elf64_s390.sh: Likewise.
1809 * emulparams/elf_i386.sh: Likewise.
1810 * emulparams/elf_i386_be.sh: Likewise.
1811 * emulparams/elf_i386_chaos.sh: Likewise.
1812 * emulparams/elf_i386_ldso.sh: Likewise.
1813 * emulparams/elf_s390.sh: Likewise.
1814 * emulparams/elf_x86_64.sh: Likewise.
1815 * emulparams/i386moss.sh: Likewise.
1816 * emulparams/i386nw.sh: Likewise.
1817 * emulparams/m68kelf.sh: Likewise.
1818 * scripttempl/elf.sc: Update NOP comment.
1819 * scripttempl/elfi370.sc: Likewise.
1820 * scripttempl/elfm68hc11.sc: Likewise.
1821 * scripttempl/elfm68hc12.sc: Likewise.
1822 * scripttempl/nw.sc: Likewise.
1824 2001-08-15 Tom Rix <trix@redhat.com>
1826 * ldgram.y (saved_script_handle): Initialize to NULL.
1827 * ldmain.c (main): Change check on saved_script_handle.
1829 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1831 * emultempl/elf32.em: Formatting fixes.
1832 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1833 looking at sec->owner.
1834 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1835 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1836 unused code, and reorganize orphan section placement code.
1838 * ldlang.c (wild_doit): Rename to lang_add_section.
1839 * ldlang.h: Here too.
1840 * mpw-elfmips.c: And here.
1841 * emultempl/beos.em: And here.
1842 * emultempl/elf32.em: And here.
1843 * emultempl/hppaelf.em: And here.
1844 * emultempl/pe.em: And here.
1846 2001-08-13 Richard Henderson <rth@redhat.com>
1848 * emultempl/needrelax.em: New file.
1849 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1850 * Makefile.am (eelf64_ia64.c): Depend on it.
1851 * Makefile.in: Rebuild.
1853 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1855 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1856 output_section is set non-NULL.
1858 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1859 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1860 needlessly create an output_section_statement. Treat a correctly
1861 named output_section_statement with NULL bfd_section as compatible.
1863 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1865 * emultempl/generic.em: Support EXTRA_EM_FILE.
1866 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1867 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1868 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1869 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1870 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1871 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1872 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1873 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1874 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1875 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1877 2001-08-12 Richard Henderson <rth@redhat.com>
1879 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1880 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1881 scripttempl/v850.sc: Keep .jcr data.
1883 2001-08-12 H.J. Lu <hjl@gnu.org>
1884 Andrew Haley <aph@cambridge.redhat.com>
1885 Nick Clifton <nickc@redhat.com>
1887 * ldgram.y (had_script): Change name to saved_script_handle.
1888 Change type to file handle.
1889 * ld.h (had_script): Rename and retype.
1890 * ldfile.c (ldfile_open_command_file): Save the file handle
1891 used in saved_script_handle.
1892 * lexsup.c (parse_args): Do not allow -c option to alter
1893 saved_script_handle.
1894 * ldmain.c (main): Print out the linker script used if
1895 --verbose is given. Check saved_script_handle to obtain the
1896 external linker script used, or if NULL, dump the builtin
1898 * ld.texinfo: Document that --verbose now dumps the linker
1899 script used, regardless of whether it was an internal or an
1902 2001-08-10 Andreas Jaeger <aj@suse.de>
1904 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1906 * configure: Regenerate.
1908 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1910 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1912 * scripttempl/elf.sc: Move non-text .dynamic section before
1913 .plt/.got/.sdata* group.
1914 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1915 (OTHER_SDATA_SECTIONS): Add.
1916 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1918 * emulparams/crislinux.sh: Likewise.
1919 * emulparams/elf32b4300.sh: Likewise.
1920 * emulparams/elf32bmip.sh: Likewise.
1921 * emulparams/elf32bmipn32.sh: Likewise.
1922 * emulparams/elf32bsmip.sh: Likewise.
1923 * emulparams/elf32btsmip.sh: Likewise.
1924 * emulparams/elf32ebmip.sh: Likewise.
1925 * emulparams/elf32elmip.sh: Likewise.
1926 * emulparams/elf32l4300.sh: Likewise.
1927 * emulparams/elf32lmip.sh: Likewise.
1928 * emulparams/elf32lsmip.sh: Likewise.
1929 * emulparams/elf32ltsmip.sh: Likewise.
1930 * emulparams/elf64bmip.sh: Likewise.
1931 * emulparams/elf64btsmip.sh: Likewise.
1932 * emulparams/elf64ltsmip.sh: Likewise.
1934 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1936 * genscripts.sh: Source the emulparams script before each output
1937 script is generated so that variables like `RELOCATING' may affect
1938 variables defined in the emulparams script.
1940 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1942 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1945 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1946 ie. iterate over wild_statement.section_list.
1947 (gld${EMULATION_NAME}_place_orphan): Likewise.
1949 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1951 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1952 .fini[0-4] sections used by _exit
1953 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1954 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1955 * scripttempl/elfm68hc11.sc: Likewise.
1957 2001-08-03 H.J. Lu <hjl@gnu.org>
1959 * emultempl/beos.em (init): Add the missing initialization.
1961 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1963 * ld.texinfo (Input Section Basics): Clarify ordering of output
1965 * ldlang.c (callback_t): Add wildcard_list param.
1966 (walk_wild_section): Remove "section" param. Rewrite for
1967 lang_wild_statement_type change. Remove unique_section_p test.
1968 (walk_wild_file): Remove "section" param.
1969 (walk_wild): Remove "section" and "file" params.
1970 (lang_gc_wild): Likewise.
1971 (wild): Likewise. Modify for lang_wild_statement_type change.
1972 (wild_sort): Likewise. Add "sec" param.
1973 (gc_section_callback): Likewise.
1974 (output_section_callback): Likewise. Do unique_section_p test.
1975 (map_input_to_output_sections): Modify call to wild.
1976 (lang_gc_sections_1): Likewise.
1977 (print_wild_statement): Modify for lang_wild_statement_type
1979 (lang_add_wild): Replace filename, filenames_sorted param with
1980 filespec. Replace section_name, sections_sorted,
1981 exclude_filename_list with section_list.
1982 * ldlang.h (lang_add_wild): Here too.
1983 (lang_wild_statement_type): Replace section_name, sections_sorted,
1984 and exclude_filename_list with section_list.
1985 * ldgram.y (current_file): Delete.
1986 (%union): Add wildcard_list.
1987 (file_NAME_list): Set type to wildcard_list. Build a linked list
1988 rather than calling lang_add_wild for each entry.
1989 (input_section_spec_no_keep): Call lang_add_wild here instead.
1990 * ld.h (struct wildcard_list): Declare.
1991 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1993 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1995 * ldmain.c (main): initialize link_info.pei386_auto_import
1996 * pe-dll.c: new tables for auto-export filtering
1997 (auto_export): change API, pass abfd for contextual filtering.
1998 Loop thru tables of excluded symbols instead of comparing
2001 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2003 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2004 static variable current_sec (static struct sec *). Add
2005 forward declaration for add_bfd_to_link.
2006 (process_def_file): Don't export undefined symbols. Do not
2007 export symbols starting with "_imp__". Call auto_export()
2009 (pe_walk_relocs_of_symbol): New function.
2010 (generate_reloc): add optional extra debugging
2011 (pe_dll_generate_def_file): eliminate extraneous initial blank
2013 (make_one): enlarge symtab to make room for __nm__ symbols
2014 (DATA auto-import support).
2015 (make_singleton_name_thunk): New function.
2016 (make_import_fixup_mark): New function.
2017 (make_import_fixup_entry): New function.
2018 (pe_create_import_fixup): New function.
2019 (add_bfd_to_link): Specify that 'name' argument is a CONST
2021 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2022 declare new functions pe_walk_relocs_of_symbol and
2023 pe_create_import_fixup.
2024 * emultempl/pe.em: add new options --enable-auto-import,
2025 --disable-auto-import, and --enable-extra-pe-debug.
2026 (make_import_fixup): New function.
2027 (pe_find_data_imports): New function.
2028 (pr_sym): New function.
2029 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2030 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2033 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2035 * ld.texinfo: add additional documentation for
2036 --export-all-symbols. Document --out-implib,
2037 --enable-auto-image-base, --disable-auto-image-base,
2038 --dll-search-prefix, --enable-auto-import, and
2039 --disable-auto-import.
2040 * ldint.texinfo: Add detailed documentation on auto-import
2043 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2045 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2048 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2050 * Makefile.am: Update dependencies with "make dep-am".
2051 * Makefile.in: Regenerate
2053 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2055 * ldcref.c (check_section_sym_xref): New function.
2056 (check_nocrossrefs): Call it.
2057 (check_nocrossref): Interate over h->refs here instead of..
2058 (check_refs): ..here. Pass in the symbol name, section, and bfd
2059 rather than hash_entry pointers.
2060 (struct check_refs_info): Keep symbol name rather than hash entry.
2062 (check_reloc_refs): Tweak for above changes in check_refs_info.
2063 Only report references to section syms when symname is NULL to
2064 prevent duplicate messages for the same reloc.
2066 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2068 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2069 available. Do not print NULL trees.
2070 (exp_print_token): Print unknown tokens with values > 126 as
2071 decimal values not ASCII characters.
2073 * ldlang.c (lang_leave_overlay): If a region is specified assign
2074 it to all sections inside the overlay unless they have been
2075 assigned to the own, non-default, memory region.
2077 * README: Add header for consistency with other README files.
2079 2001-07-14 H.J. Lu <hjl@gnu.org>
2081 * emultempl/elf32.em (output_prev_sec_find): Never return
2082 bfd_abs_section_ptr, bfd_com_section_ptr nor
2083 bfd_und_section_ptr.
2085 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2087 * Makefile.am (em32relf.c): Change dependency from generic.em to
2089 * Makefile.in: Regenerate.
2091 2001-07-14 matthew green <mrg@eterna.com.au>
2093 * configure.tgt (i386-*-netbsdelf*): New target.
2094 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2096 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2098 * emultempl/elf32.em (output_prev_sec_find): New.
2099 (place_orphan): Use it.
2101 2001-07-11 H.J. Lu <hjl@gnu.org>
2103 * ldmain.c (main): Fix typos in the last change.
2105 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2107 * ldmain.c (main): Disallow -F and -f without -shared.
2109 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2111 * emultempl/pe.em (after_open): Check for the output_bfd not
2112 having any coff_data structure allocated to it.
2114 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2116 * emultempl/elf32.em: Do not assuming that contents of the buffer
2117 returned from basename function will remain unchanged accross other
2120 2001-07-03 H.J. Lu <hjl@gnu.org>
2122 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2123 2001-07-03. It creates dynamic entries even for static binaries.
2125 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2127 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2128 (DYNAMIC): Use it to reserve few dynamic entries for
2131 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2133 * emulparams/hppa64linux.sh: New file.
2134 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2135 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2136 (ehppa64linux.c): Add rule to make it.
2138 * Makefile.in: Regenerate.
2140 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2142 * ld.texinfo (Options, -r): Mention restrictions when using
2143 different object formats.
2145 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2147 * ldlang.c (lang_check): Emit fatal error if relocatable link
2148 between different object flavours with relocations in input.
2150 2001-06-19 H.J. Lu <hjl@gnu.org>
2152 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2153 (--version-script): Mention the language support.
2155 2001-06-19 H.J. Lu <hjl@gnu.org>
2157 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2159 2001-06-18 H.J. Lu <hjl@gnu.org>
2161 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2162 (diststuff): Add $(MANS).
2163 * Makefile.in: Regenerated.
2167 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2169 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2170 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2171 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2172 * ld.h (args_type): Remove member export_dynamic. All users
2173 changed to use struct bfd_link_info member.
2175 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2176 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2177 * Makefile.in: Regenerate.
2179 2001-06-18 H.J. Lu <hjl@gnu.org>
2181 * ldlang.c (init_os): Add the newline to the einfo call.
2182 (lang_check): Likewise.
2183 (lang_do_version_exports_section): Likewise.
2185 2001-06-15 H.J. Lu <hjl@gnu.org>
2187 * lexsup.c (parse_args); Save optind to report unrecognized
2190 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2192 * ldlang.c (lang_check): Emit fatal error if relocatable link
2193 between different object flavours.
2195 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2196 Set new link_info member export_dynamic.
2197 * ldmain.c (main): Initialize new link_info member export_dynamic.
2199 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2201 * ldlang.c (walk_wild): Only call walk_wild_file if
2202 lookup_name returns something.
2203 (lookup_name): If load_symbols fails, return NULL.
2204 (load_symbols): Change to a boolean function.
2205 (open_input_bfds): If load_symbols fails then do not make the
2208 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2210 * ldlang.c (record_bfd_errors): Remove.
2212 * emultempl/aix.em: Fix copyright dates.
2214 2001-06-07 Andreas Jaeger <aj@suse.de>
2216 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2217 (TEXT_START_ADDR): Likewise.
2219 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2221 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2223 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2225 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2227 2001-05-31 H.J. Lu <hjl@gnu.org>
2229 * ldlang.c (open_input_bfds): Don't change the bfd error
2230 handler whilst loading symbols.
2232 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2234 * configure.tgt: Remove i370-mvs architecture, it is not currently
2237 2001-05-25 H.J. Lu <hjl@gnu.org>
2239 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2240 like emulparams/aixppc.sh.
2242 2001-05-25 H.J. Lu <hjl@gnu.org>
2244 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2245 setting of output_filename after bfd_scan_arch.
2246 * emultempl/pe.em: Likewise.
2248 2001-05-25 H.J. Lu <hjl@gnu.org>
2250 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2251 like emulparams/aixppc.sh.
2253 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2254 instead of ${srcdir}/emultempl/stringify.sed.
2256 2001-05-25 Timothy Wall <twall@oculustech.com>
2258 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2261 2001-05-25 Alan Modra <amodra@one.net.au>
2263 * configure.host: Replace linuxoldld with linux*oldld.
2264 * configure.tgt: Likewise.
2266 2001-05-24 H.J. Lu <hjl@gnu.org>
2268 * emultempl/stringify.sed: Removed again.
2270 2001-05-24 H.J. Lu <hjl@gnu.org>
2272 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2273 (gld${EMULATION_NAME}_before_parse): Initialize
2274 ldfile_output_architecture, ldfile_output_machine and
2275 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2276 * emultempl/beos.em: Likewise.
2277 * emultempl/elf32.em: Likewise.
2278 * emultempl/linux.em: Likewise.
2279 * emultempl/mipsecoff.em: Likewise.
2280 * emultempl/pe.em: Likewise.
2281 * emultempl/sunos.em: Likewise.
2283 2001-05-24 Tom Rix <trix@redhat.com>
2285 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2286 udate import file format.
2287 (change_symbol_mode) New, same
2288 (is_syscall) New, same
2289 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2290 * emulparams/aixppc64.sh : same
2291 * emulparams/aixrs6.sh : same
2292 * emulparams/ppcmacos.sh : same
2293 * emultempl/aix.em : use strtoull to parse options
2294 * Makefile.am : add eaixppc64 emulation for xcoff64
2295 * Makefile.in : same
2296 * configure.tgt : same
2298 * scripttempl/aix.sc : default text section offset to 0x10000000
2299 default data section offset to 0x20000000
2300 add .sv3264 and .sv64 pseudo sections
2301 loader and debug sections use the currect section offset.
2303 * emultempl/aix.em : Add xcoff64 support
2304 Add -binitfini support
2305 (gld${EMULATION_NAME}_before_parse) -binitfini
2306 (gld${EMULATION_NAME}_parse_args) same
2307 (gld${EMULATION_NAME}_before_allocation) format change for special
2310 * emulparams/aixppc64.sh : New file for xcoff64 support
2312 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2314 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2315 variable to avoid non-portable shell construct.
2317 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2319 * ldmain.c (get_emulation): Add -mips5 command line argument.
2321 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2323 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2324 (ELF_INTERPRETER_NAME): Define it.
2325 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2327 * configure.tgt (targ_emul, targ_extra_emuls)
2328 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2329 as primary, elf_i386 as extra.
2330 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2331 (eelf_i386_ldso.c): New rule.
2332 * Makefile.in: Rebuilt.
2334 2001-05-22 Nick Clifton <nickc@redhat.com>
2336 * lexsup.c (ld_options): Allow -I to be an alias for
2337 --dynamic-linker. This is for Solaris compatability.
2338 * ld.texinfo: Document that -I can be used.
2341 2001-05-16 Alan Modra <amodra@one.net.au>
2343 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2344 whether an input section is the first one assigned to an output
2346 Assorted formatting fixes.
2348 2001-05-14 DJ Delorie <dj@delorie.com>
2350 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2351 * Makefile.in: Ditto.
2353 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2355 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2356 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2358 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2360 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2362 * ldlang.c (lang_process): Call bfd_merge_sections.
2364 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2366 * ldgram.y: Fix typo.
2368 2001-05-03 H.J. Lu <hjl@gnu.org>
2370 * emultempl/elf32.em: Include "libiberty.h".
2371 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2372 basename of the bfd filename.
2373 (gld${EMULATION_NAME}_stat_needed): Likewise.
2374 (gld${EMULATION_NAME}_try_needed): Likewise.
2375 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2377 2001-05-02 H.J. Lu <hjl@gnu.org>
2379 * emultempl/pe.em: Include <ctype.h>.
2381 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2383 * emulparams/elf32openrisc.sh: New file.
2385 * Makefile.am: Add OpenRISC target.
2386 * Makefile.in: Regenerated.
2388 * configure.tgt: Add openrisc-*-* mapping.
2390 2001-05-02 Nick Clifton <nickc@redhat.com>
2392 * emultempl/aix.em: Replace buystring with xstrdup.
2393 * emultempl/beos.em: Replace buystring with xstrdup.
2395 2001-05-02 H.J. Lu <hjl@gnu.org>
2397 * ldfile.c: Include "libiberty.h".
2398 * ldlex.l: Likewise.
2400 * ldmisc.c (buystring): Removed.
2401 * ldmisc.h: Likewise.
2403 * ldfile.c: Replace buystring with xstrdup.
2404 * ldlang.c: Likewise.
2405 * ldlex.l: Likewise.
2406 * ldmain.c: Likewise.
2407 * ldmisc.c: Likewise.
2408 * lexsup.c: Likewise.
2409 * mpw-eppcmac.c: Likewise.
2411 2001-04-30 Andreas Jaeger <aj@suse.de>
2413 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2415 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2417 * ldlang.c (load_symbols): Give emulation a chance
2418 to process unrecognized file before fatal error is
2419 reported, not after.
2421 2001-04-27 Sean McNeil <sean@mcneil.com>
2423 * configure.tgt: Add arm-vxworks target.
2424 * scripttempl/armcoff.sc: Support .text or .data as a section name
2428 2001-04-13 J.T. Conklin <jtc@redback.com>
2430 * ld.texinfo: Document --fatal-warnings.
2433 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2434 warnings have been turned into errors.
2435 * lexsup.c (OPTION_WARN_FATAL): Define.
2436 (ld_options): Entry for --fatal-warnings.
2437 (parse_args): Handle OPTION_WARN_FATAL.
2438 * ld.h (ld_config_type): Add fatal_warnings field.
2440 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2442 * ldmain.c (main): Default to discard_sec_merge.
2443 * lexsup.c (OPTION_DISCARD_NONE): Define.
2444 (ld_options): Add --discard-none.
2445 (parse_args): Handle OPTION_DISCARD_NONE.
2446 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2447 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2448 all its input sections match.
2450 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2452 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2453 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2454 (eelf32ltsmip.c): New target.
2455 (eelf64btsmip.c): Likewise.
2456 (eelf64ltsmip.c): Likewise.
2457 * Makefile.in: Regenerated.
2459 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2461 (mips*-*-linux-gnu*): Likewise.
2463 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2465 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2467 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2470 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2472 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2473 correct value of __Stext here.
2474 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2477 * emulparams/crislinux.sh: Remove FIXME.
2479 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2481 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2482 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2484 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2486 * configure.tgt (cris-*-*): Change default emulation to criself.
2487 (cris-*-*aout*): New rule.
2489 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2491 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2492 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2494 2001-03-26 Andreas Jaeger <aj@suse.de>
2496 * ld.texinfo (Overview): Fix syntax in texi code.
2498 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2500 * ld.texinfo: Put @c man indications to generate the ld man page.
2501 When generating man, define all the variables. Define SEEALSO
2502 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2503 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2504 (ld.1): Generate from ld.texinfo.
2505 * Makefile.in: Regenerate.
2507 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2509 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2510 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2512 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2514 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2515 is an absolute path look only for this file and not along the path.
2517 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2519 * emultempl/elf32.em (OPTION_GROUP): New macro.
2520 Add new option Bgroup to longopts.
2521 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2522 (gld*_list_options): Add -Bgroup and -z defs.
2523 * ld.1: Document -Bgroup and -z defs.
2524 * ld.texinfo: Likewise.
2526 2001-03-07 Michael Meissner <meissner@redhat.com>
2528 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2529 with sections created by -fdata-sections.
2530 (.dynbss,.bss): Ditto.
2532 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2534 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2535 after_allocation_default, not gld..._before_allocation.
2537 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2539 * configure.in (BFD_VERSION): New.
2540 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2541 * configure: Regenerate.
2542 * Makefile.am: Run "make dep-am"
2543 * Makefile.in: Regenerate.
2545 2001-02-26 Timothy Wall <twall@cygnus.com>
2547 * emulparams/elf64_aix.sh: Add additional read-only sections;
2548 uncomment lines which are now required.
2550 2001-02-26 H.J. Lu <hjl@gnu.org>
2552 * ldlang.c (open_input_bfds): Set the bfd error handler so
2553 that problems can be caught whilst loading symbols.
2554 (record_bfd_errors): New function: Report BFD errors and mark
2555 the executable output as being invalid.
2557 2001-02-22 Timothy Wall <twall@cygnus.com>
2559 * configure.host: Add configuration for ia64-*-aix*.
2560 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2561 Add dependencies for eelf64_aix.c.
2562 * Makefile.in: Regenerate.
2563 * configure.tgt: Add ia64-*-aix* mapping.
2564 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2565 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2568 2001-02-20 H.J. Lu <hjl@gnu.org>
2570 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2571 false if we found the file.
2573 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2575 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2576 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2578 2001-02-18 lars brinkhoff <lars@nocrew.org>
2580 * Makefile.am: Add PDP-11 target.
2581 * configure.tgt: Likewise.
2582 * emulparams/pdp11.sh: New file.
2584 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2586 * configure.host: Add a generic FreeBSD configuration entry such that
2587 all [modern] FreeBSD systems on all platforms will look the same.
2589 2001-02-14 H.J. Lu <hjl@gnu.org>
2591 * configure.tgt: Remove mention of earmelf_linux26.
2593 2001-02-13 Richard Henderson <rth@redhat.com>
2595 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2597 2001-02-13 H.J. Lu <hjl@gnu.org>
2599 * ldexp.h (node_type): Add etree_provided.
2600 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2601 type to etree_provided if defined by PROVIDE. Allow updating
2603 (exp_print_tree): Handle etree_provided.
2604 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2607 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2609 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2610 .IA_64.unwind.* pattern to unwind table section and
2611 .IA_64.unwind_info* pattern to unwind info section.
2613 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2615 * Makefile.am: Add linux target for S/390.
2616 * Makefile.in: Likewise.
2617 * configure.host: Likewise.
2618 * configure.tgt: Likewise.
2619 * emulparams/elf64_s390.sh: New file.
2620 * emulparams/elf_s390.sh: New file.
2622 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2624 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2626 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2628 2001-02-06 Philip Blundell <philb@gnu.org>
2630 * Makefile.am: Remove mention of earmelf_linux26.
2631 * Makefile.in: Regenerate.
2633 2001-02-04 Philip Blundell <philb@gnu.org>
2635 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2636 * emulparams/armelf_linux26.sh: Delete.
2637 * configure.tgt: Remove mention of armelf_linux26 emulation.
2639 2001-02-01 Nick Clifton <nickc@redhat.com>
2641 * ld.1: Replace occurances of -oformat with --oformat.
2643 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2645 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2646 load_base is specified.
2648 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2650 * emultempl/elf32.em: Correct spelling in comments and listed
2653 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2655 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2656 default for the first section of a group of overlay sections.
2658 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2660 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2661 * Makefile.in: Regenerate.
2662 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2663 Check for null tool_dir.
2665 2001-01-16 Jim Wilson <wilson@redhat.com>
2667 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2668 and IA_64.unwind.info.
2670 2001-01-16 H.J. Lu <hjl@gnu.org>
2672 * ldlang.c (lang_check): Merge the private data only if the
2673 input file has contents.
2675 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2677 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2679 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2680 enabling search for libmilli. On a relocatable link, make .text
2682 (LDEMUL_AFTER_PARSE): Define.
2683 (hppaelf_finish): Correct spelling of relocatable in comments.
2685 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2686 rummage through the script for sections on the unique list.
2687 Correct length of strncmp for ".note".
2688 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2690 * ldlang.c (unique_section_list): New var.
2691 (unique_section_p): New function.
2692 (walk_wild_section): Don't match sections on unique_section_list.
2693 (lang_add_unique): New function.
2694 Correct spelling of relocatable in comments.
2696 * ldlang.h (struct unique_sections): Declare.
2697 (unique_section_list): Declare.
2698 (unique_section_p): Declare.
2699 (lang_add_unique): Declare.
2701 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2702 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2704 * ld.texinfo (--unique): Update.
2706 2001-01-13 Nick Clifton <nickc@redhat.com>
2708 * lexsup.c (parse_args): Remove spurious white space.
2710 2001-01-12 Nick Clifton <nickc@redhat.com>
2712 * lexsup.c (parse_args): Update copyright date.
2714 2001-01-12 Philip Blundell <pb@futuretv.com>
2716 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2718 2001-01-10 Kazu Hirata <kazu@hxi.com>
2720 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2721 * scripttempl/h8300h.sc: Fix formatting.
2722 * scripttempl/h8300s.sc: Likewise.
2723 * scripttempl/h8500.sc: Likewise.
2724 * scripttempl/h8500b.sc: Likewise.
2725 * scripttempl/h8500c.sc: Likewise.
2726 * scripttempl/h8500m.sc: Likewise.
2727 * scripttempl/h8500s.sc: Likewise.
2729 2000-01-07 David O'Brien <obrien@BSDi.com>
2731 * emultempl/elf32.em: Only perform Linux ld hints processing when
2734 2001-01-07 Philip Blundell <philb@gnu.org>
2736 * ld.texinfo (Bug Reporting): Update email address for reports.
2738 2000-12-31 Nick Clifton <nickc@redhat.com>
2740 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2741 options by checking for a return value of '?' not -1.
2743 2000-12-28 Nick Clifton <nickc@redhat.com>
2745 * lexsup.c (struct ld_option): Add new enum value:
2747 (ld_options[]): Change -omagic, -output and -oformat options
2748 to be EXACTLY_TWO_DASHES.
2749 (OUTPUT_COUNT): Use ARRAY_SIZE.
2750 (parse_args): Change parameter 'argc' to unsigned.
2751 Place EXACTLY_TWO_DASHES options into new really_longopts
2753 If getopt_long_only fails, try calling getopt_long using the
2754 really_longopts array.
2755 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2758 * ldlex.h: Fix prototype of parse_args.
2760 * ld.texinfo: Document that long options starting with 'o'
2761 must be preceeded by two dashes. Change example of a single
2762 dashed long option from -oformat to -trace-symbol.
2764 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2766 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2767 (longopts[]): New --no-default-excludes option.
2768 (gld_${EMULATION_NAME}_list_options): Document.
2769 (gld_${EMULATION_NAME}_parse_args): Handle.
2771 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2773 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2774 whitespace, it breaks the K&R C preprocessor.
2776 2000-12-11 DJ Delorie <dj@redhat.com>
2778 * ld.texinfo: Add notes about --whole-archive and gcc.
2780 2000-11-18 Fred Fish <fnf@be.com>
2782 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2783 (ld_options): Entry for --allow-shlib-undefined.
2784 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2785 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2787 * ld.texinfo: Document new command line switch.
2789 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2791 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2792 .fixup is actually read/write.
2793 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2794 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2795 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2797 2000-12-11 Jan Hubicka <jh@suse.cz>
2799 * NEWS: Add note about x86_64 architecture.
2801 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2803 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2804 Set DWARF2 sections to a VMA of zero.
2806 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2808 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2810 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2811 (sparc*-*-rtems*): Switched from a.out to ELF.
2813 2000-11-30 Jan Hubicka <jh@suse.cz>
2815 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2816 (eelf_x86_64.c): New.
2817 * Makefile.in: Regenerate.
2818 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2819 * emulparams/elf_x86_64.sh: New.
2821 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2823 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2824 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2826 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2827 merging non-a.out sections into CONSTRUCTING.
2829 2000-11-28 Nick Clifton <nickc@redhat.com>
2831 * ld.1 (COPYING): Mention that the GNU Free Documentation
2832 License is present in the sources, but not the output, and
2833 also available from the GNU website.
2834 (GNU Free Documentation License): Comment out this section.
2836 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2838 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2841 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2843 * ld.1: Remove old date so it does not give the impression the manpage
2846 2000-11-24 Nick Clifton <nickc@redhat.com>
2848 * configure.tgt (xscale-coff): Add target.
2849 (xscale-elf): Add target.
2851 2000-11-24 Fred Fish <fnf@be.com>
2853 * ldmain.c (main): Remove redundant init of config.make_executable
2856 2000-11-15 Richard Henderson <rth@redhat.com>
2858 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2860 2000-11-14 Kazu Hirata <kazu@hxi.com>
2862 * scripttempl/h8300.sc: Fix formatting.
2863 * scripttempl/h8300h.sc: Likewise.
2864 * scripttempl/h8300s.sc: Likewise.
2866 2000-11-14 Denis Chertykov <denisc@overta.ru>
2868 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2870 2000-11-09 Philip Blundell <pb@futuretv.com>
2872 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2873 around orphan sections whose names can be represented in C.
2875 2000-11-07 Jim Wilson <wilson@redhat.com>
2877 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2878 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2880 2000-11-06 Nick Clifton <nickc@redhat.com>
2882 * ld.texinfo: Add GNU Free Documentation License.
2883 * ldint.texinfo: Add GNU Free Documentation License.
2884 * ld.1: Add GNU Free Documentation License.
2886 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2888 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2889 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2891 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2892 Move 2000-11-02 Makefile.in changes to this file.
2893 * Makefile.in: Regenerate.
2895 2000-11-03 Nick Clifton <nickc@redhat.com>
2897 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2898 constructors and destructors.
2899 * scripttempl/h8300h.sc: Ditto.
2900 * scripttempl/h8300s.sc: Ditto.
2901 * scripttempl/h8500.sc: Ditto.
2902 * scripttempl/h8500b.sc: Ditto.
2903 * scripttempl/h8500c.sc: Ditto.
2904 * scripttempl/h8500m.sc: Ditto.
2905 * scripttempl/h8500s.sc: Ditto.
2906 * scripttempl/v850.sc: Ditto.
2907 * scripttempl/w65.sc: Ditto.
2908 * scripttempl/z8000.sc: Ditto.
2910 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2912 * Makefile.in (e_i386_chaos.c): New rule.
2913 (ALL_EMULATIONS): Added e_i386_chaos.o.
2914 * emulparams/elf_i386_chaos.sh: New file.
2915 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2917 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2919 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2920 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2921 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2922 library path suffix.
2923 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2925 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2927 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2928 for consecutive sections.
2930 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2932 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2934 * ld.texinfo: Added notes about this new option.
2936 2000-10-16 Nick Clifton <nickc@redhat.com>
2938 * emultempl/pe.em (_after_open): Add tests of return values from
2939 bfd functions. Emit appropriate error messages if necessary.
2941 2000-10-13 Nick Clifton <nickc@redhat.com>
2943 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2944 local variables - they are not used, but leave in the call to
2945 bfd_canonicalize_symtab.
2946 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2947 pe_dll_search_prefix.
2949 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2951 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2952 (longopts): New --dll-search-prefix option.
2953 (gld_${EMULATION_NAME}_list_options): Document.
2954 (gld_${EMULATION_NAME}_parse_args): Handle.
2955 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2956 dynamically, search for a dll named '<prefix><basename>.dll'
2957 in preference to 'lib<basename>.dll' if --dll-search-prefix
2960 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2962 * ldlang.c (section_already_linked): Set kept_section instead of
2965 2000-10-10 Kazu Hirata <kazu@hxi.com>
2967 * deffile.h: Fix formatting.
2968 * lexsup.c: Likewise.
2971 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2973 * pe-dll.c (make_one): Do not generate code thunk for DATA
2975 (process_def_file): deduce DATA flag for auto-export sumbols.
2977 2000-10-09 Kazu Hirata <kazu@hxi.com>
2979 * ld.h: Fix formatting.
2980 * ldcref.c: Likewise.
2981 * ldctor.h: Likewise.
2982 * ldemul.c: Likewise.
2983 * ldemul.h: Likewise.
2984 * ldexp.c: Likewise.
2985 * ldexp.h: Likewise.
2986 * ldfile.c: Likewise.
2987 * ldfile.h: Likewise.
2988 * ldlang.c: Likewise.
2989 * ldlang.h: Likewise.
2990 * ldmain.c: Likewise.
2991 * pe-dll.c: Likewise.
2993 * pe-dll.c: Revert some formatting fixes.
2995 2000-10-08 Kazu Hirata <kazu@hxi.com>
2997 * pe-dll.c: Fix formatting.
2999 2000-10-05 Kazu Hirata <kazu@hxi.com>
3001 * ldlang.c: Fix formatting.
3003 2000-10-03 DJ Delorie <dj@redhat.com>
3005 * pe-dll.c (fill_edata): initialize entire block
3006 (make_one): fill in correct section.
3008 2000-10-03 Kazu Hirata <kazu@hxi.com>
3010 * ldexp.c: Fix formatting.
3012 2000-10-02 DJ Delorie <dj@redhat.com>
3014 * emultempl/pe.em (gld_*_after_open): detect case where there two
3015 import libraries for same dll; rename one to ensure proper link
3018 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3020 (generate_edata): fix typo
3022 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3024 * scripttempl/crisaout.sc (ENTRY): Now __start.
3025 (.text): Add default setting for __start.
3026 Remove CONSTRUCTORS handling.
3027 (/DISCARD/): Add .gnu.warning.*.
3028 * emulparams/crislinux.sh (ENTRY): Now __start.
3029 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3030 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3031 (ENTRY): Now __start.
3032 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3033 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3035 2000-09-29 Kazu Hirata <kazu@hxi.com>
3037 * deffile.h: Fix formatting.
3039 * ldcref.c: Likewise.
3040 * ldctor.c: Likewise.
3041 * ldctor.h: Likewise.
3042 * ldemul.c: Likewise.
3043 * ldemul.h: Likewise.
3044 * ldexp.c: Likewise.
3045 * ldexp.h: Likewise.
3046 * ldfile.c: Likewise.
3047 * ldfile.h: Likewise.
3048 * ldlang.c: Likewise.
3049 * ldlang.h: Likewise.
3050 * lexsup.c: Likewise.
3052 * pe-dll.c: Likewise.
3054 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3056 * pe-dll.c (process_def_file): Uninitialized data wasn't
3057 exported with --export-all-symbols switch.
3059 2000-09-28 DJ Delorie <dj@redhat.com>
3061 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3062 noname work properly.
3064 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3066 * ld.texinfo (HPPA ELF32): New section.
3068 * emultempl/hppaelf.em (group_size): New.
3069 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3070 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3071 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3072 options to prevent abbreviations matching.
3073 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3074 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3076 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3078 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3079 on the m68*-*-elf target. Make it support COFF input objects.
3081 2000-09-21 Kazu Hirata <kazu@hxi.com>
3083 * ldmain.c: Fix formatting.
3084 * ldmisc.c: Likewise.
3085 * ldver.c: Likewise.
3086 * ldwrite.c: Likewise.
3088 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3090 * ldwrite.c (clone_section): Silence gcc warnings.
3092 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3094 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3095 out of memory failure.
3097 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3098 (clone_section): Handle out of memory failures. Rename var to
3099 avoid c++ reserved word.
3101 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3103 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3104 stub_name param to stub_sec_name.
3105 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3107 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3109 * emultempl/m68kelf.em: New file.
3110 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3111 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3112 * Makefile.in: Regenerate.
3114 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3116 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3119 2000-09-13 Nick Clifton <nickc@redhat.com>
3121 * ldmain.c (multiple_definition): Disable relaxation if
3122 multiple symbol definitions are encountered - otherwise the
3123 linker could abort with an assertion failure.
3125 2000-09-10 Nick Clifton <nickc@redhat.com>
3127 * mri.c: Fix formatting.
3129 2000-09-07 H.J. Lu <hjl@gnu.org>
3131 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3132 * configure: Rebuild.
3134 2000-09-07 H.J. Lu <hjl@gnu.org>
3136 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3137 * Makefile.in: Rebuild.
3139 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3141 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3142 broken list handling. Create __start_SECNAME and __stop_SECNAME
3143 when no place-holder. Add some comments. Test both SEC_CODE and
3144 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3145 Handle case where no output section statement created.
3147 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3149 * configure.tgt (sh-*-linux*): Added.
3150 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3151 * Makefile.in: Rebuilt.
3152 * emulparams/shelf_linux.sh: New file.
3153 * emulparams/shlelf_linux.sh: New file.
3155 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3157 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3158 try shuffling sections when the orphan happens to be the place
3159 holder. Keep count of unique section names generated so we speed
3160 the search for a new name.
3162 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3164 * configure: Rebuilt with new libtool.m4.
3166 2000-09-05 Nick Clifton <nickc@redhat.com>
3168 * Makefile.in: Regenerate.
3169 * aclocal.m4: Regenerate.
3170 * configure: Regenerate.
3171 * config.in: Regenerate.
3172 * po/ld.pot: Regenerate.
3174 * ldint.texinfo: Remove CVS revision marker - it foils local
3177 * emultempl/ticoff.em: Remove extraneous comma.
3179 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3181 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3182 to stub section flags.
3183 (hppa_for_each_input_file_wrapper): New.
3184 (hppa_lang_for_each_input_file): New.
3185 (lang_for_each_input_file): Define to call above.
3186 (multi_subspace): New.
3187 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3188 (PARSE_AND_LIST_PROLOGUE): Define.
3189 (PARSE_AND_LIST_LONGOPTS): Define.
3190 (PARSE_AND_LIST_OPTIONS): Define.
3191 (PARSE_AND_LIST_ARGS_CASES): Define.
3192 (hppaelf_finish): Call elf32_hppa_set_gp.
3193 (hppaelf_set_output_arch): Remove.
3194 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3196 * emulparams/hppalinux.sh (ELFSIZE): Define.
3198 (OTHER_READONLY_SECTIONS): Define.
3200 (GENERATE_SHLIB_SCRIPT): Define.
3202 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3203 to const throughout. Change `void *' to `PTR' throughout.
3204 (lang_memory_default): Function is local to file, add `static'.
3206 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3207 (ehppalinux.c): Likewise.
3208 (earmelf.c): Likewise.
3209 (earmelf_linux.c): Likewise.
3210 (earmelf_linux26.c): Likewise.
3211 * Makefile.in: Regenerate.
3213 * ld.h (ld_config_type): Add unique_orphan_sections.
3214 * lexsup.c (OPTION_UNIQUE): Define.
3215 (ld_options): Add "--unique".
3216 (parse_args): Handle it.
3217 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3218 search for an existing output section if unique_orphan_sections is
3219 set. Make use of bfd_get_unique_section_name rather than
3220 duplicating code here.
3221 * ld.texinfo: Describe --unique.
3223 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3224 optional arg to split-by-file.
3225 (parse_args): Handle them.
3226 * ld.texinfo: Update description of these options.
3227 * ldwrite.c (clone_section): Pass in the section name. Replace
3228 local code with bfd_get_unique_section_name.
3229 (split_sections): Tidy code and comments. Use a list traversal
3230 more appropriate to the list construction. Handle cooked section
3231 sizes. Split when split_by_reloc reached rather than exceeded.
3232 Track section size and split when split_by_file reached. Fix
3233 link_order_tail (even though it's not used).
3234 (ldwrite): Modify condition for calling split_sections to suit
3235 changed split_by_reloc and split_by_file.
3236 * ldmain.c (main): Init config.split_by_reloc and
3237 config.split_by_file to -1.
3238 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3239 Change split_by_file to bfd_size_type.
3241 2000-09-02 Nick Clifton <nickc@redhat.com>
3243 * configure.in: Increase version number to 2.10.91.
3244 * NEWS: Mention new ability to support removal of duplicate DWARF2
3246 * configure: Regenerate.
3247 * aclocal.m4: Regenerate.
3248 * config.in: Regenerate.
3250 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3252 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3254 * scripttempl/elf32avr.sc: Ditto.
3255 * scripttempl/elfd10v.sc: Ditto.
3256 * scripttempl/elfd30v.sc: Ditto.
3257 * scripttempl/elfi370.sc: Ditto.
3258 * scripttempl/elfm68hc11.sc: Ditto.
3259 * scripttempl/elfm68hc12.sc: Ditto.
3260 * scripttempl/elfi386beos.sc: Ditto.
3261 * scripttempl/v850.sc: Ditto.
3263 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3265 * acinclude.m4: Include libtool and gettext macros from the
3267 * aclocal.m4, configure: Rebuilt.
3269 2000-08-25 Nick Clifton <nickc@redhat.com>
3271 * ldlang.c (open_output): When choosing the target for a
3272 particular endianness, do nothing if the target is not
3275 2000-08-25 H.J. Lu <hjl@gnu.org>
3277 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3278 check -rpath nor LD_RUN_PATH for cross link.
3279 * ld.texinfo: Document the change.
3281 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3283 * NEWS: Mention support for CRIS.
3285 2000-08-23 H.J. Lu <hjl@gnu.org>
3287 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3288 the current runpath list from bfd_elf_get_runpath_list ()
3291 2000-08-22 H.J. Lu <hjl@gnu.org>
3293 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3294 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3295 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3296 trace_file_tries is non-zero.
3297 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3298 if trace_file_tries is non-zero.
3300 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3303 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3305 * NEWS: Mention i860 support.
3307 2000-08-14 Andreas Schwab <schwab@suse.de>
3309 * scripttempl/elf.sc: Fix last change to use correct comment
3312 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3314 * scripttempl/elf.sc: Add a comment giving the correspondence
3315 between sections, per-datum sections, and linkonce sections. Make
3316 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3319 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3321 * emulparams/elf32_i860.sh: New file.
3322 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3323 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3324 (eelf32_i860.c): New rule.
3325 * Makefile.in: Regenerate.
3327 2000-08-10 Nick Clifton <nickc@cygnus.com>
3329 * emulparams/mipspe.sh (ENTRY): Add definition.
3331 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3333 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3336 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3338 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3339 the final size of .bss section.
3340 * scripttempl/elfm68hc12.sc: Likewise.
3342 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3344 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3345 gld${EMULATION_NAME}_parse_args for consistency. Combine
3346 lastoptind and prevoptind vars, and keep track of last optind.
3347 (gld_${EMULATION_NAME}_list_options): Rename to
3348 gld${EMULATION_NAME}_list_options.
3350 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3352 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3353 (i586-sco-sysv5uw7.1.0).
3355 2000-07-27 H.J. Lu <hjl@gnu.org>
3357 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3358 (PARSE_AND_LIST_PROLOGUE): New.
3359 (PARSE_AND_LIST_LONGOPTS): Likewise.
3360 (PARSE_AND_LIST_OPTIONS): Likewise.
3361 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3362 (PARSE_AND_LIST_EPILOGUE): Likewise.
3364 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3366 * emultempl/armelf.em: Elide functions common to elf32.em,
3367 ie. most of the file.
3368 (arm_elf_after_open): New. Do arm specific things then call
3369 gld${EMULATION_NAME}_after_open.
3370 (arm_elf_before_allocation): New. Call
3371 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3372 (PARSE_AND_LIST_PROLOGUE): Define.
3373 (PARSE_AND_LIST_SHORTOPTS): Define.
3374 (PARSE_AND_LIST_LONGOPTS): Define.
3375 (PARSE_AND_LIST_OPTIONS): Define.
3376 (PARSE_AND_LIST_ARGS_CASES): Define.
3377 (LDEMUL_AFTER_OPEN): Define.
3378 (LDEMUL_BEFORE_ALLOCATION): Define.
3379 (LDEMUL_BEFORE_PARSE): Define.
3380 (LDEMUL_FINISH): Define.
3382 * emultempl/hppaelf.em: Similarly zap most of this file.
3383 (hppaelf_add_stub_section): Prototype.
3384 (hppaelf_layaout_sections_again): Prototype.
3385 (hook_in_stub): Prototype.
3386 (LDEMUL_SET_OUTPUT_ARCH): Define.
3387 (LDEMUL_FINISH): Define.
3388 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3390 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3391 (EXTRA_EM_FILE): New.
3392 * emulparams/armelf_linux.sh: Likewise.
3393 * emulparams/armelf_linux26.sh: Likewise.
3394 * emulparams/hppalinux.sh: Likewise.
3395 * emulparams/hppaelf.sh: Likewise.
3398 * emultempl/elf32.em: Fix formatting.
3399 (EXTRA_EM_FILE): Source it.
3400 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3401 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3402 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3403 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3404 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3405 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3406 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3407 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3408 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3409 allow functions in this file to be overridden.
3410 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3412 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3414 * emultempl/elf32.em: Reorganize file.
3416 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3418 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3419 specific option to fit 64-bit executable in the lower
3420 31-bit address range. This is done by changing start
3421 address of .interp (the very first section of executable)
3422 and then setting EF_ALPHA_32BIT elf header flag.
3424 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3426 * emultempl/m68kcoff.em: New file.
3427 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3428 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3430 * Makefile.in: Regenerate.
3432 2000-07-20 H.J. Lu <hjl@gnu.org>
3434 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3435 and "disable-new-dtags" to stop getopt from treating -d/-e as
3436 abbreviations for these options.
3438 2000-07-20 H.J. Lu <hjl@gnu.org>
3440 * ld.texinfo: Add documentation for --disable-new-dtags and
3443 * ldmain.c (main): Initialize link_info.new_dtags to false.
3445 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3446 --disable-new-dtags and --enable-new-dtags.
3447 (gld_${EMULATION_NAME}_list_options): Likewise.
3449 2000-07-05 Kenneth Block <krblock@computer.org>
3451 * lexsup.c: Add optional style to demangle switch
3452 * ld.texinfo: Document optional style to demangle switch.
3454 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3456 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3458 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3459 Regenerate dependencies.
3460 * Makefile.in: Rebuild.
3461 * configure.tgt (cris-*-*): New target.
3462 * emulparams/crisaout.sh, emulparams/criself.sh,
3463 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3464 * po/POTFILES.in, po/ld.pot: Regenerate.
3466 2000-07-20 H.J. Lu <hjl@gnu.org>
3468 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3469 Print out ignored -z options.
3471 2000-07-19 H.J. Lu <hjl@gnu.org>
3473 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3474 (PARSE_AND_LIST_PROLOGUE): New.
3475 (PARSE_AND_LIST_LONGOPTS): Likewise.
3476 (PARSE_AND_LIST_OPTIONS): Likewise.
3477 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3479 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3481 * lexsup.c (ld_options): Comment out 'z'.
3482 (parse_args): Likewise.
3484 * emultempl/elf32.em: Include "elf/common.h".
3485 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3487 (gld_${EMULATION_NAME}_list_options): Likewise.
3489 * ld.texinfo: Add documentation for the recognized -z options.
3491 2000-07-19 H.J. Lu <hjl@gnu.org>
3493 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3494 bfd_elf_set_dt_needed_soname ().
3496 2000-07-18 DJ Delorie <dj@cygnus.com>
3498 * pe-dll.c (pe_dll_id_target): check object target name also
3500 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3502 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3503 ${INIT_END} if relocating.
3504 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3506 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3508 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3509 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3510 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3511 errors introduced by the old dynamic lib search order.
3513 2000-07-17 DJ Delorie <dj@cygnus.com>
3515 * pe-dll.c (process_def_file): auto-export data items also
3516 (pe_process_import_defs): also see if _imp_ form needed
3518 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3520 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3521 for dll import libraries
3523 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3525 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3526 gcc 2.95.2 and later.
3528 2000-07-11 Kazu Hirata <kazu@hxi.com>
3530 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3533 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3535 * ldemul.h (struct lang_input_statement_struct): Remove forward
3537 (struct search_dirs): Likewise.
3538 * ldfile.h (struct lang_input_statement_struct): Likewise.
3539 Protect file from multiple inclusion.
3540 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3541 declaration from macro to file scope.
3543 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3544 * ldgram.y: Likewise here.
3545 * ldlang.c: And here.
3546 * ldmain.c: And here.
3547 * mpw-elfmips.c: And here.
3548 * mpw-eppcmac.c: And here.
3549 * emultempl/aix.em: And here.
3550 * emultempl/armcoff.em: And here.
3551 * emultempl/armelf.em: And here.
3552 * emultempl/armelf_oabi.em: And here.
3553 * emultempl/beos.em: And here.
3554 * emultempl/elf32.em: And here.
3555 * emultempl/hppaelf.em: And here.
3556 * emultempl/linux.em: And here.
3557 * emultempl/lnk960.em: And here.
3558 * emultempl/pe.em: And here.
3559 * emultempl/sunos.em: And here.
3560 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3561 * mpw-idtmips.c: Ditto.
3562 * emultempl/generic.em: Ditto.
3563 * emultempl/gld960.em: Ditto.
3564 * emultempl/gld960c.em: Ditto.
3565 * emultempl/mipsecoff.em: Ditto.
3566 * emultempl/ticoff.em: Ditto.
3567 * emultempl/vanilla.em: Ditto.
3569 * pe-dll.c: Include ldfile.h
3570 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3572 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3573 arguments to bfd_elf32_size_dynamic_sections call.
3574 (gldelf32ebmip_place_orphan): Add missing arguments to
3575 lang_leave_output_section_statement call.
3577 2000-07-10 H.J. Lu <hjl@gnu.org>
3579 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3581 (strhash): Likewise.
3582 (compute_dll_image_base): Likewise.
3583 (pe_undef_found_sym): Likewise.
3584 (pe_undef_cdecl_match): Likewise.
3585 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3586 argument "arch" with ATTRIBUTE_UNUSED.
3588 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3590 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3592 From Ryan Bradetich <rbradetich@uswest.net>
3593 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3595 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3597 Changes to create multiple linker stubs, positioned immediately
3598 before the section where they are required.
3599 * emultempl/hppaelf.em: Include elf32-hppa.h.
3600 (stub_sec, file_chain): Delete.
3601 (hppaelf_create_output_section_statements): Don't make a stub
3603 (hook_stub_info): New struct.
3604 (hook_in_stub): New function.
3605 (hppaelf_add_stub_section): New function.
3606 (hppaelf_finish): Do nothing for relocateable links. Modify the
3607 call to elf32_hppa_size_stubs. Move code for updating section
3609 (hppaelf_layaout_sections_again): ..to here, a new function.
3611 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3612 broken list handling. Pass in a pointer to the list.
3613 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3615 (hppaelf_before_parse): Prototype.
3616 (hppaelf_set_output_arch): Prototype.
3617 (hppaelf_create_output_section_statements): Prototype.
3618 (hppaelf_delete_padding_statements): Prototype.
3619 (hppaelf_finish): Prototype.
3622 * emultempl/hppaelf.em: Include ctype.h.
3623 (struct orphan_save): New.
3624 (gld${EMULATION_NAME}_place_orphan): New.
3625 (output_rel_find): New.
3626 (hppaelf_get_script): Update from elf32.em.
3627 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3628 Change emulation_name field to "${EMULATION_NAME}". Add
3629 gld${EMULATION_NAME}_place_orphan.
3631 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3632 ehppalinux.o, sort it. Regenerate dependencies.
3633 (ehppalinux.c): Depend on hppaelf.em
3634 * Makefile.in: Regenerate.
3636 * configure.tgt: targ_emul=hppalinux for hppa*linux
3638 * emulparams/hppalinux.sh: New.
3639 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3641 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3643 * lexsup.c (parse_args): Copy section name.
3645 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3647 * emultempl/pe.em: institute the following search order for
3648 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3649 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3650 static lib (libfoo.a) if none of the above are found.
3652 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3654 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3655 (longopts): New --{enable,disable}-auto-image-base options.
3656 (gld_${EMULATION_NAME}_list_options): Document.
3657 (gld_${EMULATION_NAME}_parse): Handle.
3658 (strhash): New static function.
3659 (compute_dll_image_base): New static function.
3660 (gld_${EMULATION_NAME}_set_symbols): Use.
3662 2000-07-05 DJ Delorie <dj@redhat.com>
3666 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3668 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3669 * emulparams/elf32btsmip.sh: New file.
3670 * Makefile.am: Add traditional mips target.
3671 * Makefile.in: Rebuild.
3673 2000-07-01 H.J. Lu <hjl@gnu.org>
3675 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3676 automake to use YLWRAP.
3677 * Makefile.in: Rebuild.
3679 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3681 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3682 (CLEANFILES): Add DEPA.
3683 * Makefile.in: Regenerate.
3685 2000-06-30 Timothy Wall <twall@ppc>
3687 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3688 the page in the upper octet of the address.
3690 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3692 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3694 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3696 * NEWS: arm-elf does --gc-sections too.
3698 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3700 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3702 * Makefile.in: Regenerate.
3704 2000-06-21 H.J. Lu <hjl@gnu.org>
3706 * Makefile.am: Rebuild dependency.
3707 * Makefile.in: Rebuild.
3709 2000-06-20 H.J. Lu <hjl@gnu.org>
3711 * Makefile.am: Rebuild dependency.
3712 * Makefile.in: Rebuild.
3714 2000-06-20 Timothy Wall <twall@cygnus.com>
3716 * scripttempl/tic54xcoff.sc: New.
3717 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3718 * gen-doc.texi: Add flag for TI COFF.
3719 * ld.texinfo: Add documentation for TI COFF handling switches.
3720 * emultempl/ticoff.em: New. TI COFF handling.
3721 * configure.tgt: Add tic54x target.
3722 * Makefile.am: Add tic54x target.
3723 * Makefile.in: Ditto.
3725 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3727 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3728 checking for backslashes.
3730 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3732 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3734 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3736 * NEWS: Update list of targets supporting --gc-sections.
3738 * scripttempl/elf.sc: KEEP .eh_frame contents.
3739 * scripttempl/elfd30v.sc: Same here.
3741 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3743 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3745 * Makefile.in: Rebuild.
3746 * configure.tgt: Recognize m68hc12 and m68hc11.
3747 * scripttempl/elfm68hc12.sc: New file.
3748 * emulparams/m68hc12elfb: New emulation.
3749 * emulparams/m68hc12elf: New emulation.
3750 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3751 (includes a memory.x script to define the ROM and RAM banks).
3752 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3753 New configuration files for support of Motorola 68hc11
3755 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3757 * ldmain.c (main): Only change SEC_READONLY for final link.
3759 2000-06-13 H.J. Lu <hjl@gnu.org>
3761 * configure: Regenerate.
3763 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3765 * configure.in (VERSION): Update to show this is the CVS mainline.
3767 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3769 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3770 input objects to be ECOFF.
3771 (check_sections): einfo takes %B, not %P, to print a BFD name.
3773 2000-06-05 Michael Matz <matz@ifh.de>
3775 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3778 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3780 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3782 * emulparams/avr1200.sh (STACK): Define as 0.
3783 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3784 * emulparams/avr4433.sh (STACK): Likewise.
3785 * emulparams/avr44x4.sh (STACK): Likewise.
3786 * emulparams/avr85xx.sh (STACK): Likewise.
3787 * emulparams/avrmega103.sh (STACK): Likewise.
3788 * emulparams/avrmega161.sh (STACK): Likewise.
3789 * emulparams/avrmega603.sh (STACK): Likewise.
3790 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3791 (__stack): Define from ${STACK} for main().
3793 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3795 * Makefile.am: Update dependencies with "make dep-am"
3796 * Makefile.in: Regenerate.
3798 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3800 * ldmain.c: Include filenames.h.
3801 (set_scripts_dir): Support backslashes in program name.
3803 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3805 * ldmain.c (main): When deciding if ".text" section should be
3806 read-only, don't forget to reset SEC_READONLY because it
3807 could be already set.
3809 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3811 * ld.1: Add documentation for new command line option:
3812 --section-start <sectionname>=<sectionorg>
3813 This is a generic version of -Ttext etc. which accepts
3814 any section name as a parameter instead of just text/data/
3816 * ld.texinfo: More docs.
3818 * lexsup.c: (parse_args): Recognize new command line option.
3819 (ld_options): Add new option.
3821 2000-05-18 H.J. Lu <hjl@gnu.org>
3823 * lexsup.c (parse_args): `i' == `r', not `q'.
3825 2000-05-18 Jeffrey A Law (law@cygnus.com)
3827 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3829 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3830 Rick Gorton <gorton@scrugs.lkg.dec.com>
3832 Add support for '-q' == '--emit-relocs' switch.
3833 * ldmain.c (main): Default to false.
3834 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3835 * NEWS: Describe the emitrelocations switch.
3836 * ld.texinfo: Describe the emitrelocations switch.
3838 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3840 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3841 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3842 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3845 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3847 * lexsup.c (parse_args): Update the year in the copyright notice.
3849 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3851 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3852 Replace defines with those from intl/libgettext.h to quieten gcc
3855 2000-05-10 H.J. Lu <hjl@gnu.org>
3857 * ldlang.c (open_input_bfds): Don't load the same file within
3858 a group again if the whole archive has been loaded already.
3860 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3862 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3863 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3866 2000-05-01 Jim Wilson <wilson@cygnus.com>
3868 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3870 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3871 host "ia64-*-linux-gnu*".
3873 2000-04-29 Andreas Jaeger <aj@suse.de>
3875 * ld.h: Correctly check GCC version.
3877 2000-04-25 Jeffrey A Law (law@cygnus.com)
3879 * Makefile.am: Add PA64 support. Add missing dependencies for
3881 * Makefile.in: Rebuilt.
3882 * configure.tgt: Add PA64 support (currently disabled).
3884 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3886 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3887 (output_rel_find): New function.
3888 (hold_section, hold_use): Delete.
3889 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3890 hold_interp): Make local to place_orphan.
3891 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3892 rather than place_section to find possible previous use of orphan.
3893 Similarly find the place-holder output sections. Use returned
3894 value from lang_enter_output_section_statement rather than calling
3895 lang_output_section_statement_lookup.
3896 * emultempl/armelf.em: Same here.
3897 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3899 * ldlang.c (lang_enter_output_section_statement): Return output
3901 * ldlang.h (lang_enter_output_section_statement): Change
3904 * ldlang.h (lang_output_section_statement): Export it.
3905 * ldlang.c (lang_output_section_statement): Ditto.
3907 2000-04-24 Nick Clifton <nickc@cygnus.com>
3909 * ld.texinfo (Output Section Data): Add note that section data
3910 commands cannot appear outside of section directives.
3912 2000-04-2 Matthew Green <mrg@cygnus.com>
3914 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3916 2000-04-21 Richard Henderson <rth@cygnus.com>
3917 David Mosberger <davidm@hpl.hp.com>
3919 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3920 (eelf64_ia64.c): New rule.
3921 * Makefile.in: Rebuild.
3922 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3923 * emulparams/elf64_ia64.sh: New file.
3925 2000-04-21 Richard Henderson <rth@cygnus.com>
3927 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3929 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3931 * dep-in.sed: Match space at start of file name, not at end.
3933 2000-04-18 H.J. Lu <hjl@gnu.org>
3935 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3936 lang_leave_output_section_statement () after calling
3937 lang_enter_output_section_statement ().
3938 * emultempl/armelf.em: Likewise.
3940 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3942 * emultempl/elf32.em (struct orphan_save): Add section field.
3943 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3944 better order, and place first orphan section as we did before the
3945 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3946 Don't call make_bfd_section here, let wild_doit do the job for us.
3947 Don't build a statement list when we'll only throw it away.
3948 * emultempl/armelf.em: Ditto.
3949 * emultempl/pe.em: Similarly.
3951 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3953 * scripttempl/elfppc.sc: Remove.
3954 * emulparams/elf32ppc.sh: Use elf.sc.
3955 * emulparams/elf32lppc.sh: Use elf.sc.
3956 * emulparams/elf32ppclinux.sh: Use elf.sc.
3957 * emulparams/elf32ppcsim.sh: New file.
3958 * emulparams/elf32lppcsim.sh: New file.
3959 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3960 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3961 * Makefile.in: Regenerate.
3962 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3964 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3966 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3967 ~SEC_ALLOC sections too. Init start address of debug sections.
3968 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3969 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3970 Also set all relocateable section start addresses.
3972 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3974 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3975 Add new BSS_PLT variable for when .plt need not be contained in
3976 the file. Move _etext so that it is also after .fini, and provide
3977 both etext and _etext with a leading underscore. Mark the start
3980 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3982 * emultempl/elf32.em (struct orphan_save): New.
3983 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3984 hold_interp): Make them struct orphan_save.
3985 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3986 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3987 the end of the relevant section list. Also add associated section
3988 statements to the end of any previous orphan statements.
3989 * emultempl/armelf.em: Similarly.
3990 * emultempl/pe.em: Similarly.
3992 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3994 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3996 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3998 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3999 --enable-build-warnings option.
4000 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4001 * Makefile.in, configure: Re-generate.
4003 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4005 * po/ld.pot: Regenerate.
4007 * lexsup.c (help): Restore translated part of bug string.
4009 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4010 (DEP): Quote when passing vars to sub-make. Add warning message
4012 (DEP1): Rewrite for "gcc -MM".
4013 (CLEANFILES): Add DEP2.
4014 Update dependencies.
4015 * Makefile.in: Regenerate.
4017 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4019 * ld.h: #include "bin-bugs.h"
4020 * lexsup.c (help): Use REPORT_BUGS_TO.
4022 2000-03-27 Denis Chertykov <denisc@overta.ru>
4024 * configure.tgt (avr-*-*): New target support.
4025 * Makefile.am: Likewise.
4026 * scripttempl/elf32avr.sc: New script file.
4027 * emulparams/avr1200.sh: New file.
4028 * emulparams/avr23xx.sh: New file.
4029 * emulparams/avr4433.sh New file.
4030 * emulparams/avr44x4.sh New file.
4031 * emulparams/avr85xx.sh New file.
4032 * emulparams/avrmega103.sh New file.
4033 * emulparams/avrmega161.sh New file.
4034 * emulparams/avrmega603.sh New file.
4035 * Makefile.in: Regenerate.
4037 2000-03-09 Andreas Jaeger <aj@suse.de>
4039 * Makefile.am (check-DEJAGNU): Also unset LANG.
4040 * Makefile.in: Rebuild.
4042 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4044 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4047 2000-03-02 H.J. Lu <hjl@gnu.org>
4049 * emulparams/elf32mcore.sh: Include "getopt.h".
4051 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4053 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4055 2000-03-01 H.J. Lu <hjl@gnu.org>
4057 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4058 * emulparams/shpe.sh: Likewise.
4060 2000-03-01 Nick Clifton <nickc@cygnus.com>
4062 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4063 to unused parameters.
4065 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4066 functions only used by DLL code.
4067 (_place_orphan): Initialise 'dollar'.
4069 2000-03-01 H.J. Lu <hjl@gnu.org>
4071 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4072 indicate if the undefined symbol is a fatal error or not.
4073 Don't delete the output file if "fatal" is false.
4075 2000-02-29 H.J. Lu <hjl@gnu.org>
4077 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4078 Set LC_COLLATE and LC_ALL to null and export them. It is for
4079 sort which expects the C locale.
4080 Add $(LIBS) to all $(HOSTING_LIBS).
4081 * Makefile.in: Rebuild.
4083 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4085 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4086 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4087 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4088 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4089 find_potential_libraries.
4091 2000-02-28 Jim Blandy <jimb@redhat.com>
4093 * ldgram.y (exclude_name_list): Don't require a comma to separate
4094 list entries; the lexer considers commas to be valid part of a
4095 filename, so in something like `foo, bar' the comma is considered
4096 part of the first filename, `foo,'.
4097 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4099 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4101 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4102 host "i[3456]86-*-freebsdelf*".
4104 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4106 * scripttempl/i386go32.sc: Move misplaced semicolons.
4108 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4110 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4111 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4112 (eelf64hppa.c, ehppaelf.c): Remove targets.
4113 * Makefile.in: Rebuild.
4115 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4117 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4118 GNU/Linux/sparc, but keep the default as 32.
4120 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4121 it default if sparcv9 or sparc64.
4123 2000-02-24 Nick Clifton <nickc@cygnus.com>
4125 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4126 * Makefile.in: Regenerate.
4127 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4129 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4130 find_potential_libraries.
4131 * ldemul.c (ldemul_find_potential_libraries): New function.
4133 * ldfile.c (ldfile_open_file_search): Allow function to be
4135 (ldfile_open_file): Call ldemul_find_potential_libraries.
4136 * ldfile.h: Add prototype for ldfile_open_file_search.
4138 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4140 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4141 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4143 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4144 (gld_X_find_potential_libraries): New function. Search for
4145 libraries called "*.lib".
4147 * scripttempl/pe.sc: Add .pdata section.
4149 2000-02-23 Richard Henderson <rth@cygnus.com>
4151 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4152 Add and use memory regions.
4154 2000-02-23 Linas Vepstas (linas@linas.org)
4156 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4158 * Makefile.am: Add support for Linux/IBM 370.
4159 * configure.tgt: Likewise.
4161 * Makefile.in: Regenerate.
4163 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4165 * ldlang.c (print_input_section, print_data_statement,
4166 print_reloc_statement, print_padding_statement, insert_pad,
4167 size_input_section, lang_check_section_addresses,
4168 lang_size_sections, lang_do_assignments, lang_set_startof,
4169 lang_one_common): Change `opb' to unsigned.
4170 (lang_do_assignments): Also change `size' to unsigned.
4172 2000-02-16 Richard Henderson <rth@cygnus.com>
4174 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4176 2000-02-16 Timothy Wall <twall@cygnus.com>
4178 * mri.c (mri_draw_tree): Add default LMA region argument to call
4179 to lang_leave_output_section_statement.
4180 * ldlang.h: Update prototypes with LMA region arguments.
4181 * ldlang.c (lang_size_sections): Encapsulate region bounds
4182 checking in os_check_region call.
4183 (os_check_region): New function.
4184 (lang_output_section_statement_lookup): Initialize lma_region.
4185 (lang_leave_output_section_statement): Add LMA region argument.
4186 (lang_leave_overlay): Ditto.
4187 * ldgram.y: Handle LMA region syntax.
4188 * ld.texinfo (Output Section Description): Describe LMA region usage.
4189 * emultempl/armelf.em (gld$place_orphan): Add default value for
4190 lma region in call to lang_leave_output_section_statement.
4191 * emultempl/elf32.em (gld$place_orphan): Add default value for
4192 lma region in call to lang_leave_output_section_statement.
4193 * emultempl/pe.em (gld$place_orphan): Add default value for
4194 lma region in call to lang_leave_output_section_statement.
4197 2000-02-04 Timothy Wall <twall@redhat.com>
4199 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4200 octets when calculating section end addresses.
4202 2000-02-04 Timothy Wall <twall@redhat.com>
4204 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4206 2000-02-03 Timothy Wall <twall@redhat.com>
4208 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4210 * ldlang.c (print_input_section, print_data_statement,
4211 print_reloc_statement, print_padding_statement): Print target
4212 address values and section sizes as bytes, not octets.
4213 (insert_pad) Calculate padding size in octets, and adjust "dot"
4215 (size_input_section) Always adjust "dot" by bytes, not octets.
4216 (lang_check_section_addresses, lang_do_assignments) Adjust
4217 "dot" by bytes, not octets. Use the larger of the directive size
4218 or octets_per_byte for the number of octets actually allocated in
4220 (lang_set_startof) Make sure STARTOF returns a target address.
4221 (lang_one_common) Record size changes in octets.
4222 (lang_abs_symbol_at_end_of) Section end symbol's value is
4223 recorded in target bytes.
4224 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4225 to be clear about behavior when an octet is smaller than one byte.
4227 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4229 * ldcref.c (output_cref): Don't pass message strings to printf
4233 * ldmisc.c (vfinfo): Same here.
4236 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4238 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4239 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4240 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4241 Add missing NULL initialisers, and comments.
4243 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4245 2000-01-21 Nick Clifton <nickc@cygnus.com>
4247 * ldlang.c (lang_size_sections): Fix typo in comment.
4249 2000-01-18 H.J. Lu <hjl@gnu.org>
4251 * ldlang.c (lang_size_sections): Also update the current
4252 address of a region if the SEC_NEVER_LOAD bit is not set.
4254 2000-01-10 Philip Blundell <pb@futuretv.com>
4256 * configure.tgt (arm*-*-conix*): New target.
4258 2000-01-07 Nick Clifton <nickc@cygnus.com>
4260 * ld.texinfo (Options): Remind users to preceed linker command
4261 line switches with -Wl, (or whatever is appropriate) if it is
4262 being invoked by a comnpiler driver program.
4263 Fix description of the behaviour of the -n command line switch.
4265 2000-01-05 Catherine Moore <clm@cygnus.com>
4267 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4269 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4270 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4271 (exclude_name_list): New.
4272 ldlang.c (walk_wild_section): Support list of excluded files.
4273 (print_wild_statement): Likewise.
4274 (lang_add_wild): Likewise.
4275 * ldlang.h (lang_wild_statement_type): Likewise.
4276 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4278 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4280 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4281 (process_def_file): Use.
4282 (pe_dll_compat_implib): New variable.
4285 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4286 pe_dll_compat_implib.
4288 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4289 compat-implib options.
4290 (gld_${EMULATION_NAME}_list_options): List new options.
4291 (gld_${EMULATION_NAME}_parse_args): Handle.
4293 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4296 * deffilep.y (opt_name): Allow "." in name.
4298 For older changes see ChangeLog-9899
4304 version-control: never