1 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
3 * ldemul.c: Fix formatting.
8 2002-05-25 Alan Modra <amodra@bigpond.net.au>
10 * ldlang.c (lang_process): Formatting, grammar.
12 * ldlex.l: Use #include "" instead of <> for local header files.
14 2002-05-24 TAMURA Kent <kent@netbsd.org>
16 * configure.tgt: Add a target for i386-netbsdpe.
18 2002-05-23 Jakub Jelinek <jakub@redhat.com>
20 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
21 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
22 output section if necessary. Handle .tbss.
23 (lang_size_sections): Clear _raw_size for .tbss section
24 (it allocates space in PT_TLS segment only).
25 * ldwrite.c (build_link_order): Build link order for .tbss too.
27 2002-05-23 Alan Modra <amodra@bigpond.net.au>
29 * configure.in: Correct spelling of AC_PREREQ.
31 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
33 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
35 (autofilter_objlist): Add crtbegin.o, crtend.o.
37 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
39 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
40 (longopts): Add new option --exclude-libs.
41 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
42 (gld_${EMULATION_NAME}_parse_args): Use it.
43 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
44 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
46 (pe_dll_add_excludes): Set excludes->type.
47 (auto_export): Add new variable libname and set to archive basename if
48 abfd. Use it when filtering default and user-specified libarary
49 excludes. Let string "ALL" mean all libs when filtering user-specified
51 * ld.texinfo: Document --exclude-libs.
53 2002-05-22 Alan Modra <amodra@bigpond.net.au>
55 * ldemul.c (ldemul_new_vers_pattern): New function.
56 * ldemul.h (ldemul_new_vers_pattern): Declare.
57 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
58 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
59 * emultempl/ppc64elf.em (dotsyms): New static var.
60 (gld${EMULATION_NAME}_new_vers_pattern): New function.
61 (LDEMUL_NEW_VERS_PATTERN): Define.
62 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
63 (PARSE_AND_LIST_LONGOPTS): Likewise.
64 (PARSE_AND_LIST_ARGS_CASES): Handle them.
65 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
67 * emultempl/armcoff.em: Likewise.
68 * emultempl/armelf_oabi.em: Likewise.
69 * emultempl/beos.em: Likewise.
70 * emultempl/elf32.em: Likewise.
71 * emultempl/generic.em: Likewise.
72 * emultempl/gld960.em: Likewise.
73 * emultempl/gld960c.em: Likewise.
74 * emultempl/linux.em: Likewise.
75 * emultempl/lnk960.em: Likewise.
76 * emultempl/m68kcoff.em: Likewise.
77 * emultempl/mipsecoff.em: Likewise.
78 * emultempl/pe.em: Likewise.
79 * emultempl/sunos.em: Likewise.
80 * emultempl/ticoff.em: Likewise.
81 * emultempl/vanilla.em: Likewise.
83 2002-05-22 Alan Modra <amodra@bigpond.net.au>
85 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
86 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
87 (LIB_SEARCH_DIRS): No need to use "tr".
88 (COMPILE_IN): Only set for native targets.
89 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
90 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
91 * configure.tgt (powerpc*): Set tdir_*.
92 (powerpcle*): Correct targ_extra_emuls.
93 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
94 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
96 2002-05-22 Alan Modra <amodra@bigpond.net.au>
98 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
99 calling lang_add_entry.
101 2002-05-21 H.J. Lu (hjl@gnu.org)
103 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
105 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
107 * ld.texinfo: Updated for --allow-multiple-definition and
110 * ldmain.c (main): Initialize the allow_multiple_definition
113 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
114 (ld_options): Add --allow-multiple-definition.
115 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
117 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
119 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
120 (earmelfb_nbsd.c): New rule.
121 * Makefile.in: Regenerate.
122 * configure.tgt (armeb-*-netbsdelf*): New target.
123 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
124 (arm-*-netbsd*): Likewise.
125 * emulparams/armelfb_nbsd.sh: New file.
127 2002-05-18 Tom Rix <trix@redhat.com>
129 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
132 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
134 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
135 * Makefile.in: Regenerate.
136 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
138 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
140 * emulparams/avr1.sh: New file.
141 * emulparams/avr2.sh: New file.
142 * emulparams/avr3.sh: New file.
143 * emulparams/avr4.sh: New file.
144 * emulparams/avr5.sh: New file.
145 * scripttempl/avr.sc: New file.
147 2002-05-15 Alan Modra <amodra@bigpond.net.au>
149 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
150 (lang_place_orphans): Abort if just_syms_flag.
152 2002-05-10 Tom Rix <trix@redhat.com>
154 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
155 architecture and machine information in the output bfd.
156 (gld*_before_parse): Remove old arch and machine code.
157 (choose_target): Rename to gld*_choose_target.
158 (rtld): Change type to int.
159 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
160 objects in XCOFF archives.
161 * ldfile.h: Update copyright date.
163 2002-05-10 Jakub Jelinek <jakub@redhat.com>
165 * ldmain.c (main): Enable -z combreloc by default.
167 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
169 * Makefile.am: Honour DESTDIR.
170 * Makefile.in: Regenerate.
172 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
174 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
175 (lang_enter_overlay): Remove the last two parameters.
176 (lang_leave_overlay): Take them here instead.
177 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
178 (section): Pass LMA and crossref flag to lang_leave_overlay rather
179 than lang_enter_overlay.
180 * ldlang.c (lang_memory_region_lookup): Return null for null names.
181 (lang_output_section_statement_lookup): Initialize update_dot_tree.
182 (lang_size_sections_1): Evaluate it.
183 (lang_leave_output_section_statement): Rework LMA lookup.
184 (overlay_lma, overlay_nocrossrefs): Remove.
185 (lang_enter_overlay): Remove LMA and crossref arguments.
186 (lang_enter_overlay_section): Don't set the LMA here.
187 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
188 assignment to the last section's update_dot_tree. Unconditionally
189 use the load and run-time regions specified in the OVERLAY statement.
190 Likewise the first section's LMA. Only set the other sections' LMAs
191 when no load region is given.
193 2002-05-06 Nick Clifton <nickc@redhat.com>
195 * po/sv.po: New translation.
197 2002-05-04 Alan Modra <amodra@bigpond.net.au>
199 * emultempl/hppaelf.em (build_section_lists): New function.
200 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
201 and build_section_lists.
203 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
205 * ld.h: Fix formatting.
207 * ldfile.c: Likewise.
208 * ldlang.c: Likewise.
209 * ldmain.c: Likewise.
210 * lexsup.c: Likewise.
211 * pe-dll.c: Likewise.
213 2002-05-02 Alan Modra <amodra@bigpond.net.au>
215 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
216 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
217 (build_section_lists): Do output_section tests here.
219 2002-04-30 Tom Rix <trix@redhat.com>
221 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
223 2002-05-01 Alan Modra <amodra@bigpond.net.au>
225 Long branch stubs, multiple stub sections.
226 * emultempl/ppc64elf.em: Include ldctor.h.
227 (stub_file): New var.
228 (group_size): New var.
229 (ppc_create_output_section_statements): New function.
230 (struct hook_stub_info): New.
231 (hook_in_stub): New function.
232 (ppc_add_stub_section): New function.
233 (ppc_layout_sections_again): New function.
234 (build_section_lists): New function.
235 (gld${EMULATION_NAME}_finish): Rewrite.
236 (real_func): New var.
237 (ppc_for_each_input_file_wrapper): New function.
238 (ppc_lang_for_each_input_file): New function.
239 (lang_for_each_input_file): Define.
240 (PARSE_AND_LIST_PROLOGUE): Define.
241 (PARSE_AND_LIST_LONGOPTS): Define.
242 (PARSE_AND_LIST_OPTIONS): Define.
243 (PARSE_AND_LIST_ARGS_CASES): Define.
244 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
246 2002-04-30 Tom Rix <trix@redhat.com>
248 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
249 -blibpath, -bnolibpath support.
251 2002-04-30 Mark Mitchell <mark@codesourcery.com>
253 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
254 (eelf32ppcwindiss.c): New target.
255 * Makefile.in: Regenerated.
256 * configure.tgt: Add support for powerpc-*-windiss.
257 * emulparams/elf32ppcwindiss.sh: New file.
259 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
261 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
262 * ldexp.c (exp_print_token): Add "infix_p" argument.
263 (exp_print_tree): Update accordingly.
265 2002-04-28 Alan Modra <amodra@bigpond.net.au>
267 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
268 * Makefile.in: Regenerate.
269 * mpw-elfmips.c: Delete.
270 * mpw-eppcmac.c: Delete.
272 * mpw-idtmips.c: Delete.
274 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
276 * emulparams/shelf32.sh (MACHINE): Now sh5.
278 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
280 * ldgram.y: Fix syntax warning.
282 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
284 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
285 to prevent "-n" from being taken as an abbreviation for
286 "--no-pipeline-knowledge".
288 2002-04-08 Alan Modra <amodra@bigpond.net.au>
290 * ldlang.c (lang_size_sections_1): Don't complain about
291 SEC_NEVER_LOAD sections having no memory region specified.
293 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
295 2002-04-07 matthew green <mrg@redhat.com>
297 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
299 2002-04-04 Alan Modra <amodra@bigpond.net.au>
301 * dep-in.sed: Cope with absolute paths.
302 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
304 * Makefile.in: Regenerate.
306 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
308 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
310 2002-04-03 Jakub Jelinek <jakub@redhat.com>
312 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
313 is smaller than maximum, round dot up to common page boundary.
315 2002-03-28 Alan Modra <amodra@bigpond.net.au>
317 * configure.host: Set up for generic hosts first, then tweak as
318 necessary in more specific targets.
319 (HOSTING_LIBS): Include libgcc_eh.a if found.
321 2002-03-23 Andreas Jaeger <aj@suse.de>
323 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
325 2002-03-21 Alan Modra <amodra@bigpond.net.au>
327 * Makefile.am: Run "make dep-am".
328 * Makefile.in: Regenerate.
330 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
332 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
334 2002-03-20 Alan Modra <amodra@bigpond.net.au>
336 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
337 add the symbol to the linker hash table immediately.
338 (lang_place_undefineds): Split symbol creation out..
339 (insert_undefined): ..to here.
341 2002-03-18 David O'Brien <obrien@FreeBSD.org>
343 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
344 the contents of the buffer returned from basename function will are
345 getting overwritten while still being used.
347 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
348 Andreas Jaeger <aj@suse.de>
349 Andreas Schwab <schwab@suse.de>
351 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
352 * elf_x86_64.sh (ARCH): Set to i386:x86-64
353 set libraries to default to lib64 paths.
355 2002-03-18 Tom Rix <trix@redhat.com>
357 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
358 * configure.tgt : Same.
359 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
360 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
361 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
362 emulation parameters for better -b32, -b64 support.
363 * emulparms/aixrs6.sh : Same.
364 * emulparms/ppcmacos.sh : Same.
365 * emultempl/aix.em (choose_target) : Use new emulation parameters
366 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
367 * Makefile.in : Regenerate.
369 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
371 * po/fr.po: Updated version.
373 2002-03-18 Alan Modra <amodra@bigpond.net.au>
375 * ldmain.c (main): Move .text readonly flag fudges from here..
376 * ldlang.c (lang_process): ..to here.
378 2002-03-14 Alan Modra <amodra@bigpond.net.au>
380 * ldlang.c (lang_check): Remove the word size check added in last
381 change. Treat emitrelocations case as for relocatable links.
383 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
385 * po/fr.po: Updated version.
387 2002-03-13 Alan Modra <amodra@bigpond.net.au>
389 * ldlang.c (lang_check): Do relocatable link checks first, so that
390 warn_mismatch can't override. Check compatible and word size too.
392 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
394 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
396 2002-03-05 Jakub Jelinek <jakub@redhat.com>
398 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
401 2002-03-04 H.J. Lu <hjl@gnu.org>
403 * scripttempl/elf.sc: Put .preinit_array, .init_array and
404 .fini_array in the data segment.
406 2002-03-04 Alan Modra <amodra@bigpond.net.au>
408 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
410 2002-03-01 David Mosberger <davidm@hpl.hp.com>
412 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
413 .init_array, and .fini_array.
415 2002-02-20 Andreas Schwab <schwab@suse.de>
417 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
418 .IA64_unwind* in a relocatable link.
420 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
422 * NEWS: Mark 2.12 branch.
424 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
426 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
427 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
429 2002-02-18 Tom Rix <trix@redhat.com>
431 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
432 (gld*_before_allocation): Same.
433 (gld*_create_output_section_statements): Generate
434 __rtinit if run time linking. Add librtl.a to the link.
435 (gld*_read_file): Clean.
437 2002-02-18 Alan Modra <amodra@bigpond.net.au>
439 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
441 2002-02-18 David O'Brien <obrien@FreeBSD.org>
443 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
444 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
445 and eelf64alpha_fbsd.
446 * Makefile.in: Regenerate.
447 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
448 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
449 use a FreeBSD-specific emulation rather than the psABI one.
450 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
451 for all FreeBSD ELF systems.
452 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
454 * emulparams/elf32ppc_fbsd.sh: Likewise.
455 * emulparams/elf64_ia64_fbsd.sh: Likewise.
456 * emulparams/elf64_sparc_fbsd.sh: Likewise.
457 * emulparams/elf64alpha_fbsd.sh: Likewise.
458 * emulparams/elf_i386_fbsd.sh: Likewise.
459 * emulparams/elf_x86_64_fbsd.sh: Likewise.
461 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
463 * po/tr.po: Updated version.
465 2002-02-18 Alan Modra <amodra@bigpond.net.au>
467 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
470 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
472 * emultempl/mmo.em (mmo_after_open): Don't call
473 _bfd_mmix_check_all_relocs when producing ELF output.
475 2002-02-15 Richard Henderson <rth@redhat.com>
477 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
478 definition. Emit a unop+nop pair.
480 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
482 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
483 for presence of .MMIX.reg_contents.linker_allocated before early
486 * NEWS: Mention support for MMIX.
488 2002-02-15 Alan Modra <amodra@bigpond.net.au>
490 Support arbitrary length fill patterns.
491 * ld.texinfo (Output Section Fill): Describe fill expressions.
492 (FILL): Refer to the above.
493 * ldexp.h (etree_value_type): Add "str" field.
494 (union etree_union): Add "str" to "value" struct.
495 (exp_bigintop): Declare.
496 (exp_get_fill): Declare.
497 * ldexp.c: Include "safe-ctype.h".
498 (exp_intop): Set value.str to NULL.
499 (exp_bigintop): New function.
500 (new_rel): Pass in "str", and set new.str from it.
501 (new_rel_from_section): Set new.str to NULL.
502 (fold_name): Adjust calls to new_rel.
503 (exp_fold_tree): Likewise.
504 (exp_get_fill): New function.
505 * ldgram.y (struct big_int bigint, fill_type *fill): New.
506 (INT): Returns a "bigint". Adjust all code handling INTs.
507 (fill_opt): Returns a "fill".
508 (fill_exp): Split out of fill_opt, use for FILL.
509 * ldlang.h (struct _fill_type): New.
510 (fill_type): Move typedef to ldexp.h.
511 (lang_output_section_statement_type): "fill" is now a pointer.
512 (lang_fill_statement_type): Likewise.
513 (lang_padding_statement_type): Likewise.
514 (lang_add_fill): Now takes a "fill_type *" param.
515 (lang_leave_output_section_statement): Likewise.
516 (lang_do_assignments): Likewise.
517 (lang_size_sections): Likewise.
518 (lang_leave_overlay_section): Likewise.
519 (lang_leave_overlay): Likewise.
520 * ldlang.c: Include ldgram.h after ldexp.h.
521 (lang_output_section_statement_lookup): Adjust for fill_type change.
522 (print_fill_statement): Likewise.
523 (print_padding_statement): Likewise.
524 (insert_pad): Now takes a "fill_type *" arg.
525 (size_input_section): Likewise.
526 (lang_size_sections_1): Likewise.
527 (lang_size_sections): Likewise.
528 (lang_do_assignments): Likewise.
529 (lang_add_fill): Likewise.
530 (lang_leave_output_section_statement): Likewise.
531 (lang_leave_overlay_section): Likewise.
532 (lang_leave_overlay): Likewise.
533 Adjust all callers of the above function.
534 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
535 starting with "0X" as well as "0x". Return bigint.str for hex
536 numbers starting with "0x" or "0X", zero bigint.str otherwise.
537 Always use base 16 for numbers starting with "$".
538 * ldmain.c: Include ldgram.h after ldexp.h.
539 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
540 of bfd_fill_link_order.
541 * pe-dll.c: Adjust lang_do_assignments calls.
542 * emultempl/elf32.em: Likewise.
543 * emultempl/hppaelf.em: Likewise.
544 * emultempl/ppc64elf.em: Likewise.
545 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
546 lang_add_assignment call.
547 * emultempl/pe.em: Likewise.
549 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
551 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
552 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
553 the pattern in question is not a regexp.
554 * ldlang.c: Likewise.
555 * ldlang.h: Likewise.
556 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
558 2002-02-12 Jakub Jelinek <jakub@redhat.com>
560 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
561 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
562 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
563 * ldexp.c (exp_data_seg): New variable.
564 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
565 (fold_binary): Handle DATA_SEGMENT_ALIGN.
566 (exp_fold_tree): Handle DATA_SEGMENT_END.
567 Pass allocation_done when recursing instead of hardcoding
568 lang_allocating_phase_enum.
569 * ldexp.h (exp_data_seg): New.
570 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
571 (lang_size_sections): New.
572 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
573 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
574 if COMMONPAGESIZE is defined.
575 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
576 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
577 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
578 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
579 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
582 2002-02-11 Alan Modra <amodra@bigpond.net.au>
584 * Makefile.in: Regenerate.
586 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
588 * lexsup.c: Remove strtoul declaration.
590 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
592 * ldmain.c: Add prototype for main ().
593 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
594 * emultempl/lnk960.em (lnk960_choose_target): Function should
597 2002-02-10 Alan Modra <amodra@bigpond.net.au>
599 * ldlang.c (entry_section): New initialised variable.
600 (lang_finish): Use it.
601 * ldlang.h (entry_section): Declare.
602 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
603 entry_section to ".opd".
605 2002-02-09 Chris Demetriou <cgd@broadcom.com>
607 * ld.texinfo (Options): Add back in -nostdlib documentation,
608 which had been inadvertently removed.
610 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
612 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
613 register section vma to a sane value after emitting error. Make
614 fatal conditions cause program exit when emitting message.
616 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
618 * configure.tgt: Add or32-*-rtems target.
620 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
623 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
624 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
625 in OTHER_RELOCATABLE_SECTIONS.
626 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
627 * emulparams/shelf32.sh (STACK_ADDR): Define.
628 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
629 (OTHER_SECTIONS): this. Removed stack settings.
630 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
631 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
632 2001-03-12 DJ Delorie <dj@redhat.com>
633 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
634 relaxing if any shmedia or mixed sections are found.
635 2001-03-07 DJ Delorie <dj@redhat.com>
636 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
637 einfo. Gracefully decline to output to non-elf formats.
638 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
639 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
640 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
641 * emulparams/shelf32.sh: Ditto.
642 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
643 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
645 2001-01-10 Ben Elliston <bje@redhat.com>
646 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
647 non-portable shell constructs. From Hans-Peter Nilsson.
648 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
649 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
650 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
651 dependencies to the shell script include chain.
652 * Makefile.in: Regenerate.
653 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
654 * emultempl/sh64elf.em: Update and tweak comments.
655 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
656 make a .cranges section SEC_IN_MEMORY.
657 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
658 * emultempl/sh64elf.em
659 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
660 .cranges section found to be necessary; continue and set stored
661 section contents flags for sections with non-mixed contents.
662 Use a struct sh64_section_data container and sh64_elf_section_data
663 to store contents-type flags.
664 Remove unused update of "isec".
665 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
666 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
667 access contents-type flags. Assert that the associated container
668 is initialized. Use that container, not elf_gp_size, to hold size
669 of linker-generated cranges contents.
670 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
671 * emultempl/sh64elf.em
672 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
673 there's already a .cranges section. When section flag difference
674 is found, don't NULL-check cranges a second time. Tweak comments.
675 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
676 merging, not max size, as size of ld-generated .cranges contents.
677 Don't set ELF section flags in output section. When checking for
678 needed .cranges descriptors, don't use a variable; compare
679 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
681 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
682 * emultempl/sh64elf.em: New file.
683 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
684 * Makefile.in: Regenerate.
685 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
686 (OTHER_RELOCATING_SECTIONS): Ditto.
687 (EXTRA_EM_FILE): New, set to sh64elf if not set.
688 * emulparams/shlelf32.sh: Stub out all settings except
689 OUTPUT_FORMAT. Source shelf32.sh.
690 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
691 OTHER_RELOCATING_SECTIONS.
692 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
693 * emulparams/shlelf64.sh: Stub out all settings except
694 OUTPUT_FORMAT. Source shelf64.sh.
695 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
696 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
698 (DATA_START_SYMBOLS): Define, provide ___data.
699 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
700 for consecutive .data section.
701 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
702 section after .data section.
703 * emulparams/shlelf64.sh: Ditto.
704 * emulparams/shelf32.sh: Ditto.
705 (ALIGNMENT): Define to 8.
706 * emulparams/shelf32.sh: Ditto.
707 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
708 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
709 built-in linker scripts.
710 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
711 * emulparams/shlelf64.sh: New.
712 * emulparams/shelf64.sh: New.
713 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
715 * Makefile.am: Add support for shlelf64 and shelf64.
716 * Makefile.in: Regenerate.
717 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
718 * configure.tgt (sh64-*-elf*): Add shelf as default.
719 Add shlelf to targ_extra_emuls.
720 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
721 * emulparams/shelf32.sh: New file.
722 * emulparams/shlelf32.sh: New file.
723 * Makefile.am: Add support for shlelf32 and shelf32.
724 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
725 * Makefile.in: Regenerate.
727 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
729 * ldlang.c (lang_reset_memory_regions): Rename from
730 reset_memory_regions. Change all callers. Make public.
731 * ldlang.h (lang_reset_memory_regions): Prototype.
732 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
733 lang_reset_memory_regions before lang_size_sections.
734 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
735 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
737 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
739 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
740 arithmetic when checking for too many global registers.
742 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
744 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
745 (ehppanbsd.c): New rule.
746 * Makefile.in: Regenerate.
747 * configure.tgt (hppa*-*-netbsd*): New target.
748 * emulparams/hppalinux.sh: Add comment to check other files
749 that source this file it is modified, and list which
751 * emulparams/hppanbsd.sh: New file.
753 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
755 * scripttempl/xstormy16.sc: Don't allocate extra space for the
758 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
760 Support on-demand global register allocation from
761 R_MMIX_BASE_PLUS_OFFSET relocs.
762 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
763 mmix_set_reg_section_vma. Call
764 _bfd_mmix_finalize_linker_allocated_gregs.
765 (mmix_before_allocation): New function.
766 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
767 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
768 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
769 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
770 before .MMIX.reg_contents.
771 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
772 (mmo_after_open): New function.
773 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
774 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
775 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
777 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
779 * emulparams/or32.sh: New file.
780 * emulparams/or32elf.sh: New file.
781 * scripttempl/or32.sc: New file.
782 * configure.tgt : Add support for or32.
783 * configure: Regenerate
784 * Makefile.am: Add support for or32.
785 * Makefile.in: Regenerate.
786 * NEWS: Mention support for or32.
787 * po/ld.pot: Regenerate.
789 2002-01-29 Chris Demetriou <cgd@broadcom.com>
790 Mitch Lichtenberg <mpl@broadcom.com>
792 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
793 * emultempl/mipself.em: New file to handle MIPS ELF embedded
794 reloc creation (ld --embedded-relocs).
796 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
798 * configure: Regenerated.
800 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
802 * Makefile.am (install): Depend on install-info.
803 * Makefile.in: Regenerate.
805 2002-01-26 Christian Rose <menthos@menthos.com>
807 * ldmain.c (main): Use full sentences to ease translation.
809 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
811 * po/fr.po: Updated version.
813 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
815 * po/es.po: Updated version.
817 2002-01-25 Andreas Jaeger <aj@suse.de>
819 * ldlex.l (yy_input): Correct error check.
821 2002-01-25 Alan Modra <amodra@bigpond.net.au>
823 * ldmisc.c (demangle): Put back dots when string not demangled.
825 2002-01-22 Richard Henderson <rth@redhat.com>
827 * emulparams/elf64alpha.sh (NOP): Use unop.
829 2002-01-21 Andreas Jaeger <aj@suse.de>
831 * ldlex.l: Use fread instead of read.
833 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
835 * configure.tgt (ia64-*-netbsd*): New target.
837 2002-01-21 H.J. Lu <hjl@gnu.org>
839 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
841 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
843 2002-01-18 Andreas Jaeger <aj@suse.de>
845 * ldver.c (ldversion): Update year.
847 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
849 * po/ld.pot: Regenerate.
851 2002-01-16 Alan Modra <amodra@bigpond.net.au>
853 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
854 * Makefile.in: Regenerate.
855 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
856 * emultempl/ppc64elf.em: New file.
858 2002-01-15 DJ Delorie <dj@redhat.com>
860 * scripttempl/pe.sc: Add support for constructor priorities.
862 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
864 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
865 * emulparams/avr23xx.sh: Likewise.
866 * emulparams/avr4433.sh: Likewise.
867 * emulparams/avr44x4.sh: Likewise.
868 * emulparams/avr85xx.sh: Likewise.
869 * emulparams/avrmega103.sh: Likewise.
870 * emulparams/avrmega161.sh: Likewise.
871 * emulparams/avrmega603.sh: Likewise.
872 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
874 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
876 * ldlang.c (walk_wild_section): Exclude object file if enclosing
879 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
881 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
882 (eshelf_nbsd.c): New rule.
883 (eshlelf_nbsd.c): New rule.
884 * Makefile.in: Regenerate.
885 * configure.tgt (sh*le-*-netbsdelf*): New target.
886 (sh*-*-netbsdelf*): New target.
887 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
888 * ld/emulparams/shelf_nbsd.sh: New emulation.
889 * ld/emulparams/shlelf_nbsd.sh: New emulation.
891 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
893 * po/es.po: New file: Spanish translation.
894 * configure.in (ALL_LINGUAS): Add es.
895 * configure: Regenerate.
897 2002-01-06 John Marshall <jmarshall@acm.org>
899 * ld.texinfo: Note that --emit-relocs is currently only
902 2002-01-05 Alan Modra <amodra@bigpond.net.au>
904 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
905 of bfd_section_list_remove and bfd_section_list_insert macros.
906 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
907 * emultempl/mmo.em (mmo_place_orphan): Likewise.
909 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
911 * configure.tgt (x86_64-*-netbsd*): New target.
913 2001-12-21 Tom Rix <trix@redhat.com>
915 (gld*_create_output_section_statements): New function.
916 For -binitfini support.
917 * emultempl/aix.em (gld*_before_parse): Fix comment.
918 * emultempl/aix.em (gld*_parse_args): Fix comment.
920 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
922 * configure.tgt (mips*-dec-netbsd*): Delete alias for
924 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
926 * configure.tgt (arm-*-netbsdelf*): Add target.
927 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
928 * emulparams/armelf_nbsd.sh: Added.
929 * Makefile.am: Add rules for earmelf_nbsd.
930 * Makefile.in: Regenerate.
932 2001-12-19 Andreas Jaeger <aj@suse.de>,
933 Susanne Oberhauser <froh@suse.de>
935 * configure.host: Add rules for x86_64-*linux-gnu. Change
936 s390x-linux entry to use gcc to report configuration, replace gcc
937 with $CC in s390-linux
939 2001-12-19 Andreas Jaeger <aj@suse.de>
941 * ld.texinfo (VERSION): Fix markup.
943 2001-12-18 matthew green <mrg@eterna.com.au>
945 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
946 (m68kelfnbsd.c): New rule.
947 * Makefile.in: Regenerate.
948 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
949 (m68*-*-netbsd*4k*): .. this.
950 (m68*-*-netbsdelf*): New target.
951 (m68*-*-netbsd*): Also include ELF support.
952 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
953 * emulparams/m68kelfnbsd.sh: New emulation.
955 2001-12-18 Jakub Jelinek <jakub@redhat.com>
957 * ldgram.y (vers_node): Support anonymous version tags.
958 * ldlang.c (lang_register_vers_node): Ensure anonymous version
959 tag is not defined together with non-anonymous versions.
960 * ld.texinfo: Document it.
962 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
964 * po/tr.po: New file: Turkish translation.
965 * configure.in (ALL_LINGUAS): Add tr.
966 * configure: Regenerate.
968 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
970 * Makefile.am: Add rules for eelf64alpha_nbsd.
971 * Makefile.in: Regenerate.
972 * configure.tgt (alpha*-*-netbsd*): Set
973 targ_emul to elf64alpha_nbsd.
974 * emulparams/elf64alpha_nbsd.sh: Added.
976 2001-12-17 Alan Modra <amodra@bigpond.net.au>
978 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
979 section_tail when fiddling with section list.
980 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
981 broken into separate strings to make translation easier.
982 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
983 fiddling with section list.
984 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
986 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
988 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
990 2001-12-15 Alan Modra <amodra@bigpond.net.au>
992 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
994 2001-12-13 Jakub Jelinek <jakub@redhat.com>
996 * emultempl/elf32.em (finish): Supply output_bfd
997 to bfd_elf*_discard_info.
998 (OPTION_EH_FRAME_HDR): Define.
999 (longopts): Add --eh-frame-hdr.
1000 (parse_args): Handle it.
1001 (list_options): Add --eh-frame-hdr to help.
1002 * emultempl/hppaelf.em (finish): Supply output_bfd
1003 to bfd_elf*_discard_info.
1004 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1006 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1008 * lexsup.c (parse_args): Don't pass shortopts to second call to
1009 getopt functions. Restore optind rather than decrementing before
1010 second call. Remove errind as it now duplicates last_optind.
1012 2001-12-11 Christopher Faylor <cgf@redhat.com>
1014 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1016 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1017 Richard Henderson <rth@redhat.com>
1019 * Makefile.am: Add support for xstormy16.
1020 * configure.tgt: Add support for xstormy16.
1021 * Makefile.in: Regenerate.
1022 * emulparams/elf32xstormy16.sh: New file.
1023 * scripttempl/xstormy16.sc: New file.
1025 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1027 * Makefile.in (LIB_PATH): Make configurable.
1028 (GENSCRIPTS): Set LIB_PATH in environment.
1029 * configure.in: Substitute LIB_PATH.
1030 * configure: Regenerate.
1031 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1032 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1034 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1036 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1037 describing the -N option so that it is easier to translate into
1040 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1042 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1043 statements describing a single option with a single, newline
1044 escaped fprintf. This allows better translation into other
1047 * ldmain.c (add_archive_element): Combine multiple strings
1048 into a single string to permit better translation into other
1051 2001-12-05 Tom Rix <trix@redhat.com>
1053 * Makefile.am: Remove eaixppc64.
1054 * Makefile.in: Regenerate.
1056 2001-12-04 Tom Rix <trix@redhat.com>
1058 * emultempl/aix.em (choose_target): Change default target to
1059 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1061 (gld*_read_file): Fix typo.
1062 (change_symbol_mode): Add prototype.
1065 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1066 * emulparams/aixrs6.sh : Same.
1067 * emulparams/ppcmacos.sh : Same.
1068 * emulparams/aixppc64.sh : Delete file.
1069 * emultempl/aix.em : Formatting changes.
1071 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1073 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1074 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1076 (OTHER_END_SYMBOLS): Fix formatting.
1077 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1078 (OTHER_END_SYMBOLS): Fix formatting.
1080 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1082 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1084 2001-12-02 Tom Rix <trix@redhat.com>
1086 * configure.tgt : Remove eaixppc64 emulations.
1087 * Makefile.in : Remove eaixppc64.c
1088 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1089 (ldemul_default_target): Same.
1090 * emultempl/gld960.em (gld960_choose_target): Same.
1091 * emultempl/gld960c.em (gld960_choose_target): Same.
1092 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1093 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1094 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1095 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1096 * emultempl/aix.em (choose_target): New function. Handle emulation of
1099 2001-11-27 H.J. Lu <hjl@gnu.org>
1101 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1102 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1103 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1104 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1105 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1106 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1107 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1108 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1110 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1113 (REL_SDATA): Likewise.
1114 (REL_SBSS): Likewise.
1115 (REL_SDATA2): Likewise.
1116 (REL_SBSS2): Likewise.
1117 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1120 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1122 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1124 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1126 2001-11-22 H.J. Lu <hjl@gnu.org>
1128 * Makefile.in: Regenerated with automake based on automake
1129 1.4-8 in RedHat 7.1.
1131 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1133 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1134 (config.status): Delete rule.
1135 Add extra dependencies to cover sourced emulparams files.
1136 * Makefile.in: Regenerate.
1138 * scripttempl/elf.sc: Order <section>, <section>.* and
1139 corresponding linkonce sections as seen in input files.
1140 Formatting fixes. Zero vma of all sections if not relocating.
1141 (STACK): Define and insert if STACK_ADDR defined.
1142 (OTHER_RELOCATING_SECTIONS): Delete.
1143 (OTHER_END_SYMBOLS): Define.
1144 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1145 (OTHER_READWRITE_SECTIONS): Likewise.
1146 (OTHER_GOT_SECTIONS): Likewise.
1147 (OTHER_SDATA_SECTIONS): Likewise.
1148 (OTHER_BSS_SECTIONS): Likewise.
1149 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1150 (OTHER_READWRITE_SECTIONS): Likewise.
1151 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1152 (OTHER_READWRITE_SECTIONS): Likewise
1154 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1155 (STACK_ADDR): Define.
1156 * emulparams/armelf_oabi.sh: As for armelf.sh.
1157 * emulparams/elf32mcore.sh: As for armelf.sh.
1158 * emulparams/h8300elf.sh: As for armelf.sh.
1159 * emulparams/mn10200.sh: As for armelf.sh.
1160 * emulparams/shelf.sh: As for armelf.sh.
1162 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1163 (OTHER_END_SYMBOLS): Define.
1164 * emulparams/m32relf.sh: As for elf32fr30.sh.
1165 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1166 * emulparams/h8300self.sh: As for elf32fr30.sh.
1168 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1169 defines with RELOCATING test.
1170 (OTHER_SDATA_SECTIONS): Likewise.
1171 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1172 (OTHER_END_SYMBOLS): ..this.
1173 * emulparams/crislinux.sh: As for criself.sh.
1175 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1177 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1178 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1179 normal and linkonce sections as seen in input files.
1180 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1181 (TEXT_DYNAMIC): Likewise.
1182 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1183 (OTHER_SDATA_SECTIONS): Likewise.
1184 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1185 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1186 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1187 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1188 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1189 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1190 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1191 sections as seen in input files.
1192 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1193 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1195 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1196 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1197 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1198 (OTHER_SECTIONS): Instead, use this..
1199 (OTHER_END_SYMBOLS): ..and this.
1201 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1202 * emulparams/elf32bsmip.sh: Likewise.
1203 * emulparams/elf32btsmip.sh: Likewise.
1204 * emulparams/elf32ebmip.sh: Likewise.
1205 * emulparams/elf32lmip.sh: Likewise.
1206 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1207 * emulparams/elf32lsmip.sh: Likewise.
1208 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1209 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1210 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1211 * emulparams/elf64btsmip.sh: Likewise.
1212 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1213 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1214 * emulparams/elf32ppclinux.sh: Likewise.
1215 * emulparams/elf32ppcsim.sh: Likewise.
1216 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1217 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1218 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1219 * emulparams/h8300self.sh: Likewise.
1220 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1221 * emulparams/sh.sh: Comment.
1222 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1223 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1224 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1226 2001-11-21 David Heine <dlheine@tensilica.com>
1227 Alan Modra <amodra@bigpond.net.au>
1229 * ldlang.c (map_input_to_output_sections): Replace "break"
1230 accidentally removed with 2001-08-03 change.
1231 (lang_gc_sections_1): Likewise.
1233 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1235 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1237 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1239 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1240 of false when calling lang_size_sections.
1241 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1243 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1245 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1246 function when LDEMUL_FINISH isn't set to the same name. Don't
1247 call ${LDEMUL_FINISH}.
1248 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1249 * emultempl/armelf.em (arm_elf_finish): Call
1250 gld${EMULATION_NAME}_finish.
1251 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1252 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1253 hppaelf_layout_sections_again if necessary.
1254 (need_laying_out): New var.
1255 (hppaelf_layaout_sections_again): Rename to
1256 hppaelf_layout_sections_again. Clear need_laying_out.
1257 (PARSE_AND_LIST_OPTIONS): Format text.
1259 2001-11-14 H.J. Lu <hjl@gnu.org>
1261 * emultempl/armelf.em (arm_elf_finish): Renamed from
1262 gld${EMULATION_NAME}_finish.
1263 (LDEMUL_FINISH): Set to arm_elf_finish.
1265 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1267 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1268 (struct ld_emulation_xfer_struct): Use it.
1270 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1272 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1273 additional symbols referenced by newer crt0.o files from HP.
1275 2001-11-12 Anthony Green <green@redhat.com>
1277 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1279 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1281 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1282 * Makefile.in: Regenerate.
1284 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1286 * ld.texinfo: Use @command for commands, @option for options.
1287 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1289 * Makefile.in: Rebuild.
1291 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1293 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1294 Add support for targets.
1296 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1298 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1299 * configure: Regernate.
1300 * po/fr.po: New file.
1301 * po/sv.po: New file.
1303 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1305 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1306 as little endian default and to support big endian.
1308 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1310 * ld.texinfo (Options): Document new option, -nostdlib.
1311 * lexsup.c (OPTION_NOSTDLIB): New definition.
1312 (ld_options): Add entry for "nostdlib".
1313 (parse_args): Handle OPTIONS_NOSTDLIB.
1314 * ldfile.c (ldfile_add_library_path): Don't add directories
1315 to the search path if they weren't specified on the command line
1316 and -nostdlib was specified.
1317 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1319 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1321 * lexsup.c (parse_args): Prevent infinite parsing loop when
1322 "-rpath.a" is specified on the command line.
1323 Replace calls to fprintf with calls to einfo.
1325 2001-10-31 John Marshall <jmarshall@acm.org>
1327 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1328 appear only once across all the linker scripts involved in a link
1329 invocation no longer applies. Make the documentation reflect
1332 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1334 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1336 (sh-*-linux*): Added targ_extra_libpath.
1338 2001-10-31 David Heine <dlheine@tensilica.com>
1340 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1341 for padding statements.
1343 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1345 * configure.tgt (mmix-*-*): New target.
1346 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1347 Add dependencies to match.
1348 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1349 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1350 scripttempl/mmo.sc: New files.
1351 * gen-doc.texi: @set MMIX.
1352 * ld.texinfo: Ditto.
1353 [MMIX] Add MMIX node.
1354 * Makefile.in: Regenerate.
1356 2001-10-29 Kazu Hirata <kazu@hxi.com>
1358 * ldlang.c: Fix a comment typo.
1360 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1362 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1363 entries, and match *-*-linux*.
1365 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1367 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1368 with ldlex_script, ldlex_popstate.
1369 (ifile_p1): Likewise.
1370 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1372 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1373 to 1. Don't BEGIN(SCRIPT).
1374 (lex_redirect): Similarly.
1375 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1377 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1379 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1380 __EH_FRAME_END__ and accept eh frames into data section.
1381 Add ctor and dtor sections.
1383 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1385 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1386 (auto-export): Fix indentation.
1388 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1390 * pe-dll.c (autofilter_objectlist): Add startup objects
1392 (auto-export): Constify char * p.
1393 Extract file basename and use strcmp rather than ststr
1396 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1398 * ldmain.c (get_emulation): Improve comment about the handling
1401 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1403 * po/POTFILES.in: Regenerate.
1405 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1407 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1408 -z nocopyreloc and -z nocombreloc usage strings.
1410 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1412 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1415 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1417 * scripttempl/armaout.sc: Place .bss section after end of aligned
1418 data section to match behaviour of aout code in constructrion of
1421 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1423 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1424 startup files for mingw32 dlls to list.
1426 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1428 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1430 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1432 * configure.tgt (targ): Add arm9e-*-elf.
1434 2001-10-05 H.J. Lu <hjl@gnu.org>
1436 * genscripts.sh: Fix a typo in the last change.
1438 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1440 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1441 -z nocombreloc in usage.
1443 2001-10-03 Jim Blandy <jimb@redhat.com>
1445 * genscripts.sh: Include a comment at the top of each generated
1446 script, explaining its purpose.
1448 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1450 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1451 * NEWS: Mention -z nocopyreloc.
1452 * ld.texinfo (Options): Describe nocopyreloc.
1454 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1456 * configure: Regenerate.
1458 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1460 * ldver.h (ld_program_version): Remove declaration.
1461 * lexsup.c (parse_args): Move printing of copyright message..
1462 * ldver.c (ldversion): .. to here.
1463 Use BFD_VERSION_STRING in place of BFD_VERSION.
1464 (ld_program_version): Remove.
1465 * Makefile.am (Makefile): Depend on bfd/configure.in.
1467 * Makefile.in: Regenerate.
1469 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1471 * Makefile.am: Update dependencies with "make dep-am".
1472 * Makefile.in: Regenerate.
1474 2001-09-29 John Reiser <jreiser@BitWagon.com>
1476 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1477 * lexsup.c: Add --no-define-common commandline option.
1478 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1479 * ldlex.l: Likewise.
1480 * ld.h: Add command_line.inhibit_common_definition.
1481 * ldmain.c (main): Initialize.
1482 * ld.texinfo: Document.
1484 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1486 * ldmisc.c (USE_STDARG): Remove.
1487 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1492 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1493 declarations. Update copyright.
1495 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1497 * pe-dll.c: Remove obsoleted declaration of
1498 pe_get_data_import_dll_name.
1499 (pe_create_import_fixup): Fix thinko.
1501 * ld.texinfo(enable-auto-import): Clarify the explanation.
1503 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1505 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1506 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1507 DLL_SUPPORT controlled code.
1509 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1511 * emultempl/pe.em(pe_data_import_dll): Make static.
1512 (pe_get_data_import_dll_name): New accessor function.
1513 * pe-dll.c(pe_create_import_fixup): call
1514 pe_get_data_import_dll_name() from pe.em, instead of
1515 directly accessing pe_data_import_dll variable from pe.em.
1517 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1519 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1520 (def_file_add_directive): Use ISSPACE instead of isspace.
1521 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1522 isdigit/isxdigit/isalpha/isalnum.
1523 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1524 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1525 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1526 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1528 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1529 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1531 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1532 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1533 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1534 (ctor_prio): Use ISDIGIT instead of isdigit.
1535 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1536 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1537 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1539 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1540 (stricpy): Use TOLOWER instead of isupper/tolower.
1541 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1542 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1543 (lex_warn_invalid): Use ISPRINT instead of isprint.
1544 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1545 (main): For gettext, also set the LC_CTYPE locate facet.
1546 (add_keepsyms_file): Use ISSPACE instead of isspace.
1547 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1548 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1549 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1550 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1551 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1552 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1553 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1554 (quoteput): Use ISSPACE instead of isspace.
1555 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1558 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1560 * deffilep.y (def_stash_module): Constify "name" param.
1562 * pe-dll.c: Replace CONST with const throughout.
1563 (quick_symbol): Constify "n1", "n2", "n3" params.
1564 (make_singleton_name_thunk): Constify "import" param. Make
1565 "buffer_len" a size_t.
1566 (make_import_fixup_entry): Constify "name", "fixup_name",
1567 "dll_symname" params.
1568 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1569 (pe_get32): Likewise.
1570 (pe_implied_import_dll): Likewise.
1572 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1573 (sort_by_section_name): Likewise.
1575 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1576 (make_import_fixup): Cast printf arg, rel->address to long rather
1578 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1580 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1582 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1583 defines BufferSize. Increase buffer size by one.
1585 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1587 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1589 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1591 * configure.tgt: Add arm-openbsd target.
1593 2001-09-12 H.J. Lu <hjl@gnu.org>
1595 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1597 (ALL_64_EMULATIONS): Here.
1598 * Makefile.in: Regenerated.
1600 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1602 * emultempl/pe.em(make_import_fixup): change signature to
1603 take asection as well as arelec; we need this for proper
1604 error reporting. Only call pe_create_import_fixup() if
1605 there is no attempt to add a constant addend to the reloc;
1606 otherwise, report error condition.
1607 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1608 since final argument is a pointer to make_import_fixup().
1609 Change call to cb() to match make_import_fixup() signature.
1610 (make_import_fixup_mark): make buffer_len unsigned.
1611 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1613 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1615 * ld.texinfo: add verbose documentation for auto-import
1616 direct-addressing workaround, to compliment the terse
1619 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1621 * scripttempl/v850.sc: Add gcc_except_table sections.
1623 2001-09-11 Jeffrey A Law (law@cygnus.com)
1625 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1626 * emulparams/h8300self.sh: Similarly.
1628 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1630 * ld.texinfo (Options, --stack): Correct default value for stack
1633 2001-09-05 Tom Rix <trix@redhat.com>
1635 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1637 2001-09-03 Andreas Jaeger <aj@suse.de>
1639 * emultempl/beos.em: Declare prototypes for comparions functions,
1642 2001-09-02 Andreas Jaeger <aj@suse.de>
1644 * emultempl/aix.em: Add missing prototype.
1645 * emultempl/lnk960.em: Likewise.
1646 * emultempl/vanilla.em: Likewise.
1647 * emultempl/armcoff.em: Likewise.
1648 * emultempl/armelf_oabi.em: Likewise.
1649 * emultempl/beos.em: Likewise.
1650 * emultempl/gld960c.em: Likewise.
1651 * emultempl/gld960.em: Likewise.
1653 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1654 for prototype declaration.
1656 2001-08-31 Eric Christopher <echristo@redhat.com>
1657 Jason Eckhardt <jle@redhat.com>
1659 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1661 2001-08-31 Andreas Jaeger <aj@suse.de>
1663 * emultempl/pe.em: Add missing prototypes.
1664 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1665 pe_find_data_imports.
1666 (pr_sym): Add unused attribute.
1668 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1670 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1671 default from coff to elf.
1673 2001-08-29 Jeff Law <law@redhat.com>
1675 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1677 * emulparams/h8300self.sh: Similarly.
1679 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1681 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1683 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1684 * configure.tgt (h8300-*-elf*): New case.
1685 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1686 * emulparams/h8300self.sh: New file.
1687 * Makefile.in: Regenerated.
1689 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1691 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1694 2001-08-27 Linus Nordberg <linus@swox.com>
1695 Alan Modra <amodra@bigpond.net.au>
1697 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1698 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1700 * Makefile.in: Regenerate.
1701 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1702 entries to correct alphabetical position.
1703 * emulparams/elf64ppc.sh: New.
1704 * emulparams/elf64lppc.sh: New.
1706 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1708 * ldmain.c (main): Declare BSIZE as static.
1710 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1712 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1713 into .rel.dyn resp. .rela.dyn if combreloc.
1714 (get_script): If .x linker script is equal to .xn, only put it
1715 once into the binary.
1716 Add .xc and .xsc scripts.
1717 (parse_args): Handle -z combreloc and -z nocombreloc.
1718 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1719 For .xc and .xsc scripts put all .rel* or .rela* input sections
1720 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1721 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1723 Strip trailing whitespace from script.
1724 Generate .xc and .xsc scripts if requested.
1725 * ldmain.c (main): Initialize link_info.combreloc and
1726 link_info.spare_dynamic_tags.
1727 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1728 (ld_options): Add --spare-dynamic-tags option.
1729 (parse_args): Likewise.
1730 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1731 * ldint.texinfo: Document .xc and .xsc linker scripts.
1732 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1734 2001-08-22 H.J. Lu <hjl@gnu.org>
1736 * emulparams/elf32fr30.sh: Add a newline.
1738 2001-08-21 Andreas Jaeger <aj@suse.de>
1740 * deffilep.y: Add missing prototypes.
1741 * pe-dll.c: Likewise.
1743 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1745 * ldlang.c (insert_pad): Fix typos in last patch.
1747 * ldlang.c: When traversing lang_statement_union_type lists,
1748 consistently use "header.next" rather than "next".
1749 * mpw-eppcmac.c: Likewise.
1750 * emultempl/beos.em: Likewise.
1751 * emultempl/hppaelf.em: Likewise.
1752 * emultempl/pe.em: Likewise.
1753 * ldlang.h (union lang_statement_union): Remove "next" field.
1755 * ldlang.c (insert_pad): Use offsetof macro.
1756 (lang_size_sections): Always neuter padding statements.
1757 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1759 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1760 passed to lang_size_sections.
1761 (pe_exe_fill_sections): Likewise.
1762 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1763 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1765 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1767 * emultempl/aix.em: Formatting fixes.
1769 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1771 * ldlang.c (insert_pad): Make use of an existing pad statement if
1772 available. Move code calculating alignment, adjusting section
1773 alignment power, and adjusting dot to ..
1774 (size_input_section): .. here. Remove unused relax param.
1775 (lang_size_sections): Change boolean `relax' param to boolean *.
1776 Adjust call to size_input_section. Make use of insert_pad to
1777 place pad after the assignment statement. If relaxing, zap
1779 (reset_memory_regions): Reset output_bfd section sizes too.
1780 (relax_again): Move to..
1781 (lang_process): ..here. Adjust call to lang_size_sections, and
1782 remove duplicated code.
1783 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1785 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1787 * ld.texinfo: Document that fill values now use the four least
1789 * emulparams/elf32fr30.sh (NOP): Update.
1790 * emulparams/elf32mcore.sh: Likewise.
1791 * emulparams/elf64_s390.sh: Likewise.
1792 * emulparams/elf_i386.sh: Likewise.
1793 * emulparams/elf_i386_be.sh: Likewise.
1794 * emulparams/elf_i386_chaos.sh: Likewise.
1795 * emulparams/elf_i386_ldso.sh: Likewise.
1796 * emulparams/elf_s390.sh: Likewise.
1797 * emulparams/elf_x86_64.sh: Likewise.
1798 * emulparams/i386moss.sh: Likewise.
1799 * emulparams/i386nw.sh: Likewise.
1800 * emulparams/m68kelf.sh: Likewise.
1801 * scripttempl/elf.sc: Update NOP comment.
1802 * scripttempl/elfi370.sc: Likewise.
1803 * scripttempl/elfm68hc11.sc: Likewise.
1804 * scripttempl/elfm68hc12.sc: Likewise.
1805 * scripttempl/nw.sc: Likewise.
1807 2001-08-15 Tom Rix <trix@redhat.com>
1809 * ldgram.y (saved_script_handle): Initialize to NULL.
1810 * ldmain.c (main): Change check on saved_script_handle.
1812 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1814 * emultempl/elf32.em: Formatting fixes.
1815 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1816 looking at sec->owner.
1817 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1818 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1819 unused code, and reorganize orphan section placement code.
1821 * ldlang.c (wild_doit): Rename to lang_add_section.
1822 * ldlang.h: Here too.
1823 * mpw-elfmips.c: And here.
1824 * emultempl/beos.em: And here.
1825 * emultempl/elf32.em: And here.
1826 * emultempl/hppaelf.em: And here.
1827 * emultempl/pe.em: And here.
1829 2001-08-13 Richard Henderson <rth@redhat.com>
1831 * emultempl/needrelax.em: New file.
1832 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1833 * Makefile.am (eelf64_ia64.c): Depend on it.
1834 * Makefile.in: Rebuild.
1836 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1838 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1839 output_section is set non-NULL.
1841 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1842 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1843 needlessly create an output_section_statement. Treat a correctly
1844 named output_section_statement with NULL bfd_section as compatible.
1846 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1848 * emultempl/generic.em: Support EXTRA_EM_FILE.
1849 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1850 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1851 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1852 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1853 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1854 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1855 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1856 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1857 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1858 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1860 2001-08-12 Richard Henderson <rth@redhat.com>
1862 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1863 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1864 scripttempl/v850.sc: Keep .jcr data.
1866 2001-08-12 H.J. Lu <hjl@gnu.org>
1867 Andrew Haley <aph@cambridge.redhat.com>
1868 Nick Clifton <nickc@redhat.com>
1870 * ldgram.y (had_script): Change name to saved_script_handle.
1871 Change type to file handle.
1872 * ld.h (had_script): Rename and retype.
1873 * ldfile.c (ldfile_open_command_file): Save the file handle
1874 used in saved_script_handle.
1875 * lexsup.c (parse_args): Do not allow -c option to alter
1876 saved_script_handle.
1877 * ldmain.c (main): Print out the linker script used if
1878 --verbose is given. Check saved_script_handle to obtain the
1879 external linker script used, or if NULL, dump the builtin
1881 * ld.texinfo: Document that --verbose now dumps the linker
1882 script used, regardless of whether it was an internal or an
1885 2001-08-10 Andreas Jaeger <aj@suse.de>
1887 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1889 * configure: Regenerate.
1891 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1893 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1895 * scripttempl/elf.sc: Move non-text .dynamic section before
1896 .plt/.got/.sdata* group.
1897 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1898 (OTHER_SDATA_SECTIONS): Add.
1899 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1901 * emulparams/crislinux.sh: Likewise.
1902 * emulparams/elf32b4300.sh: Likewise.
1903 * emulparams/elf32bmip.sh: Likewise.
1904 * emulparams/elf32bmipn32.sh: Likewise.
1905 * emulparams/elf32bsmip.sh: Likewise.
1906 * emulparams/elf32btsmip.sh: Likewise.
1907 * emulparams/elf32ebmip.sh: Likewise.
1908 * emulparams/elf32elmip.sh: Likewise.
1909 * emulparams/elf32l4300.sh: Likewise.
1910 * emulparams/elf32lmip.sh: Likewise.
1911 * emulparams/elf32lsmip.sh: Likewise.
1912 * emulparams/elf32ltsmip.sh: Likewise.
1913 * emulparams/elf64bmip.sh: Likewise.
1914 * emulparams/elf64btsmip.sh: Likewise.
1915 * emulparams/elf64ltsmip.sh: Likewise.
1917 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1919 * genscripts.sh: Source the emulparams script before each output
1920 script is generated so that variables like `RELOCATING' may affect
1921 variables defined in the emulparams script.
1923 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1925 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1928 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1929 ie. iterate over wild_statement.section_list.
1930 (gld${EMULATION_NAME}_place_orphan): Likewise.
1932 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1934 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1935 .fini[0-4] sections used by _exit
1936 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1937 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1938 * scripttempl/elfm68hc11.sc: Likewise.
1940 2001-08-03 H.J. Lu <hjl@gnu.org>
1942 * emultempl/beos.em (init): Add the missing initialization.
1944 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1946 * ld.texinfo (Input Section Basics): Clarify ordering of output
1948 * ldlang.c (callback_t): Add wildcard_list param.
1949 (walk_wild_section): Remove "section" param. Rewrite for
1950 lang_wild_statement_type change. Remove unique_section_p test.
1951 (walk_wild_file): Remove "section" param.
1952 (walk_wild): Remove "section" and "file" params.
1953 (lang_gc_wild): Likewise.
1954 (wild): Likewise. Modify for lang_wild_statement_type change.
1955 (wild_sort): Likewise. Add "sec" param.
1956 (gc_section_callback): Likewise.
1957 (output_section_callback): Likewise. Do unique_section_p test.
1958 (map_input_to_output_sections): Modify call to wild.
1959 (lang_gc_sections_1): Likewise.
1960 (print_wild_statement): Modify for lang_wild_statement_type
1962 (lang_add_wild): Replace filename, filenames_sorted param with
1963 filespec. Replace section_name, sections_sorted,
1964 exclude_filename_list with section_list.
1965 * ldlang.h (lang_add_wild): Here too.
1966 (lang_wild_statement_type): Replace section_name, sections_sorted,
1967 and exclude_filename_list with section_list.
1968 * ldgram.y (current_file): Delete.
1969 (%union): Add wildcard_list.
1970 (file_NAME_list): Set type to wildcard_list. Build a linked list
1971 rather than calling lang_add_wild for each entry.
1972 (input_section_spec_no_keep): Call lang_add_wild here instead.
1973 * ld.h (struct wildcard_list): Declare.
1974 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1976 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1978 * ldmain.c (main): initialize link_info.pei386_auto_import
1979 * pe-dll.c: new tables for auto-export filtering
1980 (auto_export): change API, pass abfd for contextual filtering.
1981 Loop thru tables of excluded symbols instead of comparing
1984 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1986 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1987 static variable current_sec (static struct sec *). Add
1988 forward declaration for add_bfd_to_link.
1989 (process_def_file): Don't export undefined symbols. Do not
1990 export symbols starting with "_imp__". Call auto_export()
1992 (pe_walk_relocs_of_symbol): New function.
1993 (generate_reloc): add optional extra debugging
1994 (pe_dll_generate_def_file): eliminate extraneous initial blank
1996 (make_one): enlarge symtab to make room for __nm__ symbols
1997 (DATA auto-import support).
1998 (make_singleton_name_thunk): New function.
1999 (make_import_fixup_mark): New function.
2000 (make_import_fixup_entry): New function.
2001 (pe_create_import_fixup): New function.
2002 (add_bfd_to_link): Specify that 'name' argument is a CONST
2004 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2005 declare new functions pe_walk_relocs_of_symbol and
2006 pe_create_import_fixup.
2007 * emultempl/pe.em: add new options --enable-auto-import,
2008 --disable-auto-import, and --enable-extra-pe-debug.
2009 (make_import_fixup): New function.
2010 (pe_find_data_imports): New function.
2011 (pr_sym): New function.
2012 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2013 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2016 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2018 * ld.texinfo: add additional documentation for
2019 --export-all-symbols. Document --out-implib,
2020 --enable-auto-image-base, --disable-auto-image-base,
2021 --dll-search-prefix, --enable-auto-import, and
2022 --disable-auto-import.
2023 * ldint.texinfo: Add detailed documentation on auto-import
2026 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2028 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2031 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2033 * Makefile.am: Update dependencies with "make dep-am".
2034 * Makefile.in: Regenerate
2036 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2038 * ldcref.c (check_section_sym_xref): New function.
2039 (check_nocrossrefs): Call it.
2040 (check_nocrossref): Interate over h->refs here instead of..
2041 (check_refs): ..here. Pass in the symbol name, section, and bfd
2042 rather than hash_entry pointers.
2043 (struct check_refs_info): Keep symbol name rather than hash entry.
2045 (check_reloc_refs): Tweak for above changes in check_refs_info.
2046 Only report references to section syms when symname is NULL to
2047 prevent duplicate messages for the same reloc.
2049 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2051 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2052 available. Do not print NULL trees.
2053 (exp_print_token): Print unknown tokens with values > 126 as
2054 decimal values not ASCII characters.
2056 * ldlang.c (lang_leave_overlay): If a region is specified assign
2057 it to all sections inside the overlay unless they have been
2058 assigned to the own, non-default, memory region.
2060 * README: Add header for consistency with other README files.
2062 2001-07-14 H.J. Lu <hjl@gnu.org>
2064 * emultempl/elf32.em (output_prev_sec_find): Never return
2065 bfd_abs_section_ptr, bfd_com_section_ptr nor
2066 bfd_und_section_ptr.
2068 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2070 * Makefile.am (em32relf.c): Change dependency from generic.em to
2072 * Makefile.in: Regenerate.
2074 2001-07-14 matthew green <mrg@eterna.com.au>
2076 * configure.tgt (i386-*-netbsdelf*): New target.
2077 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2079 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2081 * emultempl/elf32.em (output_prev_sec_find): New.
2082 (place_orphan): Use it.
2084 2001-07-11 H.J. Lu <hjl@gnu.org>
2086 * ldmain.c (main): Fix typos in the last change.
2088 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2090 * ldmain.c (main): Disallow -F and -f without -shared.
2092 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2094 * emultempl/pe.em (after_open): Check for the output_bfd not
2095 having any coff_data structure allocated to it.
2097 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2099 * emultempl/elf32.em: Do not assuming that contents of the buffer
2100 returned from basename function will remain unchanged accross other
2103 2001-07-03 H.J. Lu <hjl@gnu.org>
2105 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2106 2001-07-03. It creates dynamic entries even for static binaries.
2108 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2110 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2111 (DYNAMIC): Use it to reserve few dynamic entries for
2114 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2116 * emulparams/hppa64linux.sh: New file.
2117 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2118 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2119 (ehppa64linux.c): Add rule to make it.
2121 * Makefile.in: Regenerate.
2123 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2125 * ld.texinfo (Options, -r): Mention restrictions when using
2126 different object formats.
2128 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2130 * ldlang.c (lang_check): Emit fatal error if relocatable link
2131 between different object flavours with relocations in input.
2133 2001-06-19 H.J. Lu <hjl@gnu.org>
2135 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2136 (--version-script): Mention the language support.
2138 2001-06-19 H.J. Lu <hjl@gnu.org>
2140 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2142 2001-06-18 H.J. Lu <hjl@gnu.org>
2144 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2145 (diststuff): Add $(MANS).
2146 * Makefile.in: Regenerated.
2150 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2152 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2153 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2154 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2155 * ld.h (args_type): Remove member export_dynamic. All users
2156 changed to use struct bfd_link_info member.
2158 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2159 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2160 * Makefile.in: Regenerate.
2162 2001-06-18 H.J. Lu <hjl@gnu.org>
2164 * ldlang.c (init_os): Add the newline to the einfo call.
2165 (lang_check): Likewise.
2166 (lang_do_version_exports_section): Likewise.
2168 2001-06-15 H.J. Lu <hjl@gnu.org>
2170 * lexsup.c (parse_args); Save optind to report unrecognized
2173 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2175 * ldlang.c (lang_check): Emit fatal error if relocatable link
2176 between different object flavours.
2178 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2179 Set new link_info member export_dynamic.
2180 * ldmain.c (main): Initialize new link_info member export_dynamic.
2182 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2184 * ldlang.c (walk_wild): Only call walk_wild_file if
2185 lookup_name returns something.
2186 (lookup_name): If load_symbols fails, return NULL.
2187 (load_symbols): Change to a boolean function.
2188 (open_input_bfds): If load_symbols fails then do not make the
2191 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2193 * ldlang.c (record_bfd_errors): Remove.
2195 * emultempl/aix.em: Fix copyright dates.
2197 2001-06-07 Andreas Jaeger <aj@suse.de>
2199 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2200 (TEXT_START_ADDR): Likewise.
2202 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2204 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2206 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2208 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2210 2001-05-31 H.J. Lu <hjl@gnu.org>
2212 * ldlang.c (open_input_bfds): Don't change the bfd error
2213 handler whilst loading symbols.
2215 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2217 * configure.tgt: Remove i370-mvs architecture, it is not currently
2220 2001-05-25 H.J. Lu <hjl@gnu.org>
2222 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2223 like emulparams/aixppc.sh.
2225 2001-05-25 H.J. Lu <hjl@gnu.org>
2227 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2228 setting of output_filename after bfd_scan_arch.
2229 * emultempl/pe.em: Likewise.
2231 2001-05-25 H.J. Lu <hjl@gnu.org>
2233 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2234 like emulparams/aixppc.sh.
2236 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2237 instead of ${srcdir}/emultempl/stringify.sed.
2239 2001-05-25 Timothy Wall <twall@oculustech.com>
2241 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2244 2001-05-25 Alan Modra <amodra@one.net.au>
2246 * configure.host: Replace linuxoldld with linux*oldld.
2247 * configure.tgt: Likewise.
2249 2001-05-24 H.J. Lu <hjl@gnu.org>
2251 * emultempl/stringify.sed: Removed again.
2253 2001-05-24 H.J. Lu <hjl@gnu.org>
2255 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2256 (gld${EMULATION_NAME}_before_parse): Initialize
2257 ldfile_output_architecture, ldfile_output_machine and
2258 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2259 * emultempl/beos.em: Likewise.
2260 * emultempl/elf32.em: Likewise.
2261 * emultempl/linux.em: Likewise.
2262 * emultempl/mipsecoff.em: Likewise.
2263 * emultempl/pe.em: Likewise.
2264 * emultempl/sunos.em: Likewise.
2266 2001-05-24 Tom Rix <trix@redhat.com>
2268 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2269 udate import file format.
2270 (change_symbol_mode) New, same
2271 (is_syscall) New, same
2272 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2273 * emulparams/aixppc64.sh : same
2274 * emulparams/aixrs6.sh : same
2275 * emulparams/ppcmacos.sh : same
2276 * emultempl/aix.em : use strtoull to parse options
2277 * Makefile.am : add eaixppc64 emulation for xcoff64
2278 * Makefile.in : same
2279 * configure.tgt : same
2281 * scripttempl/aix.sc : default text section offset to 0x10000000
2282 default data section offset to 0x20000000
2283 add .sv3264 and .sv64 pseudo sections
2284 loader and debug sections use the currect section offset.
2286 * emultempl/aix.em : Add xcoff64 support
2287 Add -binitfini support
2288 (gld${EMULATION_NAME}_before_parse) -binitfini
2289 (gld${EMULATION_NAME}_parse_args) same
2290 (gld${EMULATION_NAME}_before_allocation) format change for special
2293 * emulparams/aixppc64.sh : New file for xcoff64 support
2295 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2297 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2298 variable to avoid non-portable shell construct.
2300 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2302 * ldmain.c (get_emulation): Add -mips5 command line argument.
2304 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2306 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2307 (ELF_INTERPRETER_NAME): Define it.
2308 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2310 * configure.tgt (targ_emul, targ_extra_emuls)
2311 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2312 as primary, elf_i386 as extra.
2313 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2314 (eelf_i386_ldso.c): New rule.
2315 * Makefile.in: Rebuilt.
2317 2001-05-22 Nick Clifton <nickc@redhat.com>
2319 * lexsup.c (ld_options): Allow -I to be an alias for
2320 --dynamic-linker. This is for Solaris compatability.
2321 * ld.texinfo: Document that -I can be used.
2324 2001-05-16 Alan Modra <amodra@one.net.au>
2326 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2327 whether an input section is the first one assigned to an output
2329 Assorted formatting fixes.
2331 2001-05-14 DJ Delorie <dj@delorie.com>
2333 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2334 * Makefile.in: Ditto.
2336 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2338 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2339 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2341 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2343 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2345 * ldlang.c (lang_process): Call bfd_merge_sections.
2347 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2349 * ldgram.y: Fix typo.
2351 2001-05-03 H.J. Lu <hjl@gnu.org>
2353 * emultempl/elf32.em: Include "libiberty.h".
2354 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2355 basename of the bfd filename.
2356 (gld${EMULATION_NAME}_stat_needed): Likewise.
2357 (gld${EMULATION_NAME}_try_needed): Likewise.
2358 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2360 2001-05-02 H.J. Lu <hjl@gnu.org>
2362 * emultempl/pe.em: Include <ctype.h>.
2364 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2366 * emulparams/elf32openrisc.sh: New file.
2368 * Makefile.am: Add OpenRISC target.
2369 * Makefile.in: Regenerated.
2371 * configure.tgt: Add openrisc-*-* mapping.
2373 2001-05-02 Nick Clifton <nickc@redhat.com>
2375 * emultempl/aix.em: Replace buystring with xstrdup.
2376 * emultempl/beos.em: Replace buystring with xstrdup.
2378 2001-05-02 H.J. Lu <hjl@gnu.org>
2380 * ldfile.c: Include "libiberty.h".
2381 * ldlex.l: Likewise.
2383 * ldmisc.c (buystring): Removed.
2384 * ldmisc.h: Likewise.
2386 * ldfile.c: Replace buystring with xstrdup.
2387 * ldlang.c: Likewise.
2388 * ldlex.l: Likewise.
2389 * ldmain.c: Likewise.
2390 * ldmisc.c: Likewise.
2391 * lexsup.c: Likewise.
2392 * mpw-eppcmac.c: Likewise.
2394 2001-04-30 Andreas Jaeger <aj@suse.de>
2396 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2398 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2400 * ldlang.c (load_symbols): Give emulation a chance
2401 to process unrecognized file before fatal error is
2402 reported, not after.
2404 2001-04-27 Sean McNeil <sean@mcneil.com>
2406 * configure.tgt: Add arm-vxworks target.
2407 * scripttempl/armcoff.sc: Support .text or .data as a section name
2411 2001-04-13 J.T. Conklin <jtc@redback.com>
2413 * ld.texinfo: Document --fatal-warnings.
2416 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2417 warnings have been turned into errors.
2418 * lexsup.c (OPTION_WARN_FATAL): Define.
2419 (ld_options): Entry for --fatal-warnings.
2420 (parse_args): Handle OPTION_WARN_FATAL.
2421 * ld.h (ld_config_type): Add fatal_warnings field.
2423 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2425 * ldmain.c (main): Default to discard_sec_merge.
2426 * lexsup.c (OPTION_DISCARD_NONE): Define.
2427 (ld_options): Add --discard-none.
2428 (parse_args): Handle OPTION_DISCARD_NONE.
2429 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2430 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2431 all its input sections match.
2433 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2435 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2436 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2437 (eelf32ltsmip.c): New target.
2438 (eelf64btsmip.c): Likewise.
2439 (eelf64ltsmip.c): Likewise.
2440 * Makefile.in: Regenerated.
2442 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2444 (mips*-*-linux-gnu*): Likewise.
2446 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2448 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2450 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2453 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2455 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2456 correct value of __Stext here.
2457 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2460 * emulparams/crislinux.sh: Remove FIXME.
2462 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2464 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2465 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2467 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2469 * configure.tgt (cris-*-*): Change default emulation to criself.
2470 (cris-*-*aout*): New rule.
2472 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2474 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2475 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2477 2001-03-26 Andreas Jaeger <aj@suse.de>
2479 * ld.texinfo (Overview): Fix syntax in texi code.
2481 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2483 * ld.texinfo: Put @c man indications to generate the ld man page.
2484 When generating man, define all the variables. Define SEEALSO
2485 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2486 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2487 (ld.1): Generate from ld.texinfo.
2488 * Makefile.in: Regenerate.
2490 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2492 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2493 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2495 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2497 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2498 is an absolute path look only for this file and not along the path.
2500 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2502 * emultempl/elf32.em (OPTION_GROUP): New macro.
2503 Add new option Bgroup to longopts.
2504 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2505 (gld*_list_options): Add -Bgroup and -z defs.
2506 * ld.1: Document -Bgroup and -z defs.
2507 * ld.texinfo: Likewise.
2509 2001-03-07 Michael Meissner <meissner@redhat.com>
2511 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2512 with sections created by -fdata-sections.
2513 (.dynbss,.bss): Ditto.
2515 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2517 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2518 after_allocation_default, not gld..._before_allocation.
2520 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2522 * configure.in (BFD_VERSION): New.
2523 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2524 * configure: Regenerate.
2525 * Makefile.am: Run "make dep-am"
2526 * Makefile.in: Regenerate.
2528 2001-02-26 Timothy Wall <twall@cygnus.com>
2530 * emulparams/elf64_aix.sh: Add additional read-only sections;
2531 uncomment lines which are now required.
2533 2001-02-26 H.J. Lu <hjl@gnu.org>
2535 * ldlang.c (open_input_bfds): Set the bfd error handler so
2536 that problems can be caught whilst loading symbols.
2537 (record_bfd_errors): New function: Report BFD errors and mark
2538 the executable output as being invalid.
2540 2001-02-22 Timothy Wall <twall@cygnus.com>
2542 * configure.host: Add configuration for ia64-*-aix*.
2543 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2544 Add dependencies for eelf64_aix.c.
2545 * Makefile.in: Regenerate.
2546 * configure.tgt: Add ia64-*-aix* mapping.
2547 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2548 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2551 2001-02-20 H.J. Lu <hjl@gnu.org>
2553 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2554 false if we found the file.
2556 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2558 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2559 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2561 2001-02-18 lars brinkhoff <lars@nocrew.org>
2563 * Makefile.am: Add PDP-11 target.
2564 * configure.tgt: Likewise.
2565 * emulparams/pdp11.sh: New file.
2567 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2569 * configure.host: Add a generic FreeBSD configuration entry such that
2570 all [modern] FreeBSD systems on all platforms will look the same.
2572 2001-02-14 H.J. Lu <hjl@gnu.org>
2574 * configure.tgt: Remove mention of earmelf_linux26.
2576 2001-02-13 Richard Henderson <rth@redhat.com>
2578 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2580 2001-02-13 H.J. Lu <hjl@gnu.org>
2582 * ldexp.h (node_type): Add etree_provided.
2583 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2584 type to etree_provided if defined by PROVIDE. Allow updating
2586 (exp_print_tree): Handle etree_provided.
2587 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2590 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2592 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2593 .IA_64.unwind.* pattern to unwind table section and
2594 .IA_64.unwind_info* pattern to unwind info section.
2596 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2598 * Makefile.am: Add linux target for S/390.
2599 * Makefile.in: Likewise.
2600 * configure.host: Likewise.
2601 * configure.tgt: Likewise.
2602 * emulparams/elf64_s390.sh: New file.
2603 * emulparams/elf_s390.sh: New file.
2605 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2607 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2609 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2611 2001-02-06 Philip Blundell <philb@gnu.org>
2613 * Makefile.am: Remove mention of earmelf_linux26.
2614 * Makefile.in: Regenerate.
2616 2001-02-04 Philip Blundell <philb@gnu.org>
2618 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2619 * emulparams/armelf_linux26.sh: Delete.
2620 * configure.tgt: Remove mention of armelf_linux26 emulation.
2622 2001-02-01 Nick Clifton <nickc@redhat.com>
2624 * ld.1: Replace occurances of -oformat with --oformat.
2626 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2628 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2629 load_base is specified.
2631 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2633 * emultempl/elf32.em: Correct spelling in comments and listed
2636 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2638 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2639 default for the first section of a group of overlay sections.
2641 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2643 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2644 * Makefile.in: Regenerate.
2645 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2646 Check for null tool_dir.
2648 2001-01-16 Jim Wilson <wilson@redhat.com>
2650 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2651 and IA_64.unwind.info.
2653 2001-01-16 H.J. Lu <hjl@gnu.org>
2655 * ldlang.c (lang_check): Merge the private data only if the
2656 input file has contents.
2658 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2660 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2662 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2663 enabling search for libmilli. On a relocatable link, make .text
2665 (LDEMUL_AFTER_PARSE): Define.
2666 (hppaelf_finish): Correct spelling of relocatable in comments.
2668 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2669 rummage through the script for sections on the unique list.
2670 Correct length of strncmp for ".note".
2671 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2673 * ldlang.c (unique_section_list): New var.
2674 (unique_section_p): New function.
2675 (walk_wild_section): Don't match sections on unique_section_list.
2676 (lang_add_unique): New function.
2677 Correct spelling of relocatable in comments.
2679 * ldlang.h (struct unique_sections): Declare.
2680 (unique_section_list): Declare.
2681 (unique_section_p): Declare.
2682 (lang_add_unique): Declare.
2684 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2685 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2687 * ld.texinfo (--unique): Update.
2689 2001-01-13 Nick Clifton <nickc@redhat.com>
2691 * lexsup.c (parse_args): Remove spurious white space.
2693 2001-01-12 Nick Clifton <nickc@redhat.com>
2695 * lexsup.c (parse_args): Update copyright date.
2697 2001-01-12 Philip Blundell <pb@futuretv.com>
2699 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2701 2001-01-10 Kazu Hirata <kazu@hxi.com>
2703 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2704 * scripttempl/h8300h.sc: Fix formatting.
2705 * scripttempl/h8300s.sc: Likewise.
2706 * scripttempl/h8500.sc: Likewise.
2707 * scripttempl/h8500b.sc: Likewise.
2708 * scripttempl/h8500c.sc: Likewise.
2709 * scripttempl/h8500m.sc: Likewise.
2710 * scripttempl/h8500s.sc: Likewise.
2712 2000-01-07 David O'Brien <obrien@BSDi.com>
2714 * emultempl/elf32.em: Only perform Linux ld hints processing when
2717 2001-01-07 Philip Blundell <philb@gnu.org>
2719 * ld.texinfo (Bug Reporting): Update email address for reports.
2721 2000-12-31 Nick Clifton <nickc@redhat.com>
2723 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2724 options by checking for a return value of '?' not -1.
2726 2000-12-28 Nick Clifton <nickc@redhat.com>
2728 * lexsup.c (struct ld_option): Add new enum value:
2730 (ld_options[]): Change -omagic, -output and -oformat options
2731 to be EXACTLY_TWO_DASHES.
2732 (OUTPUT_COUNT): Use ARRAY_SIZE.
2733 (parse_args): Change parameter 'argc' to unsigned.
2734 Place EXACTLY_TWO_DASHES options into new really_longopts
2736 If getopt_long_only fails, try calling getopt_long using the
2737 really_longopts array.
2738 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2741 * ldlex.h: Fix prototype of parse_args.
2743 * ld.texinfo: Document that long options starting with 'o'
2744 must be preceeded by two dashes. Change example of a single
2745 dashed long option from -oformat to -trace-symbol.
2747 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2749 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2750 (longopts[]): New --no-default-excludes option.
2751 (gld_${EMULATION_NAME}_list_options): Document.
2752 (gld_${EMULATION_NAME}_parse_args): Handle.
2754 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2756 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2757 whitespace, it breaks the K&R C preprocessor.
2759 2000-12-11 DJ Delorie <dj@redhat.com>
2761 * ld.texinfo: Add notes about --whole-archive and gcc.
2763 2000-11-18 Fred Fish <fnf@be.com>
2765 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2766 (ld_options): Entry for --allow-shlib-undefined.
2767 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2768 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2770 * ld.texinfo: Document new command line switch.
2772 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2774 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2775 .fixup is actually read/write.
2776 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2777 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2778 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2780 2000-12-11 Jan Hubicka <jh@suse.cz>
2782 * NEWS: Add note about x86_64 architecture.
2784 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2786 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2787 Set DWARF2 sections to a VMA of zero.
2789 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2791 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2793 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2794 (sparc*-*-rtems*): Switched from a.out to ELF.
2796 2000-11-30 Jan Hubicka <jh@suse.cz>
2798 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2799 (eelf_x86_64.c): New.
2800 * Makefile.in: Regenerate.
2801 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2802 * emulparams/elf_x86_64.sh: New.
2804 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2806 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2807 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2809 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2810 merging non-a.out sections into CONSTRUCTING.
2812 2000-11-28 Nick Clifton <nickc@redhat.com>
2814 * ld.1 (COPYING): Mention that the GNU Free Documentation
2815 License is present in the sources, but not the output, and
2816 also available from the GNU website.
2817 (GNU Free Documentation License): Comment out this section.
2819 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2821 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2824 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2826 * ld.1: Remove old date so it does not give the impression the manpage
2829 2000-11-24 Nick Clifton <nickc@redhat.com>
2831 * configure.tgt (xscale-coff): Add target.
2832 (xscale-elf): Add target.
2834 2000-11-24 Fred Fish <fnf@be.com>
2836 * ldmain.c (main): Remove redundant init of config.make_executable
2839 2000-11-15 Richard Henderson <rth@redhat.com>
2841 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2843 2000-11-14 Kazu Hirata <kazu@hxi.com>
2845 * scripttempl/h8300.sc: Fix formatting.
2846 * scripttempl/h8300h.sc: Likewise.
2847 * scripttempl/h8300s.sc: Likewise.
2849 2000-11-14 Denis Chertykov <denisc@overta.ru>
2851 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2853 2000-11-09 Philip Blundell <pb@futuretv.com>
2855 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2856 around orphan sections whose names can be represented in C.
2858 2000-11-07 Jim Wilson <wilson@redhat.com>
2860 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2861 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2863 2000-11-06 Nick Clifton <nickc@redhat.com>
2865 * ld.texinfo: Add GNU Free Documentation License.
2866 * ldint.texinfo: Add GNU Free Documentation License.
2867 * ld.1: Add GNU Free Documentation License.
2869 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2871 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2872 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2874 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2875 Move 2000-11-02 Makefile.in changes to this file.
2876 * Makefile.in: Regenerate.
2878 2000-11-03 Nick Clifton <nickc@redhat.com>
2880 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2881 constructors and destructors.
2882 * scripttempl/h8300h.sc: Ditto.
2883 * scripttempl/h8300s.sc: Ditto.
2884 * scripttempl/h8500.sc: Ditto.
2885 * scripttempl/h8500b.sc: Ditto.
2886 * scripttempl/h8500c.sc: Ditto.
2887 * scripttempl/h8500m.sc: Ditto.
2888 * scripttempl/h8500s.sc: Ditto.
2889 * scripttempl/v850.sc: Ditto.
2890 * scripttempl/w65.sc: Ditto.
2891 * scripttempl/z8000.sc: Ditto.
2893 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2895 * Makefile.in (e_i386_chaos.c): New rule.
2896 (ALL_EMULATIONS): Added e_i386_chaos.o.
2897 * emulparams/elf_i386_chaos.sh: New file.
2898 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2900 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2902 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2903 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2904 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2905 library path suffix.
2906 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2908 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2910 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2911 for consecutive sections.
2913 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2915 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2917 * ld.texinfo: Added notes about this new option.
2919 2000-10-16 Nick Clifton <nickc@redhat.com>
2921 * emultempl/pe.em (_after_open): Add tests of return values from
2922 bfd functions. Emit appropriate error messages if necessary.
2924 2000-10-13 Nick Clifton <nickc@redhat.com>
2926 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2927 local variables - they are not used, but leave in the call to
2928 bfd_canonicalize_symtab.
2929 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2930 pe_dll_search_prefix.
2932 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2934 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2935 (longopts): New --dll-search-prefix option.
2936 (gld_${EMULATION_NAME}_list_options): Document.
2937 (gld_${EMULATION_NAME}_parse_args): Handle.
2938 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2939 dynamically, search for a dll named '<prefix><basename>.dll'
2940 in preference to 'lib<basename>.dll' if --dll-search-prefix
2943 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2945 * ldlang.c (section_already_linked): Set kept_section instead of
2948 2000-10-10 Kazu Hirata <kazu@hxi.com>
2950 * deffile.h: Fix formatting.
2951 * lexsup.c: Likewise.
2954 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2956 * pe-dll.c (make_one): Do not generate code thunk for DATA
2958 (process_def_file): deduce DATA flag for auto-export sumbols.
2960 2000-10-09 Kazu Hirata <kazu@hxi.com>
2962 * ld.h: Fix formatting.
2963 * ldcref.c: Likewise.
2964 * ldctor.h: Likewise.
2965 * ldemul.c: Likewise.
2966 * ldemul.h: Likewise.
2967 * ldexp.c: Likewise.
2968 * ldexp.h: Likewise.
2969 * ldfile.c: Likewise.
2970 * ldfile.h: Likewise.
2971 * ldlang.c: Likewise.
2972 * ldlang.h: Likewise.
2973 * ldmain.c: Likewise.
2974 * pe-dll.c: Likewise.
2976 * pe-dll.c: Revert some formatting fixes.
2978 2000-10-08 Kazu Hirata <kazu@hxi.com>
2980 * pe-dll.c: Fix formatting.
2982 2000-10-05 Kazu Hirata <kazu@hxi.com>
2984 * ldlang.c: Fix formatting.
2986 2000-10-03 DJ Delorie <dj@redhat.com>
2988 * pe-dll.c (fill_edata): initialize entire block
2989 (make_one): fill in correct section.
2991 2000-10-03 Kazu Hirata <kazu@hxi.com>
2993 * ldexp.c: Fix formatting.
2995 2000-10-02 DJ Delorie <dj@redhat.com>
2997 * emultempl/pe.em (gld_*_after_open): detect case where there two
2998 import libraries for same dll; rename one to ensure proper link
3001 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3003 (generate_edata): fix typo
3005 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3007 * scripttempl/crisaout.sc (ENTRY): Now __start.
3008 (.text): Add default setting for __start.
3009 Remove CONSTRUCTORS handling.
3010 (/DISCARD/): Add .gnu.warning.*.
3011 * emulparams/crislinux.sh (ENTRY): Now __start.
3012 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3013 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3014 (ENTRY): Now __start.
3015 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3016 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3018 2000-09-29 Kazu Hirata <kazu@hxi.com>
3020 * deffile.h: Fix formatting.
3022 * ldcref.c: Likewise.
3023 * ldctor.c: Likewise.
3024 * ldctor.h: Likewise.
3025 * ldemul.c: Likewise.
3026 * ldemul.h: Likewise.
3027 * ldexp.c: Likewise.
3028 * ldexp.h: Likewise.
3029 * ldfile.c: Likewise.
3030 * ldfile.h: Likewise.
3031 * ldlang.c: Likewise.
3032 * ldlang.h: Likewise.
3033 * lexsup.c: Likewise.
3035 * pe-dll.c: Likewise.
3037 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3039 * pe-dll.c (process_def_file): Uninitialized data wasn't
3040 exported with --export-all-symbols switch.
3042 2000-09-28 DJ Delorie <dj@redhat.com>
3044 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3045 noname work properly.
3047 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3049 * ld.texinfo (HPPA ELF32): New section.
3051 * emultempl/hppaelf.em (group_size): New.
3052 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3053 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3054 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3055 options to prevent abbreviations matching.
3056 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3057 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3059 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3061 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3062 on the m68*-*-elf target. Make it support COFF input objects.
3064 2000-09-21 Kazu Hirata <kazu@hxi.com>
3066 * ldmain.c: Fix formatting.
3067 * ldmisc.c: Likewise.
3068 * ldver.c: Likewise.
3069 * ldwrite.c: Likewise.
3071 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3073 * ldwrite.c (clone_section): Silence gcc warnings.
3075 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3077 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3078 out of memory failure.
3080 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3081 (clone_section): Handle out of memory failures. Rename var to
3082 avoid c++ reserved word.
3084 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3086 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3087 stub_name param to stub_sec_name.
3088 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3090 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3092 * emultempl/m68kelf.em: New file.
3093 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3094 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3095 * Makefile.in: Regenerate.
3097 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3099 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3102 2000-09-13 Nick Clifton <nickc@redhat.com>
3104 * ldmain.c (multiple_definition): Disable relaxation if
3105 multiple symbol definitions are encountered - otherwise the
3106 linker could abort with an assertion failure.
3108 2000-09-10 Nick Clifton <nickc@redhat.com>
3110 * mri.c: Fix formatting.
3112 2000-09-07 H.J. Lu <hjl@gnu.org>
3114 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3115 * configure: Rebuild.
3117 2000-09-07 H.J. Lu <hjl@gnu.org>
3119 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3120 * Makefile.in: Rebuild.
3122 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3124 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3125 broken list handling. Create __start_SECNAME and __stop_SECNAME
3126 when no place-holder. Add some comments. Test both SEC_CODE and
3127 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3128 Handle case where no output section statement created.
3130 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3132 * configure.tgt (sh-*-linux*): Added.
3133 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3134 * Makefile.in: Rebuilt.
3135 * emulparams/shelf_linux.sh: New file.
3136 * emulparams/shlelf_linux.sh: New file.
3138 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3140 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3141 try shuffling sections when the orphan happens to be the place
3142 holder. Keep count of unique section names generated so we speed
3143 the search for a new name.
3145 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3147 * configure: Rebuilt with new libtool.m4.
3149 2000-09-05 Nick Clifton <nickc@redhat.com>
3151 * Makefile.in: Regenerate.
3152 * aclocal.m4: Regenerate.
3153 * configure: Regenerate.
3154 * config.in: Regenerate.
3155 * po/ld.pot: Regenerate.
3157 * ldint.texinfo: Remove CVS revision marker - it foils local
3160 * emultempl/ticoff.em: Remove extraneous comma.
3162 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3164 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3165 to stub section flags.
3166 (hppa_for_each_input_file_wrapper): New.
3167 (hppa_lang_for_each_input_file): New.
3168 (lang_for_each_input_file): Define to call above.
3169 (multi_subspace): New.
3170 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3171 (PARSE_AND_LIST_PROLOGUE): Define.
3172 (PARSE_AND_LIST_LONGOPTS): Define.
3173 (PARSE_AND_LIST_OPTIONS): Define.
3174 (PARSE_AND_LIST_ARGS_CASES): Define.
3175 (hppaelf_finish): Call elf32_hppa_set_gp.
3176 (hppaelf_set_output_arch): Remove.
3177 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3179 * emulparams/hppalinux.sh (ELFSIZE): Define.
3181 (OTHER_READONLY_SECTIONS): Define.
3183 (GENERATE_SHLIB_SCRIPT): Define.
3185 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3186 to const throughout. Change `void *' to `PTR' throughout.
3187 (lang_memory_default): Function is local to file, add `static'.
3189 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3190 (ehppalinux.c): Likewise.
3191 (earmelf.c): Likewise.
3192 (earmelf_linux.c): Likewise.
3193 (earmelf_linux26.c): Likewise.
3194 * Makefile.in: Regenerate.
3196 * ld.h (ld_config_type): Add unique_orphan_sections.
3197 * lexsup.c (OPTION_UNIQUE): Define.
3198 (ld_options): Add "--unique".
3199 (parse_args): Handle it.
3200 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3201 search for an existing output section if unique_orphan_sections is
3202 set. Make use of bfd_get_unique_section_name rather than
3203 duplicating code here.
3204 * ld.texinfo: Describe --unique.
3206 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3207 optional arg to split-by-file.
3208 (parse_args): Handle them.
3209 * ld.texinfo: Update description of these options.
3210 * ldwrite.c (clone_section): Pass in the section name. Replace
3211 local code with bfd_get_unique_section_name.
3212 (split_sections): Tidy code and comments. Use a list traversal
3213 more appropriate to the list construction. Handle cooked section
3214 sizes. Split when split_by_reloc reached rather than exceeded.
3215 Track section size and split when split_by_file reached. Fix
3216 link_order_tail (even though it's not used).
3217 (ldwrite): Modify condition for calling split_sections to suit
3218 changed split_by_reloc and split_by_file.
3219 * ldmain.c (main): Init config.split_by_reloc and
3220 config.split_by_file to -1.
3221 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3222 Change split_by_file to bfd_size_type.
3224 2000-09-02 Nick Clifton <nickc@redhat.com>
3226 * configure.in: Increase version number to 2.10.91.
3227 * NEWS: Mention new ability to support removal of duplicate DWARF2
3229 * configure: Regenerate.
3230 * aclocal.m4: Regenerate.
3231 * config.in: Regenerate.
3233 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3235 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3237 * scripttempl/elf32avr.sc: Ditto.
3238 * scripttempl/elfd10v.sc: Ditto.
3239 * scripttempl/elfd30v.sc: Ditto.
3240 * scripttempl/elfi370.sc: Ditto.
3241 * scripttempl/elfm68hc11.sc: Ditto.
3242 * scripttempl/elfm68hc12.sc: Ditto.
3243 * scripttempl/elfi386beos.sc: Ditto.
3244 * scripttempl/v850.sc: Ditto.
3246 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3248 * acinclude.m4: Include libtool and gettext macros from the
3250 * aclocal.m4, configure: Rebuilt.
3252 2000-08-25 Nick Clifton <nickc@redhat.com>
3254 * ldlang.c (open_output): When choosing the target for a
3255 particular endianness, do nothing if the target is not
3258 2000-08-25 H.J. Lu <hjl@gnu.org>
3260 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3261 check -rpath nor LD_RUN_PATH for cross link.
3262 * ld.texinfo: Document the change.
3264 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3266 * NEWS: Mention support for CRIS.
3268 2000-08-23 H.J. Lu <hjl@gnu.org>
3270 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3271 the current runpath list from bfd_elf_get_runpath_list ()
3274 2000-08-22 H.J. Lu <hjl@gnu.org>
3276 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3277 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3278 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3279 trace_file_tries is non-zero.
3280 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3281 if trace_file_tries is non-zero.
3283 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3286 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3288 * NEWS: Mention i860 support.
3290 2000-08-14 Andreas Schwab <schwab@suse.de>
3292 * scripttempl/elf.sc: Fix last change to use correct comment
3295 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3297 * scripttempl/elf.sc: Add a comment giving the correspondence
3298 between sections, per-datum sections, and linkonce sections. Make
3299 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3302 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3304 * emulparams/elf32_i860.sh: New file.
3305 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3306 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3307 (eelf32_i860.c): New rule.
3308 * Makefile.in: Regenerate.
3310 2000-08-10 Nick Clifton <nickc@cygnus.com>
3312 * emulparams/mipspe.sh (ENTRY): Add definition.
3314 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3316 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3319 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3321 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3322 the final size of .bss section.
3323 * scripttempl/elfm68hc12.sc: Likewise.
3325 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3327 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3328 gld${EMULATION_NAME}_parse_args for consistency. Combine
3329 lastoptind and prevoptind vars, and keep track of last optind.
3330 (gld_${EMULATION_NAME}_list_options): Rename to
3331 gld${EMULATION_NAME}_list_options.
3333 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3335 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3336 (i586-sco-sysv5uw7.1.0).
3338 2000-07-27 H.J. Lu <hjl@gnu.org>
3340 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3341 (PARSE_AND_LIST_PROLOGUE): New.
3342 (PARSE_AND_LIST_LONGOPTS): Likewise.
3343 (PARSE_AND_LIST_OPTIONS): Likewise.
3344 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3345 (PARSE_AND_LIST_EPILOGUE): Likewise.
3347 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3349 * emultempl/armelf.em: Elide functions common to elf32.em,
3350 ie. most of the file.
3351 (arm_elf_after_open): New. Do arm specific things then call
3352 gld${EMULATION_NAME}_after_open.
3353 (arm_elf_before_allocation): New. Call
3354 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3355 (PARSE_AND_LIST_PROLOGUE): Define.
3356 (PARSE_AND_LIST_SHORTOPTS): Define.
3357 (PARSE_AND_LIST_LONGOPTS): Define.
3358 (PARSE_AND_LIST_OPTIONS): Define.
3359 (PARSE_AND_LIST_ARGS_CASES): Define.
3360 (LDEMUL_AFTER_OPEN): Define.
3361 (LDEMUL_BEFORE_ALLOCATION): Define.
3362 (LDEMUL_BEFORE_PARSE): Define.
3363 (LDEMUL_FINISH): Define.
3365 * emultempl/hppaelf.em: Similarly zap most of this file.
3366 (hppaelf_add_stub_section): Prototype.
3367 (hppaelf_layaout_sections_again): Prototype.
3368 (hook_in_stub): Prototype.
3369 (LDEMUL_SET_OUTPUT_ARCH): Define.
3370 (LDEMUL_FINISH): Define.
3371 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3373 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3374 (EXTRA_EM_FILE): New.
3375 * emulparams/armelf_linux.sh: Likewise.
3376 * emulparams/armelf_linux26.sh: Likewise.
3377 * emulparams/hppalinux.sh: Likewise.
3378 * emulparams/hppaelf.sh: Likewise.
3381 * emultempl/elf32.em: Fix formatting.
3382 (EXTRA_EM_FILE): Source it.
3383 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3384 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3385 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3386 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3387 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3388 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3389 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3390 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3391 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3392 allow functions in this file to be overridden.
3393 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3395 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3397 * emultempl/elf32.em: Reorganize file.
3399 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3401 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3402 specific option to fit 64-bit executable in the lower
3403 31-bit address range. This is done by changing start
3404 address of .interp (the very first section of executable)
3405 and then setting EF_ALPHA_32BIT elf header flag.
3407 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3409 * emultempl/m68kcoff.em: New file.
3410 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3411 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3413 * Makefile.in: Regenerate.
3415 2000-07-20 H.J. Lu <hjl@gnu.org>
3417 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3418 and "disable-new-dtags" to stop getopt from treating -d/-e as
3419 abbreviations for these options.
3421 2000-07-20 H.J. Lu <hjl@gnu.org>
3423 * ld.texinfo: Add documentation for --disable-new-dtags and
3426 * ldmain.c (main): Initialize link_info.new_dtags to false.
3428 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3429 --disable-new-dtags and --enable-new-dtags.
3430 (gld_${EMULATION_NAME}_list_options): Likewise.
3432 2000-07-05 Kenneth Block <krblock@computer.org>
3434 * lexsup.c: Add optional style to demangle switch
3435 * ld.texinfo: Document optional style to demangle switch.
3437 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3439 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3441 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3442 Regenerate dependencies.
3443 * Makefile.in: Rebuild.
3444 * configure.tgt (cris-*-*): New target.
3445 * emulparams/crisaout.sh, emulparams/criself.sh,
3446 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3447 * po/POTFILES.in, po/ld.pot: Regenerate.
3449 2000-07-20 H.J. Lu <hjl@gnu.org>
3451 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3452 Print out ignored -z options.
3454 2000-07-19 H.J. Lu <hjl@gnu.org>
3456 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3457 (PARSE_AND_LIST_PROLOGUE): New.
3458 (PARSE_AND_LIST_LONGOPTS): Likewise.
3459 (PARSE_AND_LIST_OPTIONS): Likewise.
3460 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3462 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3464 * lexsup.c (ld_options): Comment out 'z'.
3465 (parse_args): Likewise.
3467 * emultempl/elf32.em: Include "elf/common.h".
3468 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3470 (gld_${EMULATION_NAME}_list_options): Likewise.
3472 * ld.texinfo: Add documentation for the recognized -z options.
3474 2000-07-19 H.J. Lu <hjl@gnu.org>
3476 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3477 bfd_elf_set_dt_needed_soname ().
3479 2000-07-18 DJ Delorie <dj@cygnus.com>
3481 * pe-dll.c (pe_dll_id_target): check object target name also
3483 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3485 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3486 ${INIT_END} if relocating.
3487 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3489 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3491 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3492 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3493 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3494 errors introduced by the old dynamic lib search order.
3496 2000-07-17 DJ Delorie <dj@cygnus.com>
3498 * pe-dll.c (process_def_file): auto-export data items also
3499 (pe_process_import_defs): also see if _imp_ form needed
3501 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3503 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3504 for dll import libraries
3506 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3508 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3509 gcc 2.95.2 and later.
3511 2000-07-11 Kazu Hirata <kazu@hxi.com>
3513 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3516 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3518 * ldemul.h (struct lang_input_statement_struct): Remove forward
3520 (struct search_dirs): Likewise.
3521 * ldfile.h (struct lang_input_statement_struct): Likewise.
3522 Protect file from multiple inclusion.
3523 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3524 declaration from macro to file scope.
3526 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3527 * ldgram.y: Likewise here.
3528 * ldlang.c: And here.
3529 * ldmain.c: And here.
3530 * mpw-elfmips.c: And here.
3531 * mpw-eppcmac.c: And here.
3532 * emultempl/aix.em: And here.
3533 * emultempl/armcoff.em: And here.
3534 * emultempl/armelf.em: And here.
3535 * emultempl/armelf_oabi.em: And here.
3536 * emultempl/beos.em: And here.
3537 * emultempl/elf32.em: And here.
3538 * emultempl/hppaelf.em: And here.
3539 * emultempl/linux.em: And here.
3540 * emultempl/lnk960.em: And here.
3541 * emultempl/pe.em: And here.
3542 * emultempl/sunos.em: And here.
3543 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3544 * mpw-idtmips.c: Ditto.
3545 * emultempl/generic.em: Ditto.
3546 * emultempl/gld960.em: Ditto.
3547 * emultempl/gld960c.em: Ditto.
3548 * emultempl/mipsecoff.em: Ditto.
3549 * emultempl/ticoff.em: Ditto.
3550 * emultempl/vanilla.em: Ditto.
3552 * pe-dll.c: Include ldfile.h
3553 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3555 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3556 arguments to bfd_elf32_size_dynamic_sections call.
3557 (gldelf32ebmip_place_orphan): Add missing arguments to
3558 lang_leave_output_section_statement call.
3560 2000-07-10 H.J. Lu <hjl@gnu.org>
3562 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3564 (strhash): Likewise.
3565 (compute_dll_image_base): Likewise.
3566 (pe_undef_found_sym): Likewise.
3567 (pe_undef_cdecl_match): Likewise.
3568 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3569 argument "arch" with ATTRIBUTE_UNUSED.
3571 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3573 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3575 From Ryan Bradetich <rbradetich@uswest.net>
3576 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3578 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3580 Changes to create multiple linker stubs, positioned immediately
3581 before the section where they are required.
3582 * emultempl/hppaelf.em: Include elf32-hppa.h.
3583 (stub_sec, file_chain): Delete.
3584 (hppaelf_create_output_section_statements): Don't make a stub
3586 (hook_stub_info): New struct.
3587 (hook_in_stub): New function.
3588 (hppaelf_add_stub_section): New function.
3589 (hppaelf_finish): Do nothing for relocateable links. Modify the
3590 call to elf32_hppa_size_stubs. Move code for updating section
3592 (hppaelf_layaout_sections_again): ..to here, a new function.
3594 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3595 broken list handling. Pass in a pointer to the list.
3596 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3598 (hppaelf_before_parse): Prototype.
3599 (hppaelf_set_output_arch): Prototype.
3600 (hppaelf_create_output_section_statements): Prototype.
3601 (hppaelf_delete_padding_statements): Prototype.
3602 (hppaelf_finish): Prototype.
3605 * emultempl/hppaelf.em: Include ctype.h.
3606 (struct orphan_save): New.
3607 (gld${EMULATION_NAME}_place_orphan): New.
3608 (output_rel_find): New.
3609 (hppaelf_get_script): Update from elf32.em.
3610 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3611 Change emulation_name field to "${EMULATION_NAME}". Add
3612 gld${EMULATION_NAME}_place_orphan.
3614 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3615 ehppalinux.o, sort it. Regenerate dependencies.
3616 (ehppalinux.c): Depend on hppaelf.em
3617 * Makefile.in: Regenerate.
3619 * configure.tgt: targ_emul=hppalinux for hppa*linux
3621 * emulparams/hppalinux.sh: New.
3622 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3624 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3626 * lexsup.c (parse_args): Copy section name.
3628 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3630 * emultempl/pe.em: institute the following search order for
3631 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3632 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3633 static lib (libfoo.a) if none of the above are found.
3635 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3637 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3638 (longopts): New --{enable,disable}-auto-image-base options.
3639 (gld_${EMULATION_NAME}_list_options): Document.
3640 (gld_${EMULATION_NAME}_parse): Handle.
3641 (strhash): New static function.
3642 (compute_dll_image_base): New static function.
3643 (gld_${EMULATION_NAME}_set_symbols): Use.
3645 2000-07-05 DJ Delorie <dj@redhat.com>
3649 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3651 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3652 * emulparams/elf32btsmip.sh: New file.
3653 * Makefile.am: Add traditional mips target.
3654 * Makefile.in: Rebuild.
3656 2000-07-01 H.J. Lu <hjl@gnu.org>
3658 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3659 automake to use YLWRAP.
3660 * Makefile.in: Rebuild.
3662 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3664 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3665 (CLEANFILES): Add DEPA.
3666 * Makefile.in: Regenerate.
3668 2000-06-30 Timothy Wall <twall@ppc>
3670 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3671 the page in the upper octet of the address.
3673 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3675 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3677 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3679 * NEWS: arm-elf does --gc-sections too.
3681 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3683 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3685 * Makefile.in: Regenerate.
3687 2000-06-21 H.J. Lu <hjl@gnu.org>
3689 * Makefile.am: Rebuild dependency.
3690 * Makefile.in: Rebuild.
3692 2000-06-20 H.J. Lu <hjl@gnu.org>
3694 * Makefile.am: Rebuild dependency.
3695 * Makefile.in: Rebuild.
3697 2000-06-20 Timothy Wall <twall@cygnus.com>
3699 * scripttempl/tic54xcoff.sc: New.
3700 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3701 * gen-doc.texi: Add flag for TI COFF.
3702 * ld.texinfo: Add documentation for TI COFF handling switches.
3703 * emultempl/ticoff.em: New. TI COFF handling.
3704 * configure.tgt: Add tic54x target.
3705 * Makefile.am: Add tic54x target.
3706 * Makefile.in: Ditto.
3708 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3710 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3711 checking for backslashes.
3713 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3715 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3717 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3719 * NEWS: Update list of targets supporting --gc-sections.
3721 * scripttempl/elf.sc: KEEP .eh_frame contents.
3722 * scripttempl/elfd30v.sc: Same here.
3724 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3726 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3728 * Makefile.in: Rebuild.
3729 * configure.tgt: Recognize m68hc12 and m68hc11.
3730 * scripttempl/elfm68hc12.sc: New file.
3731 * emulparams/m68hc12elfb: New emulation.
3732 * emulparams/m68hc12elf: New emulation.
3733 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3734 (includes a memory.x script to define the ROM and RAM banks).
3735 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3736 New configuration files for support of Motorola 68hc11
3738 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3740 * ldmain.c (main): Only change SEC_READONLY for final link.
3742 2000-06-13 H.J. Lu <hjl@gnu.org>
3744 * configure: Regenerate.
3746 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3748 * configure.in (VERSION): Update to show this is the CVS mainline.
3750 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3752 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3753 input objects to be ECOFF.
3754 (check_sections): einfo takes %B, not %P, to print a BFD name.
3756 2000-06-05 Michael Matz <matz@ifh.de>
3758 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3761 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3763 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3765 * emulparams/avr1200.sh (STACK): Define as 0.
3766 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3767 * emulparams/avr4433.sh (STACK): Likewise.
3768 * emulparams/avr44x4.sh (STACK): Likewise.
3769 * emulparams/avr85xx.sh (STACK): Likewise.
3770 * emulparams/avrmega103.sh (STACK): Likewise.
3771 * emulparams/avrmega161.sh (STACK): Likewise.
3772 * emulparams/avrmega603.sh (STACK): Likewise.
3773 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3774 (__stack): Define from ${STACK} for main().
3776 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3778 * Makefile.am: Update dependencies with "make dep-am"
3779 * Makefile.in: Regenerate.
3781 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3783 * ldmain.c: Include filenames.h.
3784 (set_scripts_dir): Support backslashes in program name.
3786 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3788 * ldmain.c (main): When deciding if ".text" section should be
3789 read-only, don't forget to reset SEC_READONLY because it
3790 could be already set.
3792 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3794 * ld.1: Add documentation for new command line option:
3795 --section-start <sectionname>=<sectionorg>
3796 This is a generic version of -Ttext etc. which accepts
3797 any section name as a parameter instead of just text/data/
3799 * ld.texinfo: More docs.
3801 * lexsup.c: (parse_args): Recognize new command line option.
3802 (ld_options): Add new option.
3804 2000-05-18 H.J. Lu <hjl@gnu.org>
3806 * lexsup.c (parse_args): `i' == `r', not `q'.
3808 2000-05-18 Jeffrey A Law (law@cygnus.com)
3810 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3812 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3813 Rick Gorton <gorton@scrugs.lkg.dec.com>
3815 Add support for '-q' == '--emit-relocs' switch.
3816 * ldmain.c (main): Default to false.
3817 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3818 * NEWS: Describe the emitrelocations switch.
3819 * ld.texinfo: Describe the emitrelocations switch.
3821 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3823 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3824 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3825 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3828 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3830 * lexsup.c (parse_args): Update the year in the copyright notice.
3832 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3834 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3835 Replace defines with those from intl/libgettext.h to quieten gcc
3838 2000-05-10 H.J. Lu <hjl@gnu.org>
3840 * ldlang.c (open_input_bfds): Don't load the same file within
3841 a group again if the whole archive has been loaded already.
3843 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3845 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3846 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3849 2000-05-01 Jim Wilson <wilson@cygnus.com>
3851 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3853 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3854 host "ia64-*-linux-gnu*".
3856 2000-04-29 Andreas Jaeger <aj@suse.de>
3858 * ld.h: Correctly check GCC version.
3860 2000-04-25 Jeffrey A Law (law@cygnus.com)
3862 * Makefile.am: Add PA64 support. Add missing dependencies for
3864 * Makefile.in: Rebuilt.
3865 * configure.tgt: Add PA64 support (currently disabled).
3867 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3869 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3870 (output_rel_find): New function.
3871 (hold_section, hold_use): Delete.
3872 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3873 hold_interp): Make local to place_orphan.
3874 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3875 rather than place_section to find possible previous use of orphan.
3876 Similarly find the place-holder output sections. Use returned
3877 value from lang_enter_output_section_statement rather than calling
3878 lang_output_section_statement_lookup.
3879 * emultempl/armelf.em: Same here.
3880 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3882 * ldlang.c (lang_enter_output_section_statement): Return output
3884 * ldlang.h (lang_enter_output_section_statement): Change
3887 * ldlang.h (lang_output_section_statement): Export it.
3888 * ldlang.c (lang_output_section_statement): Ditto.
3890 2000-04-24 Nick Clifton <nickc@cygnus.com>
3892 * ld.texinfo (Output Section Data): Add note that section data
3893 commands cannot appear outside of section directives.
3895 2000-04-2 Matthew Green <mrg@cygnus.com>
3897 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3899 2000-04-21 Richard Henderson <rth@cygnus.com>
3900 David Mosberger <davidm@hpl.hp.com>
3902 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3903 (eelf64_ia64.c): New rule.
3904 * Makefile.in: Rebuild.
3905 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3906 * emulparams/elf64_ia64.sh: New file.
3908 2000-04-21 Richard Henderson <rth@cygnus.com>
3910 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3912 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3914 * dep-in.sed: Match space at start of file name, not at end.
3916 2000-04-18 H.J. Lu <hjl@gnu.org>
3918 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3919 lang_leave_output_section_statement () after calling
3920 lang_enter_output_section_statement ().
3921 * emultempl/armelf.em: Likewise.
3923 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3925 * emultempl/elf32.em (struct orphan_save): Add section field.
3926 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3927 better order, and place first orphan section as we did before the
3928 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3929 Don't call make_bfd_section here, let wild_doit do the job for us.
3930 Don't build a statement list when we'll only throw it away.
3931 * emultempl/armelf.em: Ditto.
3932 * emultempl/pe.em: Similarly.
3934 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3936 * scripttempl/elfppc.sc: Remove.
3937 * emulparams/elf32ppc.sh: Use elf.sc.
3938 * emulparams/elf32lppc.sh: Use elf.sc.
3939 * emulparams/elf32ppclinux.sh: Use elf.sc.
3940 * emulparams/elf32ppcsim.sh: New file.
3941 * emulparams/elf32lppcsim.sh: New file.
3942 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3943 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3944 * Makefile.in: Regenerate.
3945 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3947 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3949 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3950 ~SEC_ALLOC sections too. Init start address of debug sections.
3951 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3952 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3953 Also set all relocateable section start addresses.
3955 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3957 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3958 Add new BSS_PLT variable for when .plt need not be contained in
3959 the file. Move _etext so that it is also after .fini, and provide
3960 both etext and _etext with a leading underscore. Mark the start
3963 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3965 * emultempl/elf32.em (struct orphan_save): New.
3966 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3967 hold_interp): Make them struct orphan_save.
3968 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3969 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3970 the end of the relevant section list. Also add associated section
3971 statements to the end of any previous orphan statements.
3972 * emultempl/armelf.em: Similarly.
3973 * emultempl/pe.em: Similarly.
3975 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3977 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3979 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3981 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3982 --enable-build-warnings option.
3983 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3984 * Makefile.in, configure: Re-generate.
3986 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3988 * po/ld.pot: Regenerate.
3990 * lexsup.c (help): Restore translated part of bug string.
3992 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3993 (DEP): Quote when passing vars to sub-make. Add warning message
3995 (DEP1): Rewrite for "gcc -MM".
3996 (CLEANFILES): Add DEP2.
3997 Update dependencies.
3998 * Makefile.in: Regenerate.
4000 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4002 * ld.h: #include "bin-bugs.h"
4003 * lexsup.c (help): Use REPORT_BUGS_TO.
4005 2000-03-27 Denis Chertykov <denisc@overta.ru>
4007 * configure.tgt (avr-*-*): New target support.
4008 * Makefile.am: Likewise.
4009 * scripttempl/elf32avr.sc: New script file.
4010 * emulparams/avr1200.sh: New file.
4011 * emulparams/avr23xx.sh: New file.
4012 * emulparams/avr4433.sh New file.
4013 * emulparams/avr44x4.sh New file.
4014 * emulparams/avr85xx.sh New file.
4015 * emulparams/avrmega103.sh New file.
4016 * emulparams/avrmega161.sh New file.
4017 * emulparams/avrmega603.sh New file.
4018 * Makefile.in: Regenerate.
4020 2000-03-09 Andreas Jaeger <aj@suse.de>
4022 * Makefile.am (check-DEJAGNU): Also unset LANG.
4023 * Makefile.in: Rebuild.
4025 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4027 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4030 2000-03-02 H.J. Lu <hjl@gnu.org>
4032 * emulparams/elf32mcore.sh: Include "getopt.h".
4034 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4036 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4038 2000-03-01 H.J. Lu <hjl@gnu.org>
4040 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4041 * emulparams/shpe.sh: Likewise.
4043 2000-03-01 Nick Clifton <nickc@cygnus.com>
4045 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4046 to unused parameters.
4048 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4049 functions only used by DLL code.
4050 (_place_orphan): Initialise 'dollar'.
4052 2000-03-01 H.J. Lu <hjl@gnu.org>
4054 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4055 indicate if the undefined symbol is a fatal error or not.
4056 Don't delete the output file if "fatal" is false.
4058 2000-02-29 H.J. Lu <hjl@gnu.org>
4060 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4061 Set LC_COLLATE and LC_ALL to null and export them. It is for
4062 sort which expects the C locale.
4063 Add $(LIBS) to all $(HOSTING_LIBS).
4064 * Makefile.in: Rebuild.
4066 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4068 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4069 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4070 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4071 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4072 find_potential_libraries.
4074 2000-02-28 Jim Blandy <jimb@redhat.com>
4076 * ldgram.y (exclude_name_list): Don't require a comma to separate
4077 list entries; the lexer considers commas to be valid part of a
4078 filename, so in something like `foo, bar' the comma is considered
4079 part of the first filename, `foo,'.
4080 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4082 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4084 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4085 host "i[3456]86-*-freebsdelf*".
4087 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4089 * scripttempl/i386go32.sc: Move misplaced semicolons.
4091 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4093 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4094 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4095 (eelf64hppa.c, ehppaelf.c): Remove targets.
4096 * Makefile.in: Rebuild.
4098 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4100 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4101 GNU/Linux/sparc, but keep the default as 32.
4103 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4104 it default if sparcv9 or sparc64.
4106 2000-02-24 Nick Clifton <nickc@cygnus.com>
4108 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4109 * Makefile.in: Regenerate.
4110 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4112 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4113 find_potential_libraries.
4114 * ldemul.c (ldemul_find_potential_libraries): New function.
4116 * ldfile.c (ldfile_open_file_search): Allow function to be
4118 (ldfile_open_file): Call ldemul_find_potential_libraries.
4119 * ldfile.h: Add prototype for ldfile_open_file_search.
4121 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4123 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4124 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4126 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4127 (gld_X_find_potential_libraries): New function. Search for
4128 libraries called "*.lib".
4130 * scripttempl/pe.sc: Add .pdata section.
4132 2000-02-23 Richard Henderson <rth@cygnus.com>
4134 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4135 Add and use memory regions.
4137 2000-02-23 Linas Vepstas (linas@linas.org)
4139 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4141 * Makefile.am: Add support for Linux/IBM 370.
4142 * configure.tgt: Likewise.
4144 * Makefile.in: Regenerate.
4146 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4148 * ldlang.c (print_input_section, print_data_statement,
4149 print_reloc_statement, print_padding_statement, insert_pad,
4150 size_input_section, lang_check_section_addresses,
4151 lang_size_sections, lang_do_assignments, lang_set_startof,
4152 lang_one_common): Change `opb' to unsigned.
4153 (lang_do_assignments): Also change `size' to unsigned.
4155 2000-02-16 Richard Henderson <rth@cygnus.com>
4157 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4159 2000-02-16 Timothy Wall <twall@cygnus.com>
4161 * mri.c (mri_draw_tree): Add default LMA region argument to call
4162 to lang_leave_output_section_statement.
4163 * ldlang.h: Update prototypes with LMA region arguments.
4164 * ldlang.c (lang_size_sections): Encapsulate region bounds
4165 checking in os_check_region call.
4166 (os_check_region): New function.
4167 (lang_output_section_statement_lookup): Initialize lma_region.
4168 (lang_leave_output_section_statement): Add LMA region argument.
4169 (lang_leave_overlay): Ditto.
4170 * ldgram.y: Handle LMA region syntax.
4171 * ld.texinfo (Output Section Description): Describe LMA region usage.
4172 * emultempl/armelf.em (gld$place_orphan): Add default value for
4173 lma region in call to lang_leave_output_section_statement.
4174 * emultempl/elf32.em (gld$place_orphan): Add default value for
4175 lma region in call to lang_leave_output_section_statement.
4176 * emultempl/pe.em (gld$place_orphan): Add default value for
4177 lma region in call to lang_leave_output_section_statement.
4180 2000-02-04 Timothy Wall <twall@redhat.com>
4182 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4183 octets when calculating section end addresses.
4185 2000-02-04 Timothy Wall <twall@redhat.com>
4187 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4189 2000-02-03 Timothy Wall <twall@redhat.com>
4191 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4193 * ldlang.c (print_input_section, print_data_statement,
4194 print_reloc_statement, print_padding_statement): Print target
4195 address values and section sizes as bytes, not octets.
4196 (insert_pad) Calculate padding size in octets, and adjust "dot"
4198 (size_input_section) Always adjust "dot" by bytes, not octets.
4199 (lang_check_section_addresses, lang_do_assignments) Adjust
4200 "dot" by bytes, not octets. Use the larger of the directive size
4201 or octets_per_byte for the number of octets actually allocated in
4203 (lang_set_startof) Make sure STARTOF returns a target address.
4204 (lang_one_common) Record size changes in octets.
4205 (lang_abs_symbol_at_end_of) Section end symbol's value is
4206 recorded in target bytes.
4207 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4208 to be clear about behavior when an octet is smaller than one byte.
4210 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4212 * ldcref.c (output_cref): Don't pass message strings to printf
4216 * ldmisc.c (vfinfo): Same here.
4219 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4221 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4222 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4223 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4224 Add missing NULL initialisers, and comments.
4226 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4228 2000-01-21 Nick Clifton <nickc@cygnus.com>
4230 * ldlang.c (lang_size_sections): Fix typo in comment.
4232 2000-01-18 H.J. Lu <hjl@gnu.org>
4234 * ldlang.c (lang_size_sections): Also update the current
4235 address of a region if the SEC_NEVER_LOAD bit is not set.
4237 2000-01-10 Philip Blundell <pb@futuretv.com>
4239 * configure.tgt (arm*-*-conix*): New target.
4241 2000-01-07 Nick Clifton <nickc@cygnus.com>
4243 * ld.texinfo (Options): Remind users to preceed linker command
4244 line switches with -Wl, (or whatever is appropriate) if it is
4245 being invoked by a comnpiler driver program.
4246 Fix description of the behaviour of the -n command line switch.
4248 2000-01-05 Catherine Moore <clm@cygnus.com>
4250 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4252 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4253 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4254 (exclude_name_list): New.
4255 ldlang.c (walk_wild_section): Support list of excluded files.
4256 (print_wild_statement): Likewise.
4257 (lang_add_wild): Likewise.
4258 * ldlang.h (lang_wild_statement_type): Likewise.
4259 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4261 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4263 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4264 (process_def_file): Use.
4265 (pe_dll_compat_implib): New variable.
4268 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4269 pe_dll_compat_implib.
4271 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4272 compat-implib options.
4273 (gld_${EMULATION_NAME}_list_options): List new options.
4274 (gld_${EMULATION_NAME}_parse_args): Handle.
4276 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4279 * deffilep.y (opt_name): Allow "." in name.
4281 For older changes see ChangeLog-9899
4287 version-control: never