1 2002-05-22 Alan Modra <amodra@bigpond.net.au>
3 * ldemul.c (ldemul_new_vers_pattern): New function.
4 * ldemul.h (ldemul_new_vers_pattern): Declare.
5 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
6 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
7 * emultempl/ppc64elf.em (dotsyms): New static var.
8 (gld${EMULATION_NAME}_new_vers_pattern): New function.
9 (LDEMUL_NEW_VERS_PATTERN): Define.
10 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
11 (PARSE_AND_LIST_LONGOPTS): Likewise.
12 (PARSE_AND_LIST_ARGS_CASES): Handle them.
13 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
15 * emultempl/armcoff.em: Likewise.
16 * emultempl/armelf_oabi.em: Likewise.
17 * emultempl/beos.em: Likewise.
18 * emultempl/elf32.em: Likewise.
19 * emultempl/generic.em: Likewise.
20 * emultempl/gld960.em: Likewise.
21 * emultempl/gld960c.em: Likewise.
22 * emultempl/linux.em: Likewise.
23 * emultempl/lnk960.em: Likewise.
24 * emultempl/m68kcoff.em: Likewise.
25 * emultempl/mipsecoff.em: Likewise.
26 * emultempl/pe.em: Likewise.
27 * emultempl/sunos.em: Likewise.
28 * emultempl/ticoff.em: Likewise.
29 * emultempl/vanilla.em: Likewise.
31 2002-05-22 Alan Modra <amodra@bigpond.net.au>
33 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
34 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
35 (LIB_SEARCH_DIRS): No need to use "tr".
36 (COMPILE_IN): Only set for native targets.
37 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
38 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
39 * configure.tgt (powerpc*): Set tdir_*.
40 (powerpcle*): Correct targ_extra_emuls.
41 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
42 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
44 2002-05-22 Alan Modra <amodra@bigpond.net.au>
46 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
47 calling lang_add_entry.
49 2002-05-21 H.J. Lu (hjl@gnu.org)
51 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
53 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
55 * ld.texinfo: Updated for --allow-multiple-definition and
58 * ldmain.c (main): Initialize the allow_multiple_definition
61 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
62 (ld_options): Add --allow-multiple-definition.
63 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
65 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
67 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
68 (earmelfb_nbsd.c): New rule.
69 * Makefile.in: Regenerate.
70 * configure.tgt (armeb-*-netbsdelf*): New target.
71 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
72 (arm-*-netbsd*): Likewise.
73 * emulparams/armelfb_nbsd.sh: New file.
75 2002-05-18 Tom Rix <trix@redhat.com>
77 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
80 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
82 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
83 * Makefile.in: Regenerate.
84 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
86 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
88 * emulparams/avr1.sh: New file.
89 * emulparams/avr2.sh: New file.
90 * emulparams/avr3.sh: New file.
91 * emulparams/avr4.sh: New file.
92 * emulparams/avr5.sh: New file.
93 * scripttempl/avr.sc: New file.
95 2002-05-15 Alan Modra <amodra@bigpond.net.au>
97 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
98 (lang_place_orphans): Abort if just_syms_flag.
100 2002-05-10 Tom Rix <trix@redhat.com>
102 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
103 architecture and machine information in the output bfd.
104 (gld*_before_parse): Remove old arch and machine code.
105 (choose_target): Rename to gld*_choose_target.
106 (rtld): Change type to int.
107 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
108 objects in XCOFF archives.
109 * ldfile.h: Update copyright date.
111 2002-05-10 Jakub Jelinek <jakub@redhat.com>
113 * ldmain.c (main): Enable -z combreloc by default.
115 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
117 * Makefile.am: Honour DESTDIR.
118 * Makefile.in: Regenerate.
120 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
122 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
123 (lang_enter_overlay): Remove the last two parameters.
124 (lang_leave_overlay): Take them here instead.
125 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
126 (section): Pass LMA and crossref flag to lang_leave_overlay rather
127 than lang_enter_overlay.
128 * ldlang.c (lang_memory_region_lookup): Return null for null names.
129 (lang_output_section_statement_lookup): Initialize update_dot_tree.
130 (lang_size_sections_1): Evaluate it.
131 (lang_leave_output_section_statement): Rework LMA lookup.
132 (overlay_lma, overlay_nocrossrefs): Remove.
133 (lang_enter_overlay): Remove LMA and corssref arguments.
134 (lang_enter_overlay_section): Don't set the LMA here.
135 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
136 assignment to the last section's update_dot_tree. Unconditionally
137 use the load and run-time regions specified in the OVERLAY statement.
138 Likewise the first section's LMA. Only set the other sections' LMAs
139 when no load region is given.
141 2002-05-06 Nick Clifton <nickc@redhat.com>
143 * po/sv.po: New translation.
145 2002-05-04 Alan Modra <amodra@bigpond.net.au>
147 * emultempl/hppaelf.em (build_section_lists): New function.
148 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
149 and build_section_lists.
151 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
153 * ld.h: Fix formatting.
155 * ldfile.c: Likewise.
156 * ldlang.c: Likewise.
157 * ldmain.c: Likewise.
158 * lexsup.c: Likewise.
159 * pe-dll.c: Likewise.
161 2002-05-02 Alan Modra <amodra@bigpond.net.au>
163 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
164 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
165 (build_section_lists): Do output_section tests here.
167 2002-04-30 Tom Rix <trix@redhat.com>
169 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
171 2002-05-01 Alan Modra <amodra@bigpond.net.au>
173 Long branch stubs, multiple stub sections.
174 * emultempl/ppc64elf.em: Include ldctor.h.
175 (stub_file): New var.
176 (group_size): New var.
177 (ppc_create_output_section_statements): New function.
178 (struct hook_stub_info): New.
179 (hook_in_stub): New function.
180 (ppc_add_stub_section): New function.
181 (ppc_layout_sections_again): New function.
182 (build_section_lists): New function.
183 (gld${EMULATION_NAME}_finish): Rewrite.
184 (real_func): New var.
185 (ppc_for_each_input_file_wrapper): New function.
186 (ppc_lang_for_each_input_file): New function.
187 (lang_for_each_input_file): Define.
188 (PARSE_AND_LIST_PROLOGUE): Define.
189 (PARSE_AND_LIST_LONGOPTS): Define.
190 (PARSE_AND_LIST_OPTIONS): Define.
191 (PARSE_AND_LIST_ARGS_CASES): Define.
192 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
194 2002-04-30 Tom Rix <trix@redhat.com>
196 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
197 -blibpath, -bnolibpath support.
199 2002-04-30 Mark Mitchell <mark@codesourcery.com>
201 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
202 (eelf32ppcwindiss.c): New target.
203 * Makefile.in: Regenerated.
204 * configure.tgt: Add support for powerpc-*-windiss.
205 * emulparams/elf32ppcwindiss.sh: New file.
207 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
209 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
210 * ldexp.c (exp_print_token): Add "infix_p" argument.
211 (exp_print_tree): Update accordingly.
213 2002-04-28 Alan Modra <amodra@bigpond.net.au>
215 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
216 * Makefile.in: Regenerate.
217 * mpw-elfmips.c: Delete.
218 * mpw-eppcmac.c: Delete.
220 * mpw-idtmips.c: Delete.
222 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
224 * emulparams/shelf32.sh (MACHINE): Now sh5.
226 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
228 * ldgram.y: Fix syntax warning.
230 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
232 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
233 to prevent "-n" from being taken as an abbreviation for
234 "--no-pipeline-knowledge".
236 2002-04-08 Alan Modra <amodra@bigpond.net.au>
238 * ldlang.c (lang_size_sections_1): Don't complain about
239 SEC_NEVER_LOAD sections having no memory region specified.
241 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
243 2002-04-07 matthew green <mrg@redhat.com>
245 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
247 2002-04-04 Alan Modra <amodra@bigpond.net.au>
249 * dep-in.sed: Cope with absolute paths.
250 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
252 * Makefile.in: Regenerate.
254 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
256 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
258 2002-04-03 Jakub Jelinek <jakub@redhat.com>
260 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
261 is smaller than maximum, round dot up to common page boundary.
263 2002-03-28 Alan Modra <amodra@bigpond.net.au>
265 * configure.host: Set up for generic hosts first, then tweak as
266 necessary in more specific targets.
267 (HOSTING_LIBS): Include libgcc_eh.a if found.
269 2002-03-23 Andreas Jaeger <aj@suse.de>
271 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
273 2002-03-21 Alan Modra <amodra@bigpond.net.au>
275 * Makefile.am: Run "make dep-am".
276 * Makefile.in: Regenerate.
278 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
280 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
282 2002-03-20 Alan Modra <amodra@bigpond.net.au>
284 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
285 add the symbol to the linker hash table immediately.
286 (lang_place_undefineds): Split symbol creation out..
287 (insert_undefined): ..to here.
289 2002-03-18 David O'Brien <obrien@FreeBSD.org>
291 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
292 the contents of the buffer returned from basename function will are
293 getting overwritten while still being used.
295 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
296 Andreas Jaeger <aj@suse.de>
297 Andreas Schwab <schwab@suse.de>
299 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
300 * elf_x86_64.sh (ARCH): Set to i386:x86-64
301 set libraries to default to lib64 paths.
303 2002-03-18 Tom Rix <trix@redhat.com>
305 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
306 * configure.tgt : Same.
307 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
308 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
309 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
310 emulation parameters for better -b32, -b64 support.
311 * emulparms/aixrs6.sh : Same.
312 * emulparms/ppcmacos.sh : Same.
313 * emultempl/aix.em (choose_target) : Use new emulation parameters
314 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
315 * Makefile.in : Regenerate.
317 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
319 * po/fr.po: Updated version.
321 2002-03-18 Alan Modra <amodra@bigpond.net.au>
323 * ldmain.c (main): Move .text readonly flag fudges from here..
324 * ldlang.c (lang_process): ..to here.
326 2002-03-14 Alan Modra <amodra@bigpond.net.au>
328 * ldlang.c (lang_check): Remove the word size check added in last
329 change. Treat emitrelocations case as for relocatable links.
331 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
333 * po/fr.po: Updated version.
335 2002-03-13 Alan Modra <amodra@bigpond.net.au>
337 * ldlang.c (lang_check): Do relocatable link checks first, so that
338 warn_mismatch can't override. Check compatible and word size too.
340 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
342 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
344 2002-03-05 Jakub Jelinek <jakub@redhat.com>
346 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
349 2002-03-04 H.J. Lu <hjl@gnu.org>
351 * scripttempl/elf.sc: Put .preinit_array, .init_array and
352 .fini_array in the data segment.
354 2002-03-04 Alan Modra <amodra@bigpond.net.au>
356 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
358 2002-03-01 David Mosberger <davidm@hpl.hp.com>
360 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
361 .init_array, and .fini_array.
363 2002-02-20 Andreas Schwab <schwab@suse.de>
365 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
366 .IA64_unwind* in a relocatable link.
368 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
370 * NEWS: Mark 2.12 branch.
372 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
374 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
375 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
377 2002-02-18 Tom Rix <trix@redhat.com>
379 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
380 (gld*_before_allocation): Same.
381 (gld*_create_output_section_statements): Generate
382 __rtinit if run time linking. Add librtl.a to the link.
383 (gld*_read_file): Clean.
385 2002-02-18 Alan Modra <amodra@bigpond.net.au>
387 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
389 2002-02-18 David O'Brien <obrien@FreeBSD.org>
391 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
392 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
393 and eelf64alpha_fbsd.
394 * Makefile.in: Regenerate.
395 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
396 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
397 use a FreeBSD-specific emulation rather than the psABI one.
398 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
399 for all FreeBSD ELF systems.
400 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
402 * emulparams/elf32ppc_fbsd.sh: Likewise.
403 * emulparams/elf64_ia64_fbsd.sh: Likewise.
404 * emulparams/elf64_sparc_fbsd.sh: Likewise.
405 * emulparams/elf64alpha_fbsd.sh: Likewise.
406 * emulparams/elf_i386_fbsd.sh: Likewise.
407 * emulparams/elf_x86_64_fbsd.sh: Likewise.
409 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
411 * po/tr.po: Updated version.
413 2002-02-18 Alan Modra <amodra@bigpond.net.au>
415 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
418 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
420 * emultempl/mmo.em (mmo_after_open): Don't call
421 _bfd_mmix_check_all_relocs when producing ELF output.
423 2002-02-15 Richard Henderson <rth@redhat.com>
425 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
426 definition. Emit a unop+nop pair.
428 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
430 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
431 for presence of .MMIX.reg_contents.linker_allocated before early
434 * NEWS: Mention support for MMIX.
436 2002-02-15 Alan Modra <amodra@bigpond.net.au>
438 Support arbitrary length fill patterns.
439 * ld.texinfo (Output Section Fill): Describe fill expressions.
440 (FILL): Refer to the above.
441 * ldexp.h (etree_value_type): Add "str" field.
442 (union etree_union): Add "str" to "value" struct.
443 (exp_bigintop): Declare.
444 (exp_get_fill): Declare.
445 * ldexp.c: Include "safe-ctype.h".
446 (exp_intop): Set value.str to NULL.
447 (exp_bigintop): New function.
448 (new_rel): Pass in "str", and set new.str from it.
449 (new_rel_from_section): Set new.str to NULL.
450 (fold_name): Adjust calls to new_rel.
451 (exp_fold_tree): Likewise.
452 (exp_get_fill): New function.
453 * ldgram.y (struct big_int bigint, fill_type *fill): New.
454 (INT): Returns a "bigint". Adjust all code handling INTs.
455 (fill_opt): Returns a "fill".
456 (fill_exp): Split out of fill_opt, use for FILL.
457 * ldlang.h (struct _fill_type): New.
458 (fill_type): Move typedef to ldexp.h.
459 (lang_output_section_statement_type): "fill" is now a pointer.
460 (lang_fill_statement_type): Likewise.
461 (lang_padding_statement_type): Likewise.
462 (lang_add_fill): Now takes a "fill_type *" param.
463 (lang_leave_output_section_statement): Likewise.
464 (lang_do_assignments): Likewise.
465 (lang_size_sections): Likewise.
466 (lang_leave_overlay_section): Likewise.
467 (lang_leave_overlay): Likewise.
468 * ldlang.c: Include ldgram.h after ldexp.h.
469 (lang_output_section_statement_lookup): Adjust for fill_type change.
470 (print_fill_statement): Likewise.
471 (print_padding_statement): Likewise.
472 (insert_pad): Now takes a "fill_type *" arg.
473 (size_input_section): Likewise.
474 (lang_size_sections_1): Likewise.
475 (lang_size_sections): Likewise.
476 (lang_do_assignments): Likewise.
477 (lang_add_fill): Likewise.
478 (lang_leave_output_section_statement): Likewise.
479 (lang_leave_overlay_section): Likewise.
480 (lang_leave_overlay): Likewise.
481 Adjust all callers of the above function.
482 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
483 starting with "0X" as well as "0x". Return bigint.str for hex
484 numbers starting with "0x" or "0X", zero bigint.str otherwise.
485 Always use base 16 for numbers starting with "$".
486 * ldmain.c: Include ldgram.h after ldexp.h.
487 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
488 of bfd_fill_link_order.
489 * pe-dll.c: Adjust lang_do_assignments calls.
490 * emultempl/elf32.em: Likewise.
491 * emultempl/hppaelf.em: Likewise.
492 * emultempl/ppc64elf.em: Likewise.
493 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
494 lang_add_assignment call.
495 * emultempl/pe.em: Likewise.
497 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
499 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
500 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
501 the pattern in question is not a regexp.
502 * ldlang.c: Likewise.
503 * ldlang.h: Likewise.
504 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
506 2002-02-12 Jakub Jelinek <jakub@redhat.com>
508 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
509 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
510 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
511 * ldexp.c (exp_data_seg): New variable.
512 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
513 (fold_binary): Handle DATA_SEGMENT_ALIGN.
514 (exp_fold_tree): Handle DATA_SEGMENT_END.
515 Pass allocation_done when recursing instead of hardcoding
516 lang_allocating_phase_enum.
517 * ldexp.h (exp_data_seg): New.
518 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
519 (lang_size_sections): New.
520 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
521 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
522 if COMMONPAGESIZE is defined.
523 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
524 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
525 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
526 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
527 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
530 2002-02-11 Alan Modra <amodra@bigpond.net.au>
532 * Makefile.in: Regenerate.
534 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
536 * lexsup.c: Remove strtoul declaration.
538 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
540 * ldmain.c: Add prototype for main ().
541 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
542 * emultempl/lnk960.em (lnk960_choose_target): Function should
545 2002-02-10 Alan Modra <amodra@bigpond.net.au>
547 * ldlang.c (entry_section): New initialised variable.
548 (lang_finish): Use it.
549 * ldlang.h (entry_section): Declare.
550 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
551 entry_section to ".opd".
553 2002-02-09 Chris Demetriou <cgd@broadcom.com>
555 * ld.texinfo (Options): Add back in -nostdlib documentation,
556 which had been inadvertently removed.
558 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
560 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
561 register section vma to a sane value after emitting error. Make
562 fatal conditions cause program exit when emitting message.
564 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
566 * configure.tgt: Add or32-*-rtems target.
568 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
571 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
572 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
573 in OTHER_RELOCATABLE_SECTIONS.
574 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
575 * emulparams/shelf32.sh (STACK_ADDR): Define.
576 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
577 (OTHER_SECTIONS): this. Removed stack settings.
578 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
579 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
580 2001-03-12 DJ Delorie <dj@redhat.com>
581 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
582 relaxing if any shmedia or mixed sections are found.
583 2001-03-07 DJ Delorie <dj@redhat.com>
584 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
585 einfo. Gracefully decline to output to non-elf formats.
586 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
587 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
588 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
589 * emulparams/shelf32.sh: Ditto.
590 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
591 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
593 2001-01-10 Ben Elliston <bje@redhat.com>
594 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
595 non-portable shell constructs. From Hans-Peter Nilsson.
596 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
597 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
598 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
599 dependencies to the shell script include chain.
600 * Makefile.in: Regenerate.
601 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
602 * emultempl/sh64elf.em: Update and tweak comments.
603 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
604 make a .cranges section SEC_IN_MEMORY.
605 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
606 * emultempl/sh64elf.em
607 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
608 .cranges section found to be necessary; continue and set stored
609 section contents flags for sections with non-mixed contents.
610 Use a struct sh64_section_data container and sh64_elf_section_data
611 to store contents-type flags.
612 Remove unused update of "isec".
613 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
614 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
615 access contents-type flags. Assert that the associated container
616 is initialized. Use that container, not elf_gp_size, to hold size
617 of linker-generated cranges contents.
618 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
619 * emultempl/sh64elf.em
620 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
621 there's already a .cranges section. When section flag difference
622 is found, don't NULL-check cranges a second time. Tweak comments.
623 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
624 merging, not max size, as size of ld-generated .cranges contents.
625 Don't set ELF section flags in output section. When checking for
626 needed .cranges descriptors, don't use a variable; compare
627 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
629 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
630 * emultempl/sh64elf.em: New file.
631 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
632 * Makefile.in: Regenerate.
633 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
634 (OTHER_RELOCATING_SECTIONS): Ditto.
635 (EXTRA_EM_FILE): New, set to sh64elf if not set.
636 * emulparams/shlelf32.sh: Stub out all settings except
637 OUTPUT_FORMAT. Source shelf32.sh.
638 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
639 OTHER_RELOCATING_SECTIONS.
640 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
641 * emulparams/shlelf64.sh: Stub out all settings except
642 OUTPUT_FORMAT. Source shelf64.sh.
643 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
644 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
646 (DATA_START_SYMBOLS): Define, provide ___data.
647 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
648 for consecutive .data section.
649 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
650 section after .data section.
651 * emulparams/shlelf64.sh: Ditto.
652 * emulparams/shelf32.sh: Ditto.
653 (ALIGNMENT): Define to 8.
654 * emulparams/shelf32.sh: Ditto.
655 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
656 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
657 built-in linker scripts.
658 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
659 * emulparams/shlelf64.sh: New.
660 * emulparams/shelf64.sh: New.
661 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
663 * Makefile.am: Add support for shlelf64 and shelf64.
664 * Makefile.in: Regenerate.
665 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
666 * configure.tgt (sh64-*-elf*): Add shelf as default.
667 Add shlelf to targ_extra_emuls.
668 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
669 * emulparams/shelf32.sh: New file.
670 * emulparams/shlelf32.sh: New file.
671 * Makefile.am: Add support for shlelf32 and shelf32.
672 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
673 * Makefile.in: Regenerate.
675 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
677 * ldlang.c (lang_reset_memory_regions): Rename from
678 reset_memory_regions. Change all callers. Make public.
679 * ldlang.h (lang_reset_memory_regions): Prototype.
680 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
681 lang_reset_memory_regions before lang_size_sections.
682 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
683 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
685 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
687 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
688 arithmetic when checking for too many global registers.
690 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
692 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
693 (ehppanbsd.c): New rule.
694 * Makefile.in: Regenerate.
695 * configure.tgt (hppa*-*-netbsd*): New target.
696 * emulparams/hppalinux.sh: Add comment to check other files
697 that source this file it is modified, and list which
699 * emulparams/hppanbsd.sh: New file.
701 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
703 * scripttempl/xstormy16.sc: Don't allocate extra space for the
706 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
708 Support on-demand global register allocation from
709 R_MMIX_BASE_PLUS_OFFSET relocs.
710 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
711 mmix_set_reg_section_vma. Call
712 _bfd_mmix_finalize_linker_allocated_gregs.
713 (mmix_before_allocation): New function.
714 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
715 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
716 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
717 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
718 before .MMIX.reg_contents.
719 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
720 (mmo_after_open): New function.
721 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
722 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
723 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
725 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
727 * emulparams/or32.sh: New file.
728 * emulparams/or32elf.sh: New file.
729 * scripttempl/or32.sc: New file.
730 * configure.tgt : Add support for or32.
731 * configure: Regenerate
732 * Makefile.am: Add support for or32.
733 * Makefile.in: Regenerate.
734 * NEWS: Mention support for or32.
735 * po/ld.pot: Regenerate.
737 2002-01-29 Chris Demetriou <cgd@broadcom.com>
738 Mitch Lichtenberg <mpl@broadcom.com>
740 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
741 * emultempl/mipself.em: New file to handle MIPS ELF embedded
742 reloc creation (ld --embedded-relocs).
744 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
746 * configure: Regenerated.
748 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
750 * Makefile.am (install): Depend on install-info.
751 * Makefile.in: Regenerate.
753 2002-01-26 Christian Rose <menthos@menthos.com>
755 * ldmain.c (main): Use full sentences to ease translation.
757 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
759 * po/fr.po: Updated version.
761 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
763 * po/es.po: Updated version.
765 2002-01-25 Andreas Jaeger <aj@suse.de>
767 * ldlex.l (yy_input): Correct error check.
769 2002-01-25 Alan Modra <amodra@bigpond.net.au>
771 * ldmisc.c (demangle): Put back dots when string not demangled.
773 2002-01-22 Richard Henderson <rth@redhat.com>
775 * emulparams/elf64alpha.sh (NOP): Use unop.
777 2002-01-21 Andreas Jaeger <aj@suse.de>
779 * ldlex.l: Use fread instead of read.
781 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
783 * configure.tgt (ia64-*-netbsd*): New target.
785 2002-01-21 H.J. Lu <hjl@gnu.org>
787 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
789 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
791 2002-01-18 Andreas Jaeger <aj@suse.de>
793 * ldver.c (ldversion): Update year.
795 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
797 * po/ld.pot: Regenerate.
799 2002-01-16 Alan Modra <amodra@bigpond.net.au>
801 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
802 * Makefile.in: Regenerate.
803 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
804 * emultempl/ppc64elf.em: New file.
806 2002-01-15 DJ Delorie <dj@redhat.com>
808 * scripttempl/pe.sc: Add support for constructor priorities.
810 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
812 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
813 * emulparams/avr23xx.sh: Likewise.
814 * emulparams/avr4433.sh: Likewise.
815 * emulparams/avr44x4.sh: Likewise.
816 * emulparams/avr85xx.sh: Likewise.
817 * emulparams/avrmega103.sh: Likewise.
818 * emulparams/avrmega161.sh: Likewise.
819 * emulparams/avrmega603.sh: Likewise.
820 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
822 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
824 * ldlang.c (walk_wild_section): Exclude object file if enclosing
827 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
829 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
830 (eshelf_nbsd.c): New rule.
831 (eshlelf_nbsd.c): New rule.
832 * Makefile.in: Regenerate.
833 * configure.tgt (sh*le-*-netbsdelf*): New target.
834 (sh*-*-netbsdelf*): New target.
835 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
836 * ld/emulparams/shelf_nbsd.sh: New emulation.
837 * ld/emulparams/shlelf_nbsd.sh: New emulation.
839 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
841 * po/es.po: New file: Spanish translation.
842 * configure.in (ALL_LINGUAS): Add es.
843 * configure: Regenerate.
845 2002-01-06 John Marshall <jmarshall@acm.org>
847 * ld.texinfo: Note that --emit-relocs is currently only
850 2002-01-05 Alan Modra <amodra@bigpond.net.au>
852 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
853 of bfd_section_list_remove and bfd_section_list_insert macros.
854 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
855 * emultempl/mmo.em (mmo_place_orphan): Likewise.
857 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
859 * configure.tgt (x86_64-*-netbsd*): New target.
861 2001-12-21 Tom Rix <trix@redhat.com>
863 (gld*_create_output_section_statements): New function.
864 For -binitfini support.
865 * emultempl/aix.em (gld*_before_parse): Fix comment.
866 * emultempl/aix.em (gld*_parse_args): Fix comment.
868 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
870 * configure.tgt (mips*-dec-netbsd*): Delete alias for
872 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
874 * configure.tgt (arm-*-netbsdelf*): Add target.
875 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
876 * emulparams/armelf_nbsd.sh: Added.
877 * Makefile.am: Add rules for earmelf_nbsd.
878 * Makefile.in: Regenerate.
880 2001-12-19 Andreas Jaeger <aj@suse.de>,
881 Susanne Oberhauser <froh@suse.de>
883 * configure.host: Add rules for x86_64-*linux-gnu. Change
884 s390x-linux entry to use gcc to report configuration, replace gcc
885 with $CC in s390-linux
887 2001-12-19 Andreas Jaeger <aj@suse.de>
889 * ld.texinfo (VERSION): Fix markup.
891 2001-12-18 matthew green <mrg@eterna.com.au>
893 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
894 (m68kelfnbsd.c): New rule.
895 * Makefile.in: Regenerate.
896 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
897 (m68*-*-netbsd*4k*): .. this.
898 (m68*-*-netbsdelf*): New target.
899 (m68*-*-netbsd*): Also include ELF support.
900 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
901 * emulparams/m68kelfnbsd.sh: New emulation.
903 2001-12-18 Jakub Jelinek <jakub@redhat.com>
905 * ldgram.y (vers_node): Support anonymous version tags.
906 * ldlang.c (lang_register_vers_node): Ensure anonymous version
907 tag is not defined together with non-anonymous versions.
908 * ld.texinfo: Document it.
910 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
912 * po/tr.po: New file: Turkish translation.
913 * configure.in (ALL_LINGUAS): Add tr.
914 * configure: Regenerate.
916 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
918 * Makefile.am: Add rules for eelf64alpha_nbsd.
919 * Makefile.in: Regenerate.
920 * configure.tgt (alpha*-*-netbsd*): Set
921 targ_emul to elf64alpha_nbsd.
922 * emulparams/elf64alpha_nbsd.sh: Added.
924 2001-12-17 Alan Modra <amodra@bigpond.net.au>
926 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
927 section_tail when fiddling with section list.
928 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
929 broken into separate strings to make translation easier.
930 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
931 fiddling with section list.
932 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
934 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
936 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
938 2001-12-15 Alan Modra <amodra@bigpond.net.au>
940 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
942 2001-12-13 Jakub Jelinek <jakub@redhat.com>
944 * emultempl/elf32.em (finish): Supply output_bfd
945 to bfd_elf*_discard_info.
946 (OPTION_EH_FRAME_HDR): Define.
947 (longopts): Add --eh-frame-hdr.
948 (parse_args): Handle it.
949 (list_options): Add --eh-frame-hdr to help.
950 * emultempl/hppaelf.em (finish): Supply output_bfd
951 to bfd_elf*_discard_info.
952 * scripttempl/elf.sc (.eh_frame_hdr): Add.
954 2001-12-13 Alan Modra <amodra@bigpond.net.au>
956 * lexsup.c (parse_args): Don't pass shortopts to second call to
957 getopt functions. Restore optind rather than decrementing before
958 second call. Remove errind as it now duplicates last_optind.
960 2001-12-11 Christopher Faylor <cgf@redhat.com>
962 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
964 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
965 Richard Henderson <rth@redhat.com>
967 * Makefile.am: Add support for xstormy16.
968 * configure.tgt: Add support for xstormy16.
969 * Makefile.in: Regenerate.
970 * emulparams/elf32xstormy16.sh: New file.
971 * scripttempl/xstormy16.sc: New file.
973 2001-10-01 Christopher Faylor <cgf@cygnus.com>
975 * Makefile.in (LIB_PATH): Make configurable.
976 (GENSCRIPTS): Set LIB_PATH in environment.
977 * configure.in: Substitute LIB_PATH.
978 * configure: Regenerate.
979 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
980 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
982 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
984 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
985 describing the -N option so that it is easier to translate into
988 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
990 * emultempl/pe.em (..._list_options): Replace multiple fprintf
991 statements describing a single option with a single, newline
992 escaped fprintf. This allows better translation into other
995 * ldmain.c (add_archive_element): Combine multiple strings
996 into a single string to permit better translation into other
999 2001-12-05 Tom Rix <trix@redhat.com>
1001 * Makefile.am: Remove eaixppc64.
1002 * Makefile.in: Regenerate.
1004 2001-12-04 Tom Rix <trix@redhat.com>
1006 * emultempl/aix.em (choose_target): Change default target to
1007 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1009 (gld*_read_file): Fix typo.
1010 (change_symbol_mode): Add prototype.
1013 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1014 * emulparams/aixrs6.sh : Same.
1015 * emulparams/ppcmacos.sh : Same.
1016 * emulparams/aixppc64.sh : Delete file.
1017 * emultempl/aix.em : Formatting changes.
1019 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1021 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1022 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1024 (OTHER_END_SYMBOLS): Fix formatting.
1025 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1026 (OTHER_END_SYMBOLS): Fix formatting.
1028 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1030 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1032 2001-12-02 Tom Rix <trix@redhat.com>
1034 * configure.tgt : Remove eaixppc64 emulations.
1035 * Makefile.in : Remove eaixppc64.c
1036 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1037 (ldemul_default_target): Same.
1038 * emultempl/gld960.em (gld960_choose_target): Same.
1039 * emultempl/gld960c.em (gld960_choose_target): Same.
1040 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1041 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1042 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1043 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1044 * emultempl/aix.em (choose_target): New function. Handle emulation of
1047 2001-11-27 H.J. Lu <hjl@gnu.org>
1049 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1050 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1051 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1052 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1053 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1054 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1055 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1056 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1058 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1061 (REL_SDATA): Likewise.
1062 (REL_SBSS): Likewise.
1063 (REL_SDATA2): Likewise.
1064 (REL_SBSS2): Likewise.
1065 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1068 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1070 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1072 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1074 2001-11-22 H.J. Lu <hjl@gnu.org>
1076 * Makefile.in: Regenerated with automake based on automake
1077 1.4-8 in RedHat 7.1.
1079 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1081 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1082 (config.status): Delete rule.
1083 Add extra dependencies to cover sourced emulparams files.
1084 * Makefile.in: Regenerate.
1086 * scripttempl/elf.sc: Order <section>, <section>.* and
1087 corresponding linkonce sections as seen in input files.
1088 Formatting fixes. Zero vma of all sections if not relocating.
1089 (STACK): Define and insert if STACK_ADDR defined.
1090 (OTHER_RELOCATING_SECTIONS): Delete.
1091 (OTHER_END_SYMBOLS): Define.
1092 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1093 (OTHER_READWRITE_SECTIONS): Likewise.
1094 (OTHER_GOT_SECTIONS): Likewise.
1095 (OTHER_SDATA_SECTIONS): Likewise.
1096 (OTHER_BSS_SECTIONS): Likewise.
1097 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1098 (OTHER_READWRITE_SECTIONS): Likewise.
1099 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1100 (OTHER_READWRITE_SECTIONS): Likewise
1102 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1103 (STACK_ADDR): Define.
1104 * emulparams/armelf_oabi.sh: As for armelf.sh.
1105 * emulparams/elf32mcore.sh: As for armelf.sh.
1106 * emulparams/h8300elf.sh: As for armelf.sh.
1107 * emulparams/mn10200.sh: As for armelf.sh.
1108 * emulparams/shelf.sh: As for armelf.sh.
1110 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1111 (OTHER_END_SYMBOLS): Define.
1112 * emulparams/m32relf.sh: As for elf32fr30.sh.
1113 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1114 * emulparams/h8300self.sh: As for elf32fr30.sh.
1116 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1117 defines with RELOCATING test.
1118 (OTHER_SDATA_SECTIONS): Likewise.
1119 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1120 (OTHER_END_SYMBOLS): ..this.
1121 * emulparams/crislinux.sh: As for criself.sh.
1123 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1125 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1126 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1127 normal and linkonce sections as seen in input files.
1128 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1129 (TEXT_DYNAMIC): Likewise.
1130 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1131 (OTHER_SDATA_SECTIONS): Likewise.
1132 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1133 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1134 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1135 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1136 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1137 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1138 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1139 sections as seen in input files.
1140 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1141 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1143 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1144 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1145 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1146 (OTHER_SECTIONS): Instead, use this..
1147 (OTHER_END_SYMBOLS): ..and this.
1149 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1150 * emulparams/elf32bsmip.sh: Likewise.
1151 * emulparams/elf32btsmip.sh: Likewise.
1152 * emulparams/elf32ebmip.sh: Likewise.
1153 * emulparams/elf32lmip.sh: Likewise.
1154 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1155 * emulparams/elf32lsmip.sh: Likewise.
1156 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1157 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1158 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1159 * emulparams/elf64btsmip.sh: Likewise.
1160 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1161 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1162 * emulparams/elf32ppclinux.sh: Likewise.
1163 * emulparams/elf32ppcsim.sh: Likewise.
1164 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1165 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1166 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1167 * emulparams/h8300self.sh: Likewise.
1168 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1169 * emulparams/sh.sh: Comment.
1170 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1171 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1172 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1174 2001-11-21 David Heine <dlheine@tensilica.com>
1175 Alan Modra <amodra@bigpond.net.au>
1177 * ldlang.c (map_input_to_output_sections): Replace "break"
1178 accidentally removed with 2001-08-03 change.
1179 (lang_gc_sections_1): Likewise.
1181 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1183 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1185 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1187 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1188 of false when calling lang_size_sections.
1189 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1191 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1193 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1194 function when LDEMUL_FINISH isn't set to the same name. Don't
1195 call ${LDEMUL_FINISH}.
1196 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1197 * emultempl/armelf.em (arm_elf_finish): Call
1198 gld${EMULATION_NAME}_finish.
1199 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1200 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1201 hppaelf_layout_sections_again if necessary.
1202 (need_laying_out): New var.
1203 (hppaelf_layaout_sections_again): Rename to
1204 hppaelf_layout_sections_again. Clear need_laying_out.
1205 (PARSE_AND_LIST_OPTIONS): Format text.
1207 2001-11-14 H.J. Lu <hjl@gnu.org>
1209 * emultempl/armelf.em (arm_elf_finish): Renamed from
1210 gld${EMULATION_NAME}_finish.
1211 (LDEMUL_FINISH): Set to arm_elf_finish.
1213 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1215 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1216 (struct ld_emulation_xfer_struct): Use it.
1218 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1220 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1221 additional symbols referenced by newer crt0.o files from HP.
1223 2001-11-12 Anthony Green <green@redhat.com>
1225 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1227 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1229 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1230 * Makefile.in: Regenerate.
1232 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1234 * ld.texinfo: Use @command for commands, @option for options.
1235 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1237 * Makefile.in: Rebuild.
1239 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1241 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1242 Add support for targets.
1244 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1246 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1247 * configure: Regernate.
1248 * po/fr.po: New file.
1249 * po/sv.po: New file.
1251 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1253 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1254 as little endian default and to support big endian.
1256 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1258 * ld.texinfo (Options): Document new option, -nostdlib.
1259 * lexsup.c (OPTION_NOSTDLIB): New definition.
1260 (ld_options): Add entry for "nostdlib".
1261 (parse_args): Handle OPTIONS_NOSTDLIB.
1262 * ldfile.c (ldfile_add_library_path): Don't add directories
1263 to the search path if they weren't specified on the command line
1264 and -nostdlib was specified.
1265 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1267 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1269 * lexsup.c (parse_args): Prevent infinite parsing loop when
1270 "-rpath.a" is specified on the command line.
1271 Replace calls to fprintf with calls to einfo.
1273 2001-10-31 John Marshall <jmarshall@acm.org>
1275 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1276 appear only once across all the linker scripts involved in a link
1277 invocation no longer applies. Make the documentation reflect
1280 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1282 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1284 (sh-*-linux*): Added targ_extra_libpath.
1286 2001-10-31 David Heine <dlheine@tensilica.com>
1288 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1289 for padding statements.
1291 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1293 * configure.tgt (mmix-*-*): New target.
1294 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1295 Add dependencies to match.
1296 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1297 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1298 scripttempl/mmo.sc: New files.
1299 * gen-doc.texi: @set MMIX.
1300 * ld.texinfo: Ditto.
1301 [MMIX] Add MMIX node.
1302 * Makefile.in: Regenerate.
1304 2001-10-29 Kazu Hirata <kazu@hxi.com>
1306 * ldlang.c: Fix a comment typo.
1308 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1310 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1311 entries, and match *-*-linux*.
1313 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1315 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1316 with ldlex_script, ldlex_popstate.
1317 (ifile_p1): Likewise.
1318 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1320 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1321 to 1. Don't BEGIN(SCRIPT).
1322 (lex_redirect): Similarly.
1323 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1325 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1327 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1328 __EH_FRAME_END__ and accept eh frames into data section.
1329 Add ctor and dtor sections.
1331 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1333 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1334 (auto-export): Fix indentation.
1336 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1338 * pe-dll.c (autofilter_objectlist): Add startup objects
1340 (auto-export): Constify char * p.
1341 Extract file basename and use strcmp rather than ststr
1344 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1346 * ldmain.c (get_emulation): Improve comment about the handling
1349 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1351 * po/POTFILES.in: Regenerate.
1353 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1355 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1356 -z nocopyreloc and -z nocombreloc usage strings.
1358 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1360 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1363 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1365 * scripttempl/armaout.sc: Place .bss section after end of aligned
1366 data section to match behaviour of aout code in constructrion of
1369 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1371 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1372 startup files for mingw32 dlls to list.
1374 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1376 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1378 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1380 * configure.tgt (targ): Add arm9e-*-elf.
1382 2001-10-05 H.J. Lu <hjl@gnu.org>
1384 * genscripts.sh: Fix a typo in the last change.
1386 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1388 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1389 -z nocombreloc in usage.
1391 2001-10-03 Jim Blandy <jimb@redhat.com>
1393 * genscripts.sh: Include a comment at the top of each generated
1394 script, explaining its purpose.
1396 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1398 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1399 * NEWS: Mention -z nocopyreloc.
1400 * ld.texinfo (Options): Describe nocopyreloc.
1402 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1404 * configure: Regenerate.
1406 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1408 * ldver.h (ld_program_version): Remove declaration.
1409 * lexsup.c (parse_args): Move printing of copyright message..
1410 * ldver.c (ldversion): .. to here.
1411 Use BFD_VERSION_STRING in place of BFD_VERSION.
1412 (ld_program_version): Remove.
1413 * Makefile.am (Makefile): Depend on bfd/configure.in.
1415 * Makefile.in: Regenerate.
1417 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1419 * Makefile.am: Update dependencies with "make dep-am".
1420 * Makefile.in: Regenerate.
1422 2001-09-29 John Reiser <jreiser@BitWagon.com>
1424 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1425 * lexsup.c: Add --no-define-common commandline option.
1426 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1427 * ldlex.l: Likewise.
1428 * ld.h: Add command_line.inhibit_common_definition.
1429 * ldmain.c (main): Initialize.
1430 * ld.texinfo: Document.
1432 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1434 * ldmisc.c (USE_STDARG): Remove.
1435 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1440 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1441 declarations. Update copyright.
1443 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1445 * pe-dll.c: Remove obsoleted declaration of
1446 pe_get_data_import_dll_name.
1447 (pe_create_import_fixup): Fix thinko.
1449 * ld.texinfo(enable-auto-import): Clarify the explanation.
1451 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1453 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1454 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1455 DLL_SUPPORT controlled code.
1457 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1459 * emultempl/pe.em(pe_data_import_dll): Make static.
1460 (pe_get_data_import_dll_name): New accessor function.
1461 * pe-dll.c(pe_create_import_fixup): call
1462 pe_get_data_import_dll_name() from pe.em, instead of
1463 directly accessing pe_data_import_dll variable from pe.em.
1465 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1467 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1468 (def_file_add_directive): Use ISSPACE instead of isspace.
1469 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1470 isdigit/isxdigit/isalpha/isalnum.
1471 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1472 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1473 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1474 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1476 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1477 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1479 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1480 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1481 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1482 (ctor_prio): Use ISDIGIT instead of isdigit.
1483 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1484 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1485 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1487 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1488 (stricpy): Use TOLOWER instead of isupper/tolower.
1489 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1490 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1491 (lex_warn_invalid): Use ISPRINT instead of isprint.
1492 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1493 (main): For gettext, also set the LC_CTYPE locate facet.
1494 (add_keepsyms_file): Use ISSPACE instead of isspace.
1495 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1496 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1497 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1498 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1499 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1500 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1501 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1502 (quoteput): Use ISSPACE instead of isspace.
1503 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1506 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1508 * deffilep.y (def_stash_module): Constify "name" param.
1510 * pe-dll.c: Replace CONST with const throughout.
1511 (quick_symbol): Constify "n1", "n2", "n3" params.
1512 (make_singleton_name_thunk): Constify "import" param. Make
1513 "buffer_len" a size_t.
1514 (make_import_fixup_entry): Constify "name", "fixup_name",
1515 "dll_symname" params.
1516 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1517 (pe_get32): Likewise.
1518 (pe_implied_import_dll): Likewise.
1520 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1521 (sort_by_section_name): Likewise.
1523 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1524 (make_import_fixup): Cast printf arg, rel->address to long rather
1526 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1528 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1530 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1531 defines BufferSize. Increase buffer size by one.
1533 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1535 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1537 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1539 * configure.tgt: Add arm-openbsd target.
1541 2001-09-12 H.J. Lu <hjl@gnu.org>
1543 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1545 (ALL_64_EMULATIONS): Here.
1546 * Makefile.in: Regenerated.
1548 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1550 * emultempl/pe.em(make_import_fixup): change signature to
1551 take asection as well as arelec; we need this for proper
1552 error reporting. Only call pe_create_import_fixup() if
1553 there is no attempt to add a constant addend to the reloc;
1554 otherwise, report error condition.
1555 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1556 since final argument is a pointer to make_import_fixup().
1557 Change call to cb() to match make_import_fixup() signature.
1558 (make_import_fixup_mark): make buffer_len unsigned.
1559 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1561 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1563 * ld.texinfo: add verbose documentation for auto-import
1564 direct-addressing workaround, to compliment the terse
1567 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1569 * scripttempl/v850.sc: Add gcc_except_table sections.
1571 2001-09-11 Jeffrey A Law (law@cygnus.com)
1573 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1574 * emulparams/h8300self.sh: Similarly.
1576 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1578 * ld.texinfo (Options, --stack): Correct default value for stack
1581 2001-09-05 Tom Rix <trix@redhat.com>
1583 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1585 2001-09-03 Andreas Jaeger <aj@suse.de>
1587 * emultempl/beos.em: Declare prototypes for comparions functions,
1590 2001-09-02 Andreas Jaeger <aj@suse.de>
1592 * emultempl/aix.em: Add missing prototype.
1593 * emultempl/lnk960.em: Likewise.
1594 * emultempl/vanilla.em: Likewise.
1595 * emultempl/armcoff.em: Likewise.
1596 * emultempl/armelf_oabi.em: Likewise.
1597 * emultempl/beos.em: Likewise.
1598 * emultempl/gld960c.em: Likewise.
1599 * emultempl/gld960.em: Likewise.
1601 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1602 for prototype declaration.
1604 2001-08-31 Eric Christopher <echristo@redhat.com>
1605 Jason Eckhardt <jle@redhat.com>
1607 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1609 2001-08-31 Andreas Jaeger <aj@suse.de>
1611 * emultempl/pe.em: Add missing prototypes.
1612 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1613 pe_find_data_imports.
1614 (pr_sym): Add unused attribute.
1616 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1618 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1619 default from coff to elf.
1621 2001-08-29 Jeff Law <law@redhat.com>
1623 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1625 * emulparams/h8300self.sh: Similarly.
1627 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1629 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1631 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1632 * configure.tgt (h8300-*-elf*): New case.
1633 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1634 * emulparams/h8300self.sh: New file.
1635 * Makefile.in: Regenerated.
1637 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1639 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1642 2001-08-27 Linus Nordberg <linus@swox.com>
1643 Alan Modra <amodra@bigpond.net.au>
1645 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1646 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1648 * Makefile.in: Regenerate.
1649 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1650 entries to correct alphabetical position.
1651 * emulparams/elf64ppc.sh: New.
1652 * emulparams/elf64lppc.sh: New.
1654 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1656 * ldmain.c (main): Declare BSIZE as static.
1658 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1660 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1661 into .rel.dyn resp. .rela.dyn if combreloc.
1662 (get_script): If .x linker script is equal to .xn, only put it
1663 once into the binary.
1664 Add .xc and .xsc scripts.
1665 (parse_args): Handle -z combreloc and -z nocombreloc.
1666 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1667 For .xc and .xsc scripts put all .rel* or .rela* input sections
1668 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1669 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1671 Strip trailing whitespace from script.
1672 Generate .xc and .xsc scripts if requested.
1673 * ldmain.c (main): Initialize link_info.combreloc and
1674 link_info.spare_dynamic_tags.
1675 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1676 (ld_options): Add --spare-dynamic-tags option.
1677 (parse_args): Likewise.
1678 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1679 * ldint.texinfo: Document .xc and .xsc linker scripts.
1680 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1682 2001-08-22 H.J. Lu <hjl@gnu.org>
1684 * emulparams/elf32fr30.sh: Add a newline.
1686 2001-08-21 Andreas Jaeger <aj@suse.de>
1688 * deffilep.y: Add missing prototypes.
1689 * pe-dll.c: Likewise.
1691 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1693 * ldlang.c (insert_pad): Fix typos in last patch.
1695 * ldlang.c: When traversing lang_statement_union_type lists,
1696 consistently use "header.next" rather than "next".
1697 * mpw-eppcmac.c: Likewise.
1698 * emultempl/beos.em: Likewise.
1699 * emultempl/hppaelf.em: Likewise.
1700 * emultempl/pe.em: Likewise.
1701 * ldlang.h (union lang_statement_union): Remove "next" field.
1703 * ldlang.c (insert_pad): Use offsetof macro.
1704 (lang_size_sections): Always neuter padding statements.
1705 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1707 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1708 passed to lang_size_sections.
1709 (pe_exe_fill_sections): Likewise.
1710 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1711 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1713 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1715 * emultempl/aix.em: Formatting fixes.
1717 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1719 * ldlang.c (insert_pad): Make use of an existing pad statement if
1720 available. Move code calculating alignment, adjusting section
1721 alignment power, and adjusting dot to ..
1722 (size_input_section): .. here. Remove unused relax param.
1723 (lang_size_sections): Change boolean `relax' param to boolean *.
1724 Adjust call to size_input_section. Make use of insert_pad to
1725 place pad after the assignment statement. If relaxing, zap
1727 (reset_memory_regions): Reset output_bfd section sizes too.
1728 (relax_again): Move to..
1729 (lang_process): ..here. Adjust call to lang_size_sections, and
1730 remove duplicated code.
1731 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1733 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1735 * ld.texinfo: Document that fill values now use the four least
1737 * emulparams/elf32fr30.sh (NOP): Update.
1738 * emulparams/elf32mcore.sh: Likewise.
1739 * emulparams/elf64_s390.sh: Likewise.
1740 * emulparams/elf_i386.sh: Likewise.
1741 * emulparams/elf_i386_be.sh: Likewise.
1742 * emulparams/elf_i386_chaos.sh: Likewise.
1743 * emulparams/elf_i386_ldso.sh: Likewise.
1744 * emulparams/elf_s390.sh: Likewise.
1745 * emulparams/elf_x86_64.sh: Likewise.
1746 * emulparams/i386moss.sh: Likewise.
1747 * emulparams/i386nw.sh: Likewise.
1748 * emulparams/m68kelf.sh: Likewise.
1749 * scripttempl/elf.sc: Update NOP comment.
1750 * scripttempl/elfi370.sc: Likewise.
1751 * scripttempl/elfm68hc11.sc: Likewise.
1752 * scripttempl/elfm68hc12.sc: Likewise.
1753 * scripttempl/nw.sc: Likewise.
1755 2001-08-15 Tom Rix <trix@redhat.com>
1757 * ldgram.y (saved_script_handle): Initialize to NULL.
1758 * ldmain.c (main): Change check on saved_script_handle.
1760 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1762 * emultempl/elf32.em: Formatting fixes.
1763 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1764 looking at sec->owner.
1765 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1766 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1767 unused code, and reorganize orphan section placement code.
1769 * ldlang.c (wild_doit): Rename to lang_add_section.
1770 * ldlang.h: Here too.
1771 * mpw-elfmips.c: And here.
1772 * emultempl/beos.em: And here.
1773 * emultempl/elf32.em: And here.
1774 * emultempl/hppaelf.em: And here.
1775 * emultempl/pe.em: And here.
1777 2001-08-13 Richard Henderson <rth@redhat.com>
1779 * emultempl/needrelax.em: New file.
1780 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1781 * Makefile.am (eelf64_ia64.c): Depend on it.
1782 * Makefile.in: Rebuild.
1784 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1786 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1787 output_section is set non-NULL.
1789 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1790 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1791 needlessly create an output_section_statement. Treat a correctly
1792 named output_section_statement with NULL bfd_section as compatible.
1794 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1796 * emultempl/generic.em: Support EXTRA_EM_FILE.
1797 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1798 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1799 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1800 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1801 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1802 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1803 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1804 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1805 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1806 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1808 2001-08-12 Richard Henderson <rth@redhat.com>
1810 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1811 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1812 scripttempl/v850.sc: Keep .jcr data.
1814 2001-08-12 H.J. Lu <hjl@gnu.org>
1815 Andrew Haley <aph@cambridge.redhat.com>
1816 Nick Clifton <nickc@redhat.com>
1818 * ldgram.y (had_script): Change name to saved_script_handle.
1819 Change type to file handle.
1820 * ld.h (had_script): Rename and retype.
1821 * ldfile.c (ldfile_open_command_file): Save the file handle
1822 used in saved_script_handle.
1823 * lexsup.c (parse_args): Do not allow -c option to alter
1824 saved_script_handle.
1825 * ldmain.c (main): Print out the linker script used if
1826 --verbose is given. Check saved_script_handle to obtain the
1827 external linker script used, or if NULL, dump the builtin
1829 * ld.texinfo: Document that --verbose now dumps the linker
1830 script used, regardless of whether it was an internal or an
1833 2001-08-10 Andreas Jaeger <aj@suse.de>
1835 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1837 * configure: Regenerate.
1839 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1841 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1843 * scripttempl/elf.sc: Move non-text .dynamic section before
1844 .plt/.got/.sdata* group.
1845 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1846 (OTHER_SDATA_SECTIONS): Add.
1847 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1849 * emulparams/crislinux.sh: Likewise.
1850 * emulparams/elf32b4300.sh: Likewise.
1851 * emulparams/elf32bmip.sh: Likewise.
1852 * emulparams/elf32bmipn32.sh: Likewise.
1853 * emulparams/elf32bsmip.sh: Likewise.
1854 * emulparams/elf32btsmip.sh: Likewise.
1855 * emulparams/elf32ebmip.sh: Likewise.
1856 * emulparams/elf32elmip.sh: Likewise.
1857 * emulparams/elf32l4300.sh: Likewise.
1858 * emulparams/elf32lmip.sh: Likewise.
1859 * emulparams/elf32lsmip.sh: Likewise.
1860 * emulparams/elf32ltsmip.sh: Likewise.
1861 * emulparams/elf64bmip.sh: Likewise.
1862 * emulparams/elf64btsmip.sh: Likewise.
1863 * emulparams/elf64ltsmip.sh: Likewise.
1865 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1867 * genscripts.sh: Source the emulparams script before each output
1868 script is generated so that variables like `RELOCATING' may affect
1869 variables defined in the emulparams script.
1871 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1873 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1876 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1877 ie. iterate over wild_statement.section_list.
1878 (gld${EMULATION_NAME}_place_orphan): Likewise.
1880 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1882 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1883 .fini[0-4] sections used by _exit
1884 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1885 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1886 * scripttempl/elfm68hc11.sc: Likewise.
1888 2001-08-03 H.J. Lu <hjl@gnu.org>
1890 * emultempl/beos.em (init): Add the missing initialization.
1892 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1894 * ld.texinfo (Input Section Basics): Clarify ordering of output
1896 * ldlang.c (callback_t): Add wildcard_list param.
1897 (walk_wild_section): Remove "section" param. Rewrite for
1898 lang_wild_statement_type change. Remove unique_section_p test.
1899 (walk_wild_file): Remove "section" param.
1900 (walk_wild): Remove "section" and "file" params.
1901 (lang_gc_wild): Likewise.
1902 (wild): Likewise. Modify for lang_wild_statement_type change.
1903 (wild_sort): Likewise. Add "sec" param.
1904 (gc_section_callback): Likewise.
1905 (output_section_callback): Likewise. Do unique_section_p test.
1906 (map_input_to_output_sections): Modify call to wild.
1907 (lang_gc_sections_1): Likewise.
1908 (print_wild_statement): Modify for lang_wild_statement_type
1910 (lang_add_wild): Replace filename, filenames_sorted param with
1911 filespec. Replace section_name, sections_sorted,
1912 exclude_filename_list with section_list.
1913 * ldlang.h (lang_add_wild): Here too.
1914 (lang_wild_statement_type): Replace section_name, sections_sorted,
1915 and exclude_filename_list with section_list.
1916 * ldgram.y (current_file): Delete.
1917 (%union): Add wildcard_list.
1918 (file_NAME_list): Set type to wildcard_list. Build a linked list
1919 rather than calling lang_add_wild for each entry.
1920 (input_section_spec_no_keep): Call lang_add_wild here instead.
1921 * ld.h (struct wildcard_list): Declare.
1922 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1924 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1926 * ldmain.c (main): initialize link_info.pei386_auto_import
1927 * pe-dll.c: new tables for auto-export filtering
1928 (auto_export): change API, pass abfd for contextual filtering.
1929 Loop thru tables of excluded symbols instead of comparing
1932 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1934 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1935 static variable current_sec (static struct sec *). Add
1936 forward declaration for add_bfd_to_link.
1937 (process_def_file): Don't export undefined symbols. Do not
1938 export symbols starting with "_imp__". Call auto_export()
1940 (pe_walk_relocs_of_symbol): New function.
1941 (generate_reloc): add optional extra debugging
1942 (pe_dll_generate_def_file): eliminate extraneous initial blank
1944 (make_one): enlarge symtab to make room for __nm__ symbols
1945 (DATA auto-import support).
1946 (make_singleton_name_thunk): New function.
1947 (make_import_fixup_mark): New function.
1948 (make_import_fixup_entry): New function.
1949 (pe_create_import_fixup): New function.
1950 (add_bfd_to_link): Specify that 'name' argument is a CONST
1952 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1953 declare new functions pe_walk_relocs_of_symbol and
1954 pe_create_import_fixup.
1955 * emultempl/pe.em: add new options --enable-auto-import,
1956 --disable-auto-import, and --enable-extra-pe-debug.
1957 (make_import_fixup): New function.
1958 (pe_find_data_imports): New function.
1959 (pr_sym): New function.
1960 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1961 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1964 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1966 * ld.texinfo: add additional documentation for
1967 --export-all-symbols. Document --out-implib,
1968 --enable-auto-image-base, --disable-auto-image-base,
1969 --dll-search-prefix, --enable-auto-import, and
1970 --disable-auto-import.
1971 * ldint.texinfo: Add detailed documentation on auto-import
1974 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1976 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1979 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1981 * Makefile.am: Update dependencies with "make dep-am".
1982 * Makefile.in: Regenerate
1984 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1986 * ldcref.c (check_section_sym_xref): New function.
1987 (check_nocrossrefs): Call it.
1988 (check_nocrossref): Interate over h->refs here instead of..
1989 (check_refs): ..here. Pass in the symbol name, section, and bfd
1990 rather than hash_entry pointers.
1991 (struct check_refs_info): Keep symbol name rather than hash entry.
1993 (check_reloc_refs): Tweak for above changes in check_refs_info.
1994 Only report references to section syms when symname is NULL to
1995 prevent duplicate messages for the same reloc.
1997 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1999 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2000 available. Do not print NULL trees.
2001 (exp_print_token): Print unknown tokens with values > 126 as
2002 decimal values not ASCII characters.
2004 * ldlang.c (lang_leave_overlay): If a region is specified assign
2005 it to all sections inside the overlay unless they have been
2006 assigned to the own, non-default, memory region.
2008 * README: Add header for consistency with other README files.
2010 2001-07-14 H.J. Lu <hjl@gnu.org>
2012 * emultempl/elf32.em (output_prev_sec_find): Never return
2013 bfd_abs_section_ptr, bfd_com_section_ptr nor
2014 bfd_und_section_ptr.
2016 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2018 * Makefile.am (em32relf.c): Change dependency from generic.em to
2020 * Makefile.in: Regenerate.
2022 2001-07-14 matthew green <mrg@eterna.com.au>
2024 * configure.tgt (i386-*-netbsdelf*): New target.
2025 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2027 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2029 * emultempl/elf32.em (output_prev_sec_find): New.
2030 (place_orphan): Use it.
2032 2001-07-11 H.J. Lu <hjl@gnu.org>
2034 * ldmain.c (main): Fix typos in the last change.
2036 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2038 * ldmain.c (main): Disallow -F and -f without -shared.
2040 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2042 * emultempl/pe.em (after_open): Check for the output_bfd not
2043 having any coff_data structure allocated to it.
2045 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2047 * emultempl/elf32.em: Do not assuming that contents of the buffer
2048 returned from basename function will remain unchanged accross other
2051 2001-07-03 H.J. Lu <hjl@gnu.org>
2053 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2054 2001-07-03. It creates dynamic entries even for static binaries.
2056 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2058 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2059 (DYNAMIC): Use it to reserve few dynamic entries for
2062 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2064 * emulparams/hppa64linux.sh: New file.
2065 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2066 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2067 (ehppa64linux.c): Add rule to make it.
2069 * Makefile.in: Regenerate.
2071 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2073 * ld.texinfo (Options, -r): Mention restrictions when using
2074 different object formats.
2076 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2078 * ldlang.c (lang_check): Emit fatal error if relocatable link
2079 between different object flavours with relocations in input.
2081 2001-06-19 H.J. Lu <hjl@gnu.org>
2083 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2084 (--version-script): Mention the language support.
2086 2001-06-19 H.J. Lu <hjl@gnu.org>
2088 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2090 2001-06-18 H.J. Lu <hjl@gnu.org>
2092 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2093 (diststuff): Add $(MANS).
2094 * Makefile.in: Regenerated.
2098 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2100 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2101 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2102 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2103 * ld.h (args_type): Remove member export_dynamic. All users
2104 changed to use struct bfd_link_info member.
2106 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2107 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2108 * Makefile.in: Regenerate.
2110 2001-06-18 H.J. Lu <hjl@gnu.org>
2112 * ldlang.c (init_os): Add the newline to the einfo call.
2113 (lang_check): Likewise.
2114 (lang_do_version_exports_section): Likewise.
2116 2001-06-15 H.J. Lu <hjl@gnu.org>
2118 * lexsup.c (parse_args); Save optind to report unrecognized
2121 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2123 * ldlang.c (lang_check): Emit fatal error if relocatable link
2124 between different object flavours.
2126 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2127 Set new link_info member export_dynamic.
2128 * ldmain.c (main): Initialize new link_info member export_dynamic.
2130 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2132 * ldlang.c (walk_wild): Only call walk_wild_file if
2133 lookup_name returns something.
2134 (lookup_name): If load_symbols fails, return NULL.
2135 (load_symbols): Change to a boolean function.
2136 (open_input_bfds): If load_symbols fails then do not make the
2139 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2141 * ldlang.c (record_bfd_errors): Remove.
2143 * emultempl/aix.em: Fix copyright dates.
2145 2001-06-07 Andreas Jaeger <aj@suse.de>
2147 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2148 (TEXT_START_ADDR): Likewise.
2150 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2152 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2154 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2156 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2158 2001-05-31 H.J. Lu <hjl@gnu.org>
2160 * ldlang.c (open_input_bfds): Don't change the bfd error
2161 handler whilst loading symbols.
2163 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2165 * configure.tgt: Remove i370-mvs architecture, it is not currently
2168 2001-05-25 H.J. Lu <hjl@gnu.org>
2170 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2171 like emulparams/aixppc.sh.
2173 2001-05-25 H.J. Lu <hjl@gnu.org>
2175 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2176 setting of output_filename after bfd_scan_arch.
2177 * emultempl/pe.em: Likewise.
2179 2001-05-25 H.J. Lu <hjl@gnu.org>
2181 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2182 like emulparams/aixppc.sh.
2184 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2185 instead of ${srcdir}/emultempl/stringify.sed.
2187 2001-05-25 Timothy Wall <twall@oculustech.com>
2189 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2192 2001-05-25 Alan Modra <amodra@one.net.au>
2194 * configure.host: Replace linuxoldld with linux*oldld.
2195 * configure.tgt: Likewise.
2197 2001-05-24 H.J. Lu <hjl@gnu.org>
2199 * emultempl/stringify.sed: Removed again.
2201 2001-05-24 H.J. Lu <hjl@gnu.org>
2203 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2204 (gld${EMULATION_NAME}_before_parse): Initialize
2205 ldfile_output_architecture, ldfile_output_machine and
2206 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2207 * emultempl/beos.em: Likewise.
2208 * emultempl/elf32.em: Likewise.
2209 * emultempl/linux.em: Likewise.
2210 * emultempl/mipsecoff.em: Likewise.
2211 * emultempl/pe.em: Likewise.
2212 * emultempl/sunos.em: Likewise.
2214 2001-05-24 Tom Rix <trix@redhat.com>
2216 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2217 udate import file format.
2218 (change_symbol_mode) New, same
2219 (is_syscall) New, same
2220 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2221 * emulparams/aixppc64.sh : same
2222 * emulparams/aixrs6.sh : same
2223 * emulparams/ppcmacos.sh : same
2224 * emultempl/aix.em : use strtoull to parse options
2225 * Makefile.am : add eaixppc64 emulation for xcoff64
2226 * Makefile.in : same
2227 * configure.tgt : same
2229 * scripttempl/aix.sc : default text section offset to 0x10000000
2230 default data section offset to 0x20000000
2231 add .sv3264 and .sv64 pseudo sections
2232 loader and debug sections use the currect section offset.
2234 * emultempl/aix.em : Add xcoff64 support
2235 Add -binitfini support
2236 (gld${EMULATION_NAME}_before_parse) -binitfini
2237 (gld${EMULATION_NAME}_parse_args) same
2238 (gld${EMULATION_NAME}_before_allocation) format change for special
2241 * emulparams/aixppc64.sh : New file for xcoff64 support
2243 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2245 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2246 variable to avoid non-portable shell construct.
2248 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2250 * ldmain.c (get_emulation): Add -mips5 command line argument.
2252 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2254 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2255 (ELF_INTERPRETER_NAME): Define it.
2256 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2258 * configure.tgt (targ_emul, targ_extra_emuls)
2259 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2260 as primary, elf_i386 as extra.
2261 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2262 (eelf_i386_ldso.c): New rule.
2263 * Makefile.in: Rebuilt.
2265 2001-05-22 Nick Clifton <nickc@redhat.com>
2267 * lexsup.c (ld_options): Allow -I to be an alias for
2268 --dynamic-linker. This is for Solaris compatability.
2269 * ld.texinfo: Document that -I can be used.
2272 2001-05-16 Alan Modra <amodra@one.net.au>
2274 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2275 whether an input section is the first one assigned to an output
2277 Assorted formatting fixes.
2279 2001-05-14 DJ Delorie <dj@delorie.com>
2281 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2282 * Makefile.in: Ditto.
2284 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2286 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2287 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2289 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2291 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2293 * ldlang.c (lang_process): Call bfd_merge_sections.
2295 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2297 * ldgram.y: Fix typo.
2299 2001-05-03 H.J. Lu <hjl@gnu.org>
2301 * emultempl/elf32.em: Include "libiberty.h".
2302 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2303 basename of the bfd filename.
2304 (gld${EMULATION_NAME}_stat_needed): Likewise.
2305 (gld${EMULATION_NAME}_try_needed): Likewise.
2306 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2308 2001-05-02 H.J. Lu <hjl@gnu.org>
2310 * emultempl/pe.em: Include <ctype.h>.
2312 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2314 * emulparams/elf32openrisc.sh: New file.
2316 * Makefile.am: Add OpenRISC target.
2317 * Makefile.in: Regenerated.
2319 * configure.tgt: Add openrisc-*-* mapping.
2321 2001-05-02 Nick Clifton <nickc@redhat.com>
2323 * emultempl/aix.em: Replace buystring with xstrdup.
2324 * emultempl/beos.em: Replace buystring with xstrdup.
2326 2001-05-02 H.J. Lu <hjl@gnu.org>
2328 * ldfile.c: Include "libiberty.h".
2329 * ldlex.l: Likewise.
2331 * ldmisc.c (buystring): Removed.
2332 * ldmisc.h: Likewise.
2334 * ldfile.c: Replace buystring with xstrdup.
2335 * ldlang.c: Likewise.
2336 * ldlex.l: Likewise.
2337 * ldmain.c: Likewise.
2338 * ldmisc.c: Likewise.
2339 * lexsup.c: Likewise.
2340 * mpw-eppcmac.c: Likewise.
2342 2001-04-30 Andreas Jaeger <aj@suse.de>
2344 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2346 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2348 * ldlang.c (load_symbols): Give emulation a chance
2349 to process unrecognized file before fatal error is
2350 reported, not after.
2352 2001-04-27 Sean McNeil <sean@mcneil.com>
2354 * configure.tgt: Add arm-vxworks target.
2355 * scripttempl/armcoff.sc: Support .text or .data as a section name
2359 2001-04-13 J.T. Conklin <jtc@redback.com>
2361 * ld.texinfo: Document --fatal-warnings.
2364 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2365 warnings have been turned into errors.
2366 * lexsup.c (OPTION_WARN_FATAL): Define.
2367 (ld_options): Entry for --fatal-warnings.
2368 (parse_args): Handle OPTION_WARN_FATAL.
2369 * ld.h (ld_config_type): Add fatal_warnings field.
2371 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2373 * ldmain.c (main): Default to discard_sec_merge.
2374 * lexsup.c (OPTION_DISCARD_NONE): Define.
2375 (ld_options): Add --discard-none.
2376 (parse_args): Handle OPTION_DISCARD_NONE.
2377 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2378 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2379 all its input sections match.
2381 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2383 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2384 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2385 (eelf32ltsmip.c): New target.
2386 (eelf64btsmip.c): Likewise.
2387 (eelf64ltsmip.c): Likewise.
2388 * Makefile.in: Regenerated.
2390 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2392 (mips*-*-linux-gnu*): Likewise.
2394 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2396 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2398 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2401 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2403 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2404 correct value of __Stext here.
2405 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2408 * emulparams/crislinux.sh: Remove FIXME.
2410 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2412 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2413 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2415 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2417 * configure.tgt (cris-*-*): Change default emulation to criself.
2418 (cris-*-*aout*): New rule.
2420 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2422 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2423 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2425 2001-03-26 Andreas Jaeger <aj@suse.de>
2427 * ld.texinfo (Overview): Fix syntax in texi code.
2429 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2431 * ld.texinfo: Put @c man indications to generate the ld man page.
2432 When generating man, define all the variables. Define SEEALSO
2433 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2434 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2435 (ld.1): Generate from ld.texinfo.
2436 * Makefile.in: Regenerate.
2438 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2440 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2441 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2443 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2445 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2446 is an absolute path look only for this file and not along the path.
2448 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2450 * emultempl/elf32.em (OPTION_GROUP): New macro.
2451 Add new option Bgroup to longopts.
2452 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2453 (gld*_list_options): Add -Bgroup and -z defs.
2454 * ld.1: Document -Bgroup and -z defs.
2455 * ld.texinfo: Likewise.
2457 2001-03-07 Michael Meissner <meissner@redhat.com>
2459 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2460 with sections created by -fdata-sections.
2461 (.dynbss,.bss): Ditto.
2463 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2465 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2466 after_allocation_default, not gld..._before_allocation.
2468 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2470 * configure.in (BFD_VERSION): New.
2471 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2472 * configure: Regenerate.
2473 * Makefile.am: Run "make dep-am"
2474 * Makefile.in: Regenerate.
2476 2001-02-26 Timothy Wall <twall@cygnus.com>
2478 * emulparams/elf64_aix.sh: Add additional read-only sections;
2479 uncomment lines which are now required.
2481 2001-02-26 H.J. Lu <hjl@gnu.org>
2483 * ldlang.c (open_input_bfds): Set the bfd error handler so
2484 that problems can be caught whilst loading symbols.
2485 (record_bfd_errors): New function: Report BFD errors and mark
2486 the executable output as being invalid.
2488 2001-02-22 Timothy Wall <twall@cygnus.com>
2490 * configure.host: Add configuration for ia64-*-aix*.
2491 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2492 Add dependencies for eelf64_aix.c.
2493 * Makefile.in: Regenerate.
2494 * configure.tgt: Add ia64-*-aix* mapping.
2495 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2496 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2499 2001-02-20 H.J. Lu <hjl@gnu.org>
2501 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2502 false if we found the file.
2504 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2506 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2507 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2509 2001-02-18 lars brinkhoff <lars@nocrew.org>
2511 * Makefile.am: Add PDP-11 target.
2512 * configure.tgt: Likewise.
2513 * emulparams/pdp11.sh: New file.
2515 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2517 * configure.host: Add a generic FreeBSD configuration entry such that
2518 all [modern] FreeBSD systems on all platforms will look the same.
2520 2001-02-14 H.J. Lu <hjl@gnu.org>
2522 * configure.tgt: Remove mention of earmelf_linux26.
2524 2001-02-13 Richard Henderson <rth@redhat.com>
2526 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2528 2001-02-13 H.J. Lu <hjl@gnu.org>
2530 * ldexp.h (node_type): Add etree_provided.
2531 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2532 type to etree_provided if defined by PROVIDE. Allow updating
2534 (exp_print_tree): Handle etree_provided.
2535 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2538 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2540 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2541 .IA_64.unwind.* pattern to unwind table section and
2542 .IA_64.unwind_info* pattern to unwind info section.
2544 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2546 * Makefile.am: Add linux target for S/390.
2547 * Makefile.in: Likewise.
2548 * configure.host: Likewise.
2549 * configure.tgt: Likewise.
2550 * emulparams/elf64_s390.sh: New file.
2551 * emulparams/elf_s390.sh: New file.
2553 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2555 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2557 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2559 2001-02-06 Philip Blundell <philb@gnu.org>
2561 * Makefile.am: Remove mention of earmelf_linux26.
2562 * Makefile.in: Regenerate.
2564 2001-02-04 Philip Blundell <philb@gnu.org>
2566 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2567 * emulparams/armelf_linux26.sh: Delete.
2568 * configure.tgt: Remove mention of armelf_linux26 emulation.
2570 2001-02-01 Nick Clifton <nickc@redhat.com>
2572 * ld.1: Replace occurances of -oformat with --oformat.
2574 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2576 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2577 load_base is specified.
2579 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2581 * emultempl/elf32.em: Correct spelling in comments and listed
2584 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2586 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2587 default for the first section of a group of overlay sections.
2589 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2591 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2592 * Makefile.in: Regenerate.
2593 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2594 Check for null tool_dir.
2596 2001-01-16 Jim Wilson <wilson@redhat.com>
2598 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2599 and IA_64.unwind.info.
2601 2001-01-16 H.J. Lu <hjl@gnu.org>
2603 * ldlang.c (lang_check): Merge the private data only if the
2604 input file has contents.
2606 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2608 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2610 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2611 enabling search for libmilli. On a relocatable link, make .text
2613 (LDEMUL_AFTER_PARSE): Define.
2614 (hppaelf_finish): Correct spelling of relocatable in comments.
2616 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2617 rummage through the script for sections on the unique list.
2618 Correct length of strncmp for ".note".
2619 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2621 * ldlang.c (unique_section_list): New var.
2622 (unique_section_p): New function.
2623 (walk_wild_section): Don't match sections on unique_section_list.
2624 (lang_add_unique): New function.
2625 Correct spelling of relocatable in comments.
2627 * ldlang.h (struct unique_sections): Declare.
2628 (unique_section_list): Declare.
2629 (unique_section_p): Declare.
2630 (lang_add_unique): Declare.
2632 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2633 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2635 * ld.texinfo (--unique): Update.
2637 2001-01-13 Nick Clifton <nickc@redhat.com>
2639 * lexsup.c (parse_args): Remove spurious white space.
2641 2001-01-12 Nick Clifton <nickc@redhat.com>
2643 * lexsup.c (parse_args): Update copyright date.
2645 2001-01-12 Philip Blundell <pb@futuretv.com>
2647 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2649 2001-01-10 Kazu Hirata <kazu@hxi.com>
2651 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2652 * scripttempl/h8300h.sc: Fix formatting.
2653 * scripttempl/h8300s.sc: Likewise.
2654 * scripttempl/h8500.sc: Likewise.
2655 * scripttempl/h8500b.sc: Likewise.
2656 * scripttempl/h8500c.sc: Likewise.
2657 * scripttempl/h8500m.sc: Likewise.
2658 * scripttempl/h8500s.sc: Likewise.
2660 2000-01-07 David O'Brien <obrien@BSDi.com>
2662 * emultempl/elf32.em: Only perform Linux ld hints processing when
2665 2001-01-07 Philip Blundell <philb@gnu.org>
2667 * ld.texinfo (Bug Reporting): Update email address for reports.
2669 2000-12-31 Nick Clifton <nickc@redhat.com>
2671 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2672 options by checking for a return value of '?' not -1.
2674 2000-12-28 Nick Clifton <nickc@redhat.com>
2676 * lexsup.c (struct ld_option): Add new enum value:
2678 (ld_options[]): Change -omagic, -output and -oformat options
2679 to be EXACTLY_TWO_DASHES.
2680 (OUTPUT_COUNT): Use ARRAY_SIZE.
2681 (parse_args): Change parameter 'argc' to unsigned.
2682 Place EXACTLY_TWO_DASHES options into new really_longopts
2684 If getopt_long_only fails, try calling getopt_long using the
2685 really_longopts array.
2686 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2689 * ldlex.h: Fix prototype of parse_args.
2691 * ld.texinfo: Document that long options starting with 'o'
2692 must be preceeded by two dashes. Change example of a single
2693 dashed long option from -oformat to -trace-symbol.
2695 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2697 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2698 (longopts[]): New --no-default-excludes option.
2699 (gld_${EMULATION_NAME}_list_options): Document.
2700 (gld_${EMULATION_NAME}_parse_args): Handle.
2702 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2704 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2705 whitespace, it breaks the K&R C preprocessor.
2707 2000-12-11 DJ Delorie <dj@redhat.com>
2709 * ld.texinfo: Add notes about --whole-archive and gcc.
2711 2000-11-18 Fred Fish <fnf@be.com>
2713 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2714 (ld_options): Entry for --allow-shlib-undefined.
2715 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2716 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2718 * ld.texinfo: Document new command line switch.
2720 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2722 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2723 .fixup is actually read/write.
2724 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2725 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2726 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2728 2000-12-11 Jan Hubicka <jh@suse.cz>
2730 * NEWS: Add note about x86_64 architecture.
2732 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2734 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2735 Set DWARF2 sections to a VMA of zero.
2737 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2739 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2741 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2742 (sparc*-*-rtems*): Switched from a.out to ELF.
2744 2000-11-30 Jan Hubicka <jh@suse.cz>
2746 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2747 (eelf_x86_64.c): New.
2748 * Makefile.in: Regenerate.
2749 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2750 * emulparams/elf_x86_64.sh: New.
2752 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2754 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2755 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2757 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2758 merging non-a.out sections into CONSTRUCTING.
2760 2000-11-28 Nick Clifton <nickc@redhat.com>
2762 * ld.1 (COPYING): Mention that the GNU Free Documentation
2763 License is present in the sources, but not the output, and
2764 also available from the GNU website.
2765 (GNU Free Documentation License): Comment out this section.
2767 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2769 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2772 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2774 * ld.1: Remove old date so it does not give the impression the manpage
2777 2000-11-24 Nick Clifton <nickc@redhat.com>
2779 * configure.tgt (xscale-coff): Add target.
2780 (xscale-elf): Add target.
2782 2000-11-24 Fred Fish <fnf@be.com>
2784 * ldmain.c (main): Remove redundant init of config.make_executable
2787 2000-11-15 Richard Henderson <rth@redhat.com>
2789 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2791 2000-11-14 Kazu Hirata <kazu@hxi.com>
2793 * scripttempl/h8300.sc: Fix formatting.
2794 * scripttempl/h8300h.sc: Likewise.
2795 * scripttempl/h8300s.sc: Likewise.
2797 2000-11-14 Denis Chertykov <denisc@overta.ru>
2799 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2801 2000-11-09 Philip Blundell <pb@futuretv.com>
2803 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2804 around orphan sections whose names can be represented in C.
2806 2000-11-07 Jim Wilson <wilson@redhat.com>
2808 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2809 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2811 2000-11-06 Nick Clifton <nickc@redhat.com>
2813 * ld.texinfo: Add GNU Free Documentation License.
2814 * ldint.texinfo: Add GNU Free Documentation License.
2815 * ld.1: Add GNU Free Documentation License.
2817 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2819 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2820 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2822 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2823 Move 2000-11-02 Makefile.in changes to this file.
2824 * Makefile.in: Regenerate.
2826 2000-11-03 Nick Clifton <nickc@redhat.com>
2828 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2829 constructors and destructors.
2830 * scripttempl/h8300h.sc: Ditto.
2831 * scripttempl/h8300s.sc: Ditto.
2832 * scripttempl/h8500.sc: Ditto.
2833 * scripttempl/h8500b.sc: Ditto.
2834 * scripttempl/h8500c.sc: Ditto.
2835 * scripttempl/h8500m.sc: Ditto.
2836 * scripttempl/h8500s.sc: Ditto.
2837 * scripttempl/v850.sc: Ditto.
2838 * scripttempl/w65.sc: Ditto.
2839 * scripttempl/z8000.sc: Ditto.
2841 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2843 * Makefile.in (e_i386_chaos.c): New rule.
2844 (ALL_EMULATIONS): Added e_i386_chaos.o.
2845 * emulparams/elf_i386_chaos.sh: New file.
2846 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2848 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2850 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2851 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2852 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2853 library path suffix.
2854 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2856 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2858 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2859 for consecutive sections.
2861 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2863 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2865 * ld.texinfo: Added notes about this new option.
2867 2000-10-16 Nick Clifton <nickc@redhat.com>
2869 * emultempl/pe.em (_after_open): Add tests of return values from
2870 bfd functions. Emit appropriate error messages if necessary.
2872 2000-10-13 Nick Clifton <nickc@redhat.com>
2874 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2875 local variables - they are not used, but leave in the call to
2876 bfd_canonicalize_symtab.
2877 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2878 pe_dll_search_prefix.
2880 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2882 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2883 (longopts): New --dll-search-prefix option.
2884 (gld_${EMULATION_NAME}_list_options): Document.
2885 (gld_${EMULATION_NAME}_parse_args): Handle.
2886 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2887 dynamically, search for a dll named '<prefix><basename>.dll'
2888 in preference to 'lib<basename>.dll' if --dll-search-prefix
2891 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2893 * ldlang.c (section_already_linked): Set kept_section instead of
2896 2000-10-10 Kazu Hirata <kazu@hxi.com>
2898 * deffile.h: Fix formatting.
2899 * lexsup.c: Likewise.
2902 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2904 * pe-dll.c (make_one): Do not generate code thunk for DATA
2906 (process_def_file): deduce DATA flag for auto-export sumbols.
2908 2000-10-09 Kazu Hirata <kazu@hxi.com>
2910 * ld.h: Fix formatting.
2911 * ldcref.c: Likewise.
2912 * ldctor.h: Likewise.
2913 * ldemul.c: Likewise.
2914 * ldemul.h: Likewise.
2915 * ldexp.c: Likewise.
2916 * ldexp.h: Likewise.
2917 * ldfile.c: Likewise.
2918 * ldfile.h: Likewise.
2919 * ldlang.c: Likewise.
2920 * ldlang.h: Likewise.
2921 * ldmain.c: Likewise.
2922 * pe-dll.c: Likewise.
2924 * pe-dll.c: Revert some formatting fixes.
2926 2000-10-08 Kazu Hirata <kazu@hxi.com>
2928 * pe-dll.c: Fix formatting.
2930 2000-10-05 Kazu Hirata <kazu@hxi.com>
2932 * ldlang.c: Fix formatting.
2934 2000-10-03 DJ Delorie <dj@redhat.com>
2936 * pe-dll.c (fill_edata): initialize entire block
2937 (make_one): fill in correct section.
2939 2000-10-03 Kazu Hirata <kazu@hxi.com>
2941 * ldexp.c: Fix formatting.
2943 2000-10-02 DJ Delorie <dj@redhat.com>
2945 * emultempl/pe.em (gld_*_after_open): detect case where there two
2946 import libraries for same dll; rename one to ensure proper link
2949 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2951 (generate_edata): fix typo
2953 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2955 * scripttempl/crisaout.sc (ENTRY): Now __start.
2956 (.text): Add default setting for __start.
2957 Remove CONSTRUCTORS handling.
2958 (/DISCARD/): Add .gnu.warning.*.
2959 * emulparams/crislinux.sh (ENTRY): Now __start.
2960 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2961 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2962 (ENTRY): Now __start.
2963 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2964 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2966 2000-09-29 Kazu Hirata <kazu@hxi.com>
2968 * deffile.h: Fix formatting.
2970 * ldcref.c: Likewise.
2971 * ldctor.c: Likewise.
2972 * ldctor.h: Likewise.
2973 * ldemul.c: Likewise.
2974 * ldemul.h: Likewise.
2975 * ldexp.c: Likewise.
2976 * ldexp.h: Likewise.
2977 * ldfile.c: Likewise.
2978 * ldfile.h: Likewise.
2979 * ldlang.c: Likewise.
2980 * ldlang.h: Likewise.
2981 * lexsup.c: Likewise.
2983 * pe-dll.c: Likewise.
2985 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2987 * pe-dll.c (process_def_file): Uninitialized data wasn't
2988 exported with --export-all-symbols switch.
2990 2000-09-28 DJ Delorie <dj@redhat.com>
2992 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2993 noname work properly.
2995 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2997 * ld.texinfo (HPPA ELF32): New section.
2999 * emultempl/hppaelf.em (group_size): New.
3000 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3001 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3002 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3003 options to prevent abbreviations matching.
3004 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3005 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3007 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3009 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3010 on the m68*-*-elf target. Make it support COFF input objects.
3012 2000-09-21 Kazu Hirata <kazu@hxi.com>
3014 * ldmain.c: Fix formatting.
3015 * ldmisc.c: Likewise.
3016 * ldver.c: Likewise.
3017 * ldwrite.c: Likewise.
3019 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3021 * ldwrite.c (clone_section): Silence gcc warnings.
3023 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3025 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3026 out of memory failure.
3028 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3029 (clone_section): Handle out of memory failures. Rename var to
3030 avoid c++ reserved word.
3032 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3034 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3035 stub_name param to stub_sec_name.
3036 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3038 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3040 * emultempl/m68kelf.em: New file.
3041 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3042 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3043 * Makefile.in: Regenerate.
3045 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3047 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3050 2000-09-13 Nick Clifton <nickc@redhat.com>
3052 * ldmain.c (multiple_definition): Disable relaxation if
3053 multiple symbol definitions are encountered - otherwise the
3054 linker could abort with an assertion failure.
3056 2000-09-10 Nick Clifton <nickc@redhat.com>
3058 * mri.c: Fix formatting.
3060 2000-09-07 H.J. Lu <hjl@gnu.org>
3062 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3063 * configure: Rebuild.
3065 2000-09-07 H.J. Lu <hjl@gnu.org>
3067 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3068 * Makefile.in: Rebuild.
3070 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3072 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3073 broken list handling. Create __start_SECNAME and __stop_SECNAME
3074 when no place-holder. Add some comments. Test both SEC_CODE and
3075 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3076 Handle case where no output section statement created.
3078 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3080 * configure.tgt (sh-*-linux*): Added.
3081 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3082 * Makefile.in: Rebuilt.
3083 * emulparams/shelf_linux.sh: New file.
3084 * emulparams/shlelf_linux.sh: New file.
3086 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3088 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3089 try shuffling sections when the orphan happens to be the place
3090 holder. Keep count of unique section names generated so we speed
3091 the search for a new name.
3093 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3095 * configure: Rebuilt with new libtool.m4.
3097 2000-09-05 Nick Clifton <nickc@redhat.com>
3099 * Makefile.in: Regenerate.
3100 * aclocal.m4: Regenerate.
3101 * configure: Regenerate.
3102 * config.in: Regenerate.
3103 * po/ld.pot: Regenerate.
3105 * ldint.texinfo: Remove CVS revision marker - it foils local
3108 * emultempl/ticoff.em: Remove extraneous comma.
3110 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3112 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3113 to stub section flags.
3114 (hppa_for_each_input_file_wrapper): New.
3115 (hppa_lang_for_each_input_file): New.
3116 (lang_for_each_input_file): Define to call above.
3117 (multi_subspace): New.
3118 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3119 (PARSE_AND_LIST_PROLOGUE): Define.
3120 (PARSE_AND_LIST_LONGOPTS): Define.
3121 (PARSE_AND_LIST_OPTIONS): Define.
3122 (PARSE_AND_LIST_ARGS_CASES): Define.
3123 (hppaelf_finish): Call elf32_hppa_set_gp.
3124 (hppaelf_set_output_arch): Remove.
3125 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3127 * emulparams/hppalinux.sh (ELFSIZE): Define.
3129 (OTHER_READONLY_SECTIONS): Define.
3131 (GENERATE_SHLIB_SCRIPT): Define.
3133 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3134 to const throughout. Change `void *' to `PTR' throughout.
3135 (lang_memory_default): Function is local to file, add `static'.
3137 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3138 (ehppalinux.c): Likewise.
3139 (earmelf.c): Likewise.
3140 (earmelf_linux.c): Likewise.
3141 (earmelf_linux26.c): Likewise.
3142 * Makefile.in: Regenerate.
3144 * ld.h (ld_config_type): Add unique_orphan_sections.
3145 * lexsup.c (OPTION_UNIQUE): Define.
3146 (ld_options): Add "--unique".
3147 (parse_args): Handle it.
3148 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3149 search for an existing output section if unique_orphan_sections is
3150 set. Make use of bfd_get_unique_section_name rather than
3151 duplicating code here.
3152 * ld.texinfo: Describe --unique.
3154 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3155 optional arg to split-by-file.
3156 (parse_args): Handle them.
3157 * ld.texinfo: Update description of these options.
3158 * ldwrite.c (clone_section): Pass in the section name. Replace
3159 local code with bfd_get_unique_section_name.
3160 (split_sections): Tidy code and comments. Use a list traversal
3161 more appropriate to the list construction. Handle cooked section
3162 sizes. Split when split_by_reloc reached rather than exceeded.
3163 Track section size and split when split_by_file reached. Fix
3164 link_order_tail (even though it's not used).
3165 (ldwrite): Modify condition for calling split_sections to suit
3166 changed split_by_reloc and split_by_file.
3167 * ldmain.c (main): Init config.split_by_reloc and
3168 config.split_by_file to -1.
3169 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3170 Change split_by_file to bfd_size_type.
3172 2000-09-02 Nick Clifton <nickc@redhat.com>
3174 * configure.in: Increase version number to 2.10.91.
3175 * NEWS: Mention new ability to support removal of duplicate DWARF2
3177 * configure: Regenerate.
3178 * aclocal.m4: Regenerate.
3179 * config.in: Regenerate.
3181 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3183 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3185 * scripttempl/elf32avr.sc: Ditto.
3186 * scripttempl/elfd10v.sc: Ditto.
3187 * scripttempl/elfd30v.sc: Ditto.
3188 * scripttempl/elfi370.sc: Ditto.
3189 * scripttempl/elfm68hc11.sc: Ditto.
3190 * scripttempl/elfm68hc12.sc: Ditto.
3191 * scripttempl/elfi386beos.sc: Ditto.
3192 * scripttempl/v850.sc: Ditto.
3194 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3196 * acinclude.m4: Include libtool and gettext macros from the
3198 * aclocal.m4, configure: Rebuilt.
3200 2000-08-25 Nick Clifton <nickc@redhat.com>
3202 * ldlang.c (open_output): When choosing the target for a
3203 particular endianness, do nothing if the target is not
3206 2000-08-25 H.J. Lu <hjl@gnu.org>
3208 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3209 check -rpath nor LD_RUN_PATH for cross link.
3210 * ld.texinfo: Document the change.
3212 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3214 * NEWS: Mention support for CRIS.
3216 2000-08-23 H.J. Lu <hjl@gnu.org>
3218 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3219 the current runpath list from bfd_elf_get_runpath_list ()
3222 2000-08-22 H.J. Lu <hjl@gnu.org>
3224 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3225 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3226 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3227 trace_file_tries is non-zero.
3228 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3229 if trace_file_tries is non-zero.
3231 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3234 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3236 * NEWS: Mention i860 support.
3238 2000-08-14 Andreas Schwab <schwab@suse.de>
3240 * scripttempl/elf.sc: Fix last change to use correct comment
3243 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3245 * scripttempl/elf.sc: Add a comment giving the correspondence
3246 between sections, per-datum sections, and linkonce sections. Make
3247 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3250 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3252 * emulparams/elf32_i860.sh: New file.
3253 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3254 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3255 (eelf32_i860.c): New rule.
3256 * Makefile.in: Regenerate.
3258 2000-08-10 Nick Clifton <nickc@cygnus.com>
3260 * emulparams/mipspe.sh (ENTRY): Add definition.
3262 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3264 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3267 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3269 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3270 the final size of .bss section.
3271 * scripttempl/elfm68hc12.sc: Likewise.
3273 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3275 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3276 gld${EMULATION_NAME}_parse_args for consistency. Combine
3277 lastoptind and prevoptind vars, and keep track of last optind.
3278 (gld_${EMULATION_NAME}_list_options): Rename to
3279 gld${EMULATION_NAME}_list_options.
3281 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3283 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3284 (i586-sco-sysv5uw7.1.0).
3286 2000-07-27 H.J. Lu <hjl@gnu.org>
3288 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3289 (PARSE_AND_LIST_PROLOGUE): New.
3290 (PARSE_AND_LIST_LONGOPTS): Likewise.
3291 (PARSE_AND_LIST_OPTIONS): Likewise.
3292 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3293 (PARSE_AND_LIST_EPILOGUE): Likewise.
3295 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3297 * emultempl/armelf.em: Elide functions common to elf32.em,
3298 ie. most of the file.
3299 (arm_elf_after_open): New. Do arm specific things then call
3300 gld${EMULATION_NAME}_after_open.
3301 (arm_elf_before_allocation): New. Call
3302 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3303 (PARSE_AND_LIST_PROLOGUE): Define.
3304 (PARSE_AND_LIST_SHORTOPTS): Define.
3305 (PARSE_AND_LIST_LONGOPTS): Define.
3306 (PARSE_AND_LIST_OPTIONS): Define.
3307 (PARSE_AND_LIST_ARGS_CASES): Define.
3308 (LDEMUL_AFTER_OPEN): Define.
3309 (LDEMUL_BEFORE_ALLOCATION): Define.
3310 (LDEMUL_BEFORE_PARSE): Define.
3311 (LDEMUL_FINISH): Define.
3313 * emultempl/hppaelf.em: Similarly zap most of this file.
3314 (hppaelf_add_stub_section): Prototype.
3315 (hppaelf_layaout_sections_again): Prototype.
3316 (hook_in_stub): Prototype.
3317 (LDEMUL_SET_OUTPUT_ARCH): Define.
3318 (LDEMUL_FINISH): Define.
3319 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3321 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3322 (EXTRA_EM_FILE): New.
3323 * emulparams/armelf_linux.sh: Likewise.
3324 * emulparams/armelf_linux26.sh: Likewise.
3325 * emulparams/hppalinux.sh: Likewise.
3326 * emulparams/hppaelf.sh: Likewise.
3329 * emultempl/elf32.em: Fix formatting.
3330 (EXTRA_EM_FILE): Source it.
3331 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3332 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3333 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3334 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3335 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3336 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3337 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3338 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3339 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3340 allow functions in this file to be overridden.
3341 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3343 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3345 * emultempl/elf32.em: Reorganize file.
3347 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3349 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3350 specific option to fit 64-bit executable in the lower
3351 31-bit address range. This is done by changing start
3352 address of .interp (the very first section of executable)
3353 and then setting EF_ALPHA_32BIT elf header flag.
3355 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3357 * emultempl/m68kcoff.em: New file.
3358 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3359 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3361 * Makefile.in: Regenerate.
3363 2000-07-20 H.J. Lu <hjl@gnu.org>
3365 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3366 and "disable-new-dtags" to stop getopt from treating -d/-e as
3367 abbreviations for these options.
3369 2000-07-20 H.J. Lu <hjl@gnu.org>
3371 * ld.texinfo: Add documentation for --disable-new-dtags and
3374 * ldmain.c (main): Initialize link_info.new_dtags to false.
3376 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3377 --disable-new-dtags and --enable-new-dtags.
3378 (gld_${EMULATION_NAME}_list_options): Likewise.
3380 2000-07-05 Kenneth Block <krblock@computer.org>
3382 * lexsup.c: Add optional style to demangle switch
3383 * ld.texinfo: Document optional style to demangle switch.
3385 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3387 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3389 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3390 Regenerate dependencies.
3391 * Makefile.in: Rebuild.
3392 * configure.tgt (cris-*-*): New target.
3393 * emulparams/crisaout.sh, emulparams/criself.sh,
3394 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3395 * po/POTFILES.in, po/ld.pot: Regenerate.
3397 2000-07-20 H.J. Lu <hjl@gnu.org>
3399 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3400 Print out ignored -z options.
3402 2000-07-19 H.J. Lu <hjl@gnu.org>
3404 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3405 (PARSE_AND_LIST_PROLOGUE): New.
3406 (PARSE_AND_LIST_LONGOPTS): Likewise.
3407 (PARSE_AND_LIST_OPTIONS): Likewise.
3408 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3410 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3412 * lexsup.c (ld_options): Comment out 'z'.
3413 (parse_args): Likewise.
3415 * emultempl/elf32.em: Include "elf/common.h".
3416 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3418 (gld_${EMULATION_NAME}_list_options): Likewise.
3420 * ld.texinfo: Add documentation for the recognized -z options.
3422 2000-07-19 H.J. Lu <hjl@gnu.org>
3424 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3425 bfd_elf_set_dt_needed_soname ().
3427 2000-07-18 DJ Delorie <dj@cygnus.com>
3429 * pe-dll.c (pe_dll_id_target): check object target name also
3431 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3433 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3434 ${INIT_END} if relocating.
3435 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3437 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3439 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3440 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3441 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3442 errors introduced by the old dynamic lib search order.
3444 2000-07-17 DJ Delorie <dj@cygnus.com>
3446 * pe-dll.c (process_def_file): auto-export data items also
3447 (pe_process_import_defs): also see if _imp_ form needed
3449 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3451 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3452 for dll import libraries
3454 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3456 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3457 gcc 2.95.2 and later.
3459 2000-07-11 Kazu Hirata <kazu@hxi.com>
3461 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3464 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3466 * ldemul.h (struct lang_input_statement_struct): Remove forward
3468 (struct search_dirs): Likewise.
3469 * ldfile.h (struct lang_input_statement_struct): Likewise.
3470 Protect file from multiple inclusion.
3471 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3472 declaration from macro to file scope.
3474 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3475 * ldgram.y: Likewise here.
3476 * ldlang.c: And here.
3477 * ldmain.c: And here.
3478 * mpw-elfmips.c: And here.
3479 * mpw-eppcmac.c: And here.
3480 * emultempl/aix.em: And here.
3481 * emultempl/armcoff.em: And here.
3482 * emultempl/armelf.em: And here.
3483 * emultempl/armelf_oabi.em: And here.
3484 * emultempl/beos.em: And here.
3485 * emultempl/elf32.em: And here.
3486 * emultempl/hppaelf.em: And here.
3487 * emultempl/linux.em: And here.
3488 * emultempl/lnk960.em: And here.
3489 * emultempl/pe.em: And here.
3490 * emultempl/sunos.em: And here.
3491 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3492 * mpw-idtmips.c: Ditto.
3493 * emultempl/generic.em: Ditto.
3494 * emultempl/gld960.em: Ditto.
3495 * emultempl/gld960c.em: Ditto.
3496 * emultempl/mipsecoff.em: Ditto.
3497 * emultempl/ticoff.em: Ditto.
3498 * emultempl/vanilla.em: Ditto.
3500 * pe-dll.c: Include ldfile.h
3501 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3503 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3504 arguments to bfd_elf32_size_dynamic_sections call.
3505 (gldelf32ebmip_place_orphan): Add missing arguments to
3506 lang_leave_output_section_statement call.
3508 2000-07-10 H.J. Lu <hjl@gnu.org>
3510 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3512 (strhash): Likewise.
3513 (compute_dll_image_base): Likewise.
3514 (pe_undef_found_sym): Likewise.
3515 (pe_undef_cdecl_match): Likewise.
3516 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3517 argument "arch" with ATTRIBUTE_UNUSED.
3519 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3521 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3523 From Ryan Bradetich <rbradetich@uswest.net>
3524 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3526 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3528 Changes to create multiple linker stubs, positioned immediately
3529 before the section where they are required.
3530 * emultempl/hppaelf.em: Include elf32-hppa.h.
3531 (stub_sec, file_chain): Delete.
3532 (hppaelf_create_output_section_statements): Don't make a stub
3534 (hook_stub_info): New struct.
3535 (hook_in_stub): New function.
3536 (hppaelf_add_stub_section): New function.
3537 (hppaelf_finish): Do nothing for relocateable links. Modify the
3538 call to elf32_hppa_size_stubs. Move code for updating section
3540 (hppaelf_layaout_sections_again): ..to here, a new function.
3542 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3543 broken list handling. Pass in a pointer to the list.
3544 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3546 (hppaelf_before_parse): Prototype.
3547 (hppaelf_set_output_arch): Prototype.
3548 (hppaelf_create_output_section_statements): Prototype.
3549 (hppaelf_delete_padding_statements): Prototype.
3550 (hppaelf_finish): Prototype.
3553 * emultempl/hppaelf.em: Include ctype.h.
3554 (struct orphan_save): New.
3555 (gld${EMULATION_NAME}_place_orphan): New.
3556 (output_rel_find): New.
3557 (hppaelf_get_script): Update from elf32.em.
3558 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3559 Change emulation_name field to "${EMULATION_NAME}". Add
3560 gld${EMULATION_NAME}_place_orphan.
3562 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3563 ehppalinux.o, sort it. Regenerate dependencies.
3564 (ehppalinux.c): Depend on hppaelf.em
3565 * Makefile.in: Regenerate.
3567 * configure.tgt: targ_emul=hppalinux for hppa*linux
3569 * emulparams/hppalinux.sh: New.
3570 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3572 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3574 * lexsup.c (parse_args): Copy section name.
3576 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3578 * emultempl/pe.em: institute the following search order for
3579 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3580 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3581 static lib (libfoo.a) if none of the above are found.
3583 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3585 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3586 (longopts): New --{enable,disable}-auto-image-base options.
3587 (gld_${EMULATION_NAME}_list_options): Document.
3588 (gld_${EMULATION_NAME}_parse): Handle.
3589 (strhash): New static function.
3590 (compute_dll_image_base): New static function.
3591 (gld_${EMULATION_NAME}_set_symbols): Use.
3593 2000-07-05 DJ Delorie <dj@redhat.com>
3597 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3599 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3600 * emulparams/elf32btsmip.sh: New file.
3601 * Makefile.am: Add traditional mips target.
3602 * Makefile.in: Rebuild.
3604 2000-07-01 H.J. Lu <hjl@gnu.org>
3606 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3607 automake to use YLWRAP.
3608 * Makefile.in: Rebuild.
3610 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3612 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3613 (CLEANFILES): Add DEPA.
3614 * Makefile.in: Regenerate.
3616 2000-06-30 Timothy Wall <twall@ppc>
3618 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3619 the page in the upper octet of the address.
3621 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3623 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3625 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3627 * NEWS: arm-elf does --gc-sections too.
3629 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3631 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3633 * Makefile.in: Regenerate.
3635 2000-06-21 H.J. Lu <hjl@gnu.org>
3637 * Makefile.am: Rebuild dependency.
3638 * Makefile.in: Rebuild.
3640 2000-06-20 H.J. Lu <hjl@gnu.org>
3642 * Makefile.am: Rebuild dependency.
3643 * Makefile.in: Rebuild.
3645 2000-06-20 Timothy Wall <twall@cygnus.com>
3647 * scripttempl/tic54xcoff.sc: New.
3648 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3649 * gen-doc.texi: Add flag for TI COFF.
3650 * ld.texinfo: Add documentation for TI COFF handling switches.
3651 * emultempl/ticoff.em: New. TI COFF handling.
3652 * configure.tgt: Add tic54x target.
3653 * Makefile.am: Add tic54x target.
3654 * Makefile.in: Ditto.
3656 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3658 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3659 checking for backslashes.
3661 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3663 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3665 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3667 * NEWS: Update list of targets supporting --gc-sections.
3669 * scripttempl/elf.sc: KEEP .eh_frame contents.
3670 * scripttempl/elfd30v.sc: Same here.
3672 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3674 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3676 * Makefile.in: Rebuild.
3677 * configure.tgt: Recognize m68hc12 and m68hc11.
3678 * scripttempl/elfm68hc12.sc: New file.
3679 * emulparams/m68hc12elfb: New emulation.
3680 * emulparams/m68hc12elf: New emulation.
3681 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3682 (includes a memory.x script to define the ROM and RAM banks).
3683 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3684 New configuration files for support of Motorola 68hc11
3686 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3688 * ldmain.c (main): Only change SEC_READONLY for final link.
3690 2000-06-13 H.J. Lu <hjl@gnu.org>
3692 * configure: Regenerate.
3694 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3696 * configure.in (VERSION): Update to show this is the CVS mainline.
3698 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3700 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3701 input objects to be ECOFF.
3702 (check_sections): einfo takes %B, not %P, to print a BFD name.
3704 2000-06-05 Michael Matz <matz@ifh.de>
3706 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3709 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3711 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3713 * emulparams/avr1200.sh (STACK): Define as 0.
3714 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3715 * emulparams/avr4433.sh (STACK): Likewise.
3716 * emulparams/avr44x4.sh (STACK): Likewise.
3717 * emulparams/avr85xx.sh (STACK): Likewise.
3718 * emulparams/avrmega103.sh (STACK): Likewise.
3719 * emulparams/avrmega161.sh (STACK): Likewise.
3720 * emulparams/avrmega603.sh (STACK): Likewise.
3721 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3722 (__stack): Define from ${STACK} for main().
3724 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3726 * Makefile.am: Update dependencies with "make dep-am"
3727 * Makefile.in: Regenerate.
3729 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3731 * ldmain.c: Include filenames.h.
3732 (set_scripts_dir): Support backslashes in program name.
3734 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3736 * ldmain.c (main): When deciding if ".text" section should be
3737 read-only, don't forget to reset SEC_READONLY because it
3738 could be already set.
3740 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3742 * ld.1: Add documentation for new command line option:
3743 --section-start <sectionname>=<sectionorg>
3744 This is a generic version of -Ttext etc. which accepts
3745 any section name as a parameter instead of just text/data/
3747 * ld.texinfo: More docs.
3749 * lexsup.c: (parse_args): Recognize new command line option.
3750 (ld_options): Add new option.
3752 2000-05-18 H.J. Lu <hjl@gnu.org>
3754 * lexsup.c (parse_args): `i' == `r', not `q'.
3756 2000-05-18 Jeffrey A Law (law@cygnus.com)
3758 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3760 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3761 Rick Gorton <gorton@scrugs.lkg.dec.com>
3763 Add support for '-q' == '--emit-relocs' switch.
3764 * ldmain.c (main): Default to false.
3765 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3766 * NEWS: Describe the emitrelocations switch.
3767 * ld.texinfo: Describe the emitrelocations switch.
3769 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3771 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3772 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3773 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3776 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3778 * lexsup.c (parse_args): Update the year in the copyright notice.
3780 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3782 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3783 Replace defines with those from intl/libgettext.h to quieten gcc
3786 2000-05-10 H.J. Lu <hjl@gnu.org>
3788 * ldlang.c (open_input_bfds): Don't load the same file within
3789 a group again if the whole archive has been loaded already.
3791 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3793 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3794 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3797 2000-05-01 Jim Wilson <wilson@cygnus.com>
3799 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3801 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3802 host "ia64-*-linux-gnu*".
3804 2000-04-29 Andreas Jaeger <aj@suse.de>
3806 * ld.h: Correctly check GCC version.
3808 2000-04-25 Jeffrey A Law (law@cygnus.com)
3810 * Makefile.am: Add PA64 support. Add missing dependencies for
3812 * Makefile.in: Rebuilt.
3813 * configure.tgt: Add PA64 support (currently disabled).
3815 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3817 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3818 (output_rel_find): New function.
3819 (hold_section, hold_use): Delete.
3820 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3821 hold_interp): Make local to place_orphan.
3822 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3823 rather than place_section to find possible previous use of orphan.
3824 Similarly find the place-holder output sections. Use returned
3825 value from lang_enter_output_section_statement rather than calling
3826 lang_output_section_statement_lookup.
3827 * emultempl/armelf.em: Same here.
3828 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3830 * ldlang.c (lang_enter_output_section_statement): Return output
3832 * ldlang.h (lang_enter_output_section_statement): Change
3835 * ldlang.h (lang_output_section_statement): Export it.
3836 * ldlang.c (lang_output_section_statement): Ditto.
3838 2000-04-24 Nick Clifton <nickc@cygnus.com>
3840 * ld.texinfo (Output Section Data): Add note that section data
3841 commands cannot appear outside of section directives.
3843 2000-04-2 Matthew Green <mrg@cygnus.com>
3845 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3847 2000-04-21 Richard Henderson <rth@cygnus.com>
3848 David Mosberger <davidm@hpl.hp.com>
3850 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3851 (eelf64_ia64.c): New rule.
3852 * Makefile.in: Rebuild.
3853 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3854 * emulparams/elf64_ia64.sh: New file.
3856 2000-04-21 Richard Henderson <rth@cygnus.com>
3858 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3860 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3862 * dep-in.sed: Match space at start of file name, not at end.
3864 2000-04-18 H.J. Lu <hjl@gnu.org>
3866 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3867 lang_leave_output_section_statement () after calling
3868 lang_enter_output_section_statement ().
3869 * emultempl/armelf.em: Likewise.
3871 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3873 * emultempl/elf32.em (struct orphan_save): Add section field.
3874 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3875 better order, and place first orphan section as we did before the
3876 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3877 Don't call make_bfd_section here, let wild_doit do the job for us.
3878 Don't build a statement list when we'll only throw it away.
3879 * emultempl/armelf.em: Ditto.
3880 * emultempl/pe.em: Similarly.
3882 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3884 * scripttempl/elfppc.sc: Remove.
3885 * emulparams/elf32ppc.sh: Use elf.sc.
3886 * emulparams/elf32lppc.sh: Use elf.sc.
3887 * emulparams/elf32ppclinux.sh: Use elf.sc.
3888 * emulparams/elf32ppcsim.sh: New file.
3889 * emulparams/elf32lppcsim.sh: New file.
3890 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3891 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3892 * Makefile.in: Regenerate.
3893 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3895 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3897 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3898 ~SEC_ALLOC sections too. Init start address of debug sections.
3899 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3900 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3901 Also set all relocateable section start addresses.
3903 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3905 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3906 Add new BSS_PLT variable for when .plt need not be contained in
3907 the file. Move _etext so that it is also after .fini, and provide
3908 both etext and _etext with a leading underscore. Mark the start
3911 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3913 * emultempl/elf32.em (struct orphan_save): New.
3914 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3915 hold_interp): Make them struct orphan_save.
3916 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3917 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3918 the end of the relevant section list. Also add associated section
3919 statements to the end of any previous orphan statements.
3920 * emultempl/armelf.em: Similarly.
3921 * emultempl/pe.em: Similarly.
3923 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3925 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3927 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3929 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3930 --enable-build-warnings option.
3931 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3932 * Makefile.in, configure: Re-generate.
3934 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3936 * po/ld.pot: Regenerate.
3938 * lexsup.c (help): Restore translated part of bug string.
3940 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3941 (DEP): Quote when passing vars to sub-make. Add warning message
3943 (DEP1): Rewrite for "gcc -MM".
3944 (CLEANFILES): Add DEP2.
3945 Update dependencies.
3946 * Makefile.in: Regenerate.
3948 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3950 * ld.h: #include "bin-bugs.h"
3951 * lexsup.c (help): Use REPORT_BUGS_TO.
3953 2000-03-27 Denis Chertykov <denisc@overta.ru>
3955 * configure.tgt (avr-*-*): New target support.
3956 * Makefile.am: Likewise.
3957 * scripttempl/elf32avr.sc: New script file.
3958 * emulparams/avr1200.sh: New file.
3959 * emulparams/avr23xx.sh: New file.
3960 * emulparams/avr4433.sh New file.
3961 * emulparams/avr44x4.sh New file.
3962 * emulparams/avr85xx.sh New file.
3963 * emulparams/avrmega103.sh New file.
3964 * emulparams/avrmega161.sh New file.
3965 * emulparams/avrmega603.sh New file.
3966 * Makefile.in: Regenerate.
3968 2000-03-09 Andreas Jaeger <aj@suse.de>
3970 * Makefile.am (check-DEJAGNU): Also unset LANG.
3971 * Makefile.in: Rebuild.
3973 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3975 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3978 2000-03-02 H.J. Lu <hjl@gnu.org>
3980 * emulparams/elf32mcore.sh: Include "getopt.h".
3982 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3984 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3986 2000-03-01 H.J. Lu <hjl@gnu.org>
3988 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3989 * emulparams/shpe.sh: Likewise.
3991 2000-03-01 Nick Clifton <nickc@cygnus.com>
3993 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3994 to unused parameters.
3996 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3997 functions only used by DLL code.
3998 (_place_orphan): Initialise 'dollar'.
4000 2000-03-01 H.J. Lu <hjl@gnu.org>
4002 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4003 indicate if the undefined symbol is a fatal error or not.
4004 Don't delete the output file if "fatal" is false.
4006 2000-02-29 H.J. Lu <hjl@gnu.org>
4008 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4009 Set LC_COLLATE and LC_ALL to null and export them. It is for
4010 sort which expects the C locale.
4011 Add $(LIBS) to all $(HOSTING_LIBS).
4012 * Makefile.in: Rebuild.
4014 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4016 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4017 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4018 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4019 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4020 find_potential_libraries.
4022 2000-02-28 Jim Blandy <jimb@redhat.com>
4024 * ldgram.y (exclude_name_list): Don't require a comma to separate
4025 list entries; the lexer considers commas to be valid part of a
4026 filename, so in something like `foo, bar' the comma is considered
4027 part of the first filename, `foo,'.
4028 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4030 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4032 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4033 host "i[3456]86-*-freebsdelf*".
4035 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4037 * scripttempl/i386go32.sc: Move misplaced semicolons.
4039 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4041 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4042 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4043 (eelf64hppa.c, ehppaelf.c): Remove targets.
4044 * Makefile.in: Rebuild.
4046 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4048 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4049 GNU/Linux/sparc, but keep the default as 32.
4051 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4052 it default if sparcv9 or sparc64.
4054 2000-02-24 Nick Clifton <nickc@cygnus.com>
4056 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4057 * Makefile.in: Regenerate.
4058 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4060 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4061 find_potential_libraries.
4062 * ldemul.c (ldemul_find_potential_libraries): New function.
4064 * ldfile.c (ldfile_open_file_search): Allow function to be
4066 (ldfile_open_file): Call ldemul_find_potential_libraries.
4067 * ldfile.h: Add prototype for ldfile_open_file_search.
4069 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4071 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4072 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4074 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4075 (gld_X_find_potential_libraries): New function. Search for
4076 libraries called "*.lib".
4078 * scripttempl/pe.sc: Add .pdata section.
4080 2000-02-23 Richard Henderson <rth@cygnus.com>
4082 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4083 Add and use memory regions.
4085 2000-02-23 Linas Vepstas (linas@linas.org)
4087 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4089 * Makefile.am: Add support for Linux/IBM 370.
4090 * configure.tgt: Likewise.
4092 * Makefile.in: Regenerate.
4094 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4096 * ldlang.c (print_input_section, print_data_statement,
4097 print_reloc_statement, print_padding_statement, insert_pad,
4098 size_input_section, lang_check_section_addresses,
4099 lang_size_sections, lang_do_assignments, lang_set_startof,
4100 lang_one_common): Change `opb' to unsigned.
4101 (lang_do_assignments): Also change `size' to unsigned.
4103 2000-02-16 Richard Henderson <rth@cygnus.com>
4105 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4107 2000-02-16 Timothy Wall <twall@cygnus.com>
4109 * mri.c (mri_draw_tree): Add default LMA region argument to call
4110 to lang_leave_output_section_statement.
4111 * ldlang.h: Update prototypes with LMA region arguments.
4112 * ldlang.c (lang_size_sections): Encapsulate region bounds
4113 checking in os_check_region call.
4114 (os_check_region): New function.
4115 (lang_output_section_statement_lookup): Initialize lma_region.
4116 (lang_leave_output_section_statement): Add LMA region argument.
4117 (lang_leave_overlay): Ditto.
4118 * ldgram.y: Handle LMA region syntax.
4119 * ld.texinfo (Output Section Description): Describe LMA region usage.
4120 * emultempl/armelf.em (gld$place_orphan): Add default value for
4121 lma region in call to lang_leave_output_section_statement.
4122 * emultempl/elf32.em (gld$place_orphan): Add default value for
4123 lma region in call to lang_leave_output_section_statement.
4124 * emultempl/pe.em (gld$place_orphan): Add default value for
4125 lma region in call to lang_leave_output_section_statement.
4128 2000-02-04 Timothy Wall <twall@redhat.com>
4130 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4131 octets when calculating section end addresses.
4133 2000-02-04 Timothy Wall <twall@redhat.com>
4135 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4137 2000-02-03 Timothy Wall <twall@redhat.com>
4139 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4141 * ldlang.c (print_input_section, print_data_statement,
4142 print_reloc_statement, print_padding_statement): Print target
4143 address values and section sizes as bytes, not octets.
4144 (insert_pad) Calculate padding size in octets, and adjust "dot"
4146 (size_input_section) Always adjust "dot" by bytes, not octets.
4147 (lang_check_section_addresses, lang_do_assignments) Adjust
4148 "dot" by bytes, not octets. Use the larger of the directive size
4149 or octets_per_byte for the number of octets actually allocated in
4151 (lang_set_startof) Make sure STARTOF returns a target address.
4152 (lang_one_common) Record size changes in octets.
4153 (lang_abs_symbol_at_end_of) Section end symbol's value is
4154 recorded in target bytes.
4155 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4156 to be clear about behavior when an octet is smaller than one byte.
4158 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4160 * ldcref.c (output_cref): Don't pass message strings to printf
4164 * ldmisc.c (vfinfo): Same here.
4167 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4169 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4170 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4171 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4172 Add missing NULL initialisers, and comments.
4174 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4176 2000-01-21 Nick Clifton <nickc@cygnus.com>
4178 * ldlang.c (lang_size_sections): Fix typo in comment.
4180 2000-01-18 H.J. Lu <hjl@gnu.org>
4182 * ldlang.c (lang_size_sections): Also update the current
4183 address of a region if the SEC_NEVER_LOAD bit is not set.
4185 2000-01-10 Philip Blundell <pb@futuretv.com>
4187 * configure.tgt (arm*-*-conix*): New target.
4189 2000-01-07 Nick Clifton <nickc@cygnus.com>
4191 * ld.texinfo (Options): Remind users to preceed linker command
4192 line switches with -Wl, (or whatever is appropriate) if it is
4193 being invoked by a comnpiler driver program.
4194 Fix description of the behaviour of the -n command line switch.
4196 2000-01-05 Catherine Moore <clm@cygnus.com>
4198 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4200 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4201 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4202 (exclude_name_list): New.
4203 ldlang.c (walk_wild_section): Support list of excluded files.
4204 (print_wild_statement): Likewise.
4205 (lang_add_wild): Likewise.
4206 * ldlang.h (lang_wild_statement_type): Likewise.
4207 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4209 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4211 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4212 (process_def_file): Use.
4213 (pe_dll_compat_implib): New variable.
4216 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4217 pe_dll_compat_implib.
4219 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4220 compat-implib options.
4221 (gld_${EMULATION_NAME}_list_options): List new options.
4222 (gld_${EMULATION_NAME}_parse_args): Handle.
4224 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4227 * deffilep.y (opt_name): Allow "." in name.
4229 For older changes see ChangeLog-9899
4235 version-control: never