1 2002-05-24 TAMURA Kent <kent@netbsd.org>
3 * configure.tgt: Add a target for i386-netbsdpe.
5 2002-05-23 Jakub Jelinek <jakub@redhat.com>
7 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
8 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
9 output section if necessary. Handle .tbss.
10 (lang_size_sections): Clear _raw_size for .tbss section
11 (it allocates space in PT_TLS segment only).
12 * ldwrite.c (build_link_order): Build link order for .tbss too.
14 2002-05-23 Alan Modra <amodra@bigpond.net.au>
16 * configure.in: Correct spelling of AC_PREREQ.
18 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
20 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
22 (autofilter_objlist): Add crtbegin.o, crtend.o.
24 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
26 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
27 (longopts): Add new option --exclude-libs.
28 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
29 (gld_${EMULATION_NAME}_parse_args): Use it.
30 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
31 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
33 (pe_dll_add_excludes): Set excludes->type.
34 (auto_export): Add new variable libname and set to archive basename if
35 abfd. Use it when filtering default and user-specified libarary
36 excludes. Let string "ALL" mean all libs when filtering user-specified
38 * ld.texinfo: Document --exclude-libs.
40 2002-05-22 Alan Modra <amodra@bigpond.net.au>
42 * ldemul.c (ldemul_new_vers_pattern): New function.
43 * ldemul.h (ldemul_new_vers_pattern): Declare.
44 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
45 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
46 * emultempl/ppc64elf.em (dotsyms): New static var.
47 (gld${EMULATION_NAME}_new_vers_pattern): New function.
48 (LDEMUL_NEW_VERS_PATTERN): Define.
49 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
50 (PARSE_AND_LIST_LONGOPTS): Likewise.
51 (PARSE_AND_LIST_ARGS_CASES): Handle them.
52 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
54 * emultempl/armcoff.em: Likewise.
55 * emultempl/armelf_oabi.em: Likewise.
56 * emultempl/beos.em: Likewise.
57 * emultempl/elf32.em: Likewise.
58 * emultempl/generic.em: Likewise.
59 * emultempl/gld960.em: Likewise.
60 * emultempl/gld960c.em: Likewise.
61 * emultempl/linux.em: Likewise.
62 * emultempl/lnk960.em: Likewise.
63 * emultempl/m68kcoff.em: Likewise.
64 * emultempl/mipsecoff.em: Likewise.
65 * emultempl/pe.em: Likewise.
66 * emultempl/sunos.em: Likewise.
67 * emultempl/ticoff.em: Likewise.
68 * emultempl/vanilla.em: Likewise.
70 2002-05-22 Alan Modra <amodra@bigpond.net.au>
72 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
73 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
74 (LIB_SEARCH_DIRS): No need to use "tr".
75 (COMPILE_IN): Only set for native targets.
76 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
77 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
78 * configure.tgt (powerpc*): Set tdir_*.
79 (powerpcle*): Correct targ_extra_emuls.
80 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
81 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
83 2002-05-22 Alan Modra <amodra@bigpond.net.au>
85 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
86 calling lang_add_entry.
88 2002-05-21 H.J. Lu (hjl@gnu.org)
90 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
92 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
94 * ld.texinfo: Updated for --allow-multiple-definition and
97 * ldmain.c (main): Initialize the allow_multiple_definition
100 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
101 (ld_options): Add --allow-multiple-definition.
102 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
104 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
106 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
107 (earmelfb_nbsd.c): New rule.
108 * Makefile.in: Regenerate.
109 * configure.tgt (armeb-*-netbsdelf*): New target.
110 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
111 (arm-*-netbsd*): Likewise.
112 * emulparams/armelfb_nbsd.sh: New file.
114 2002-05-18 Tom Rix <trix@redhat.com>
116 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
119 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
121 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
122 * Makefile.in: Regenerate.
123 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
125 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
127 * emulparams/avr1.sh: New file.
128 * emulparams/avr2.sh: New file.
129 * emulparams/avr3.sh: New file.
130 * emulparams/avr4.sh: New file.
131 * emulparams/avr5.sh: New file.
132 * scripttempl/avr.sc: New file.
134 2002-05-15 Alan Modra <amodra@bigpond.net.au>
136 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
137 (lang_place_orphans): Abort if just_syms_flag.
139 2002-05-10 Tom Rix <trix@redhat.com>
141 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
142 architecture and machine information in the output bfd.
143 (gld*_before_parse): Remove old arch and machine code.
144 (choose_target): Rename to gld*_choose_target.
145 (rtld): Change type to int.
146 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
147 objects in XCOFF archives.
148 * ldfile.h: Update copyright date.
150 2002-05-10 Jakub Jelinek <jakub@redhat.com>
152 * ldmain.c (main): Enable -z combreloc by default.
154 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
156 * Makefile.am: Honour DESTDIR.
157 * Makefile.in: Regenerate.
159 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
161 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
162 (lang_enter_overlay): Remove the last two parameters.
163 (lang_leave_overlay): Take them here instead.
164 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
165 (section): Pass LMA and crossref flag to lang_leave_overlay rather
166 than lang_enter_overlay.
167 * ldlang.c (lang_memory_region_lookup): Return null for null names.
168 (lang_output_section_statement_lookup): Initialize update_dot_tree.
169 (lang_size_sections_1): Evaluate it.
170 (lang_leave_output_section_statement): Rework LMA lookup.
171 (overlay_lma, overlay_nocrossrefs): Remove.
172 (lang_enter_overlay): Remove LMA and corssref arguments.
173 (lang_enter_overlay_section): Don't set the LMA here.
174 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
175 assignment to the last section's update_dot_tree. Unconditionally
176 use the load and run-time regions specified in the OVERLAY statement.
177 Likewise the first section's LMA. Only set the other sections' LMAs
178 when no load region is given.
180 2002-05-06 Nick Clifton <nickc@redhat.com>
182 * po/sv.po: New translation.
184 2002-05-04 Alan Modra <amodra@bigpond.net.au>
186 * emultempl/hppaelf.em (build_section_lists): New function.
187 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
188 and build_section_lists.
190 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
192 * ld.h: Fix formatting.
194 * ldfile.c: Likewise.
195 * ldlang.c: Likewise.
196 * ldmain.c: Likewise.
197 * lexsup.c: Likewise.
198 * pe-dll.c: Likewise.
200 2002-05-02 Alan Modra <amodra@bigpond.net.au>
202 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
203 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
204 (build_section_lists): Do output_section tests here.
206 2002-04-30 Tom Rix <trix@redhat.com>
208 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
210 2002-05-01 Alan Modra <amodra@bigpond.net.au>
212 Long branch stubs, multiple stub sections.
213 * emultempl/ppc64elf.em: Include ldctor.h.
214 (stub_file): New var.
215 (group_size): New var.
216 (ppc_create_output_section_statements): New function.
217 (struct hook_stub_info): New.
218 (hook_in_stub): New function.
219 (ppc_add_stub_section): New function.
220 (ppc_layout_sections_again): New function.
221 (build_section_lists): New function.
222 (gld${EMULATION_NAME}_finish): Rewrite.
223 (real_func): New var.
224 (ppc_for_each_input_file_wrapper): New function.
225 (ppc_lang_for_each_input_file): New function.
226 (lang_for_each_input_file): Define.
227 (PARSE_AND_LIST_PROLOGUE): Define.
228 (PARSE_AND_LIST_LONGOPTS): Define.
229 (PARSE_AND_LIST_OPTIONS): Define.
230 (PARSE_AND_LIST_ARGS_CASES): Define.
231 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
233 2002-04-30 Tom Rix <trix@redhat.com>
235 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
236 -blibpath, -bnolibpath support.
238 2002-04-30 Mark Mitchell <mark@codesourcery.com>
240 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
241 (eelf32ppcwindiss.c): New target.
242 * Makefile.in: Regenerated.
243 * configure.tgt: Add support for powerpc-*-windiss.
244 * emulparams/elf32ppcwindiss.sh: New file.
246 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
248 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
249 * ldexp.c (exp_print_token): Add "infix_p" argument.
250 (exp_print_tree): Update accordingly.
252 2002-04-28 Alan Modra <amodra@bigpond.net.au>
254 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
255 * Makefile.in: Regenerate.
256 * mpw-elfmips.c: Delete.
257 * mpw-eppcmac.c: Delete.
259 * mpw-idtmips.c: Delete.
261 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
263 * emulparams/shelf32.sh (MACHINE): Now sh5.
265 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
267 * ldgram.y: Fix syntax warning.
269 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
271 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
272 to prevent "-n" from being taken as an abbreviation for
273 "--no-pipeline-knowledge".
275 2002-04-08 Alan Modra <amodra@bigpond.net.au>
277 * ldlang.c (lang_size_sections_1): Don't complain about
278 SEC_NEVER_LOAD sections having no memory region specified.
280 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
282 2002-04-07 matthew green <mrg@redhat.com>
284 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
286 2002-04-04 Alan Modra <amodra@bigpond.net.au>
288 * dep-in.sed: Cope with absolute paths.
289 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
291 * Makefile.in: Regenerate.
293 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
295 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
297 2002-04-03 Jakub Jelinek <jakub@redhat.com>
299 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
300 is smaller than maximum, round dot up to common page boundary.
302 2002-03-28 Alan Modra <amodra@bigpond.net.au>
304 * configure.host: Set up for generic hosts first, then tweak as
305 necessary in more specific targets.
306 (HOSTING_LIBS): Include libgcc_eh.a if found.
308 2002-03-23 Andreas Jaeger <aj@suse.de>
310 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
312 2002-03-21 Alan Modra <amodra@bigpond.net.au>
314 * Makefile.am: Run "make dep-am".
315 * Makefile.in: Regenerate.
317 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
319 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
321 2002-03-20 Alan Modra <amodra@bigpond.net.au>
323 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
324 add the symbol to the linker hash table immediately.
325 (lang_place_undefineds): Split symbol creation out..
326 (insert_undefined): ..to here.
328 2002-03-18 David O'Brien <obrien@FreeBSD.org>
330 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
331 the contents of the buffer returned from basename function will are
332 getting overwritten while still being used.
334 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
335 Andreas Jaeger <aj@suse.de>
336 Andreas Schwab <schwab@suse.de>
338 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
339 * elf_x86_64.sh (ARCH): Set to i386:x86-64
340 set libraries to default to lib64 paths.
342 2002-03-18 Tom Rix <trix@redhat.com>
344 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
345 * configure.tgt : Same.
346 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
347 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
348 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
349 emulation parameters for better -b32, -b64 support.
350 * emulparms/aixrs6.sh : Same.
351 * emulparms/ppcmacos.sh : Same.
352 * emultempl/aix.em (choose_target) : Use new emulation parameters
353 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
354 * Makefile.in : Regenerate.
356 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
358 * po/fr.po: Updated version.
360 2002-03-18 Alan Modra <amodra@bigpond.net.au>
362 * ldmain.c (main): Move .text readonly flag fudges from here..
363 * ldlang.c (lang_process): ..to here.
365 2002-03-14 Alan Modra <amodra@bigpond.net.au>
367 * ldlang.c (lang_check): Remove the word size check added in last
368 change. Treat emitrelocations case as for relocatable links.
370 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
372 * po/fr.po: Updated version.
374 2002-03-13 Alan Modra <amodra@bigpond.net.au>
376 * ldlang.c (lang_check): Do relocatable link checks first, so that
377 warn_mismatch can't override. Check compatible and word size too.
379 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
381 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
383 2002-03-05 Jakub Jelinek <jakub@redhat.com>
385 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
388 2002-03-04 H.J. Lu <hjl@gnu.org>
390 * scripttempl/elf.sc: Put .preinit_array, .init_array and
391 .fini_array in the data segment.
393 2002-03-04 Alan Modra <amodra@bigpond.net.au>
395 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
397 2002-03-01 David Mosberger <davidm@hpl.hp.com>
399 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
400 .init_array, and .fini_array.
402 2002-02-20 Andreas Schwab <schwab@suse.de>
404 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
405 .IA64_unwind* in a relocatable link.
407 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
409 * NEWS: Mark 2.12 branch.
411 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
413 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
414 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
416 2002-02-18 Tom Rix <trix@redhat.com>
418 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
419 (gld*_before_allocation): Same.
420 (gld*_create_output_section_statements): Generate
421 __rtinit if run time linking. Add librtl.a to the link.
422 (gld*_read_file): Clean.
424 2002-02-18 Alan Modra <amodra@bigpond.net.au>
426 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
428 2002-02-18 David O'Brien <obrien@FreeBSD.org>
430 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
431 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
432 and eelf64alpha_fbsd.
433 * Makefile.in: Regenerate.
434 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
435 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
436 use a FreeBSD-specific emulation rather than the psABI one.
437 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
438 for all FreeBSD ELF systems.
439 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
441 * emulparams/elf32ppc_fbsd.sh: Likewise.
442 * emulparams/elf64_ia64_fbsd.sh: Likewise.
443 * emulparams/elf64_sparc_fbsd.sh: Likewise.
444 * emulparams/elf64alpha_fbsd.sh: Likewise.
445 * emulparams/elf_i386_fbsd.sh: Likewise.
446 * emulparams/elf_x86_64_fbsd.sh: Likewise.
448 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
450 * po/tr.po: Updated version.
452 2002-02-18 Alan Modra <amodra@bigpond.net.au>
454 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
457 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
459 * emultempl/mmo.em (mmo_after_open): Don't call
460 _bfd_mmix_check_all_relocs when producing ELF output.
462 2002-02-15 Richard Henderson <rth@redhat.com>
464 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
465 definition. Emit a unop+nop pair.
467 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
469 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
470 for presence of .MMIX.reg_contents.linker_allocated before early
473 * NEWS: Mention support for MMIX.
475 2002-02-15 Alan Modra <amodra@bigpond.net.au>
477 Support arbitrary length fill patterns.
478 * ld.texinfo (Output Section Fill): Describe fill expressions.
479 (FILL): Refer to the above.
480 * ldexp.h (etree_value_type): Add "str" field.
481 (union etree_union): Add "str" to "value" struct.
482 (exp_bigintop): Declare.
483 (exp_get_fill): Declare.
484 * ldexp.c: Include "safe-ctype.h".
485 (exp_intop): Set value.str to NULL.
486 (exp_bigintop): New function.
487 (new_rel): Pass in "str", and set new.str from it.
488 (new_rel_from_section): Set new.str to NULL.
489 (fold_name): Adjust calls to new_rel.
490 (exp_fold_tree): Likewise.
491 (exp_get_fill): New function.
492 * ldgram.y (struct big_int bigint, fill_type *fill): New.
493 (INT): Returns a "bigint". Adjust all code handling INTs.
494 (fill_opt): Returns a "fill".
495 (fill_exp): Split out of fill_opt, use for FILL.
496 * ldlang.h (struct _fill_type): New.
497 (fill_type): Move typedef to ldexp.h.
498 (lang_output_section_statement_type): "fill" is now a pointer.
499 (lang_fill_statement_type): Likewise.
500 (lang_padding_statement_type): Likewise.
501 (lang_add_fill): Now takes a "fill_type *" param.
502 (lang_leave_output_section_statement): Likewise.
503 (lang_do_assignments): Likewise.
504 (lang_size_sections): Likewise.
505 (lang_leave_overlay_section): Likewise.
506 (lang_leave_overlay): Likewise.
507 * ldlang.c: Include ldgram.h after ldexp.h.
508 (lang_output_section_statement_lookup): Adjust for fill_type change.
509 (print_fill_statement): Likewise.
510 (print_padding_statement): Likewise.
511 (insert_pad): Now takes a "fill_type *" arg.
512 (size_input_section): Likewise.
513 (lang_size_sections_1): Likewise.
514 (lang_size_sections): Likewise.
515 (lang_do_assignments): Likewise.
516 (lang_add_fill): Likewise.
517 (lang_leave_output_section_statement): Likewise.
518 (lang_leave_overlay_section): Likewise.
519 (lang_leave_overlay): Likewise.
520 Adjust all callers of the above function.
521 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
522 starting with "0X" as well as "0x". Return bigint.str for hex
523 numbers starting with "0x" or "0X", zero bigint.str otherwise.
524 Always use base 16 for numbers starting with "$".
525 * ldmain.c: Include ldgram.h after ldexp.h.
526 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
527 of bfd_fill_link_order.
528 * pe-dll.c: Adjust lang_do_assignments calls.
529 * emultempl/elf32.em: Likewise.
530 * emultempl/hppaelf.em: Likewise.
531 * emultempl/ppc64elf.em: Likewise.
532 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
533 lang_add_assignment call.
534 * emultempl/pe.em: Likewise.
536 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
538 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
539 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
540 the pattern in question is not a regexp.
541 * ldlang.c: Likewise.
542 * ldlang.h: Likewise.
543 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
545 2002-02-12 Jakub Jelinek <jakub@redhat.com>
547 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
548 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
549 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
550 * ldexp.c (exp_data_seg): New variable.
551 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
552 (fold_binary): Handle DATA_SEGMENT_ALIGN.
553 (exp_fold_tree): Handle DATA_SEGMENT_END.
554 Pass allocation_done when recursing instead of hardcoding
555 lang_allocating_phase_enum.
556 * ldexp.h (exp_data_seg): New.
557 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
558 (lang_size_sections): New.
559 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
560 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
561 if COMMONPAGESIZE is defined.
562 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
563 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
564 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
565 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
566 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
569 2002-02-11 Alan Modra <amodra@bigpond.net.au>
571 * Makefile.in: Regenerate.
573 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
575 * lexsup.c: Remove strtoul declaration.
577 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
579 * ldmain.c: Add prototype for main ().
580 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
581 * emultempl/lnk960.em (lnk960_choose_target): Function should
584 2002-02-10 Alan Modra <amodra@bigpond.net.au>
586 * ldlang.c (entry_section): New initialised variable.
587 (lang_finish): Use it.
588 * ldlang.h (entry_section): Declare.
589 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
590 entry_section to ".opd".
592 2002-02-09 Chris Demetriou <cgd@broadcom.com>
594 * ld.texinfo (Options): Add back in -nostdlib documentation,
595 which had been inadvertently removed.
597 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
599 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
600 register section vma to a sane value after emitting error. Make
601 fatal conditions cause program exit when emitting message.
603 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
605 * configure.tgt: Add or32-*-rtems target.
607 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
610 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
611 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
612 in OTHER_RELOCATABLE_SECTIONS.
613 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
614 * emulparams/shelf32.sh (STACK_ADDR): Define.
615 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
616 (OTHER_SECTIONS): this. Removed stack settings.
617 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
618 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
619 2001-03-12 DJ Delorie <dj@redhat.com>
620 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
621 relaxing if any shmedia or mixed sections are found.
622 2001-03-07 DJ Delorie <dj@redhat.com>
623 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
624 einfo. Gracefully decline to output to non-elf formats.
625 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
626 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
627 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
628 * emulparams/shelf32.sh: Ditto.
629 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
630 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
632 2001-01-10 Ben Elliston <bje@redhat.com>
633 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
634 non-portable shell constructs. From Hans-Peter Nilsson.
635 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
636 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
637 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
638 dependencies to the shell script include chain.
639 * Makefile.in: Regenerate.
640 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
641 * emultempl/sh64elf.em: Update and tweak comments.
642 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
643 make a .cranges section SEC_IN_MEMORY.
644 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
645 * emultempl/sh64elf.em
646 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
647 .cranges section found to be necessary; continue and set stored
648 section contents flags for sections with non-mixed contents.
649 Use a struct sh64_section_data container and sh64_elf_section_data
650 to store contents-type flags.
651 Remove unused update of "isec".
652 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
653 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
654 access contents-type flags. Assert that the associated container
655 is initialized. Use that container, not elf_gp_size, to hold size
656 of linker-generated cranges contents.
657 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
658 * emultempl/sh64elf.em
659 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
660 there's already a .cranges section. When section flag difference
661 is found, don't NULL-check cranges a second time. Tweak comments.
662 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
663 merging, not max size, as size of ld-generated .cranges contents.
664 Don't set ELF section flags in output section. When checking for
665 needed .cranges descriptors, don't use a variable; compare
666 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
668 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
669 * emultempl/sh64elf.em: New file.
670 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
671 * Makefile.in: Regenerate.
672 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
673 (OTHER_RELOCATING_SECTIONS): Ditto.
674 (EXTRA_EM_FILE): New, set to sh64elf if not set.
675 * emulparams/shlelf32.sh: Stub out all settings except
676 OUTPUT_FORMAT. Source shelf32.sh.
677 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
678 OTHER_RELOCATING_SECTIONS.
679 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
680 * emulparams/shlelf64.sh: Stub out all settings except
681 OUTPUT_FORMAT. Source shelf64.sh.
682 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
683 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
685 (DATA_START_SYMBOLS): Define, provide ___data.
686 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
687 for consecutive .data section.
688 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
689 section after .data section.
690 * emulparams/shlelf64.sh: Ditto.
691 * emulparams/shelf32.sh: Ditto.
692 (ALIGNMENT): Define to 8.
693 * emulparams/shelf32.sh: Ditto.
694 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
695 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
696 built-in linker scripts.
697 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
698 * emulparams/shlelf64.sh: New.
699 * emulparams/shelf64.sh: New.
700 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
702 * Makefile.am: Add support for shlelf64 and shelf64.
703 * Makefile.in: Regenerate.
704 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
705 * configure.tgt (sh64-*-elf*): Add shelf as default.
706 Add shlelf to targ_extra_emuls.
707 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
708 * emulparams/shelf32.sh: New file.
709 * emulparams/shlelf32.sh: New file.
710 * Makefile.am: Add support for shlelf32 and shelf32.
711 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
712 * Makefile.in: Regenerate.
714 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
716 * ldlang.c (lang_reset_memory_regions): Rename from
717 reset_memory_regions. Change all callers. Make public.
718 * ldlang.h (lang_reset_memory_regions): Prototype.
719 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
720 lang_reset_memory_regions before lang_size_sections.
721 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
722 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
724 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
726 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
727 arithmetic when checking for too many global registers.
729 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
731 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
732 (ehppanbsd.c): New rule.
733 * Makefile.in: Regenerate.
734 * configure.tgt (hppa*-*-netbsd*): New target.
735 * emulparams/hppalinux.sh: Add comment to check other files
736 that source this file it is modified, and list which
738 * emulparams/hppanbsd.sh: New file.
740 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
742 * scripttempl/xstormy16.sc: Don't allocate extra space for the
745 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
747 Support on-demand global register allocation from
748 R_MMIX_BASE_PLUS_OFFSET relocs.
749 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
750 mmix_set_reg_section_vma. Call
751 _bfd_mmix_finalize_linker_allocated_gregs.
752 (mmix_before_allocation): New function.
753 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
754 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
755 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
756 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
757 before .MMIX.reg_contents.
758 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
759 (mmo_after_open): New function.
760 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
761 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
762 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
764 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
766 * emulparams/or32.sh: New file.
767 * emulparams/or32elf.sh: New file.
768 * scripttempl/or32.sc: New file.
769 * configure.tgt : Add support for or32.
770 * configure: Regenerate
771 * Makefile.am: Add support for or32.
772 * Makefile.in: Regenerate.
773 * NEWS: Mention support for or32.
774 * po/ld.pot: Regenerate.
776 2002-01-29 Chris Demetriou <cgd@broadcom.com>
777 Mitch Lichtenberg <mpl@broadcom.com>
779 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
780 * emultempl/mipself.em: New file to handle MIPS ELF embedded
781 reloc creation (ld --embedded-relocs).
783 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
785 * configure: Regenerated.
787 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
789 * Makefile.am (install): Depend on install-info.
790 * Makefile.in: Regenerate.
792 2002-01-26 Christian Rose <menthos@menthos.com>
794 * ldmain.c (main): Use full sentences to ease translation.
796 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
798 * po/fr.po: Updated version.
800 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
802 * po/es.po: Updated version.
804 2002-01-25 Andreas Jaeger <aj@suse.de>
806 * ldlex.l (yy_input): Correct error check.
808 2002-01-25 Alan Modra <amodra@bigpond.net.au>
810 * ldmisc.c (demangle): Put back dots when string not demangled.
812 2002-01-22 Richard Henderson <rth@redhat.com>
814 * emulparams/elf64alpha.sh (NOP): Use unop.
816 2002-01-21 Andreas Jaeger <aj@suse.de>
818 * ldlex.l: Use fread instead of read.
820 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
822 * configure.tgt (ia64-*-netbsd*): New target.
824 2002-01-21 H.J. Lu <hjl@gnu.org>
826 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
828 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
830 2002-01-18 Andreas Jaeger <aj@suse.de>
832 * ldver.c (ldversion): Update year.
834 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
836 * po/ld.pot: Regenerate.
838 2002-01-16 Alan Modra <amodra@bigpond.net.au>
840 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
841 * Makefile.in: Regenerate.
842 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
843 * emultempl/ppc64elf.em: New file.
845 2002-01-15 DJ Delorie <dj@redhat.com>
847 * scripttempl/pe.sc: Add support for constructor priorities.
849 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
851 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
852 * emulparams/avr23xx.sh: Likewise.
853 * emulparams/avr4433.sh: Likewise.
854 * emulparams/avr44x4.sh: Likewise.
855 * emulparams/avr85xx.sh: Likewise.
856 * emulparams/avrmega103.sh: Likewise.
857 * emulparams/avrmega161.sh: Likewise.
858 * emulparams/avrmega603.sh: Likewise.
859 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
861 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
863 * ldlang.c (walk_wild_section): Exclude object file if enclosing
866 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
868 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
869 (eshelf_nbsd.c): New rule.
870 (eshlelf_nbsd.c): New rule.
871 * Makefile.in: Regenerate.
872 * configure.tgt (sh*le-*-netbsdelf*): New target.
873 (sh*-*-netbsdelf*): New target.
874 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
875 * ld/emulparams/shelf_nbsd.sh: New emulation.
876 * ld/emulparams/shlelf_nbsd.sh: New emulation.
878 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
880 * po/es.po: New file: Spanish translation.
881 * configure.in (ALL_LINGUAS): Add es.
882 * configure: Regenerate.
884 2002-01-06 John Marshall <jmarshall@acm.org>
886 * ld.texinfo: Note that --emit-relocs is currently only
889 2002-01-05 Alan Modra <amodra@bigpond.net.au>
891 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
892 of bfd_section_list_remove and bfd_section_list_insert macros.
893 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
894 * emultempl/mmo.em (mmo_place_orphan): Likewise.
896 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
898 * configure.tgt (x86_64-*-netbsd*): New target.
900 2001-12-21 Tom Rix <trix@redhat.com>
902 (gld*_create_output_section_statements): New function.
903 For -binitfini support.
904 * emultempl/aix.em (gld*_before_parse): Fix comment.
905 * emultempl/aix.em (gld*_parse_args): Fix comment.
907 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
909 * configure.tgt (mips*-dec-netbsd*): Delete alias for
911 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
913 * configure.tgt (arm-*-netbsdelf*): Add target.
914 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
915 * emulparams/armelf_nbsd.sh: Added.
916 * Makefile.am: Add rules for earmelf_nbsd.
917 * Makefile.in: Regenerate.
919 2001-12-19 Andreas Jaeger <aj@suse.de>,
920 Susanne Oberhauser <froh@suse.de>
922 * configure.host: Add rules for x86_64-*linux-gnu. Change
923 s390x-linux entry to use gcc to report configuration, replace gcc
924 with $CC in s390-linux
926 2001-12-19 Andreas Jaeger <aj@suse.de>
928 * ld.texinfo (VERSION): Fix markup.
930 2001-12-18 matthew green <mrg@eterna.com.au>
932 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
933 (m68kelfnbsd.c): New rule.
934 * Makefile.in: Regenerate.
935 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
936 (m68*-*-netbsd*4k*): .. this.
937 (m68*-*-netbsdelf*): New target.
938 (m68*-*-netbsd*): Also include ELF support.
939 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
940 * emulparams/m68kelfnbsd.sh: New emulation.
942 2001-12-18 Jakub Jelinek <jakub@redhat.com>
944 * ldgram.y (vers_node): Support anonymous version tags.
945 * ldlang.c (lang_register_vers_node): Ensure anonymous version
946 tag is not defined together with non-anonymous versions.
947 * ld.texinfo: Document it.
949 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
951 * po/tr.po: New file: Turkish translation.
952 * configure.in (ALL_LINGUAS): Add tr.
953 * configure: Regenerate.
955 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
957 * Makefile.am: Add rules for eelf64alpha_nbsd.
958 * Makefile.in: Regenerate.
959 * configure.tgt (alpha*-*-netbsd*): Set
960 targ_emul to elf64alpha_nbsd.
961 * emulparams/elf64alpha_nbsd.sh: Added.
963 2001-12-17 Alan Modra <amodra@bigpond.net.au>
965 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
966 section_tail when fiddling with section list.
967 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
968 broken into separate strings to make translation easier.
969 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
970 fiddling with section list.
971 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
973 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
975 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
977 2001-12-15 Alan Modra <amodra@bigpond.net.au>
979 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
981 2001-12-13 Jakub Jelinek <jakub@redhat.com>
983 * emultempl/elf32.em (finish): Supply output_bfd
984 to bfd_elf*_discard_info.
985 (OPTION_EH_FRAME_HDR): Define.
986 (longopts): Add --eh-frame-hdr.
987 (parse_args): Handle it.
988 (list_options): Add --eh-frame-hdr to help.
989 * emultempl/hppaelf.em (finish): Supply output_bfd
990 to bfd_elf*_discard_info.
991 * scripttempl/elf.sc (.eh_frame_hdr): Add.
993 2001-12-13 Alan Modra <amodra@bigpond.net.au>
995 * lexsup.c (parse_args): Don't pass shortopts to second call to
996 getopt functions. Restore optind rather than decrementing before
997 second call. Remove errind as it now duplicates last_optind.
999 2001-12-11 Christopher Faylor <cgf@redhat.com>
1001 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1003 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1004 Richard Henderson <rth@redhat.com>
1006 * Makefile.am: Add support for xstormy16.
1007 * configure.tgt: Add support for xstormy16.
1008 * Makefile.in: Regenerate.
1009 * emulparams/elf32xstormy16.sh: New file.
1010 * scripttempl/xstormy16.sc: New file.
1012 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1014 * Makefile.in (LIB_PATH): Make configurable.
1015 (GENSCRIPTS): Set LIB_PATH in environment.
1016 * configure.in: Substitute LIB_PATH.
1017 * configure: Regenerate.
1018 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1019 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1021 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1023 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1024 describing the -N option so that it is easier to translate into
1027 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1029 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1030 statements describing a single option with a single, newline
1031 escaped fprintf. This allows better translation into other
1034 * ldmain.c (add_archive_element): Combine multiple strings
1035 into a single string to permit better translation into other
1038 2001-12-05 Tom Rix <trix@redhat.com>
1040 * Makefile.am: Remove eaixppc64.
1041 * Makefile.in: Regenerate.
1043 2001-12-04 Tom Rix <trix@redhat.com>
1045 * emultempl/aix.em (choose_target): Change default target to
1046 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1048 (gld*_read_file): Fix typo.
1049 (change_symbol_mode): Add prototype.
1052 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1053 * emulparams/aixrs6.sh : Same.
1054 * emulparams/ppcmacos.sh : Same.
1055 * emulparams/aixppc64.sh : Delete file.
1056 * emultempl/aix.em : Formatting changes.
1058 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1060 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1061 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1063 (OTHER_END_SYMBOLS): Fix formatting.
1064 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1065 (OTHER_END_SYMBOLS): Fix formatting.
1067 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1069 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1071 2001-12-02 Tom Rix <trix@redhat.com>
1073 * configure.tgt : Remove eaixppc64 emulations.
1074 * Makefile.in : Remove eaixppc64.c
1075 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1076 (ldemul_default_target): Same.
1077 * emultempl/gld960.em (gld960_choose_target): Same.
1078 * emultempl/gld960c.em (gld960_choose_target): Same.
1079 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1080 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1081 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1082 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1083 * emultempl/aix.em (choose_target): New function. Handle emulation of
1086 2001-11-27 H.J. Lu <hjl@gnu.org>
1088 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1089 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1090 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1091 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1092 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1093 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1094 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1095 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1097 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1100 (REL_SDATA): Likewise.
1101 (REL_SBSS): Likewise.
1102 (REL_SDATA2): Likewise.
1103 (REL_SBSS2): Likewise.
1104 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1107 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1109 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1111 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1113 2001-11-22 H.J. Lu <hjl@gnu.org>
1115 * Makefile.in: Regenerated with automake based on automake
1116 1.4-8 in RedHat 7.1.
1118 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1120 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1121 (config.status): Delete rule.
1122 Add extra dependencies to cover sourced emulparams files.
1123 * Makefile.in: Regenerate.
1125 * scripttempl/elf.sc: Order <section>, <section>.* and
1126 corresponding linkonce sections as seen in input files.
1127 Formatting fixes. Zero vma of all sections if not relocating.
1128 (STACK): Define and insert if STACK_ADDR defined.
1129 (OTHER_RELOCATING_SECTIONS): Delete.
1130 (OTHER_END_SYMBOLS): Define.
1131 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1132 (OTHER_READWRITE_SECTIONS): Likewise.
1133 (OTHER_GOT_SECTIONS): Likewise.
1134 (OTHER_SDATA_SECTIONS): Likewise.
1135 (OTHER_BSS_SECTIONS): Likewise.
1136 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1137 (OTHER_READWRITE_SECTIONS): Likewise.
1138 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1139 (OTHER_READWRITE_SECTIONS): Likewise
1141 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1142 (STACK_ADDR): Define.
1143 * emulparams/armelf_oabi.sh: As for armelf.sh.
1144 * emulparams/elf32mcore.sh: As for armelf.sh.
1145 * emulparams/h8300elf.sh: As for armelf.sh.
1146 * emulparams/mn10200.sh: As for armelf.sh.
1147 * emulparams/shelf.sh: As for armelf.sh.
1149 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1150 (OTHER_END_SYMBOLS): Define.
1151 * emulparams/m32relf.sh: As for elf32fr30.sh.
1152 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1153 * emulparams/h8300self.sh: As for elf32fr30.sh.
1155 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1156 defines with RELOCATING test.
1157 (OTHER_SDATA_SECTIONS): Likewise.
1158 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1159 (OTHER_END_SYMBOLS): ..this.
1160 * emulparams/crislinux.sh: As for criself.sh.
1162 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1164 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1165 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1166 normal and linkonce sections as seen in input files.
1167 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1168 (TEXT_DYNAMIC): Likewise.
1169 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1170 (OTHER_SDATA_SECTIONS): Likewise.
1171 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1172 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1173 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1174 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1175 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1176 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1177 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1178 sections as seen in input files.
1179 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1180 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1182 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1183 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1184 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1185 (OTHER_SECTIONS): Instead, use this..
1186 (OTHER_END_SYMBOLS): ..and this.
1188 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1189 * emulparams/elf32bsmip.sh: Likewise.
1190 * emulparams/elf32btsmip.sh: Likewise.
1191 * emulparams/elf32ebmip.sh: Likewise.
1192 * emulparams/elf32lmip.sh: Likewise.
1193 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1194 * emulparams/elf32lsmip.sh: Likewise.
1195 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1196 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1197 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1198 * emulparams/elf64btsmip.sh: Likewise.
1199 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1200 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1201 * emulparams/elf32ppclinux.sh: Likewise.
1202 * emulparams/elf32ppcsim.sh: Likewise.
1203 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1204 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1205 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1206 * emulparams/h8300self.sh: Likewise.
1207 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1208 * emulparams/sh.sh: Comment.
1209 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1210 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1211 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1213 2001-11-21 David Heine <dlheine@tensilica.com>
1214 Alan Modra <amodra@bigpond.net.au>
1216 * ldlang.c (map_input_to_output_sections): Replace "break"
1217 accidentally removed with 2001-08-03 change.
1218 (lang_gc_sections_1): Likewise.
1220 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1222 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1224 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1226 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1227 of false when calling lang_size_sections.
1228 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1230 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1232 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1233 function when LDEMUL_FINISH isn't set to the same name. Don't
1234 call ${LDEMUL_FINISH}.
1235 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1236 * emultempl/armelf.em (arm_elf_finish): Call
1237 gld${EMULATION_NAME}_finish.
1238 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1239 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1240 hppaelf_layout_sections_again if necessary.
1241 (need_laying_out): New var.
1242 (hppaelf_layaout_sections_again): Rename to
1243 hppaelf_layout_sections_again. Clear need_laying_out.
1244 (PARSE_AND_LIST_OPTIONS): Format text.
1246 2001-11-14 H.J. Lu <hjl@gnu.org>
1248 * emultempl/armelf.em (arm_elf_finish): Renamed from
1249 gld${EMULATION_NAME}_finish.
1250 (LDEMUL_FINISH): Set to arm_elf_finish.
1252 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1254 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1255 (struct ld_emulation_xfer_struct): Use it.
1257 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1259 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1260 additional symbols referenced by newer crt0.o files from HP.
1262 2001-11-12 Anthony Green <green@redhat.com>
1264 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1266 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1268 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1269 * Makefile.in: Regenerate.
1271 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1273 * ld.texinfo: Use @command for commands, @option for options.
1274 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1276 * Makefile.in: Rebuild.
1278 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1280 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1281 Add support for targets.
1283 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1285 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1286 * configure: Regernate.
1287 * po/fr.po: New file.
1288 * po/sv.po: New file.
1290 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1292 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1293 as little endian default and to support big endian.
1295 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1297 * ld.texinfo (Options): Document new option, -nostdlib.
1298 * lexsup.c (OPTION_NOSTDLIB): New definition.
1299 (ld_options): Add entry for "nostdlib".
1300 (parse_args): Handle OPTIONS_NOSTDLIB.
1301 * ldfile.c (ldfile_add_library_path): Don't add directories
1302 to the search path if they weren't specified on the command line
1303 and -nostdlib was specified.
1304 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1306 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1308 * lexsup.c (parse_args): Prevent infinite parsing loop when
1309 "-rpath.a" is specified on the command line.
1310 Replace calls to fprintf with calls to einfo.
1312 2001-10-31 John Marshall <jmarshall@acm.org>
1314 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1315 appear only once across all the linker scripts involved in a link
1316 invocation no longer applies. Make the documentation reflect
1319 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1321 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1323 (sh-*-linux*): Added targ_extra_libpath.
1325 2001-10-31 David Heine <dlheine@tensilica.com>
1327 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1328 for padding statements.
1330 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1332 * configure.tgt (mmix-*-*): New target.
1333 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1334 Add dependencies to match.
1335 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1336 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1337 scripttempl/mmo.sc: New files.
1338 * gen-doc.texi: @set MMIX.
1339 * ld.texinfo: Ditto.
1340 [MMIX] Add MMIX node.
1341 * Makefile.in: Regenerate.
1343 2001-10-29 Kazu Hirata <kazu@hxi.com>
1345 * ldlang.c: Fix a comment typo.
1347 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1349 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1350 entries, and match *-*-linux*.
1352 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1354 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1355 with ldlex_script, ldlex_popstate.
1356 (ifile_p1): Likewise.
1357 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1359 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1360 to 1. Don't BEGIN(SCRIPT).
1361 (lex_redirect): Similarly.
1362 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1364 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1366 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1367 __EH_FRAME_END__ and accept eh frames into data section.
1368 Add ctor and dtor sections.
1370 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1372 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1373 (auto-export): Fix indentation.
1375 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1377 * pe-dll.c (autofilter_objectlist): Add startup objects
1379 (auto-export): Constify char * p.
1380 Extract file basename and use strcmp rather than ststr
1383 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1385 * ldmain.c (get_emulation): Improve comment about the handling
1388 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1390 * po/POTFILES.in: Regenerate.
1392 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1394 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1395 -z nocopyreloc and -z nocombreloc usage strings.
1397 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1399 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1402 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1404 * scripttempl/armaout.sc: Place .bss section after end of aligned
1405 data section to match behaviour of aout code in constructrion of
1408 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1410 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1411 startup files for mingw32 dlls to list.
1413 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1415 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1417 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1419 * configure.tgt (targ): Add arm9e-*-elf.
1421 2001-10-05 H.J. Lu <hjl@gnu.org>
1423 * genscripts.sh: Fix a typo in the last change.
1425 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1427 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1428 -z nocombreloc in usage.
1430 2001-10-03 Jim Blandy <jimb@redhat.com>
1432 * genscripts.sh: Include a comment at the top of each generated
1433 script, explaining its purpose.
1435 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1437 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1438 * NEWS: Mention -z nocopyreloc.
1439 * ld.texinfo (Options): Describe nocopyreloc.
1441 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1443 * configure: Regenerate.
1445 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1447 * ldver.h (ld_program_version): Remove declaration.
1448 * lexsup.c (parse_args): Move printing of copyright message..
1449 * ldver.c (ldversion): .. to here.
1450 Use BFD_VERSION_STRING in place of BFD_VERSION.
1451 (ld_program_version): Remove.
1452 * Makefile.am (Makefile): Depend on bfd/configure.in.
1454 * Makefile.in: Regenerate.
1456 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1458 * Makefile.am: Update dependencies with "make dep-am".
1459 * Makefile.in: Regenerate.
1461 2001-09-29 John Reiser <jreiser@BitWagon.com>
1463 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1464 * lexsup.c: Add --no-define-common commandline option.
1465 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1466 * ldlex.l: Likewise.
1467 * ld.h: Add command_line.inhibit_common_definition.
1468 * ldmain.c (main): Initialize.
1469 * ld.texinfo: Document.
1471 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1473 * ldmisc.c (USE_STDARG): Remove.
1474 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1479 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1480 declarations. Update copyright.
1482 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1484 * pe-dll.c: Remove obsoleted declaration of
1485 pe_get_data_import_dll_name.
1486 (pe_create_import_fixup): Fix thinko.
1488 * ld.texinfo(enable-auto-import): Clarify the explanation.
1490 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1492 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1493 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1494 DLL_SUPPORT controlled code.
1496 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1498 * emultempl/pe.em(pe_data_import_dll): Make static.
1499 (pe_get_data_import_dll_name): New accessor function.
1500 * pe-dll.c(pe_create_import_fixup): call
1501 pe_get_data_import_dll_name() from pe.em, instead of
1502 directly accessing pe_data_import_dll variable from pe.em.
1504 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1506 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1507 (def_file_add_directive): Use ISSPACE instead of isspace.
1508 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1509 isdigit/isxdigit/isalpha/isalnum.
1510 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1511 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1512 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1513 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1515 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1516 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1518 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1519 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1520 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1521 (ctor_prio): Use ISDIGIT instead of isdigit.
1522 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1523 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1524 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1526 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1527 (stricpy): Use TOLOWER instead of isupper/tolower.
1528 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1529 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1530 (lex_warn_invalid): Use ISPRINT instead of isprint.
1531 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1532 (main): For gettext, also set the LC_CTYPE locate facet.
1533 (add_keepsyms_file): Use ISSPACE instead of isspace.
1534 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1535 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1536 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1537 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1538 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1539 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1540 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1541 (quoteput): Use ISSPACE instead of isspace.
1542 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1545 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1547 * deffilep.y (def_stash_module): Constify "name" param.
1549 * pe-dll.c: Replace CONST with const throughout.
1550 (quick_symbol): Constify "n1", "n2", "n3" params.
1551 (make_singleton_name_thunk): Constify "import" param. Make
1552 "buffer_len" a size_t.
1553 (make_import_fixup_entry): Constify "name", "fixup_name",
1554 "dll_symname" params.
1555 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1556 (pe_get32): Likewise.
1557 (pe_implied_import_dll): Likewise.
1559 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1560 (sort_by_section_name): Likewise.
1562 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1563 (make_import_fixup): Cast printf arg, rel->address to long rather
1565 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1567 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1569 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1570 defines BufferSize. Increase buffer size by one.
1572 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1574 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1576 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1578 * configure.tgt: Add arm-openbsd target.
1580 2001-09-12 H.J. Lu <hjl@gnu.org>
1582 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1584 (ALL_64_EMULATIONS): Here.
1585 * Makefile.in: Regenerated.
1587 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1589 * emultempl/pe.em(make_import_fixup): change signature to
1590 take asection as well as arelec; we need this for proper
1591 error reporting. Only call pe_create_import_fixup() if
1592 there is no attempt to add a constant addend to the reloc;
1593 otherwise, report error condition.
1594 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1595 since final argument is a pointer to make_import_fixup().
1596 Change call to cb() to match make_import_fixup() signature.
1597 (make_import_fixup_mark): make buffer_len unsigned.
1598 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1600 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1602 * ld.texinfo: add verbose documentation for auto-import
1603 direct-addressing workaround, to compliment the terse
1606 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1608 * scripttempl/v850.sc: Add gcc_except_table sections.
1610 2001-09-11 Jeffrey A Law (law@cygnus.com)
1612 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1613 * emulparams/h8300self.sh: Similarly.
1615 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1617 * ld.texinfo (Options, --stack): Correct default value for stack
1620 2001-09-05 Tom Rix <trix@redhat.com>
1622 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1624 2001-09-03 Andreas Jaeger <aj@suse.de>
1626 * emultempl/beos.em: Declare prototypes for comparions functions,
1629 2001-09-02 Andreas Jaeger <aj@suse.de>
1631 * emultempl/aix.em: Add missing prototype.
1632 * emultempl/lnk960.em: Likewise.
1633 * emultempl/vanilla.em: Likewise.
1634 * emultempl/armcoff.em: Likewise.
1635 * emultempl/armelf_oabi.em: Likewise.
1636 * emultempl/beos.em: Likewise.
1637 * emultempl/gld960c.em: Likewise.
1638 * emultempl/gld960.em: Likewise.
1640 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1641 for prototype declaration.
1643 2001-08-31 Eric Christopher <echristo@redhat.com>
1644 Jason Eckhardt <jle@redhat.com>
1646 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1648 2001-08-31 Andreas Jaeger <aj@suse.de>
1650 * emultempl/pe.em: Add missing prototypes.
1651 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1652 pe_find_data_imports.
1653 (pr_sym): Add unused attribute.
1655 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1657 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1658 default from coff to elf.
1660 2001-08-29 Jeff Law <law@redhat.com>
1662 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1664 * emulparams/h8300self.sh: Similarly.
1666 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1668 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1670 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1671 * configure.tgt (h8300-*-elf*): New case.
1672 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1673 * emulparams/h8300self.sh: New file.
1674 * Makefile.in: Regenerated.
1676 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1678 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1681 2001-08-27 Linus Nordberg <linus@swox.com>
1682 Alan Modra <amodra@bigpond.net.au>
1684 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1685 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1687 * Makefile.in: Regenerate.
1688 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1689 entries to correct alphabetical position.
1690 * emulparams/elf64ppc.sh: New.
1691 * emulparams/elf64lppc.sh: New.
1693 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1695 * ldmain.c (main): Declare BSIZE as static.
1697 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1699 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1700 into .rel.dyn resp. .rela.dyn if combreloc.
1701 (get_script): If .x linker script is equal to .xn, only put it
1702 once into the binary.
1703 Add .xc and .xsc scripts.
1704 (parse_args): Handle -z combreloc and -z nocombreloc.
1705 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1706 For .xc and .xsc scripts put all .rel* or .rela* input sections
1707 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1708 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1710 Strip trailing whitespace from script.
1711 Generate .xc and .xsc scripts if requested.
1712 * ldmain.c (main): Initialize link_info.combreloc and
1713 link_info.spare_dynamic_tags.
1714 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1715 (ld_options): Add --spare-dynamic-tags option.
1716 (parse_args): Likewise.
1717 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1718 * ldint.texinfo: Document .xc and .xsc linker scripts.
1719 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1721 2001-08-22 H.J. Lu <hjl@gnu.org>
1723 * emulparams/elf32fr30.sh: Add a newline.
1725 2001-08-21 Andreas Jaeger <aj@suse.de>
1727 * deffilep.y: Add missing prototypes.
1728 * pe-dll.c: Likewise.
1730 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1732 * ldlang.c (insert_pad): Fix typos in last patch.
1734 * ldlang.c: When traversing lang_statement_union_type lists,
1735 consistently use "header.next" rather than "next".
1736 * mpw-eppcmac.c: Likewise.
1737 * emultempl/beos.em: Likewise.
1738 * emultempl/hppaelf.em: Likewise.
1739 * emultempl/pe.em: Likewise.
1740 * ldlang.h (union lang_statement_union): Remove "next" field.
1742 * ldlang.c (insert_pad): Use offsetof macro.
1743 (lang_size_sections): Always neuter padding statements.
1744 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1746 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1747 passed to lang_size_sections.
1748 (pe_exe_fill_sections): Likewise.
1749 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1750 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1752 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1754 * emultempl/aix.em: Formatting fixes.
1756 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1758 * ldlang.c (insert_pad): Make use of an existing pad statement if
1759 available. Move code calculating alignment, adjusting section
1760 alignment power, and adjusting dot to ..
1761 (size_input_section): .. here. Remove unused relax param.
1762 (lang_size_sections): Change boolean `relax' param to boolean *.
1763 Adjust call to size_input_section. Make use of insert_pad to
1764 place pad after the assignment statement. If relaxing, zap
1766 (reset_memory_regions): Reset output_bfd section sizes too.
1767 (relax_again): Move to..
1768 (lang_process): ..here. Adjust call to lang_size_sections, and
1769 remove duplicated code.
1770 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1772 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1774 * ld.texinfo: Document that fill values now use the four least
1776 * emulparams/elf32fr30.sh (NOP): Update.
1777 * emulparams/elf32mcore.sh: Likewise.
1778 * emulparams/elf64_s390.sh: Likewise.
1779 * emulparams/elf_i386.sh: Likewise.
1780 * emulparams/elf_i386_be.sh: Likewise.
1781 * emulparams/elf_i386_chaos.sh: Likewise.
1782 * emulparams/elf_i386_ldso.sh: Likewise.
1783 * emulparams/elf_s390.sh: Likewise.
1784 * emulparams/elf_x86_64.sh: Likewise.
1785 * emulparams/i386moss.sh: Likewise.
1786 * emulparams/i386nw.sh: Likewise.
1787 * emulparams/m68kelf.sh: Likewise.
1788 * scripttempl/elf.sc: Update NOP comment.
1789 * scripttempl/elfi370.sc: Likewise.
1790 * scripttempl/elfm68hc11.sc: Likewise.
1791 * scripttempl/elfm68hc12.sc: Likewise.
1792 * scripttempl/nw.sc: Likewise.
1794 2001-08-15 Tom Rix <trix@redhat.com>
1796 * ldgram.y (saved_script_handle): Initialize to NULL.
1797 * ldmain.c (main): Change check on saved_script_handle.
1799 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1801 * emultempl/elf32.em: Formatting fixes.
1802 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1803 looking at sec->owner.
1804 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1805 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1806 unused code, and reorganize orphan section placement code.
1808 * ldlang.c (wild_doit): Rename to lang_add_section.
1809 * ldlang.h: Here too.
1810 * mpw-elfmips.c: And here.
1811 * emultempl/beos.em: And here.
1812 * emultempl/elf32.em: And here.
1813 * emultempl/hppaelf.em: And here.
1814 * emultempl/pe.em: And here.
1816 2001-08-13 Richard Henderson <rth@redhat.com>
1818 * emultempl/needrelax.em: New file.
1819 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1820 * Makefile.am (eelf64_ia64.c): Depend on it.
1821 * Makefile.in: Rebuild.
1823 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1825 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1826 output_section is set non-NULL.
1828 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1829 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1830 needlessly create an output_section_statement. Treat a correctly
1831 named output_section_statement with NULL bfd_section as compatible.
1833 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1835 * emultempl/generic.em: Support EXTRA_EM_FILE.
1836 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1837 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1838 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1839 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1840 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1841 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1842 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1843 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1844 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1845 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1847 2001-08-12 Richard Henderson <rth@redhat.com>
1849 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1850 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1851 scripttempl/v850.sc: Keep .jcr data.
1853 2001-08-12 H.J. Lu <hjl@gnu.org>
1854 Andrew Haley <aph@cambridge.redhat.com>
1855 Nick Clifton <nickc@redhat.com>
1857 * ldgram.y (had_script): Change name to saved_script_handle.
1858 Change type to file handle.
1859 * ld.h (had_script): Rename and retype.
1860 * ldfile.c (ldfile_open_command_file): Save the file handle
1861 used in saved_script_handle.
1862 * lexsup.c (parse_args): Do not allow -c option to alter
1863 saved_script_handle.
1864 * ldmain.c (main): Print out the linker script used if
1865 --verbose is given. Check saved_script_handle to obtain the
1866 external linker script used, or if NULL, dump the builtin
1868 * ld.texinfo: Document that --verbose now dumps the linker
1869 script used, regardless of whether it was an internal or an
1872 2001-08-10 Andreas Jaeger <aj@suse.de>
1874 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1876 * configure: Regenerate.
1878 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1880 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1882 * scripttempl/elf.sc: Move non-text .dynamic section before
1883 .plt/.got/.sdata* group.
1884 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1885 (OTHER_SDATA_SECTIONS): Add.
1886 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1888 * emulparams/crislinux.sh: Likewise.
1889 * emulparams/elf32b4300.sh: Likewise.
1890 * emulparams/elf32bmip.sh: Likewise.
1891 * emulparams/elf32bmipn32.sh: Likewise.
1892 * emulparams/elf32bsmip.sh: Likewise.
1893 * emulparams/elf32btsmip.sh: Likewise.
1894 * emulparams/elf32ebmip.sh: Likewise.
1895 * emulparams/elf32elmip.sh: Likewise.
1896 * emulparams/elf32l4300.sh: Likewise.
1897 * emulparams/elf32lmip.sh: Likewise.
1898 * emulparams/elf32lsmip.sh: Likewise.
1899 * emulparams/elf32ltsmip.sh: Likewise.
1900 * emulparams/elf64bmip.sh: Likewise.
1901 * emulparams/elf64btsmip.sh: Likewise.
1902 * emulparams/elf64ltsmip.sh: Likewise.
1904 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1906 * genscripts.sh: Source the emulparams script before each output
1907 script is generated so that variables like `RELOCATING' may affect
1908 variables defined in the emulparams script.
1910 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1912 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1915 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1916 ie. iterate over wild_statement.section_list.
1917 (gld${EMULATION_NAME}_place_orphan): Likewise.
1919 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1921 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1922 .fini[0-4] sections used by _exit
1923 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1924 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1925 * scripttempl/elfm68hc11.sc: Likewise.
1927 2001-08-03 H.J. Lu <hjl@gnu.org>
1929 * emultempl/beos.em (init): Add the missing initialization.
1931 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1933 * ld.texinfo (Input Section Basics): Clarify ordering of output
1935 * ldlang.c (callback_t): Add wildcard_list param.
1936 (walk_wild_section): Remove "section" param. Rewrite for
1937 lang_wild_statement_type change. Remove unique_section_p test.
1938 (walk_wild_file): Remove "section" param.
1939 (walk_wild): Remove "section" and "file" params.
1940 (lang_gc_wild): Likewise.
1941 (wild): Likewise. Modify for lang_wild_statement_type change.
1942 (wild_sort): Likewise. Add "sec" param.
1943 (gc_section_callback): Likewise.
1944 (output_section_callback): Likewise. Do unique_section_p test.
1945 (map_input_to_output_sections): Modify call to wild.
1946 (lang_gc_sections_1): Likewise.
1947 (print_wild_statement): Modify for lang_wild_statement_type
1949 (lang_add_wild): Replace filename, filenames_sorted param with
1950 filespec. Replace section_name, sections_sorted,
1951 exclude_filename_list with section_list.
1952 * ldlang.h (lang_add_wild): Here too.
1953 (lang_wild_statement_type): Replace section_name, sections_sorted,
1954 and exclude_filename_list with section_list.
1955 * ldgram.y (current_file): Delete.
1956 (%union): Add wildcard_list.
1957 (file_NAME_list): Set type to wildcard_list. Build a linked list
1958 rather than calling lang_add_wild for each entry.
1959 (input_section_spec_no_keep): Call lang_add_wild here instead.
1960 * ld.h (struct wildcard_list): Declare.
1961 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1963 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1965 * ldmain.c (main): initialize link_info.pei386_auto_import
1966 * pe-dll.c: new tables for auto-export filtering
1967 (auto_export): change API, pass abfd for contextual filtering.
1968 Loop thru tables of excluded symbols instead of comparing
1971 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1973 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1974 static variable current_sec (static struct sec *). Add
1975 forward declaration for add_bfd_to_link.
1976 (process_def_file): Don't export undefined symbols. Do not
1977 export symbols starting with "_imp__". Call auto_export()
1979 (pe_walk_relocs_of_symbol): New function.
1980 (generate_reloc): add optional extra debugging
1981 (pe_dll_generate_def_file): eliminate extraneous initial blank
1983 (make_one): enlarge symtab to make room for __nm__ symbols
1984 (DATA auto-import support).
1985 (make_singleton_name_thunk): New function.
1986 (make_import_fixup_mark): New function.
1987 (make_import_fixup_entry): New function.
1988 (pe_create_import_fixup): New function.
1989 (add_bfd_to_link): Specify that 'name' argument is a CONST
1991 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1992 declare new functions pe_walk_relocs_of_symbol and
1993 pe_create_import_fixup.
1994 * emultempl/pe.em: add new options --enable-auto-import,
1995 --disable-auto-import, and --enable-extra-pe-debug.
1996 (make_import_fixup): New function.
1997 (pe_find_data_imports): New function.
1998 (pr_sym): New function.
1999 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2000 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2003 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2005 * ld.texinfo: add additional documentation for
2006 --export-all-symbols. Document --out-implib,
2007 --enable-auto-image-base, --disable-auto-image-base,
2008 --dll-search-prefix, --enable-auto-import, and
2009 --disable-auto-import.
2010 * ldint.texinfo: Add detailed documentation on auto-import
2013 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2015 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2018 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2020 * Makefile.am: Update dependencies with "make dep-am".
2021 * Makefile.in: Regenerate
2023 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2025 * ldcref.c (check_section_sym_xref): New function.
2026 (check_nocrossrefs): Call it.
2027 (check_nocrossref): Interate over h->refs here instead of..
2028 (check_refs): ..here. Pass in the symbol name, section, and bfd
2029 rather than hash_entry pointers.
2030 (struct check_refs_info): Keep symbol name rather than hash entry.
2032 (check_reloc_refs): Tweak for above changes in check_refs_info.
2033 Only report references to section syms when symname is NULL to
2034 prevent duplicate messages for the same reloc.
2036 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2038 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2039 available. Do not print NULL trees.
2040 (exp_print_token): Print unknown tokens with values > 126 as
2041 decimal values not ASCII characters.
2043 * ldlang.c (lang_leave_overlay): If a region is specified assign
2044 it to all sections inside the overlay unless they have been
2045 assigned to the own, non-default, memory region.
2047 * README: Add header for consistency with other README files.
2049 2001-07-14 H.J. Lu <hjl@gnu.org>
2051 * emultempl/elf32.em (output_prev_sec_find): Never return
2052 bfd_abs_section_ptr, bfd_com_section_ptr nor
2053 bfd_und_section_ptr.
2055 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2057 * Makefile.am (em32relf.c): Change dependency from generic.em to
2059 * Makefile.in: Regenerate.
2061 2001-07-14 matthew green <mrg@eterna.com.au>
2063 * configure.tgt (i386-*-netbsdelf*): New target.
2064 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2066 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2068 * emultempl/elf32.em (output_prev_sec_find): New.
2069 (place_orphan): Use it.
2071 2001-07-11 H.J. Lu <hjl@gnu.org>
2073 * ldmain.c (main): Fix typos in the last change.
2075 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2077 * ldmain.c (main): Disallow -F and -f without -shared.
2079 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2081 * emultempl/pe.em (after_open): Check for the output_bfd not
2082 having any coff_data structure allocated to it.
2084 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2086 * emultempl/elf32.em: Do not assuming that contents of the buffer
2087 returned from basename function will remain unchanged accross other
2090 2001-07-03 H.J. Lu <hjl@gnu.org>
2092 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2093 2001-07-03. It creates dynamic entries even for static binaries.
2095 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2097 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2098 (DYNAMIC): Use it to reserve few dynamic entries for
2101 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2103 * emulparams/hppa64linux.sh: New file.
2104 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2105 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2106 (ehppa64linux.c): Add rule to make it.
2108 * Makefile.in: Regenerate.
2110 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2112 * ld.texinfo (Options, -r): Mention restrictions when using
2113 different object formats.
2115 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2117 * ldlang.c (lang_check): Emit fatal error if relocatable link
2118 between different object flavours with relocations in input.
2120 2001-06-19 H.J. Lu <hjl@gnu.org>
2122 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2123 (--version-script): Mention the language support.
2125 2001-06-19 H.J. Lu <hjl@gnu.org>
2127 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2129 2001-06-18 H.J. Lu <hjl@gnu.org>
2131 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2132 (diststuff): Add $(MANS).
2133 * Makefile.in: Regenerated.
2137 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2139 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2140 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2141 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2142 * ld.h (args_type): Remove member export_dynamic. All users
2143 changed to use struct bfd_link_info member.
2145 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2146 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2147 * Makefile.in: Regenerate.
2149 2001-06-18 H.J. Lu <hjl@gnu.org>
2151 * ldlang.c (init_os): Add the newline to the einfo call.
2152 (lang_check): Likewise.
2153 (lang_do_version_exports_section): Likewise.
2155 2001-06-15 H.J. Lu <hjl@gnu.org>
2157 * lexsup.c (parse_args); Save optind to report unrecognized
2160 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2162 * ldlang.c (lang_check): Emit fatal error if relocatable link
2163 between different object flavours.
2165 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2166 Set new link_info member export_dynamic.
2167 * ldmain.c (main): Initialize new link_info member export_dynamic.
2169 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2171 * ldlang.c (walk_wild): Only call walk_wild_file if
2172 lookup_name returns something.
2173 (lookup_name): If load_symbols fails, return NULL.
2174 (load_symbols): Change to a boolean function.
2175 (open_input_bfds): If load_symbols fails then do not make the
2178 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2180 * ldlang.c (record_bfd_errors): Remove.
2182 * emultempl/aix.em: Fix copyright dates.
2184 2001-06-07 Andreas Jaeger <aj@suse.de>
2186 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2187 (TEXT_START_ADDR): Likewise.
2189 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2191 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2193 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2195 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2197 2001-05-31 H.J. Lu <hjl@gnu.org>
2199 * ldlang.c (open_input_bfds): Don't change the bfd error
2200 handler whilst loading symbols.
2202 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2204 * configure.tgt: Remove i370-mvs architecture, it is not currently
2207 2001-05-25 H.J. Lu <hjl@gnu.org>
2209 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2210 like emulparams/aixppc.sh.
2212 2001-05-25 H.J. Lu <hjl@gnu.org>
2214 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2215 setting of output_filename after bfd_scan_arch.
2216 * emultempl/pe.em: Likewise.
2218 2001-05-25 H.J. Lu <hjl@gnu.org>
2220 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2221 like emulparams/aixppc.sh.
2223 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2224 instead of ${srcdir}/emultempl/stringify.sed.
2226 2001-05-25 Timothy Wall <twall@oculustech.com>
2228 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2231 2001-05-25 Alan Modra <amodra@one.net.au>
2233 * configure.host: Replace linuxoldld with linux*oldld.
2234 * configure.tgt: Likewise.
2236 2001-05-24 H.J. Lu <hjl@gnu.org>
2238 * emultempl/stringify.sed: Removed again.
2240 2001-05-24 H.J. Lu <hjl@gnu.org>
2242 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2243 (gld${EMULATION_NAME}_before_parse): Initialize
2244 ldfile_output_architecture, ldfile_output_machine and
2245 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2246 * emultempl/beos.em: Likewise.
2247 * emultempl/elf32.em: Likewise.
2248 * emultempl/linux.em: Likewise.
2249 * emultempl/mipsecoff.em: Likewise.
2250 * emultempl/pe.em: Likewise.
2251 * emultempl/sunos.em: Likewise.
2253 2001-05-24 Tom Rix <trix@redhat.com>
2255 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2256 udate import file format.
2257 (change_symbol_mode) New, same
2258 (is_syscall) New, same
2259 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2260 * emulparams/aixppc64.sh : same
2261 * emulparams/aixrs6.sh : same
2262 * emulparams/ppcmacos.sh : same
2263 * emultempl/aix.em : use strtoull to parse options
2264 * Makefile.am : add eaixppc64 emulation for xcoff64
2265 * Makefile.in : same
2266 * configure.tgt : same
2268 * scripttempl/aix.sc : default text section offset to 0x10000000
2269 default data section offset to 0x20000000
2270 add .sv3264 and .sv64 pseudo sections
2271 loader and debug sections use the currect section offset.
2273 * emultempl/aix.em : Add xcoff64 support
2274 Add -binitfini support
2275 (gld${EMULATION_NAME}_before_parse) -binitfini
2276 (gld${EMULATION_NAME}_parse_args) same
2277 (gld${EMULATION_NAME}_before_allocation) format change for special
2280 * emulparams/aixppc64.sh : New file for xcoff64 support
2282 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2284 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2285 variable to avoid non-portable shell construct.
2287 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2289 * ldmain.c (get_emulation): Add -mips5 command line argument.
2291 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2293 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2294 (ELF_INTERPRETER_NAME): Define it.
2295 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2297 * configure.tgt (targ_emul, targ_extra_emuls)
2298 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2299 as primary, elf_i386 as extra.
2300 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2301 (eelf_i386_ldso.c): New rule.
2302 * Makefile.in: Rebuilt.
2304 2001-05-22 Nick Clifton <nickc@redhat.com>
2306 * lexsup.c (ld_options): Allow -I to be an alias for
2307 --dynamic-linker. This is for Solaris compatability.
2308 * ld.texinfo: Document that -I can be used.
2311 2001-05-16 Alan Modra <amodra@one.net.au>
2313 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2314 whether an input section is the first one assigned to an output
2316 Assorted formatting fixes.
2318 2001-05-14 DJ Delorie <dj@delorie.com>
2320 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2321 * Makefile.in: Ditto.
2323 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2325 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2326 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2328 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2330 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2332 * ldlang.c (lang_process): Call bfd_merge_sections.
2334 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2336 * ldgram.y: Fix typo.
2338 2001-05-03 H.J. Lu <hjl@gnu.org>
2340 * emultempl/elf32.em: Include "libiberty.h".
2341 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2342 basename of the bfd filename.
2343 (gld${EMULATION_NAME}_stat_needed): Likewise.
2344 (gld${EMULATION_NAME}_try_needed): Likewise.
2345 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2347 2001-05-02 H.J. Lu <hjl@gnu.org>
2349 * emultempl/pe.em: Include <ctype.h>.
2351 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2353 * emulparams/elf32openrisc.sh: New file.
2355 * Makefile.am: Add OpenRISC target.
2356 * Makefile.in: Regenerated.
2358 * configure.tgt: Add openrisc-*-* mapping.
2360 2001-05-02 Nick Clifton <nickc@redhat.com>
2362 * emultempl/aix.em: Replace buystring with xstrdup.
2363 * emultempl/beos.em: Replace buystring with xstrdup.
2365 2001-05-02 H.J. Lu <hjl@gnu.org>
2367 * ldfile.c: Include "libiberty.h".
2368 * ldlex.l: Likewise.
2370 * ldmisc.c (buystring): Removed.
2371 * ldmisc.h: Likewise.
2373 * ldfile.c: Replace buystring with xstrdup.
2374 * ldlang.c: Likewise.
2375 * ldlex.l: Likewise.
2376 * ldmain.c: Likewise.
2377 * ldmisc.c: Likewise.
2378 * lexsup.c: Likewise.
2379 * mpw-eppcmac.c: Likewise.
2381 2001-04-30 Andreas Jaeger <aj@suse.de>
2383 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2385 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2387 * ldlang.c (load_symbols): Give emulation a chance
2388 to process unrecognized file before fatal error is
2389 reported, not after.
2391 2001-04-27 Sean McNeil <sean@mcneil.com>
2393 * configure.tgt: Add arm-vxworks target.
2394 * scripttempl/armcoff.sc: Support .text or .data as a section name
2398 2001-04-13 J.T. Conklin <jtc@redback.com>
2400 * ld.texinfo: Document --fatal-warnings.
2403 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2404 warnings have been turned into errors.
2405 * lexsup.c (OPTION_WARN_FATAL): Define.
2406 (ld_options): Entry for --fatal-warnings.
2407 (parse_args): Handle OPTION_WARN_FATAL.
2408 * ld.h (ld_config_type): Add fatal_warnings field.
2410 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2412 * ldmain.c (main): Default to discard_sec_merge.
2413 * lexsup.c (OPTION_DISCARD_NONE): Define.
2414 (ld_options): Add --discard-none.
2415 (parse_args): Handle OPTION_DISCARD_NONE.
2416 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2417 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2418 all its input sections match.
2420 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2422 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2423 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2424 (eelf32ltsmip.c): New target.
2425 (eelf64btsmip.c): Likewise.
2426 (eelf64ltsmip.c): Likewise.
2427 * Makefile.in: Regenerated.
2429 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2431 (mips*-*-linux-gnu*): Likewise.
2433 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2435 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2437 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2440 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2442 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2443 correct value of __Stext here.
2444 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2447 * emulparams/crislinux.sh: Remove FIXME.
2449 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2451 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2452 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2454 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2456 * configure.tgt (cris-*-*): Change default emulation to criself.
2457 (cris-*-*aout*): New rule.
2459 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2461 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2462 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2464 2001-03-26 Andreas Jaeger <aj@suse.de>
2466 * ld.texinfo (Overview): Fix syntax in texi code.
2468 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2470 * ld.texinfo: Put @c man indications to generate the ld man page.
2471 When generating man, define all the variables. Define SEEALSO
2472 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2473 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2474 (ld.1): Generate from ld.texinfo.
2475 * Makefile.in: Regenerate.
2477 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2479 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2480 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2482 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2484 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2485 is an absolute path look only for this file and not along the path.
2487 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2489 * emultempl/elf32.em (OPTION_GROUP): New macro.
2490 Add new option Bgroup to longopts.
2491 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2492 (gld*_list_options): Add -Bgroup and -z defs.
2493 * ld.1: Document -Bgroup and -z defs.
2494 * ld.texinfo: Likewise.
2496 2001-03-07 Michael Meissner <meissner@redhat.com>
2498 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2499 with sections created by -fdata-sections.
2500 (.dynbss,.bss): Ditto.
2502 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2504 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2505 after_allocation_default, not gld..._before_allocation.
2507 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2509 * configure.in (BFD_VERSION): New.
2510 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2511 * configure: Regenerate.
2512 * Makefile.am: Run "make dep-am"
2513 * Makefile.in: Regenerate.
2515 2001-02-26 Timothy Wall <twall@cygnus.com>
2517 * emulparams/elf64_aix.sh: Add additional read-only sections;
2518 uncomment lines which are now required.
2520 2001-02-26 H.J. Lu <hjl@gnu.org>
2522 * ldlang.c (open_input_bfds): Set the bfd error handler so
2523 that problems can be caught whilst loading symbols.
2524 (record_bfd_errors): New function: Report BFD errors and mark
2525 the executable output as being invalid.
2527 2001-02-22 Timothy Wall <twall@cygnus.com>
2529 * configure.host: Add configuration for ia64-*-aix*.
2530 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2531 Add dependencies for eelf64_aix.c.
2532 * Makefile.in: Regenerate.
2533 * configure.tgt: Add ia64-*-aix* mapping.
2534 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2535 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2538 2001-02-20 H.J. Lu <hjl@gnu.org>
2540 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2541 false if we found the file.
2543 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2545 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2546 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2548 2001-02-18 lars brinkhoff <lars@nocrew.org>
2550 * Makefile.am: Add PDP-11 target.
2551 * configure.tgt: Likewise.
2552 * emulparams/pdp11.sh: New file.
2554 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2556 * configure.host: Add a generic FreeBSD configuration entry such that
2557 all [modern] FreeBSD systems on all platforms will look the same.
2559 2001-02-14 H.J. Lu <hjl@gnu.org>
2561 * configure.tgt: Remove mention of earmelf_linux26.
2563 2001-02-13 Richard Henderson <rth@redhat.com>
2565 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2567 2001-02-13 H.J. Lu <hjl@gnu.org>
2569 * ldexp.h (node_type): Add etree_provided.
2570 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2571 type to etree_provided if defined by PROVIDE. Allow updating
2573 (exp_print_tree): Handle etree_provided.
2574 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2577 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2579 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2580 .IA_64.unwind.* pattern to unwind table section and
2581 .IA_64.unwind_info* pattern to unwind info section.
2583 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2585 * Makefile.am: Add linux target for S/390.
2586 * Makefile.in: Likewise.
2587 * configure.host: Likewise.
2588 * configure.tgt: Likewise.
2589 * emulparams/elf64_s390.sh: New file.
2590 * emulparams/elf_s390.sh: New file.
2592 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2594 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2596 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2598 2001-02-06 Philip Blundell <philb@gnu.org>
2600 * Makefile.am: Remove mention of earmelf_linux26.
2601 * Makefile.in: Regenerate.
2603 2001-02-04 Philip Blundell <philb@gnu.org>
2605 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2606 * emulparams/armelf_linux26.sh: Delete.
2607 * configure.tgt: Remove mention of armelf_linux26 emulation.
2609 2001-02-01 Nick Clifton <nickc@redhat.com>
2611 * ld.1: Replace occurances of -oformat with --oformat.
2613 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2615 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2616 load_base is specified.
2618 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2620 * emultempl/elf32.em: Correct spelling in comments and listed
2623 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2625 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2626 default for the first section of a group of overlay sections.
2628 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2630 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2631 * Makefile.in: Regenerate.
2632 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2633 Check for null tool_dir.
2635 2001-01-16 Jim Wilson <wilson@redhat.com>
2637 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2638 and IA_64.unwind.info.
2640 2001-01-16 H.J. Lu <hjl@gnu.org>
2642 * ldlang.c (lang_check): Merge the private data only if the
2643 input file has contents.
2645 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2647 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2649 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2650 enabling search for libmilli. On a relocatable link, make .text
2652 (LDEMUL_AFTER_PARSE): Define.
2653 (hppaelf_finish): Correct spelling of relocatable in comments.
2655 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2656 rummage through the script for sections on the unique list.
2657 Correct length of strncmp for ".note".
2658 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2660 * ldlang.c (unique_section_list): New var.
2661 (unique_section_p): New function.
2662 (walk_wild_section): Don't match sections on unique_section_list.
2663 (lang_add_unique): New function.
2664 Correct spelling of relocatable in comments.
2666 * ldlang.h (struct unique_sections): Declare.
2667 (unique_section_list): Declare.
2668 (unique_section_p): Declare.
2669 (lang_add_unique): Declare.
2671 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2672 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2674 * ld.texinfo (--unique): Update.
2676 2001-01-13 Nick Clifton <nickc@redhat.com>
2678 * lexsup.c (parse_args): Remove spurious white space.
2680 2001-01-12 Nick Clifton <nickc@redhat.com>
2682 * lexsup.c (parse_args): Update copyright date.
2684 2001-01-12 Philip Blundell <pb@futuretv.com>
2686 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2688 2001-01-10 Kazu Hirata <kazu@hxi.com>
2690 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2691 * scripttempl/h8300h.sc: Fix formatting.
2692 * scripttempl/h8300s.sc: Likewise.
2693 * scripttempl/h8500.sc: Likewise.
2694 * scripttempl/h8500b.sc: Likewise.
2695 * scripttempl/h8500c.sc: Likewise.
2696 * scripttempl/h8500m.sc: Likewise.
2697 * scripttempl/h8500s.sc: Likewise.
2699 2000-01-07 David O'Brien <obrien@BSDi.com>
2701 * emultempl/elf32.em: Only perform Linux ld hints processing when
2704 2001-01-07 Philip Blundell <philb@gnu.org>
2706 * ld.texinfo (Bug Reporting): Update email address for reports.
2708 2000-12-31 Nick Clifton <nickc@redhat.com>
2710 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2711 options by checking for a return value of '?' not -1.
2713 2000-12-28 Nick Clifton <nickc@redhat.com>
2715 * lexsup.c (struct ld_option): Add new enum value:
2717 (ld_options[]): Change -omagic, -output and -oformat options
2718 to be EXACTLY_TWO_DASHES.
2719 (OUTPUT_COUNT): Use ARRAY_SIZE.
2720 (parse_args): Change parameter 'argc' to unsigned.
2721 Place EXACTLY_TWO_DASHES options into new really_longopts
2723 If getopt_long_only fails, try calling getopt_long using the
2724 really_longopts array.
2725 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2728 * ldlex.h: Fix prototype of parse_args.
2730 * ld.texinfo: Document that long options starting with 'o'
2731 must be preceeded by two dashes. Change example of a single
2732 dashed long option from -oformat to -trace-symbol.
2734 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2736 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2737 (longopts[]): New --no-default-excludes option.
2738 (gld_${EMULATION_NAME}_list_options): Document.
2739 (gld_${EMULATION_NAME}_parse_args): Handle.
2741 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2743 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2744 whitespace, it breaks the K&R C preprocessor.
2746 2000-12-11 DJ Delorie <dj@redhat.com>
2748 * ld.texinfo: Add notes about --whole-archive and gcc.
2750 2000-11-18 Fred Fish <fnf@be.com>
2752 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2753 (ld_options): Entry for --allow-shlib-undefined.
2754 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2755 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2757 * ld.texinfo: Document new command line switch.
2759 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2761 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2762 .fixup is actually read/write.
2763 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2764 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2765 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2767 2000-12-11 Jan Hubicka <jh@suse.cz>
2769 * NEWS: Add note about x86_64 architecture.
2771 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2773 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2774 Set DWARF2 sections to a VMA of zero.
2776 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2778 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2780 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2781 (sparc*-*-rtems*): Switched from a.out to ELF.
2783 2000-11-30 Jan Hubicka <jh@suse.cz>
2785 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2786 (eelf_x86_64.c): New.
2787 * Makefile.in: Regenerate.
2788 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2789 * emulparams/elf_x86_64.sh: New.
2791 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2793 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2794 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2796 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2797 merging non-a.out sections into CONSTRUCTING.
2799 2000-11-28 Nick Clifton <nickc@redhat.com>
2801 * ld.1 (COPYING): Mention that the GNU Free Documentation
2802 License is present in the sources, but not the output, and
2803 also available from the GNU website.
2804 (GNU Free Documentation License): Comment out this section.
2806 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2808 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2811 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2813 * ld.1: Remove old date so it does not give the impression the manpage
2816 2000-11-24 Nick Clifton <nickc@redhat.com>
2818 * configure.tgt (xscale-coff): Add target.
2819 (xscale-elf): Add target.
2821 2000-11-24 Fred Fish <fnf@be.com>
2823 * ldmain.c (main): Remove redundant init of config.make_executable
2826 2000-11-15 Richard Henderson <rth@redhat.com>
2828 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2830 2000-11-14 Kazu Hirata <kazu@hxi.com>
2832 * scripttempl/h8300.sc: Fix formatting.
2833 * scripttempl/h8300h.sc: Likewise.
2834 * scripttempl/h8300s.sc: Likewise.
2836 2000-11-14 Denis Chertykov <denisc@overta.ru>
2838 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2840 2000-11-09 Philip Blundell <pb@futuretv.com>
2842 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2843 around orphan sections whose names can be represented in C.
2845 2000-11-07 Jim Wilson <wilson@redhat.com>
2847 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2848 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2850 2000-11-06 Nick Clifton <nickc@redhat.com>
2852 * ld.texinfo: Add GNU Free Documentation License.
2853 * ldint.texinfo: Add GNU Free Documentation License.
2854 * ld.1: Add GNU Free Documentation License.
2856 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2858 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2859 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2861 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2862 Move 2000-11-02 Makefile.in changes to this file.
2863 * Makefile.in: Regenerate.
2865 2000-11-03 Nick Clifton <nickc@redhat.com>
2867 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2868 constructors and destructors.
2869 * scripttempl/h8300h.sc: Ditto.
2870 * scripttempl/h8300s.sc: Ditto.
2871 * scripttempl/h8500.sc: Ditto.
2872 * scripttempl/h8500b.sc: Ditto.
2873 * scripttempl/h8500c.sc: Ditto.
2874 * scripttempl/h8500m.sc: Ditto.
2875 * scripttempl/h8500s.sc: Ditto.
2876 * scripttempl/v850.sc: Ditto.
2877 * scripttempl/w65.sc: Ditto.
2878 * scripttempl/z8000.sc: Ditto.
2880 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2882 * Makefile.in (e_i386_chaos.c): New rule.
2883 (ALL_EMULATIONS): Added e_i386_chaos.o.
2884 * emulparams/elf_i386_chaos.sh: New file.
2885 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2887 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2889 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2890 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2891 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2892 library path suffix.
2893 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2895 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2897 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2898 for consecutive sections.
2900 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2902 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2904 * ld.texinfo: Added notes about this new option.
2906 2000-10-16 Nick Clifton <nickc@redhat.com>
2908 * emultempl/pe.em (_after_open): Add tests of return values from
2909 bfd functions. Emit appropriate error messages if necessary.
2911 2000-10-13 Nick Clifton <nickc@redhat.com>
2913 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2914 local variables - they are not used, but leave in the call to
2915 bfd_canonicalize_symtab.
2916 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2917 pe_dll_search_prefix.
2919 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2921 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2922 (longopts): New --dll-search-prefix option.
2923 (gld_${EMULATION_NAME}_list_options): Document.
2924 (gld_${EMULATION_NAME}_parse_args): Handle.
2925 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2926 dynamically, search for a dll named '<prefix><basename>.dll'
2927 in preference to 'lib<basename>.dll' if --dll-search-prefix
2930 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2932 * ldlang.c (section_already_linked): Set kept_section instead of
2935 2000-10-10 Kazu Hirata <kazu@hxi.com>
2937 * deffile.h: Fix formatting.
2938 * lexsup.c: Likewise.
2941 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2943 * pe-dll.c (make_one): Do not generate code thunk for DATA
2945 (process_def_file): deduce DATA flag for auto-export sumbols.
2947 2000-10-09 Kazu Hirata <kazu@hxi.com>
2949 * ld.h: Fix formatting.
2950 * ldcref.c: Likewise.
2951 * ldctor.h: Likewise.
2952 * ldemul.c: Likewise.
2953 * ldemul.h: Likewise.
2954 * ldexp.c: Likewise.
2955 * ldexp.h: Likewise.
2956 * ldfile.c: Likewise.
2957 * ldfile.h: Likewise.
2958 * ldlang.c: Likewise.
2959 * ldlang.h: Likewise.
2960 * ldmain.c: Likewise.
2961 * pe-dll.c: Likewise.
2963 * pe-dll.c: Revert some formatting fixes.
2965 2000-10-08 Kazu Hirata <kazu@hxi.com>
2967 * pe-dll.c: Fix formatting.
2969 2000-10-05 Kazu Hirata <kazu@hxi.com>
2971 * ldlang.c: Fix formatting.
2973 2000-10-03 DJ Delorie <dj@redhat.com>
2975 * pe-dll.c (fill_edata): initialize entire block
2976 (make_one): fill in correct section.
2978 2000-10-03 Kazu Hirata <kazu@hxi.com>
2980 * ldexp.c: Fix formatting.
2982 2000-10-02 DJ Delorie <dj@redhat.com>
2984 * emultempl/pe.em (gld_*_after_open): detect case where there two
2985 import libraries for same dll; rename one to ensure proper link
2988 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2990 (generate_edata): fix typo
2992 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2994 * scripttempl/crisaout.sc (ENTRY): Now __start.
2995 (.text): Add default setting for __start.
2996 Remove CONSTRUCTORS handling.
2997 (/DISCARD/): Add .gnu.warning.*.
2998 * emulparams/crislinux.sh (ENTRY): Now __start.
2999 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3000 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3001 (ENTRY): Now __start.
3002 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3003 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3005 2000-09-29 Kazu Hirata <kazu@hxi.com>
3007 * deffile.h: Fix formatting.
3009 * ldcref.c: Likewise.
3010 * ldctor.c: Likewise.
3011 * ldctor.h: Likewise.
3012 * ldemul.c: Likewise.
3013 * ldemul.h: Likewise.
3014 * ldexp.c: Likewise.
3015 * ldexp.h: Likewise.
3016 * ldfile.c: Likewise.
3017 * ldfile.h: Likewise.
3018 * ldlang.c: Likewise.
3019 * ldlang.h: Likewise.
3020 * lexsup.c: Likewise.
3022 * pe-dll.c: Likewise.
3024 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3026 * pe-dll.c (process_def_file): Uninitialized data wasn't
3027 exported with --export-all-symbols switch.
3029 2000-09-28 DJ Delorie <dj@redhat.com>
3031 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3032 noname work properly.
3034 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3036 * ld.texinfo (HPPA ELF32): New section.
3038 * emultempl/hppaelf.em (group_size): New.
3039 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3040 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3041 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3042 options to prevent abbreviations matching.
3043 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3044 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3046 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3048 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3049 on the m68*-*-elf target. Make it support COFF input objects.
3051 2000-09-21 Kazu Hirata <kazu@hxi.com>
3053 * ldmain.c: Fix formatting.
3054 * ldmisc.c: Likewise.
3055 * ldver.c: Likewise.
3056 * ldwrite.c: Likewise.
3058 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3060 * ldwrite.c (clone_section): Silence gcc warnings.
3062 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3064 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3065 out of memory failure.
3067 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3068 (clone_section): Handle out of memory failures. Rename var to
3069 avoid c++ reserved word.
3071 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3073 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3074 stub_name param to stub_sec_name.
3075 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3077 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3079 * emultempl/m68kelf.em: New file.
3080 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3081 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3082 * Makefile.in: Regenerate.
3084 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3086 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3089 2000-09-13 Nick Clifton <nickc@redhat.com>
3091 * ldmain.c (multiple_definition): Disable relaxation if
3092 multiple symbol definitions are encountered - otherwise the
3093 linker could abort with an assertion failure.
3095 2000-09-10 Nick Clifton <nickc@redhat.com>
3097 * mri.c: Fix formatting.
3099 2000-09-07 H.J. Lu <hjl@gnu.org>
3101 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3102 * configure: Rebuild.
3104 2000-09-07 H.J. Lu <hjl@gnu.org>
3106 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3107 * Makefile.in: Rebuild.
3109 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3111 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3112 broken list handling. Create __start_SECNAME and __stop_SECNAME
3113 when no place-holder. Add some comments. Test both SEC_CODE and
3114 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3115 Handle case where no output section statement created.
3117 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3119 * configure.tgt (sh-*-linux*): Added.
3120 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3121 * Makefile.in: Rebuilt.
3122 * emulparams/shelf_linux.sh: New file.
3123 * emulparams/shlelf_linux.sh: New file.
3125 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3127 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3128 try shuffling sections when the orphan happens to be the place
3129 holder. Keep count of unique section names generated so we speed
3130 the search for a new name.
3132 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3134 * configure: Rebuilt with new libtool.m4.
3136 2000-09-05 Nick Clifton <nickc@redhat.com>
3138 * Makefile.in: Regenerate.
3139 * aclocal.m4: Regenerate.
3140 * configure: Regenerate.
3141 * config.in: Regenerate.
3142 * po/ld.pot: Regenerate.
3144 * ldint.texinfo: Remove CVS revision marker - it foils local
3147 * emultempl/ticoff.em: Remove extraneous comma.
3149 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3151 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3152 to stub section flags.
3153 (hppa_for_each_input_file_wrapper): New.
3154 (hppa_lang_for_each_input_file): New.
3155 (lang_for_each_input_file): Define to call above.
3156 (multi_subspace): New.
3157 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3158 (PARSE_AND_LIST_PROLOGUE): Define.
3159 (PARSE_AND_LIST_LONGOPTS): Define.
3160 (PARSE_AND_LIST_OPTIONS): Define.
3161 (PARSE_AND_LIST_ARGS_CASES): Define.
3162 (hppaelf_finish): Call elf32_hppa_set_gp.
3163 (hppaelf_set_output_arch): Remove.
3164 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3166 * emulparams/hppalinux.sh (ELFSIZE): Define.
3168 (OTHER_READONLY_SECTIONS): Define.
3170 (GENERATE_SHLIB_SCRIPT): Define.
3172 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3173 to const throughout. Change `void *' to `PTR' throughout.
3174 (lang_memory_default): Function is local to file, add `static'.
3176 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3177 (ehppalinux.c): Likewise.
3178 (earmelf.c): Likewise.
3179 (earmelf_linux.c): Likewise.
3180 (earmelf_linux26.c): Likewise.
3181 * Makefile.in: Regenerate.
3183 * ld.h (ld_config_type): Add unique_orphan_sections.
3184 * lexsup.c (OPTION_UNIQUE): Define.
3185 (ld_options): Add "--unique".
3186 (parse_args): Handle it.
3187 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3188 search for an existing output section if unique_orphan_sections is
3189 set. Make use of bfd_get_unique_section_name rather than
3190 duplicating code here.
3191 * ld.texinfo: Describe --unique.
3193 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3194 optional arg to split-by-file.
3195 (parse_args): Handle them.
3196 * ld.texinfo: Update description of these options.
3197 * ldwrite.c (clone_section): Pass in the section name. Replace
3198 local code with bfd_get_unique_section_name.
3199 (split_sections): Tidy code and comments. Use a list traversal
3200 more appropriate to the list construction. Handle cooked section
3201 sizes. Split when split_by_reloc reached rather than exceeded.
3202 Track section size and split when split_by_file reached. Fix
3203 link_order_tail (even though it's not used).
3204 (ldwrite): Modify condition for calling split_sections to suit
3205 changed split_by_reloc and split_by_file.
3206 * ldmain.c (main): Init config.split_by_reloc and
3207 config.split_by_file to -1.
3208 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3209 Change split_by_file to bfd_size_type.
3211 2000-09-02 Nick Clifton <nickc@redhat.com>
3213 * configure.in: Increase version number to 2.10.91.
3214 * NEWS: Mention new ability to support removal of duplicate DWARF2
3216 * configure: Regenerate.
3217 * aclocal.m4: Regenerate.
3218 * config.in: Regenerate.
3220 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3222 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3224 * scripttempl/elf32avr.sc: Ditto.
3225 * scripttempl/elfd10v.sc: Ditto.
3226 * scripttempl/elfd30v.sc: Ditto.
3227 * scripttempl/elfi370.sc: Ditto.
3228 * scripttempl/elfm68hc11.sc: Ditto.
3229 * scripttempl/elfm68hc12.sc: Ditto.
3230 * scripttempl/elfi386beos.sc: Ditto.
3231 * scripttempl/v850.sc: Ditto.
3233 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3235 * acinclude.m4: Include libtool and gettext macros from the
3237 * aclocal.m4, configure: Rebuilt.
3239 2000-08-25 Nick Clifton <nickc@redhat.com>
3241 * ldlang.c (open_output): When choosing the target for a
3242 particular endianness, do nothing if the target is not
3245 2000-08-25 H.J. Lu <hjl@gnu.org>
3247 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3248 check -rpath nor LD_RUN_PATH for cross link.
3249 * ld.texinfo: Document the change.
3251 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3253 * NEWS: Mention support for CRIS.
3255 2000-08-23 H.J. Lu <hjl@gnu.org>
3257 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3258 the current runpath list from bfd_elf_get_runpath_list ()
3261 2000-08-22 H.J. Lu <hjl@gnu.org>
3263 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3264 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3265 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3266 trace_file_tries is non-zero.
3267 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3268 if trace_file_tries is non-zero.
3270 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3273 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3275 * NEWS: Mention i860 support.
3277 2000-08-14 Andreas Schwab <schwab@suse.de>
3279 * scripttempl/elf.sc: Fix last change to use correct comment
3282 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3284 * scripttempl/elf.sc: Add a comment giving the correspondence
3285 between sections, per-datum sections, and linkonce sections. Make
3286 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3289 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3291 * emulparams/elf32_i860.sh: New file.
3292 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3293 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3294 (eelf32_i860.c): New rule.
3295 * Makefile.in: Regenerate.
3297 2000-08-10 Nick Clifton <nickc@cygnus.com>
3299 * emulparams/mipspe.sh (ENTRY): Add definition.
3301 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3303 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3306 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3308 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3309 the final size of .bss section.
3310 * scripttempl/elfm68hc12.sc: Likewise.
3312 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3314 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3315 gld${EMULATION_NAME}_parse_args for consistency. Combine
3316 lastoptind and prevoptind vars, and keep track of last optind.
3317 (gld_${EMULATION_NAME}_list_options): Rename to
3318 gld${EMULATION_NAME}_list_options.
3320 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3322 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3323 (i586-sco-sysv5uw7.1.0).
3325 2000-07-27 H.J. Lu <hjl@gnu.org>
3327 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3328 (PARSE_AND_LIST_PROLOGUE): New.
3329 (PARSE_AND_LIST_LONGOPTS): Likewise.
3330 (PARSE_AND_LIST_OPTIONS): Likewise.
3331 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3332 (PARSE_AND_LIST_EPILOGUE): Likewise.
3334 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3336 * emultempl/armelf.em: Elide functions common to elf32.em,
3337 ie. most of the file.
3338 (arm_elf_after_open): New. Do arm specific things then call
3339 gld${EMULATION_NAME}_after_open.
3340 (arm_elf_before_allocation): New. Call
3341 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3342 (PARSE_AND_LIST_PROLOGUE): Define.
3343 (PARSE_AND_LIST_SHORTOPTS): Define.
3344 (PARSE_AND_LIST_LONGOPTS): Define.
3345 (PARSE_AND_LIST_OPTIONS): Define.
3346 (PARSE_AND_LIST_ARGS_CASES): Define.
3347 (LDEMUL_AFTER_OPEN): Define.
3348 (LDEMUL_BEFORE_ALLOCATION): Define.
3349 (LDEMUL_BEFORE_PARSE): Define.
3350 (LDEMUL_FINISH): Define.
3352 * emultempl/hppaelf.em: Similarly zap most of this file.
3353 (hppaelf_add_stub_section): Prototype.
3354 (hppaelf_layaout_sections_again): Prototype.
3355 (hook_in_stub): Prototype.
3356 (LDEMUL_SET_OUTPUT_ARCH): Define.
3357 (LDEMUL_FINISH): Define.
3358 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3360 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3361 (EXTRA_EM_FILE): New.
3362 * emulparams/armelf_linux.sh: Likewise.
3363 * emulparams/armelf_linux26.sh: Likewise.
3364 * emulparams/hppalinux.sh: Likewise.
3365 * emulparams/hppaelf.sh: Likewise.
3368 * emultempl/elf32.em: Fix formatting.
3369 (EXTRA_EM_FILE): Source it.
3370 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3371 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3372 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3373 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3374 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3375 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3376 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3377 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3378 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3379 allow functions in this file to be overridden.
3380 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3382 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3384 * emultempl/elf32.em: Reorganize file.
3386 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3388 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3389 specific option to fit 64-bit executable in the lower
3390 31-bit address range. This is done by changing start
3391 address of .interp (the very first section of executable)
3392 and then setting EF_ALPHA_32BIT elf header flag.
3394 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3396 * emultempl/m68kcoff.em: New file.
3397 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3398 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3400 * Makefile.in: Regenerate.
3402 2000-07-20 H.J. Lu <hjl@gnu.org>
3404 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3405 and "disable-new-dtags" to stop getopt from treating -d/-e as
3406 abbreviations for these options.
3408 2000-07-20 H.J. Lu <hjl@gnu.org>
3410 * ld.texinfo: Add documentation for --disable-new-dtags and
3413 * ldmain.c (main): Initialize link_info.new_dtags to false.
3415 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3416 --disable-new-dtags and --enable-new-dtags.
3417 (gld_${EMULATION_NAME}_list_options): Likewise.
3419 2000-07-05 Kenneth Block <krblock@computer.org>
3421 * lexsup.c: Add optional style to demangle switch
3422 * ld.texinfo: Document optional style to demangle switch.
3424 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3426 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3428 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3429 Regenerate dependencies.
3430 * Makefile.in: Rebuild.
3431 * configure.tgt (cris-*-*): New target.
3432 * emulparams/crisaout.sh, emulparams/criself.sh,
3433 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3434 * po/POTFILES.in, po/ld.pot: Regenerate.
3436 2000-07-20 H.J. Lu <hjl@gnu.org>
3438 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3439 Print out ignored -z options.
3441 2000-07-19 H.J. Lu <hjl@gnu.org>
3443 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3444 (PARSE_AND_LIST_PROLOGUE): New.
3445 (PARSE_AND_LIST_LONGOPTS): Likewise.
3446 (PARSE_AND_LIST_OPTIONS): Likewise.
3447 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3449 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3451 * lexsup.c (ld_options): Comment out 'z'.
3452 (parse_args): Likewise.
3454 * emultempl/elf32.em: Include "elf/common.h".
3455 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3457 (gld_${EMULATION_NAME}_list_options): Likewise.
3459 * ld.texinfo: Add documentation for the recognized -z options.
3461 2000-07-19 H.J. Lu <hjl@gnu.org>
3463 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3464 bfd_elf_set_dt_needed_soname ().
3466 2000-07-18 DJ Delorie <dj@cygnus.com>
3468 * pe-dll.c (pe_dll_id_target): check object target name also
3470 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3472 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3473 ${INIT_END} if relocating.
3474 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3476 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3478 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3479 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3480 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3481 errors introduced by the old dynamic lib search order.
3483 2000-07-17 DJ Delorie <dj@cygnus.com>
3485 * pe-dll.c (process_def_file): auto-export data items also
3486 (pe_process_import_defs): also see if _imp_ form needed
3488 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3490 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3491 for dll import libraries
3493 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3495 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3496 gcc 2.95.2 and later.
3498 2000-07-11 Kazu Hirata <kazu@hxi.com>
3500 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3503 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3505 * ldemul.h (struct lang_input_statement_struct): Remove forward
3507 (struct search_dirs): Likewise.
3508 * ldfile.h (struct lang_input_statement_struct): Likewise.
3509 Protect file from multiple inclusion.
3510 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3511 declaration from macro to file scope.
3513 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3514 * ldgram.y: Likewise here.
3515 * ldlang.c: And here.
3516 * ldmain.c: And here.
3517 * mpw-elfmips.c: And here.
3518 * mpw-eppcmac.c: And here.
3519 * emultempl/aix.em: And here.
3520 * emultempl/armcoff.em: And here.
3521 * emultempl/armelf.em: And here.
3522 * emultempl/armelf_oabi.em: And here.
3523 * emultempl/beos.em: And here.
3524 * emultempl/elf32.em: And here.
3525 * emultempl/hppaelf.em: And here.
3526 * emultempl/linux.em: And here.
3527 * emultempl/lnk960.em: And here.
3528 * emultempl/pe.em: And here.
3529 * emultempl/sunos.em: And here.
3530 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3531 * mpw-idtmips.c: Ditto.
3532 * emultempl/generic.em: Ditto.
3533 * emultempl/gld960.em: Ditto.
3534 * emultempl/gld960c.em: Ditto.
3535 * emultempl/mipsecoff.em: Ditto.
3536 * emultempl/ticoff.em: Ditto.
3537 * emultempl/vanilla.em: Ditto.
3539 * pe-dll.c: Include ldfile.h
3540 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3542 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3543 arguments to bfd_elf32_size_dynamic_sections call.
3544 (gldelf32ebmip_place_orphan): Add missing arguments to
3545 lang_leave_output_section_statement call.
3547 2000-07-10 H.J. Lu <hjl@gnu.org>
3549 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3551 (strhash): Likewise.
3552 (compute_dll_image_base): Likewise.
3553 (pe_undef_found_sym): Likewise.
3554 (pe_undef_cdecl_match): Likewise.
3555 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3556 argument "arch" with ATTRIBUTE_UNUSED.
3558 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3560 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3562 From Ryan Bradetich <rbradetich@uswest.net>
3563 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3565 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3567 Changes to create multiple linker stubs, positioned immediately
3568 before the section where they are required.
3569 * emultempl/hppaelf.em: Include elf32-hppa.h.
3570 (stub_sec, file_chain): Delete.
3571 (hppaelf_create_output_section_statements): Don't make a stub
3573 (hook_stub_info): New struct.
3574 (hook_in_stub): New function.
3575 (hppaelf_add_stub_section): New function.
3576 (hppaelf_finish): Do nothing for relocateable links. Modify the
3577 call to elf32_hppa_size_stubs. Move code for updating section
3579 (hppaelf_layaout_sections_again): ..to here, a new function.
3581 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3582 broken list handling. Pass in a pointer to the list.
3583 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3585 (hppaelf_before_parse): Prototype.
3586 (hppaelf_set_output_arch): Prototype.
3587 (hppaelf_create_output_section_statements): Prototype.
3588 (hppaelf_delete_padding_statements): Prototype.
3589 (hppaelf_finish): Prototype.
3592 * emultempl/hppaelf.em: Include ctype.h.
3593 (struct orphan_save): New.
3594 (gld${EMULATION_NAME}_place_orphan): New.
3595 (output_rel_find): New.
3596 (hppaelf_get_script): Update from elf32.em.
3597 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3598 Change emulation_name field to "${EMULATION_NAME}". Add
3599 gld${EMULATION_NAME}_place_orphan.
3601 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3602 ehppalinux.o, sort it. Regenerate dependencies.
3603 (ehppalinux.c): Depend on hppaelf.em
3604 * Makefile.in: Regenerate.
3606 * configure.tgt: targ_emul=hppalinux for hppa*linux
3608 * emulparams/hppalinux.sh: New.
3609 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3611 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3613 * lexsup.c (parse_args): Copy section name.
3615 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3617 * emultempl/pe.em: institute the following search order for
3618 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3619 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3620 static lib (libfoo.a) if none of the above are found.
3622 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3624 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3625 (longopts): New --{enable,disable}-auto-image-base options.
3626 (gld_${EMULATION_NAME}_list_options): Document.
3627 (gld_${EMULATION_NAME}_parse): Handle.
3628 (strhash): New static function.
3629 (compute_dll_image_base): New static function.
3630 (gld_${EMULATION_NAME}_set_symbols): Use.
3632 2000-07-05 DJ Delorie <dj@redhat.com>
3636 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3638 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3639 * emulparams/elf32btsmip.sh: New file.
3640 * Makefile.am: Add traditional mips target.
3641 * Makefile.in: Rebuild.
3643 2000-07-01 H.J. Lu <hjl@gnu.org>
3645 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3646 automake to use YLWRAP.
3647 * Makefile.in: Rebuild.
3649 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3651 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3652 (CLEANFILES): Add DEPA.
3653 * Makefile.in: Regenerate.
3655 2000-06-30 Timothy Wall <twall@ppc>
3657 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3658 the page in the upper octet of the address.
3660 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3662 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3664 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3666 * NEWS: arm-elf does --gc-sections too.
3668 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3670 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3672 * Makefile.in: Regenerate.
3674 2000-06-21 H.J. Lu <hjl@gnu.org>
3676 * Makefile.am: Rebuild dependency.
3677 * Makefile.in: Rebuild.
3679 2000-06-20 H.J. Lu <hjl@gnu.org>
3681 * Makefile.am: Rebuild dependency.
3682 * Makefile.in: Rebuild.
3684 2000-06-20 Timothy Wall <twall@cygnus.com>
3686 * scripttempl/tic54xcoff.sc: New.
3687 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3688 * gen-doc.texi: Add flag for TI COFF.
3689 * ld.texinfo: Add documentation for TI COFF handling switches.
3690 * emultempl/ticoff.em: New. TI COFF handling.
3691 * configure.tgt: Add tic54x target.
3692 * Makefile.am: Add tic54x target.
3693 * Makefile.in: Ditto.
3695 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3697 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3698 checking for backslashes.
3700 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3702 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3704 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3706 * NEWS: Update list of targets supporting --gc-sections.
3708 * scripttempl/elf.sc: KEEP .eh_frame contents.
3709 * scripttempl/elfd30v.sc: Same here.
3711 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3713 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3715 * Makefile.in: Rebuild.
3716 * configure.tgt: Recognize m68hc12 and m68hc11.
3717 * scripttempl/elfm68hc12.sc: New file.
3718 * emulparams/m68hc12elfb: New emulation.
3719 * emulparams/m68hc12elf: New emulation.
3720 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3721 (includes a memory.x script to define the ROM and RAM banks).
3722 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3723 New configuration files for support of Motorola 68hc11
3725 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3727 * ldmain.c (main): Only change SEC_READONLY for final link.
3729 2000-06-13 H.J. Lu <hjl@gnu.org>
3731 * configure: Regenerate.
3733 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3735 * configure.in (VERSION): Update to show this is the CVS mainline.
3737 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3739 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3740 input objects to be ECOFF.
3741 (check_sections): einfo takes %B, not %P, to print a BFD name.
3743 2000-06-05 Michael Matz <matz@ifh.de>
3745 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3748 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3750 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3752 * emulparams/avr1200.sh (STACK): Define as 0.
3753 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3754 * emulparams/avr4433.sh (STACK): Likewise.
3755 * emulparams/avr44x4.sh (STACK): Likewise.
3756 * emulparams/avr85xx.sh (STACK): Likewise.
3757 * emulparams/avrmega103.sh (STACK): Likewise.
3758 * emulparams/avrmega161.sh (STACK): Likewise.
3759 * emulparams/avrmega603.sh (STACK): Likewise.
3760 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3761 (__stack): Define from ${STACK} for main().
3763 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3765 * Makefile.am: Update dependencies with "make dep-am"
3766 * Makefile.in: Regenerate.
3768 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3770 * ldmain.c: Include filenames.h.
3771 (set_scripts_dir): Support backslashes in program name.
3773 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3775 * ldmain.c (main): When deciding if ".text" section should be
3776 read-only, don't forget to reset SEC_READONLY because it
3777 could be already set.
3779 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3781 * ld.1: Add documentation for new command line option:
3782 --section-start <sectionname>=<sectionorg>
3783 This is a generic version of -Ttext etc. which accepts
3784 any section name as a parameter instead of just text/data/
3786 * ld.texinfo: More docs.
3788 * lexsup.c: (parse_args): Recognize new command line option.
3789 (ld_options): Add new option.
3791 2000-05-18 H.J. Lu <hjl@gnu.org>
3793 * lexsup.c (parse_args): `i' == `r', not `q'.
3795 2000-05-18 Jeffrey A Law (law@cygnus.com)
3797 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3799 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3800 Rick Gorton <gorton@scrugs.lkg.dec.com>
3802 Add support for '-q' == '--emit-relocs' switch.
3803 * ldmain.c (main): Default to false.
3804 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3805 * NEWS: Describe the emitrelocations switch.
3806 * ld.texinfo: Describe the emitrelocations switch.
3808 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3810 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3811 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3812 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3815 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3817 * lexsup.c (parse_args): Update the year in the copyright notice.
3819 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3821 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3822 Replace defines with those from intl/libgettext.h to quieten gcc
3825 2000-05-10 H.J. Lu <hjl@gnu.org>
3827 * ldlang.c (open_input_bfds): Don't load the same file within
3828 a group again if the whole archive has been loaded already.
3830 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3832 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3833 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3836 2000-05-01 Jim Wilson <wilson@cygnus.com>
3838 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3840 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3841 host "ia64-*-linux-gnu*".
3843 2000-04-29 Andreas Jaeger <aj@suse.de>
3845 * ld.h: Correctly check GCC version.
3847 2000-04-25 Jeffrey A Law (law@cygnus.com)
3849 * Makefile.am: Add PA64 support. Add missing dependencies for
3851 * Makefile.in: Rebuilt.
3852 * configure.tgt: Add PA64 support (currently disabled).
3854 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3856 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3857 (output_rel_find): New function.
3858 (hold_section, hold_use): Delete.
3859 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3860 hold_interp): Make local to place_orphan.
3861 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3862 rather than place_section to find possible previous use of orphan.
3863 Similarly find the place-holder output sections. Use returned
3864 value from lang_enter_output_section_statement rather than calling
3865 lang_output_section_statement_lookup.
3866 * emultempl/armelf.em: Same here.
3867 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3869 * ldlang.c (lang_enter_output_section_statement): Return output
3871 * ldlang.h (lang_enter_output_section_statement): Change
3874 * ldlang.h (lang_output_section_statement): Export it.
3875 * ldlang.c (lang_output_section_statement): Ditto.
3877 2000-04-24 Nick Clifton <nickc@cygnus.com>
3879 * ld.texinfo (Output Section Data): Add note that section data
3880 commands cannot appear outside of section directives.
3882 2000-04-2 Matthew Green <mrg@cygnus.com>
3884 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3886 2000-04-21 Richard Henderson <rth@cygnus.com>
3887 David Mosberger <davidm@hpl.hp.com>
3889 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3890 (eelf64_ia64.c): New rule.
3891 * Makefile.in: Rebuild.
3892 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3893 * emulparams/elf64_ia64.sh: New file.
3895 2000-04-21 Richard Henderson <rth@cygnus.com>
3897 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3899 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3901 * dep-in.sed: Match space at start of file name, not at end.
3903 2000-04-18 H.J. Lu <hjl@gnu.org>
3905 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3906 lang_leave_output_section_statement () after calling
3907 lang_enter_output_section_statement ().
3908 * emultempl/armelf.em: Likewise.
3910 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3912 * emultempl/elf32.em (struct orphan_save): Add section field.
3913 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3914 better order, and place first orphan section as we did before the
3915 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3916 Don't call make_bfd_section here, let wild_doit do the job for us.
3917 Don't build a statement list when we'll only throw it away.
3918 * emultempl/armelf.em: Ditto.
3919 * emultempl/pe.em: Similarly.
3921 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3923 * scripttempl/elfppc.sc: Remove.
3924 * emulparams/elf32ppc.sh: Use elf.sc.
3925 * emulparams/elf32lppc.sh: Use elf.sc.
3926 * emulparams/elf32ppclinux.sh: Use elf.sc.
3927 * emulparams/elf32ppcsim.sh: New file.
3928 * emulparams/elf32lppcsim.sh: New file.
3929 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3930 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3931 * Makefile.in: Regenerate.
3932 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3934 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3936 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3937 ~SEC_ALLOC sections too. Init start address of debug sections.
3938 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3939 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3940 Also set all relocateable section start addresses.
3942 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3944 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3945 Add new BSS_PLT variable for when .plt need not be contained in
3946 the file. Move _etext so that it is also after .fini, and provide
3947 both etext and _etext with a leading underscore. Mark the start
3950 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3952 * emultempl/elf32.em (struct orphan_save): New.
3953 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3954 hold_interp): Make them struct orphan_save.
3955 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3956 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3957 the end of the relevant section list. Also add associated section
3958 statements to the end of any previous orphan statements.
3959 * emultempl/armelf.em: Similarly.
3960 * emultempl/pe.em: Similarly.
3962 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3964 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3966 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3968 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3969 --enable-build-warnings option.
3970 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3971 * Makefile.in, configure: Re-generate.
3973 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3975 * po/ld.pot: Regenerate.
3977 * lexsup.c (help): Restore translated part of bug string.
3979 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3980 (DEP): Quote when passing vars to sub-make. Add warning message
3982 (DEP1): Rewrite for "gcc -MM".
3983 (CLEANFILES): Add DEP2.
3984 Update dependencies.
3985 * Makefile.in: Regenerate.
3987 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3989 * ld.h: #include "bin-bugs.h"
3990 * lexsup.c (help): Use REPORT_BUGS_TO.
3992 2000-03-27 Denis Chertykov <denisc@overta.ru>
3994 * configure.tgt (avr-*-*): New target support.
3995 * Makefile.am: Likewise.
3996 * scripttempl/elf32avr.sc: New script file.
3997 * emulparams/avr1200.sh: New file.
3998 * emulparams/avr23xx.sh: New file.
3999 * emulparams/avr4433.sh New file.
4000 * emulparams/avr44x4.sh New file.
4001 * emulparams/avr85xx.sh New file.
4002 * emulparams/avrmega103.sh New file.
4003 * emulparams/avrmega161.sh New file.
4004 * emulparams/avrmega603.sh New file.
4005 * Makefile.in: Regenerate.
4007 2000-03-09 Andreas Jaeger <aj@suse.de>
4009 * Makefile.am (check-DEJAGNU): Also unset LANG.
4010 * Makefile.in: Rebuild.
4012 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4014 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4017 2000-03-02 H.J. Lu <hjl@gnu.org>
4019 * emulparams/elf32mcore.sh: Include "getopt.h".
4021 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4023 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4025 2000-03-01 H.J. Lu <hjl@gnu.org>
4027 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4028 * emulparams/shpe.sh: Likewise.
4030 2000-03-01 Nick Clifton <nickc@cygnus.com>
4032 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4033 to unused parameters.
4035 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4036 functions only used by DLL code.
4037 (_place_orphan): Initialise 'dollar'.
4039 2000-03-01 H.J. Lu <hjl@gnu.org>
4041 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4042 indicate if the undefined symbol is a fatal error or not.
4043 Don't delete the output file if "fatal" is false.
4045 2000-02-29 H.J. Lu <hjl@gnu.org>
4047 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4048 Set LC_COLLATE and LC_ALL to null and export them. It is for
4049 sort which expects the C locale.
4050 Add $(LIBS) to all $(HOSTING_LIBS).
4051 * Makefile.in: Rebuild.
4053 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4055 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4056 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4057 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4058 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4059 find_potential_libraries.
4061 2000-02-28 Jim Blandy <jimb@redhat.com>
4063 * ldgram.y (exclude_name_list): Don't require a comma to separate
4064 list entries; the lexer considers commas to be valid part of a
4065 filename, so in something like `foo, bar' the comma is considered
4066 part of the first filename, `foo,'.
4067 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4069 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4071 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4072 host "i[3456]86-*-freebsdelf*".
4074 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4076 * scripttempl/i386go32.sc: Move misplaced semicolons.
4078 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4080 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4081 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4082 (eelf64hppa.c, ehppaelf.c): Remove targets.
4083 * Makefile.in: Rebuild.
4085 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4087 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4088 GNU/Linux/sparc, but keep the default as 32.
4090 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4091 it default if sparcv9 or sparc64.
4093 2000-02-24 Nick Clifton <nickc@cygnus.com>
4095 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4096 * Makefile.in: Regenerate.
4097 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4099 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4100 find_potential_libraries.
4101 * ldemul.c (ldemul_find_potential_libraries): New function.
4103 * ldfile.c (ldfile_open_file_search): Allow function to be
4105 (ldfile_open_file): Call ldemul_find_potential_libraries.
4106 * ldfile.h: Add prototype for ldfile_open_file_search.
4108 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4110 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4111 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4113 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4114 (gld_X_find_potential_libraries): New function. Search for
4115 libraries called "*.lib".
4117 * scripttempl/pe.sc: Add .pdata section.
4119 2000-02-23 Richard Henderson <rth@cygnus.com>
4121 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4122 Add and use memory regions.
4124 2000-02-23 Linas Vepstas (linas@linas.org)
4126 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4128 * Makefile.am: Add support for Linux/IBM 370.
4129 * configure.tgt: Likewise.
4131 * Makefile.in: Regenerate.
4133 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4135 * ldlang.c (print_input_section, print_data_statement,
4136 print_reloc_statement, print_padding_statement, insert_pad,
4137 size_input_section, lang_check_section_addresses,
4138 lang_size_sections, lang_do_assignments, lang_set_startof,
4139 lang_one_common): Change `opb' to unsigned.
4140 (lang_do_assignments): Also change `size' to unsigned.
4142 2000-02-16 Richard Henderson <rth@cygnus.com>
4144 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4146 2000-02-16 Timothy Wall <twall@cygnus.com>
4148 * mri.c (mri_draw_tree): Add default LMA region argument to call
4149 to lang_leave_output_section_statement.
4150 * ldlang.h: Update prototypes with LMA region arguments.
4151 * ldlang.c (lang_size_sections): Encapsulate region bounds
4152 checking in os_check_region call.
4153 (os_check_region): New function.
4154 (lang_output_section_statement_lookup): Initialize lma_region.
4155 (lang_leave_output_section_statement): Add LMA region argument.
4156 (lang_leave_overlay): Ditto.
4157 * ldgram.y: Handle LMA region syntax.
4158 * ld.texinfo (Output Section Description): Describe LMA region usage.
4159 * emultempl/armelf.em (gld$place_orphan): Add default value for
4160 lma region in call to lang_leave_output_section_statement.
4161 * emultempl/elf32.em (gld$place_orphan): Add default value for
4162 lma region in call to lang_leave_output_section_statement.
4163 * emultempl/pe.em (gld$place_orphan): Add default value for
4164 lma region in call to lang_leave_output_section_statement.
4167 2000-02-04 Timothy Wall <twall@redhat.com>
4169 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4170 octets when calculating section end addresses.
4172 2000-02-04 Timothy Wall <twall@redhat.com>
4174 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4176 2000-02-03 Timothy Wall <twall@redhat.com>
4178 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4180 * ldlang.c (print_input_section, print_data_statement,
4181 print_reloc_statement, print_padding_statement): Print target
4182 address values and section sizes as bytes, not octets.
4183 (insert_pad) Calculate padding size in octets, and adjust "dot"
4185 (size_input_section) Always adjust "dot" by bytes, not octets.
4186 (lang_check_section_addresses, lang_do_assignments) Adjust
4187 "dot" by bytes, not octets. Use the larger of the directive size
4188 or octets_per_byte for the number of octets actually allocated in
4190 (lang_set_startof) Make sure STARTOF returns a target address.
4191 (lang_one_common) Record size changes in octets.
4192 (lang_abs_symbol_at_end_of) Section end symbol's value is
4193 recorded in target bytes.
4194 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4195 to be clear about behavior when an octet is smaller than one byte.
4197 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4199 * ldcref.c (output_cref): Don't pass message strings to printf
4203 * ldmisc.c (vfinfo): Same here.
4206 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4208 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4209 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4210 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4211 Add missing NULL initialisers, and comments.
4213 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4215 2000-01-21 Nick Clifton <nickc@cygnus.com>
4217 * ldlang.c (lang_size_sections): Fix typo in comment.
4219 2000-01-18 H.J. Lu <hjl@gnu.org>
4221 * ldlang.c (lang_size_sections): Also update the current
4222 address of a region if the SEC_NEVER_LOAD bit is not set.
4224 2000-01-10 Philip Blundell <pb@futuretv.com>
4226 * configure.tgt (arm*-*-conix*): New target.
4228 2000-01-07 Nick Clifton <nickc@cygnus.com>
4230 * ld.texinfo (Options): Remind users to preceed linker command
4231 line switches with -Wl, (or whatever is appropriate) if it is
4232 being invoked by a comnpiler driver program.
4233 Fix description of the behaviour of the -n command line switch.
4235 2000-01-05 Catherine Moore <clm@cygnus.com>
4237 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4239 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4240 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4241 (exclude_name_list): New.
4242 ldlang.c (walk_wild_section): Support list of excluded files.
4243 (print_wild_statement): Likewise.
4244 (lang_add_wild): Likewise.
4245 * ldlang.h (lang_wild_statement_type): Likewise.
4246 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4248 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4250 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4251 (process_def_file): Use.
4252 (pe_dll_compat_implib): New variable.
4255 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4256 pe_dll_compat_implib.
4258 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4259 compat-implib options.
4260 (gld_${EMULATION_NAME}_list_options): List new options.
4261 (gld_${EMULATION_NAME}_parse_args): Handle.
4263 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4266 * deffilep.y (opt_name): Allow "." in name.
4268 For older changes see ChangeLog-9899
4274 version-control: never