1 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
3 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
4 * Makefile.in: Regenerate.
5 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
7 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
9 * emulparams/avr1.sh: New file.
10 * emulparams/avr2.sh: New file.
11 * emulparams/avr3.sh: New file.
12 * emulparams/avr4.sh: New file.
13 * emulparams/avr5.sh: New file.
14 * scripttempl/avr.sc: New file.
16 2002-05-15 Alan Modra <amodra@bigpond.net.au>
18 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
19 (lang_place_orphans): Abort if just_syms_flag.
21 2002-05-10 Tom Rix <trix@redhat.com>
23 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
24 architecture and machine information in the output bfd.
25 (gld*_before_parse): Remove old arch and machine code.
26 (choose_target): Rename to gld*_choose_target.
27 (rtld): Change type to int.
28 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
29 objects in XCOFF archives.
30 * ldfile.h: Update copyright date.
32 2002-05-10 Jakub Jelinek <jakub@redhat.com>
34 * ldmain.c (main): Enable -z combreloc by default.
36 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
38 * Makefile.am: Honour DESTDIR.
39 * Makefile.in: Regenerate.
41 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
43 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
44 (lang_enter_overlay): Remove the last two parameters.
45 (lang_leave_overlay): Take them here instead.
46 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
47 (section): Pass LMA and crossref flag to lang_leave_overlay rather
48 than lang_enter_overlay.
49 * ldlang.c (lang_memory_region_lookup): Return null for null names.
50 (lang_output_section_statement_lookup): Initialize update_dot_tree.
51 (lang_size_sections_1): Evaluate it.
52 (lang_leave_output_section_statement): Rework LMA lookup.
53 (overlay_lma, overlay_nocrossrefs): Remove.
54 (lang_enter_overlay): Remove LMA and corssref arguments.
55 (lang_enter_overlay_section): Don't set the LMA here.
56 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
57 assignment to the last section's update_dot_tree. Unconditionally
58 use the load and run-time regions specified in the OVERLAY statement.
59 Likewise the first section's LMA. Only set the other sections' LMAs
60 when no load region is given.
62 2002-05-06 Nick Clifton <nickc@redhat.com>
64 * po/sv.po: New translation.
66 2002-05-04 Alan Modra <amodra@bigpond.net.au>
68 * emultempl/hppaelf.em (build_section_lists): New function.
69 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
70 and build_section_lists.
72 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
74 * ld.h: Fix formatting.
82 2002-05-02 Alan Modra <amodra@bigpond.net.au>
84 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
85 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
86 (build_section_lists): Do output_section tests here.
88 2002-04-30 Tom Rix <trix@redhat.com>
90 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
92 2002-05-01 Alan Modra <amodra@bigpond.net.au>
94 Long branch stubs, multiple stub sections.
95 * emultempl/ppc64elf.em: Include ldctor.h.
97 (group_size): New var.
98 (ppc_create_output_section_statements): New function.
99 (struct hook_stub_info): New.
100 (hook_in_stub): New function.
101 (ppc_add_stub_section): New function.
102 (ppc_layout_sections_again): New function.
103 (build_section_lists): New function.
104 (gld${EMULATION_NAME}_finish): Rewrite.
105 (real_func): New var.
106 (ppc_for_each_input_file_wrapper): New function.
107 (ppc_lang_for_each_input_file): New function.
108 (lang_for_each_input_file): Define.
109 (PARSE_AND_LIST_PROLOGUE): Define.
110 (PARSE_AND_LIST_LONGOPTS): Define.
111 (PARSE_AND_LIST_OPTIONS): Define.
112 (PARSE_AND_LIST_ARGS_CASES): Define.
113 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
115 2002-04-30 Tom Rix <trix@redhat.com>
117 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
118 -blibpath, -bnolibpath support.
120 2002-04-30 Mark Mitchell <mark@codesourcery.com>
122 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
123 (eelf32ppcwindiss.c): New target.
124 * Makefile.in: Regenerated.
125 * configure.tgt: Add support for powerpc-*-windiss.
126 * emulparams/elf32ppcwindiss.sh: New file.
128 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
130 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
131 * ldexp.c (exp_print_token): Add "infix_p" argument.
132 (exp_print_tree): Update accordingly.
134 2002-04-28 Alan Modra <amodra@bigpond.net.au>
136 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
137 * Makefile.in: Regenerate.
138 * mpw-elfmips.c: Delete.
139 * mpw-eppcmac.c: Delete.
141 * mpw-idtmips.c: Delete.
143 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
145 * emulparams/shelf32.sh (MACHINE): Now sh5.
147 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
149 * ldgram.y: Fix syntax warning.
151 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
153 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
154 to prevent "-n" from being taken as an abbreviation for
155 "--no-pipeline-knowledge".
157 2002-04-08 Alan Modra <amodra@bigpond.net.au>
159 * ldlang.c (lang_size_sections_1): Don't complain about
160 SEC_NEVER_LOAD sections having no memory region specified.
162 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
164 2002-04-07 matthew green <mrg@redhat.com>
166 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
168 2002-04-04 Alan Modra <amodra@bigpond.net.au>
170 * dep-in.sed: Cope with absolute paths.
171 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
173 * Makefile.in: Regenerate.
175 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
177 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
179 2002-04-03 Jakub Jelinek <jakub@redhat.com>
181 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
182 is smaller than maximum, round dot up to common page boundary.
184 2002-03-28 Alan Modra <amodra@bigpond.net.au>
186 * configure.host: Set up for generic hosts first, then tweak as
187 necessary in more specific targets.
188 (HOSTING_LIBS): Include libgcc_eh.a if found.
190 2002-03-23 Andreas Jaeger <aj@suse.de>
192 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
194 2002-03-21 Alan Modra <amodra@bigpond.net.au>
196 * Makefile.am: Run "make dep-am".
197 * Makefile.in: Regenerate.
199 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
201 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
203 2002-03-20 Alan Modra <amodra@bigpond.net.au>
205 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
206 add the symbol to the linker hash table immediately.
207 (lang_place_undefineds): Split symbol creation out..
208 (insert_undefined): ..to here.
210 2002-03-18 David O'Brien <obrien@FreeBSD.org>
212 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
213 the contents of the buffer returned from basename function will are
214 getting overwritten while still being used.
216 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
217 Andreas Jaeger <aj@suse.de>
218 Andreas Schwab <schwab@suse.de>
220 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
221 * elf_x86_64.sh (ARCH): Set to i386:x86-64
222 set libraries to default to lib64 paths.
224 2002-03-18 Tom Rix <trix@redhat.com>
226 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
227 * configure.tgt : Same.
228 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
229 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
230 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
231 emulation parameters for better -b32, -b64 support.
232 * emulparms/aixrs6.sh : Same.
233 * emulparms/ppcmacos.sh : Same.
234 * emultempl/aix.em (choose_target) : Use new emulation parameters
235 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
236 * Makefile.in : Regenerate.
238 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
240 * po/fr.po: Updated version.
242 2002-03-18 Alan Modra <amodra@bigpond.net.au>
244 * ldmain.c (main): Move .text readonly flag fudges from here..
245 * ldlang.c (lang_process): ..to here.
247 2002-03-14 Alan Modra <amodra@bigpond.net.au>
249 * ldlang.c (lang_check): Remove the word size check added in last
250 change. Treat emitrelocations case as for relocatable links.
252 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
254 * po/fr.po: Updated version.
256 2002-03-13 Alan Modra <amodra@bigpond.net.au>
258 * ldlang.c (lang_check): Do relocatable link checks first, so that
259 warn_mismatch can't override. Check compatible and word size too.
261 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
263 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
265 2002-03-05 Jakub Jelinek <jakub@redhat.com>
267 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
270 2002-03-04 H.J. Lu <hjl@gnu.org>
272 * scripttempl/elf.sc: Put .preinit_array, .init_array and
273 .fini_array in the data segment.
275 2002-03-04 Alan Modra <amodra@bigpond.net.au>
277 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
279 2002-03-01 David Mosberger <davidm@hpl.hp.com>
281 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
282 .init_array, and .fini_array.
284 2002-02-20 Andreas Schwab <schwab@suse.de>
286 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
287 .IA64_unwind* in a relocatable link.
289 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
291 * NEWS: Mark 2.12 branch.
293 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
295 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
296 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
298 2002-02-18 Tom Rix <trix@redhat.com>
300 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
301 (gld*_before_allocation): Same.
302 (gld*_create_output_section_statements): Generate
303 __rtinit if run time linking. Add librtl.a to the link.
304 (gld*_read_file): Clean.
306 2002-02-18 Alan Modra <amodra@bigpond.net.au>
308 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
310 2002-02-18 David O'Brien <obrien@FreeBSD.org>
312 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
313 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
314 and eelf64alpha_fbsd.
315 * Makefile.in: Regenerate.
316 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
317 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
318 use a FreeBSD-specific emulation rather than the psABI one.
319 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
320 for all FreeBSD ELF systems.
321 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
323 * emulparams/elf32ppc_fbsd.sh: Likewise.
324 * emulparams/elf64_ia64_fbsd.sh: Likewise.
325 * emulparams/elf64_sparc_fbsd.sh: Likewise.
326 * emulparams/elf64alpha_fbsd.sh: Likewise.
327 * emulparams/elf_i386_fbsd.sh: Likewise.
328 * emulparams/elf_x86_64_fbsd.sh: Likewise.
330 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
332 * po/tr.po: Updated version.
334 2002-02-18 Alan Modra <amodra@bigpond.net.au>
336 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
339 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
341 * emultempl/mmo.em (mmo_after_open): Don't call
342 _bfd_mmix_check_all_relocs when producing ELF output.
344 2002-02-15 Richard Henderson <rth@redhat.com>
346 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
347 definition. Emit a unop+nop pair.
349 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
351 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
352 for presence of .MMIX.reg_contents.linker_allocated before early
355 * NEWS: Mention support for MMIX.
357 2002-02-15 Alan Modra <amodra@bigpond.net.au>
359 Support arbitrary length fill patterns.
360 * ld.texinfo (Output Section Fill): Describe fill expressions.
361 (FILL): Refer to the above.
362 * ldexp.h (etree_value_type): Add "str" field.
363 (union etree_union): Add "str" to "value" struct.
364 (exp_bigintop): Declare.
365 (exp_get_fill): Declare.
366 * ldexp.c: Include "safe-ctype.h".
367 (exp_intop): Set value.str to NULL.
368 (exp_bigintop): New function.
369 (new_rel): Pass in "str", and set new.str from it.
370 (new_rel_from_section): Set new.str to NULL.
371 (fold_name): Adjust calls to new_rel.
372 (exp_fold_tree): Likewise.
373 (exp_get_fill): New function.
374 * ldgram.y (struct big_int bigint, fill_type *fill): New.
375 (INT): Returns a "bigint". Adjust all code handling INTs.
376 (fill_opt): Returns a "fill".
377 (fill_exp): Split out of fill_opt, use for FILL.
378 * ldlang.h (struct _fill_type): New.
379 (fill_type): Move typedef to ldexp.h.
380 (lang_output_section_statement_type): "fill" is now a pointer.
381 (lang_fill_statement_type): Likewise.
382 (lang_padding_statement_type): Likewise.
383 (lang_add_fill): Now takes a "fill_type *" param.
384 (lang_leave_output_section_statement): Likewise.
385 (lang_do_assignments): Likewise.
386 (lang_size_sections): Likewise.
387 (lang_leave_overlay_section): Likewise.
388 (lang_leave_overlay): Likewise.
389 * ldlang.c: Include ldgram.h after ldexp.h.
390 (lang_output_section_statement_lookup): Adjust for fill_type change.
391 (print_fill_statement): Likewise.
392 (print_padding_statement): Likewise.
393 (insert_pad): Now takes a "fill_type *" arg.
394 (size_input_section): Likewise.
395 (lang_size_sections_1): Likewise.
396 (lang_size_sections): Likewise.
397 (lang_do_assignments): Likewise.
398 (lang_add_fill): Likewise.
399 (lang_leave_output_section_statement): Likewise.
400 (lang_leave_overlay_section): Likewise.
401 (lang_leave_overlay): Likewise.
402 Adjust all callers of the above function.
403 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
404 starting with "0X" as well as "0x". Return bigint.str for hex
405 numbers starting with "0x" or "0X", zero bigint.str otherwise.
406 Always use base 16 for numbers starting with "$".
407 * ldmain.c: Include ldgram.h after ldexp.h.
408 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
409 of bfd_fill_link_order.
410 * pe-dll.c: Adjust lang_do_assignments calls.
411 * emultempl/elf32.em: Likewise.
412 * emultempl/hppaelf.em: Likewise.
413 * emultempl/ppc64elf.em: Likewise.
414 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
415 lang_add_assignment call.
416 * emultempl/pe.em: Likewise.
418 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
420 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
421 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
422 the pattern in question is not a regexp.
423 * ldlang.c: Likewise.
424 * ldlang.h: Likewise.
425 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
427 2002-02-12 Jakub Jelinek <jakub@redhat.com>
429 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
430 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
431 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
432 * ldexp.c (exp_data_seg): New variable.
433 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
434 (fold_binary): Handle DATA_SEGMENT_ALIGN.
435 (exp_fold_tree): Handle DATA_SEGMENT_END.
436 Pass allocation_done when recursing instead of hardcoding
437 lang_allocating_phase_enum.
438 * ldexp.h (exp_data_seg): New.
439 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
440 (lang_size_sections): New.
441 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
442 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
443 if COMMONPAGESIZE is defined.
444 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
445 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
446 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
447 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
448 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
451 2002-02-11 Alan Modra <amodra@bigpond.net.au>
453 * Makefile.in: Regenerate.
455 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
457 * lexsup.c: Remove strtoul declaration.
459 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
461 * ldmain.c: Add prototype for main ().
462 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
463 * emultempl/lnk960.em (lnk960_choose_target): Function should
466 2002-02-10 Alan Modra <amodra@bigpond.net.au>
468 * ldlang.c (entry_section): New initialised variable.
469 (lang_finish): Use it.
470 * ldlang.h (entry_section): Declare.
471 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
472 entry_section to ".opd".
474 2002-02-09 Chris Demetriou <cgd@broadcom.com>
476 * ld.texinfo (Options): Add back in -nostdlib documentation,
477 which had been inadvertently removed.
479 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
481 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
482 register section vma to a sane value after emitting error. Make
483 fatal conditions cause program exit when emitting message.
485 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
487 * configure.tgt: Add or32-*-rtems target.
489 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
492 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
493 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
494 in OTHER_RELOCATABLE_SECTIONS.
495 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
496 * emulparams/shelf32.sh (STACK_ADDR): Define.
497 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
498 (OTHER_SECTIONS): this. Removed stack settings.
499 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
500 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
501 2001-03-12 DJ Delorie <dj@redhat.com>
502 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
503 relaxing if any shmedia or mixed sections are found.
504 2001-03-07 DJ Delorie <dj@redhat.com>
505 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
506 einfo. Gracefully decline to output to non-elf formats.
507 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
508 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
509 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
510 * emulparams/shelf32.sh: Ditto.
511 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
512 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
514 2001-01-10 Ben Elliston <bje@redhat.com>
515 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
516 non-portable shell constructs. From Hans-Peter Nilsson.
517 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
518 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
519 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
520 dependencies to the shell script include chain.
521 * Makefile.in: Regenerate.
522 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
523 * emultempl/sh64elf.em: Update and tweak comments.
524 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
525 make a .cranges section SEC_IN_MEMORY.
526 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
527 * emultempl/sh64elf.em
528 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
529 .cranges section found to be necessary; continue and set stored
530 section contents flags for sections with non-mixed contents.
531 Use a struct sh64_section_data container and sh64_elf_section_data
532 to store contents-type flags.
533 Remove unused update of "isec".
534 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
535 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
536 access contents-type flags. Assert that the associated container
537 is initialized. Use that container, not elf_gp_size, to hold size
538 of linker-generated cranges contents.
539 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
540 * emultempl/sh64elf.em
541 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
542 there's already a .cranges section. When section flag difference
543 is found, don't NULL-check cranges a second time. Tweak comments.
544 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
545 merging, not max size, as size of ld-generated .cranges contents.
546 Don't set ELF section flags in output section. When checking for
547 needed .cranges descriptors, don't use a variable; compare
548 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
550 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
551 * emultempl/sh64elf.em: New file.
552 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
553 * Makefile.in: Regenerate.
554 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
555 (OTHER_RELOCATING_SECTIONS): Ditto.
556 (EXTRA_EM_FILE): New, set to sh64elf if not set.
557 * emulparams/shlelf32.sh: Stub out all settings except
558 OUTPUT_FORMAT. Source shelf32.sh.
559 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
560 OTHER_RELOCATING_SECTIONS.
561 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
562 * emulparams/shlelf64.sh: Stub out all settings except
563 OUTPUT_FORMAT. Source shelf64.sh.
564 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
565 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
567 (DATA_START_SYMBOLS): Define, provide ___data.
568 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
569 for consecutive .data section.
570 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
571 section after .data section.
572 * emulparams/shlelf64.sh: Ditto.
573 * emulparams/shelf32.sh: Ditto.
574 (ALIGNMENT): Define to 8.
575 * emulparams/shelf32.sh: Ditto.
576 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
577 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
578 built-in linker scripts.
579 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
580 * emulparams/shlelf64.sh: New.
581 * emulparams/shelf64.sh: New.
582 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
584 * Makefile.am: Add support for shlelf64 and shelf64.
585 * Makefile.in: Regenerate.
586 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
587 * configure.tgt (sh64-*-elf*): Add shelf as default.
588 Add shlelf to targ_extra_emuls.
589 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
590 * emulparams/shelf32.sh: New file.
591 * emulparams/shlelf32.sh: New file.
592 * Makefile.am: Add support for shlelf32 and shelf32.
593 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
594 * Makefile.in: Regenerate.
596 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
598 * ldlang.c (lang_reset_memory_regions): Rename from
599 reset_memory_regions. Change all callers. Make public.
600 * ldlang.h (lang_reset_memory_regions): Prototype.
601 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
602 lang_reset_memory_regions before lang_size_sections.
603 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
604 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
606 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
608 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
609 arithmetic when checking for too many global registers.
611 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
613 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
614 (ehppanbsd.c): New rule.
615 * Makefile.in: Regenerate.
616 * configure.tgt (hppa*-*-netbsd*): New target.
617 * emulparams/hppalinux.sh: Add comment to check other files
618 that source this file it is modified, and list which
620 * emulparams/hppanbsd.sh: New file.
622 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
624 * scripttempl/xstormy16.sc: Don't allocate extra space for the
627 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
629 Support on-demand global register allocation from
630 R_MMIX_BASE_PLUS_OFFSET relocs.
631 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
632 mmix_set_reg_section_vma. Call
633 _bfd_mmix_finalize_linker_allocated_gregs.
634 (mmix_before_allocation): New function.
635 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
636 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
637 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
638 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
639 before .MMIX.reg_contents.
640 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
641 (mmo_after_open): New function.
642 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
643 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
644 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
646 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
648 * emulparams/or32.sh: New file.
649 * emulparams/or32elf.sh: New file.
650 * scripttempl/or32.sc: New file.
651 * configure.tgt : Add support for or32.
652 * configure: Regenerate
653 * Makefile.am: Add support for or32.
654 * Makefile.in: Regenerate.
655 * NEWS: Mention support for or32.
656 * po/ld.pot: Regenerate.
658 2002-01-29 Chris Demetriou <cgd@broadcom.com>
659 Mitch Lichtenberg <mpl@broadcom.com>
661 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
662 * emultempl/mipself.em: New file to handle MIPS ELF embedded
663 reloc creation (ld --embedded-relocs).
665 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
667 * configure: Regenerated.
669 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
671 * Makefile.am (install): Depend on install-info.
672 * Makefile.in: Regenerate.
674 2002-01-26 Christian Rose <menthos@menthos.com>
676 * ldmain.c (main): Use full sentences to ease translation.
678 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
680 * po/fr.po: Updated version.
682 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
684 * po/es.po: Updated version.
686 2002-01-25 Andreas Jaeger <aj@suse.de>
688 * ldlex.l (yy_input): Correct error check.
690 2002-01-25 Alan Modra <amodra@bigpond.net.au>
692 * ldmisc.c (demangle): Put back dots when string not demangled.
694 2002-01-22 Richard Henderson <rth@redhat.com>
696 * emulparams/elf64alpha.sh (NOP): Use unop.
698 2002-01-21 Andreas Jaeger <aj@suse.de>
700 * ldlex.l: Use fread instead of read.
702 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
704 * configure.tgt (ia64-*-netbsd*): New target.
706 2002-01-21 H.J. Lu <hjl@gnu.org>
708 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
710 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
712 2002-01-18 Andreas Jaeger <aj@suse.de>
714 * ldver.c (ldversion): Update year.
716 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
718 * po/ld.pot: Regenerate.
720 2002-01-16 Alan Modra <amodra@bigpond.net.au>
722 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
723 * Makefile.in: Regenerate.
724 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
725 * emultempl/ppc64elf.em: New file.
727 2002-01-15 DJ Delorie <dj@redhat.com>
729 * scripttempl/pe.sc: Add support for constructor priorities.
731 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
733 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
734 * emulparams/avr23xx.sh: Likewise.
735 * emulparams/avr4433.sh: Likewise.
736 * emulparams/avr44x4.sh: Likewise.
737 * emulparams/avr85xx.sh: Likewise.
738 * emulparams/avrmega103.sh: Likewise.
739 * emulparams/avrmega161.sh: Likewise.
740 * emulparams/avrmega603.sh: Likewise.
741 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
743 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
745 * ldlang.c (walk_wild_section): Exclude object file if enclosing
748 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
750 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
751 (eshelf_nbsd.c): New rule.
752 (eshlelf_nbsd.c): New rule.
753 * Makefile.in: Regenerate.
754 * configure.tgt (sh*le-*-netbsdelf*): New target.
755 (sh*-*-netbsdelf*): New target.
756 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
757 * ld/emulparams/shelf_nbsd.sh: New emulation.
758 * ld/emulparams/shlelf_nbsd.sh: New emulation.
760 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
762 * po/es.po: New file: Spanish translation.
763 * configure.in (ALL_LINGUAS): Add es.
764 * configure: Regenerate.
766 2002-01-06 John Marshall <jmarshall@acm.org>
768 * ld.texinfo: Note that --emit-relocs is currently only
771 2002-01-05 Alan Modra <amodra@bigpond.net.au>
773 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
774 of bfd_section_list_remove and bfd_section_list_insert macros.
775 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
776 * emultempl/mmo.em (mmo_place_orphan): Likewise.
778 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
780 * configure.tgt (x86_64-*-netbsd*): New target.
782 2001-12-21 Tom Rix <trix@redhat.com>
784 (gld*_create_output_section_statements): New function.
785 For -binitfini support.
786 * emultempl/aix.em (gld*_before_parse): Fix comment.
787 * emultempl/aix.em (gld*_parse_args): Fix comment.
789 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
791 * configure.tgt (mips*-dec-netbsd*): Delete alias for
793 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
795 * configure.tgt (arm-*-netbsdelf*): Add target.
796 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
797 * emulparams/armelf_nbsd.sh: Added.
798 * Makefile.am: Add rules for earmelf_nbsd.
799 * Makefile.in: Regenerate.
801 2001-12-19 Andreas Jaeger <aj@suse.de>,
802 Susanne Oberhauser <froh@suse.de>
804 * configure.host: Add rules for x86_64-*linux-gnu. Change
805 s390x-linux entry to use gcc to report configuration, replace gcc
806 with $CC in s390-linux
808 2001-12-19 Andreas Jaeger <aj@suse.de>
810 * ld.texinfo (VERSION): Fix markup.
812 2001-12-18 matthew green <mrg@eterna.com.au>
814 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
815 (m68kelfnbsd.c): New rule.
816 * Makefile.in: Regenerate.
817 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
818 (m68*-*-netbsd*4k*): .. this.
819 (m68*-*-netbsdelf*): New target.
820 (m68*-*-netbsd*): Also include ELF support.
821 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
822 * emulparams/m68kelfnbsd.sh: New emulation.
824 2001-12-18 Jakub Jelinek <jakub@redhat.com>
826 * ldgram.y (vers_node): Support anonymous version tags.
827 * ldlang.c (lang_register_vers_node): Ensure anonymous version
828 tag is not defined together with non-anonymous versions.
829 * ld.texinfo: Document it.
831 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
833 * po/tr.po: New file: Turkish translation.
834 * configure.in (ALL_LINGUAS): Add tr.
835 * configure: Regenerate.
837 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
839 * Makefile.am: Add rules for eelf64alpha_nbsd.
840 * Makefile.in: Regenerate.
841 * configure.tgt (alpha*-*-netbsd*): Set
842 targ_emul to elf64alpha_nbsd.
843 * emulparams/elf64alpha_nbsd.sh: Added.
845 2001-12-17 Alan Modra <amodra@bigpond.net.au>
847 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
848 section_tail when fiddling with section list.
849 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
850 broken into separate strings to make translation easier.
851 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
852 fiddling with section list.
853 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
855 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
857 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
859 2001-12-15 Alan Modra <amodra@bigpond.net.au>
861 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
863 2001-12-13 Jakub Jelinek <jakub@redhat.com>
865 * emultempl/elf32.em (finish): Supply output_bfd
866 to bfd_elf*_discard_info.
867 (OPTION_EH_FRAME_HDR): Define.
868 (longopts): Add --eh-frame-hdr.
869 (parse_args): Handle it.
870 (list_options): Add --eh-frame-hdr to help.
871 * emultempl/hppaelf.em (finish): Supply output_bfd
872 to bfd_elf*_discard_info.
873 * scripttempl/elf.sc (.eh_frame_hdr): Add.
875 2001-12-13 Alan Modra <amodra@bigpond.net.au>
877 * lexsup.c (parse_args): Don't pass shortopts to second call to
878 getopt functions. Restore optind rather than decrementing before
879 second call. Remove errind as it now duplicates last_optind.
881 2001-12-11 Christopher Faylor <cgf@redhat.com>
883 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
885 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
886 Richard Henderson <rth@redhat.com>
888 * Makefile.am: Add support for xstormy16.
889 * configure.tgt: Add support for xstormy16.
890 * Makefile.in: Regenerate.
891 * emulparams/elf32xstormy16.sh: New file.
892 * scripttempl/xstormy16.sc: New file.
894 2001-10-01 Christopher Faylor <cgf@cygnus.com>
896 * Makefile.in (LIB_PATH): Make configurable.
897 (GENSCRIPTS): Set LIB_PATH in environment.
898 * configure.in: Substitute LIB_PATH.
899 * configure: Regenerate.
900 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
901 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
903 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
905 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
906 describing the -N option so that it is easier to translate into
909 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
911 * emultempl/pe.em (..._list_options): Replace multiple fprintf
912 statements describing a single option with a single, newline
913 escaped fprintf. This allows better translation into other
916 * ldmain.c (add_archive_element): Combine multiple strings
917 into a single string to permit better translation into other
920 2001-12-05 Tom Rix <trix@redhat.com>
922 * Makefile.am: Remove eaixppc64.
923 * Makefile.in: Regenerate.
925 2001-12-04 Tom Rix <trix@redhat.com>
927 * emultempl/aix.em (choose_target): Change default target to
928 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
930 (gld*_read_file): Fix typo.
931 (change_symbol_mode): Add prototype.
934 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
935 * emulparams/aixrs6.sh : Same.
936 * emulparams/ppcmacos.sh : Same.
937 * emulparams/aixppc64.sh : Delete file.
938 * emultempl/aix.em : Formatting changes.
940 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
942 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
943 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
945 (OTHER_END_SYMBOLS): Fix formatting.
946 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
947 (OTHER_END_SYMBOLS): Fix formatting.
949 2001-12-04 Alan Modra <amodra@bigpond.net.au>
951 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
953 2001-12-02 Tom Rix <trix@redhat.com>
955 * configure.tgt : Remove eaixppc64 emulations.
956 * Makefile.in : Remove eaixppc64.c
957 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
958 (ldemul_default_target): Same.
959 * emultempl/gld960.em (gld960_choose_target): Same.
960 * emultempl/gld960c.em (gld960_choose_target): Same.
961 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
962 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
963 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
964 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
965 * emultempl/aix.em (choose_target): New function. Handle emulation of
968 2001-11-27 H.J. Lu <hjl@gnu.org>
970 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
971 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
972 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
973 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
974 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
975 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
976 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
977 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
979 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
982 (REL_SDATA): Likewise.
983 (REL_SBSS): Likewise.
984 (REL_SDATA2): Likewise.
985 (REL_SBSS2): Likewise.
986 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
989 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
991 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
993 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
995 2001-11-22 H.J. Lu <hjl@gnu.org>
997 * Makefile.in: Regenerated with automake based on automake
1000 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1002 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1003 (config.status): Delete rule.
1004 Add extra dependencies to cover sourced emulparams files.
1005 * Makefile.in: Regenerate.
1007 * scripttempl/elf.sc: Order <section>, <section>.* and
1008 corresponding linkonce sections as seen in input files.
1009 Formatting fixes. Zero vma of all sections if not relocating.
1010 (STACK): Define and insert if STACK_ADDR defined.
1011 (OTHER_RELOCATING_SECTIONS): Delete.
1012 (OTHER_END_SYMBOLS): Define.
1013 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1014 (OTHER_READWRITE_SECTIONS): Likewise.
1015 (OTHER_GOT_SECTIONS): Likewise.
1016 (OTHER_SDATA_SECTIONS): Likewise.
1017 (OTHER_BSS_SECTIONS): Likewise.
1018 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1019 (OTHER_READWRITE_SECTIONS): Likewise.
1020 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1021 (OTHER_READWRITE_SECTIONS): Likewise
1023 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1024 (STACK_ADDR): Define.
1025 * emulparams/armelf_oabi.sh: As for armelf.sh.
1026 * emulparams/elf32mcore.sh: As for armelf.sh.
1027 * emulparams/h8300elf.sh: As for armelf.sh.
1028 * emulparams/mn10200.sh: As for armelf.sh.
1029 * emulparams/shelf.sh: As for armelf.sh.
1031 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1032 (OTHER_END_SYMBOLS): Define.
1033 * emulparams/m32relf.sh: As for elf32fr30.sh.
1034 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1035 * emulparams/h8300self.sh: As for elf32fr30.sh.
1037 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1038 defines with RELOCATING test.
1039 (OTHER_SDATA_SECTIONS): Likewise.
1040 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1041 (OTHER_END_SYMBOLS): ..this.
1042 * emulparams/crislinux.sh: As for criself.sh.
1044 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1046 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1047 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1048 normal and linkonce sections as seen in input files.
1049 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1050 (TEXT_DYNAMIC): Likewise.
1051 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1052 (OTHER_SDATA_SECTIONS): Likewise.
1053 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1054 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1055 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1056 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1057 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1058 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1059 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1060 sections as seen in input files.
1061 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1062 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1064 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1065 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1066 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1067 (OTHER_SECTIONS): Instead, use this..
1068 (OTHER_END_SYMBOLS): ..and this.
1070 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1071 * emulparams/elf32bsmip.sh: Likewise.
1072 * emulparams/elf32btsmip.sh: Likewise.
1073 * emulparams/elf32ebmip.sh: Likewise.
1074 * emulparams/elf32lmip.sh: Likewise.
1075 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1076 * emulparams/elf32lsmip.sh: Likewise.
1077 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1078 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1079 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1080 * emulparams/elf64btsmip.sh: Likewise.
1081 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1082 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1083 * emulparams/elf32ppclinux.sh: Likewise.
1084 * emulparams/elf32ppcsim.sh: Likewise.
1085 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1086 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1087 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1088 * emulparams/h8300self.sh: Likewise.
1089 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1090 * emulparams/sh.sh: Comment.
1091 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1092 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1093 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1095 2001-11-21 David Heine <dlheine@tensilica.com>
1096 Alan Modra <amodra@bigpond.net.au>
1098 * ldlang.c (map_input_to_output_sections): Replace "break"
1099 accidentally removed with 2001-08-03 change.
1100 (lang_gc_sections_1): Likewise.
1102 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1104 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1106 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1108 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1109 of false when calling lang_size_sections.
1110 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1112 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1114 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1115 function when LDEMUL_FINISH isn't set to the same name. Don't
1116 call ${LDEMUL_FINISH}.
1117 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1118 * emultempl/armelf.em (arm_elf_finish): Call
1119 gld${EMULATION_NAME}_finish.
1120 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1121 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1122 hppaelf_layout_sections_again if necessary.
1123 (need_laying_out): New var.
1124 (hppaelf_layaout_sections_again): Rename to
1125 hppaelf_layout_sections_again. Clear need_laying_out.
1126 (PARSE_AND_LIST_OPTIONS): Format text.
1128 2001-11-14 H.J. Lu <hjl@gnu.org>
1130 * emultempl/armelf.em (arm_elf_finish): Renamed from
1131 gld${EMULATION_NAME}_finish.
1132 (LDEMUL_FINISH): Set to arm_elf_finish.
1134 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1136 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1137 (struct ld_emulation_xfer_struct): Use it.
1139 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1141 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1142 additional symbols referenced by newer crt0.o files from HP.
1144 2001-11-12 Anthony Green <green@redhat.com>
1146 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1148 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1150 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1151 * Makefile.in: Regenerate.
1153 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1155 * ld.texinfo: Use @command for commands, @option for options.
1156 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1158 * Makefile.in: Rebuild.
1160 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1162 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1163 Add support for targets.
1165 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1167 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1168 * configure: Regernate.
1169 * po/fr.po: New file.
1170 * po/sv.po: New file.
1172 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1174 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1175 as little endian default and to support big endian.
1177 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1179 * ld.texinfo (Options): Document new option, -nostdlib.
1180 * lexsup.c (OPTION_NOSTDLIB): New definition.
1181 (ld_options): Add entry for "nostdlib".
1182 (parse_args): Handle OPTIONS_NOSTDLIB.
1183 * ldfile.c (ldfile_add_library_path): Don't add directories
1184 to the search path if they weren't specified on the command line
1185 and -nostdlib was specified.
1186 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1188 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1190 * lexsup.c (parse_args): Prevent infinite parsing loop when
1191 "-rpath.a" is specified on the command line.
1192 Replace calls to fprintf with calls to einfo.
1194 2001-10-31 John Marshall <jmarshall@acm.org>
1196 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1197 appear only once across all the linker scripts involved in a link
1198 invocation no longer applies. Make the documentation reflect
1201 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1203 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1205 (sh-*-linux*): Added targ_extra_libpath.
1207 2001-10-31 David Heine <dlheine@tensilica.com>
1209 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1210 for padding statements.
1212 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1214 * configure.tgt (mmix-*-*): New target.
1215 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1216 Add dependencies to match.
1217 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1218 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1219 scripttempl/mmo.sc: New files.
1220 * gen-doc.texi: @set MMIX.
1221 * ld.texinfo: Ditto.
1222 [MMIX] Add MMIX node.
1223 * Makefile.in: Regenerate.
1225 2001-10-29 Kazu Hirata <kazu@hxi.com>
1227 * ldlang.c: Fix a comment typo.
1229 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1231 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1232 entries, and match *-*-linux*.
1234 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1236 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1237 with ldlex_script, ldlex_popstate.
1238 (ifile_p1): Likewise.
1239 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1241 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1242 to 1. Don't BEGIN(SCRIPT).
1243 (lex_redirect): Similarly.
1244 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1246 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1248 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1249 __EH_FRAME_END__ and accept eh frames into data section.
1250 Add ctor and dtor sections.
1252 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1254 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1255 (auto-export): Fix indentation.
1257 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1259 * pe-dll.c (autofilter_objectlist): Add startup objects
1261 (auto-export): Constify char * p.
1262 Extract file basename and use strcmp rather than ststr
1265 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1267 * ldmain.c (get_emulation): Improve comment about the handling
1270 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1272 * po/POTFILES.in: Regenerate.
1274 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1276 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1277 -z nocopyreloc and -z nocombreloc usage strings.
1279 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1281 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1284 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1286 * scripttempl/armaout.sc: Place .bss section after end of aligned
1287 data section to match behaviour of aout code in constructrion of
1290 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1292 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1293 startup files for mingw32 dlls to list.
1295 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1297 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1299 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1301 * configure.tgt (targ): Add arm9e-*-elf.
1303 2001-10-05 H.J. Lu <hjl@gnu.org>
1305 * genscripts.sh: Fix a typo in the last change.
1307 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1309 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1310 -z nocombreloc in usage.
1312 2001-10-03 Jim Blandy <jimb@redhat.com>
1314 * genscripts.sh: Include a comment at the top of each generated
1315 script, explaining its purpose.
1317 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1319 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1320 * NEWS: Mention -z nocopyreloc.
1321 * ld.texinfo (Options): Describe nocopyreloc.
1323 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1325 * configure: Regenerate.
1327 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1329 * ldver.h (ld_program_version): Remove declaration.
1330 * lexsup.c (parse_args): Move printing of copyright message..
1331 * ldver.c (ldversion): .. to here.
1332 Use BFD_VERSION_STRING in place of BFD_VERSION.
1333 (ld_program_version): Remove.
1334 * Makefile.am (Makefile): Depend on bfd/configure.in.
1336 * Makefile.in: Regenerate.
1338 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1340 * Makefile.am: Update dependencies with "make dep-am".
1341 * Makefile.in: Regenerate.
1343 2001-09-29 John Reiser <jreiser@BitWagon.com>
1345 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1346 * lexsup.c: Add --no-define-common commandline option.
1347 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1348 * ldlex.l: Likewise.
1349 * ld.h: Add command_line.inhibit_common_definition.
1350 * ldmain.c (main): Initialize.
1351 * ld.texinfo: Document.
1353 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1355 * ldmisc.c (USE_STDARG): Remove.
1356 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1361 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1362 declarations. Update copyright.
1364 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1366 * pe-dll.c: Remove obsoleted declaration of
1367 pe_get_data_import_dll_name.
1368 (pe_create_import_fixup): Fix thinko.
1370 * ld.texinfo(enable-auto-import): Clarify the explanation.
1372 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1374 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1375 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1376 DLL_SUPPORT controlled code.
1378 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1380 * emultempl/pe.em(pe_data_import_dll): Make static.
1381 (pe_get_data_import_dll_name): New accessor function.
1382 * pe-dll.c(pe_create_import_fixup): call
1383 pe_get_data_import_dll_name() from pe.em, instead of
1384 directly accessing pe_data_import_dll variable from pe.em.
1386 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1388 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1389 (def_file_add_directive): Use ISSPACE instead of isspace.
1390 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1391 isdigit/isxdigit/isalpha/isalnum.
1392 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1393 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1394 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1395 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1397 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1398 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1400 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1401 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1402 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1403 (ctor_prio): Use ISDIGIT instead of isdigit.
1404 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1405 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1406 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1408 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1409 (stricpy): Use TOLOWER instead of isupper/tolower.
1410 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1411 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1412 (lex_warn_invalid): Use ISPRINT instead of isprint.
1413 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1414 (main): For gettext, also set the LC_CTYPE locate facet.
1415 (add_keepsyms_file): Use ISSPACE instead of isspace.
1416 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1417 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1418 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1419 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1420 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1421 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1422 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1423 (quoteput): Use ISSPACE instead of isspace.
1424 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1427 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1429 * deffilep.y (def_stash_module): Constify "name" param.
1431 * pe-dll.c: Replace CONST with const throughout.
1432 (quick_symbol): Constify "n1", "n2", "n3" params.
1433 (make_singleton_name_thunk): Constify "import" param. Make
1434 "buffer_len" a size_t.
1435 (make_import_fixup_entry): Constify "name", "fixup_name",
1436 "dll_symname" params.
1437 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1438 (pe_get32): Likewise.
1439 (pe_implied_import_dll): Likewise.
1441 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1442 (sort_by_section_name): Likewise.
1444 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1445 (make_import_fixup): Cast printf arg, rel->address to long rather
1447 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1449 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1451 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1452 defines BufferSize. Increase buffer size by one.
1454 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1456 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1458 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1460 * configure.tgt: Add arm-openbsd target.
1462 2001-09-12 H.J. Lu <hjl@gnu.org>
1464 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1466 (ALL_64_EMULATIONS): Here.
1467 * Makefile.in: Regenerated.
1469 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1471 * emultempl/pe.em(make_import_fixup): change signature to
1472 take asection as well as arelec; we need this for proper
1473 error reporting. Only call pe_create_import_fixup() if
1474 there is no attempt to add a constant addend to the reloc;
1475 otherwise, report error condition.
1476 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1477 since final argument is a pointer to make_import_fixup().
1478 Change call to cb() to match make_import_fixup() signature.
1479 (make_import_fixup_mark): make buffer_len unsigned.
1480 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1482 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1484 * ld.texinfo: add verbose documentation for auto-import
1485 direct-addressing workaround, to compliment the terse
1488 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1490 * scripttempl/v850.sc: Add gcc_except_table sections.
1492 2001-09-11 Jeffrey A Law (law@cygnus.com)
1494 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1495 * emulparams/h8300self.sh: Similarly.
1497 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1499 * ld.texinfo (Options, --stack): Correct default value for stack
1502 2001-09-05 Tom Rix <trix@redhat.com>
1504 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1506 2001-09-03 Andreas Jaeger <aj@suse.de>
1508 * emultempl/beos.em: Declare prototypes for comparions functions,
1511 2001-09-02 Andreas Jaeger <aj@suse.de>
1513 * emultempl/aix.em: Add missing prototype.
1514 * emultempl/lnk960.em: Likewise.
1515 * emultempl/vanilla.em: Likewise.
1516 * emultempl/armcoff.em: Likewise.
1517 * emultempl/armelf_oabi.em: Likewise.
1518 * emultempl/beos.em: Likewise.
1519 * emultempl/gld960c.em: Likewise.
1520 * emultempl/gld960.em: Likewise.
1522 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1523 for prototype declaration.
1525 2001-08-31 Eric Christopher <echristo@redhat.com>
1526 Jason Eckhardt <jle@redhat.com>
1528 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1530 2001-08-31 Andreas Jaeger <aj@suse.de>
1532 * emultempl/pe.em: Add missing prototypes.
1533 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1534 pe_find_data_imports.
1535 (pr_sym): Add unused attribute.
1537 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1539 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1540 default from coff to elf.
1542 2001-08-29 Jeff Law <law@redhat.com>
1544 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1546 * emulparams/h8300self.sh: Similarly.
1548 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1550 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1552 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1553 * configure.tgt (h8300-*-elf*): New case.
1554 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1555 * emulparams/h8300self.sh: New file.
1556 * Makefile.in: Regenerated.
1558 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1560 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1563 2001-08-27 Linus Nordberg <linus@swox.com>
1564 Alan Modra <amodra@bigpond.net.au>
1566 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1567 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1569 * Makefile.in: Regenerate.
1570 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1571 entries to correct alphabetical position.
1572 * emulparams/elf64ppc.sh: New.
1573 * emulparams/elf64lppc.sh: New.
1575 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1577 * ldmain.c (main): Declare BSIZE as static.
1579 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1581 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1582 into .rel.dyn resp. .rela.dyn if combreloc.
1583 (get_script): If .x linker script is equal to .xn, only put it
1584 once into the binary.
1585 Add .xc and .xsc scripts.
1586 (parse_args): Handle -z combreloc and -z nocombreloc.
1587 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1588 For .xc and .xsc scripts put all .rel* or .rela* input sections
1589 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1590 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1592 Strip trailing whitespace from script.
1593 Generate .xc and .xsc scripts if requested.
1594 * ldmain.c (main): Initialize link_info.combreloc and
1595 link_info.spare_dynamic_tags.
1596 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1597 (ld_options): Add --spare-dynamic-tags option.
1598 (parse_args): Likewise.
1599 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1600 * ldint.texinfo: Document .xc and .xsc linker scripts.
1601 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1603 2001-08-22 H.J. Lu <hjl@gnu.org>
1605 * emulparams/elf32fr30.sh: Add a newline.
1607 2001-08-21 Andreas Jaeger <aj@suse.de>
1609 * deffilep.y: Add missing prototypes.
1610 * pe-dll.c: Likewise.
1612 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1614 * ldlang.c (insert_pad): Fix typos in last patch.
1616 * ldlang.c: When traversing lang_statement_union_type lists,
1617 consistently use "header.next" rather than "next".
1618 * mpw-eppcmac.c: Likewise.
1619 * emultempl/beos.em: Likewise.
1620 * emultempl/hppaelf.em: Likewise.
1621 * emultempl/pe.em: Likewise.
1622 * ldlang.h (union lang_statement_union): Remove "next" field.
1624 * ldlang.c (insert_pad): Use offsetof macro.
1625 (lang_size_sections): Always neuter padding statements.
1626 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1628 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1629 passed to lang_size_sections.
1630 (pe_exe_fill_sections): Likewise.
1631 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1632 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1634 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1636 * emultempl/aix.em: Formatting fixes.
1638 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1640 * ldlang.c (insert_pad): Make use of an existing pad statement if
1641 available. Move code calculating alignment, adjusting section
1642 alignment power, and adjusting dot to ..
1643 (size_input_section): .. here. Remove unused relax param.
1644 (lang_size_sections): Change boolean `relax' param to boolean *.
1645 Adjust call to size_input_section. Make use of insert_pad to
1646 place pad after the assignment statement. If relaxing, zap
1648 (reset_memory_regions): Reset output_bfd section sizes too.
1649 (relax_again): Move to..
1650 (lang_process): ..here. Adjust call to lang_size_sections, and
1651 remove duplicated code.
1652 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1654 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1656 * ld.texinfo: Document that fill values now use the four least
1658 * emulparams/elf32fr30.sh (NOP): Update.
1659 * emulparams/elf32mcore.sh: Likewise.
1660 * emulparams/elf64_s390.sh: Likewise.
1661 * emulparams/elf_i386.sh: Likewise.
1662 * emulparams/elf_i386_be.sh: Likewise.
1663 * emulparams/elf_i386_chaos.sh: Likewise.
1664 * emulparams/elf_i386_ldso.sh: Likewise.
1665 * emulparams/elf_s390.sh: Likewise.
1666 * emulparams/elf_x86_64.sh: Likewise.
1667 * emulparams/i386moss.sh: Likewise.
1668 * emulparams/i386nw.sh: Likewise.
1669 * emulparams/m68kelf.sh: Likewise.
1670 * scripttempl/elf.sc: Update NOP comment.
1671 * scripttempl/elfi370.sc: Likewise.
1672 * scripttempl/elfm68hc11.sc: Likewise.
1673 * scripttempl/elfm68hc12.sc: Likewise.
1674 * scripttempl/nw.sc: Likewise.
1676 2001-08-15 Tom Rix <trix@redhat.com>
1678 * ldgram.y (saved_script_handle): Initialize to NULL.
1679 * ldmain.c (main): Change check on saved_script_handle.
1681 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1683 * emultempl/elf32.em: Formatting fixes.
1684 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1685 looking at sec->owner.
1686 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1687 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1688 unused code, and reorganize orphan section placement code.
1690 * ldlang.c (wild_doit): Rename to lang_add_section.
1691 * ldlang.h: Here too.
1692 * mpw-elfmips.c: And here.
1693 * emultempl/beos.em: And here.
1694 * emultempl/elf32.em: And here.
1695 * emultempl/hppaelf.em: And here.
1696 * emultempl/pe.em: And here.
1698 2001-08-13 Richard Henderson <rth@redhat.com>
1700 * emultempl/needrelax.em: New file.
1701 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1702 * Makefile.am (eelf64_ia64.c): Depend on it.
1703 * Makefile.in: Rebuild.
1705 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1707 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1708 output_section is set non-NULL.
1710 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1711 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1712 needlessly create an output_section_statement. Treat a correctly
1713 named output_section_statement with NULL bfd_section as compatible.
1715 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1717 * emultempl/generic.em: Support EXTRA_EM_FILE.
1718 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1719 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1720 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1721 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1722 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1723 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1724 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1725 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1726 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1727 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1729 2001-08-12 Richard Henderson <rth@redhat.com>
1731 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1732 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1733 scripttempl/v850.sc: Keep .jcr data.
1735 2001-08-12 H.J. Lu <hjl@gnu.org>
1736 Andrew Haley <aph@cambridge.redhat.com>
1737 Nick Clifton <nickc@redhat.com>
1739 * ldgram.y (had_script): Change name to saved_script_handle.
1740 Change type to file handle.
1741 * ld.h (had_script): Rename and retype.
1742 * ldfile.c (ldfile_open_command_file): Save the file handle
1743 used in saved_script_handle.
1744 * lexsup.c (parse_args): Do not allow -c option to alter
1745 saved_script_handle.
1746 * ldmain.c (main): Print out the linker script used if
1747 --verbose is given. Check saved_script_handle to obtain the
1748 external linker script used, or if NULL, dump the builtin
1750 * ld.texinfo: Document that --verbose now dumps the linker
1751 script used, regardless of whether it was an internal or an
1754 2001-08-10 Andreas Jaeger <aj@suse.de>
1756 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1758 * configure: Regenerate.
1760 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1762 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1764 * scripttempl/elf.sc: Move non-text .dynamic section before
1765 .plt/.got/.sdata* group.
1766 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1767 (OTHER_SDATA_SECTIONS): Add.
1768 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1770 * emulparams/crislinux.sh: Likewise.
1771 * emulparams/elf32b4300.sh: Likewise.
1772 * emulparams/elf32bmip.sh: Likewise.
1773 * emulparams/elf32bmipn32.sh: Likewise.
1774 * emulparams/elf32bsmip.sh: Likewise.
1775 * emulparams/elf32btsmip.sh: Likewise.
1776 * emulparams/elf32ebmip.sh: Likewise.
1777 * emulparams/elf32elmip.sh: Likewise.
1778 * emulparams/elf32l4300.sh: Likewise.
1779 * emulparams/elf32lmip.sh: Likewise.
1780 * emulparams/elf32lsmip.sh: Likewise.
1781 * emulparams/elf32ltsmip.sh: Likewise.
1782 * emulparams/elf64bmip.sh: Likewise.
1783 * emulparams/elf64btsmip.sh: Likewise.
1784 * emulparams/elf64ltsmip.sh: Likewise.
1786 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1788 * genscripts.sh: Source the emulparams script before each output
1789 script is generated so that variables like `RELOCATING' may affect
1790 variables defined in the emulparams script.
1792 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1794 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1797 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1798 ie. iterate over wild_statement.section_list.
1799 (gld${EMULATION_NAME}_place_orphan): Likewise.
1801 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1803 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1804 .fini[0-4] sections used by _exit
1805 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1806 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1807 * scripttempl/elfm68hc11.sc: Likewise.
1809 2001-08-03 H.J. Lu <hjl@gnu.org>
1811 * emultempl/beos.em (init): Add the missing initialization.
1813 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1815 * ld.texinfo (Input Section Basics): Clarify ordering of output
1817 * ldlang.c (callback_t): Add wildcard_list param.
1818 (walk_wild_section): Remove "section" param. Rewrite for
1819 lang_wild_statement_type change. Remove unique_section_p test.
1820 (walk_wild_file): Remove "section" param.
1821 (walk_wild): Remove "section" and "file" params.
1822 (lang_gc_wild): Likewise.
1823 (wild): Likewise. Modify for lang_wild_statement_type change.
1824 (wild_sort): Likewise. Add "sec" param.
1825 (gc_section_callback): Likewise.
1826 (output_section_callback): Likewise. Do unique_section_p test.
1827 (map_input_to_output_sections): Modify call to wild.
1828 (lang_gc_sections_1): Likewise.
1829 (print_wild_statement): Modify for lang_wild_statement_type
1831 (lang_add_wild): Replace filename, filenames_sorted param with
1832 filespec. Replace section_name, sections_sorted,
1833 exclude_filename_list with section_list.
1834 * ldlang.h (lang_add_wild): Here too.
1835 (lang_wild_statement_type): Replace section_name, sections_sorted,
1836 and exclude_filename_list with section_list.
1837 * ldgram.y (current_file): Delete.
1838 (%union): Add wildcard_list.
1839 (file_NAME_list): Set type to wildcard_list. Build a linked list
1840 rather than calling lang_add_wild for each entry.
1841 (input_section_spec_no_keep): Call lang_add_wild here instead.
1842 * ld.h (struct wildcard_list): Declare.
1843 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1845 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1847 * ldmain.c (main): initialize link_info.pei386_auto_import
1848 * pe-dll.c: new tables for auto-export filtering
1849 (auto_export): change API, pass abfd for contextual filtering.
1850 Loop thru tables of excluded symbols instead of comparing
1853 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1855 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1856 static variable current_sec (static struct sec *). Add
1857 forward declaration for add_bfd_to_link.
1858 (process_def_file): Don't export undefined symbols. Do not
1859 export symbols starting with "_imp__". Call auto_export()
1861 (pe_walk_relocs_of_symbol): New function.
1862 (generate_reloc): add optional extra debugging
1863 (pe_dll_generate_def_file): eliminate extraneous initial blank
1865 (make_one): enlarge symtab to make room for __nm__ symbols
1866 (DATA auto-import support).
1867 (make_singleton_name_thunk): New function.
1868 (make_import_fixup_mark): New function.
1869 (make_import_fixup_entry): New function.
1870 (pe_create_import_fixup): New function.
1871 (add_bfd_to_link): Specify that 'name' argument is a CONST
1873 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1874 declare new functions pe_walk_relocs_of_symbol and
1875 pe_create_import_fixup.
1876 * emultempl/pe.em: add new options --enable-auto-import,
1877 --disable-auto-import, and --enable-extra-pe-debug.
1878 (make_import_fixup): New function.
1879 (pe_find_data_imports): New function.
1880 (pr_sym): New function.
1881 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1882 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1885 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1887 * ld.texinfo: add additional documentation for
1888 --export-all-symbols. Document --out-implib,
1889 --enable-auto-image-base, --disable-auto-image-base,
1890 --dll-search-prefix, --enable-auto-import, and
1891 --disable-auto-import.
1892 * ldint.texinfo: Add detailed documentation on auto-import
1895 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1897 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1900 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1902 * Makefile.am: Update dependencies with "make dep-am".
1903 * Makefile.in: Regenerate
1905 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1907 * ldcref.c (check_section_sym_xref): New function.
1908 (check_nocrossrefs): Call it.
1909 (check_nocrossref): Interate over h->refs here instead of..
1910 (check_refs): ..here. Pass in the symbol name, section, and bfd
1911 rather than hash_entry pointers.
1912 (struct check_refs_info): Keep symbol name rather than hash entry.
1914 (check_reloc_refs): Tweak for above changes in check_refs_info.
1915 Only report references to section syms when symname is NULL to
1916 prevent duplicate messages for the same reloc.
1918 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1920 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1921 available. Do not print NULL trees.
1922 (exp_print_token): Print unknown tokens with values > 126 as
1923 decimal values not ASCII characters.
1925 * ldlang.c (lang_leave_overlay): If a region is specified assign
1926 it to all sections inside the overlay unless they have been
1927 assigned to the own, non-default, memory region.
1929 * README: Add header for consistency with other README files.
1931 2001-07-14 H.J. Lu <hjl@gnu.org>
1933 * emultempl/elf32.em (output_prev_sec_find): Never return
1934 bfd_abs_section_ptr, bfd_com_section_ptr nor
1935 bfd_und_section_ptr.
1937 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1939 * Makefile.am (em32relf.c): Change dependency from generic.em to
1941 * Makefile.in: Regenerate.
1943 2001-07-14 matthew green <mrg@eterna.com.au>
1945 * configure.tgt (i386-*-netbsdelf*): New target.
1946 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1948 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1950 * emultempl/elf32.em (output_prev_sec_find): New.
1951 (place_orphan): Use it.
1953 2001-07-11 H.J. Lu <hjl@gnu.org>
1955 * ldmain.c (main): Fix typos in the last change.
1957 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1959 * ldmain.c (main): Disallow -F and -f without -shared.
1961 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1963 * emultempl/pe.em (after_open): Check for the output_bfd not
1964 having any coff_data structure allocated to it.
1966 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1968 * emultempl/elf32.em: Do not assuming that contents of the buffer
1969 returned from basename function will remain unchanged accross other
1972 2001-07-03 H.J. Lu <hjl@gnu.org>
1974 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1975 2001-07-03. It creates dynamic entries even for static binaries.
1977 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1979 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1980 (DYNAMIC): Use it to reserve few dynamic entries for
1983 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1985 * emulparams/hppa64linux.sh: New file.
1986 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1987 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1988 (ehppa64linux.c): Add rule to make it.
1990 * Makefile.in: Regenerate.
1992 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1994 * ld.texinfo (Options, -r): Mention restrictions when using
1995 different object formats.
1997 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1999 * ldlang.c (lang_check): Emit fatal error if relocatable link
2000 between different object flavours with relocations in input.
2002 2001-06-19 H.J. Lu <hjl@gnu.org>
2004 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2005 (--version-script): Mention the language support.
2007 2001-06-19 H.J. Lu <hjl@gnu.org>
2009 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2011 2001-06-18 H.J. Lu <hjl@gnu.org>
2013 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2014 (diststuff): Add $(MANS).
2015 * Makefile.in: Regenerated.
2019 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2021 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2022 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2023 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2024 * ld.h (args_type): Remove member export_dynamic. All users
2025 changed to use struct bfd_link_info member.
2027 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2028 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2029 * Makefile.in: Regenerate.
2031 2001-06-18 H.J. Lu <hjl@gnu.org>
2033 * ldlang.c (init_os): Add the newline to the einfo call.
2034 (lang_check): Likewise.
2035 (lang_do_version_exports_section): Likewise.
2037 2001-06-15 H.J. Lu <hjl@gnu.org>
2039 * lexsup.c (parse_args); Save optind to report unrecognized
2042 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2044 * ldlang.c (lang_check): Emit fatal error if relocatable link
2045 between different object flavours.
2047 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2048 Set new link_info member export_dynamic.
2049 * ldmain.c (main): Initialize new link_info member export_dynamic.
2051 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2053 * ldlang.c (walk_wild): Only call walk_wild_file if
2054 lookup_name returns something.
2055 (lookup_name): If load_symbols fails, return NULL.
2056 (load_symbols): Change to a boolean function.
2057 (open_input_bfds): If load_symbols fails then do not make the
2060 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2062 * ldlang.c (record_bfd_errors): Remove.
2064 * emultempl/aix.em: Fix copyright dates.
2066 2001-06-07 Andreas Jaeger <aj@suse.de>
2068 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2069 (TEXT_START_ADDR): Likewise.
2071 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2073 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2075 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2077 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2079 2001-05-31 H.J. Lu <hjl@gnu.org>
2081 * ldlang.c (open_input_bfds): Don't change the bfd error
2082 handler whilst loading symbols.
2084 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2086 * configure.tgt: Remove i370-mvs architecture, it is not currently
2089 2001-05-25 H.J. Lu <hjl@gnu.org>
2091 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2092 like emulparams/aixppc.sh.
2094 2001-05-25 H.J. Lu <hjl@gnu.org>
2096 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2097 setting of output_filename after bfd_scan_arch.
2098 * emultempl/pe.em: Likewise.
2100 2001-05-25 H.J. Lu <hjl@gnu.org>
2102 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2103 like emulparams/aixppc.sh.
2105 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2106 instead of ${srcdir}/emultempl/stringify.sed.
2108 2001-05-25 Timothy Wall <twall@oculustech.com>
2110 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2113 2001-05-25 Alan Modra <amodra@one.net.au>
2115 * configure.host: Replace linuxoldld with linux*oldld.
2116 * configure.tgt: Likewise.
2118 2001-05-24 H.J. Lu <hjl@gnu.org>
2120 * emultempl/stringify.sed: Removed again.
2122 2001-05-24 H.J. Lu <hjl@gnu.org>
2124 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2125 (gld${EMULATION_NAME}_before_parse): Initialize
2126 ldfile_output_architecture, ldfile_output_machine and
2127 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2128 * emultempl/beos.em: Likewise.
2129 * emultempl/elf32.em: Likewise.
2130 * emultempl/linux.em: Likewise.
2131 * emultempl/mipsecoff.em: Likewise.
2132 * emultempl/pe.em: Likewise.
2133 * emultempl/sunos.em: Likewise.
2135 2001-05-24 Tom Rix <trix@redhat.com>
2137 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2138 udate import file format.
2139 (change_symbol_mode) New, same
2140 (is_syscall) New, same
2141 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2142 * emulparams/aixppc64.sh : same
2143 * emulparams/aixrs6.sh : same
2144 * emulparams/ppcmacos.sh : same
2145 * emultempl/aix.em : use strtoull to parse options
2146 * Makefile.am : add eaixppc64 emulation for xcoff64
2147 * Makefile.in : same
2148 * configure.tgt : same
2150 * scripttempl/aix.sc : default text section offset to 0x10000000
2151 default data section offset to 0x20000000
2152 add .sv3264 and .sv64 pseudo sections
2153 loader and debug sections use the currect section offset.
2155 * emultempl/aix.em : Add xcoff64 support
2156 Add -binitfini support
2157 (gld${EMULATION_NAME}_before_parse) -binitfini
2158 (gld${EMULATION_NAME}_parse_args) same
2159 (gld${EMULATION_NAME}_before_allocation) format change for special
2162 * emulparams/aixppc64.sh : New file for xcoff64 support
2164 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2166 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2167 variable to avoid non-portable shell construct.
2169 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2171 * ldmain.c (get_emulation): Add -mips5 command line argument.
2173 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2175 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2176 (ELF_INTERPRETER_NAME): Define it.
2177 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2179 * configure.tgt (targ_emul, targ_extra_emuls)
2180 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2181 as primary, elf_i386 as extra.
2182 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2183 (eelf_i386_ldso.c): New rule.
2184 * Makefile.in: Rebuilt.
2186 2001-05-22 Nick Clifton <nickc@redhat.com>
2188 * lexsup.c (ld_options): Allow -I to be an alias for
2189 --dynamic-linker. This is for Solaris compatability.
2190 * ld.texinfo: Document that -I can be used.
2193 2001-05-16 Alan Modra <amodra@one.net.au>
2195 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2196 whether an input section is the first one assigned to an output
2198 Assorted formatting fixes.
2200 2001-05-14 DJ Delorie <dj@delorie.com>
2202 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2203 * Makefile.in: Ditto.
2205 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2207 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2208 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2210 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2212 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2214 * ldlang.c (lang_process): Call bfd_merge_sections.
2216 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2218 * ldgram.y: Fix typo.
2220 2001-05-03 H.J. Lu <hjl@gnu.org>
2222 * emultempl/elf32.em: Include "libiberty.h".
2223 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2224 basename of the bfd filename.
2225 (gld${EMULATION_NAME}_stat_needed): Likewise.
2226 (gld${EMULATION_NAME}_try_needed): Likewise.
2227 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2229 2001-05-02 H.J. Lu <hjl@gnu.org>
2231 * emultempl/pe.em: Include <ctype.h>.
2233 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2235 * emulparams/elf32openrisc.sh: New file.
2237 * Makefile.am: Add OpenRISC target.
2238 * Makefile.in: Regenerated.
2240 * configure.tgt: Add openrisc-*-* mapping.
2242 2001-05-02 Nick Clifton <nickc@redhat.com>
2244 * emultempl/aix.em: Replace buystring with xstrdup.
2245 * emultempl/beos.em: Replace buystring with xstrdup.
2247 2001-05-02 H.J. Lu <hjl@gnu.org>
2249 * ldfile.c: Include "libiberty.h".
2250 * ldlex.l: Likewise.
2252 * ldmisc.c (buystring): Removed.
2253 * ldmisc.h: Likewise.
2255 * ldfile.c: Replace buystring with xstrdup.
2256 * ldlang.c: Likewise.
2257 * ldlex.l: Likewise.
2258 * ldmain.c: Likewise.
2259 * ldmisc.c: Likewise.
2260 * lexsup.c: Likewise.
2261 * mpw-eppcmac.c: Likewise.
2263 2001-04-30 Andreas Jaeger <aj@suse.de>
2265 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2267 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2269 * ldlang.c (load_symbols): Give emulation a chance
2270 to process unrecognized file before fatal error is
2271 reported, not after.
2273 2001-04-27 Sean McNeil <sean@mcneil.com>
2275 * configure.tgt: Add arm-vxworks target.
2276 * scripttempl/armcoff.sc: Support .text or .data as a section name
2280 2001-04-13 J.T. Conklin <jtc@redback.com>
2282 * ld.texinfo: Document --fatal-warnings.
2285 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2286 warnings have been turned into errors.
2287 * lexsup.c (OPTION_WARN_FATAL): Define.
2288 (ld_options): Entry for --fatal-warnings.
2289 (parse_args): Handle OPTION_WARN_FATAL.
2290 * ld.h (ld_config_type): Add fatal_warnings field.
2292 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2294 * ldmain.c (main): Default to discard_sec_merge.
2295 * lexsup.c (OPTION_DISCARD_NONE): Define.
2296 (ld_options): Add --discard-none.
2297 (parse_args): Handle OPTION_DISCARD_NONE.
2298 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2299 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2300 all its input sections match.
2302 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2304 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2305 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2306 (eelf32ltsmip.c): New target.
2307 (eelf64btsmip.c): Likewise.
2308 (eelf64ltsmip.c): Likewise.
2309 * Makefile.in: Regenerated.
2311 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2313 (mips*-*-linux-gnu*): Likewise.
2315 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2317 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2319 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2322 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2324 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2325 correct value of __Stext here.
2326 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2329 * emulparams/crislinux.sh: Remove FIXME.
2331 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2333 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2334 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2336 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2338 * configure.tgt (cris-*-*): Change default emulation to criself.
2339 (cris-*-*aout*): New rule.
2341 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2343 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2344 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2346 2001-03-26 Andreas Jaeger <aj@suse.de>
2348 * ld.texinfo (Overview): Fix syntax in texi code.
2350 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2352 * ld.texinfo: Put @c man indications to generate the ld man page.
2353 When generating man, define all the variables. Define SEEALSO
2354 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2355 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2356 (ld.1): Generate from ld.texinfo.
2357 * Makefile.in: Regenerate.
2359 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2361 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2362 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2364 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2366 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2367 is an absolute path look only for this file and not along the path.
2369 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2371 * emultempl/elf32.em (OPTION_GROUP): New macro.
2372 Add new option Bgroup to longopts.
2373 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2374 (gld*_list_options): Add -Bgroup and -z defs.
2375 * ld.1: Document -Bgroup and -z defs.
2376 * ld.texinfo: Likewise.
2378 2001-03-07 Michael Meissner <meissner@redhat.com>
2380 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2381 with sections created by -fdata-sections.
2382 (.dynbss,.bss): Ditto.
2384 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2386 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2387 after_allocation_default, not gld..._before_allocation.
2389 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2391 * configure.in (BFD_VERSION): New.
2392 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2393 * configure: Regenerate.
2394 * Makefile.am: Run "make dep-am"
2395 * Makefile.in: Regenerate.
2397 2001-02-26 Timothy Wall <twall@cygnus.com>
2399 * emulparams/elf64_aix.sh: Add additional read-only sections;
2400 uncomment lines which are now required.
2402 2001-02-26 H.J. Lu <hjl@gnu.org>
2404 * ldlang.c (open_input_bfds): Set the bfd error handler so
2405 that problems can be caught whilst loading symbols.
2406 (record_bfd_errors): New function: Report BFD errors and mark
2407 the executable output as being invalid.
2409 2001-02-22 Timothy Wall <twall@cygnus.com>
2411 * configure.host: Add configuration for ia64-*-aix*.
2412 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2413 Add dependencies for eelf64_aix.c.
2414 * Makefile.in: Regenerate.
2415 * configure.tgt: Add ia64-*-aix* mapping.
2416 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2417 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2420 2001-02-20 H.J. Lu <hjl@gnu.org>
2422 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2423 false if we found the file.
2425 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2427 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2428 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2430 2001-02-18 lars brinkhoff <lars@nocrew.org>
2432 * Makefile.am: Add PDP-11 target.
2433 * configure.tgt: Likewise.
2434 * emulparams/pdp11.sh: New file.
2436 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2438 * configure.host: Add a generic FreeBSD configuration entry such that
2439 all [modern] FreeBSD systems on all platforms will look the same.
2441 2001-02-14 H.J. Lu <hjl@gnu.org>
2443 * configure.tgt: Remove mention of earmelf_linux26.
2445 2001-02-13 Richard Henderson <rth@redhat.com>
2447 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2449 2001-02-13 H.J. Lu <hjl@gnu.org>
2451 * ldexp.h (node_type): Add etree_provided.
2452 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2453 type to etree_provided if defined by PROVIDE. Allow updating
2455 (exp_print_tree): Handle etree_provided.
2456 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2459 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2461 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2462 .IA_64.unwind.* pattern to unwind table section and
2463 .IA_64.unwind_info* pattern to unwind info section.
2465 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2467 * Makefile.am: Add linux target for S/390.
2468 * Makefile.in: Likewise.
2469 * configure.host: Likewise.
2470 * configure.tgt: Likewise.
2471 * emulparams/elf64_s390.sh: New file.
2472 * emulparams/elf_s390.sh: New file.
2474 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2476 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2478 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2480 2001-02-06 Philip Blundell <philb@gnu.org>
2482 * Makefile.am: Remove mention of earmelf_linux26.
2483 * Makefile.in: Regenerate.
2485 2001-02-04 Philip Blundell <philb@gnu.org>
2487 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2488 * emulparams/armelf_linux26.sh: Delete.
2489 * configure.tgt: Remove mention of armelf_linux26 emulation.
2491 2001-02-01 Nick Clifton <nickc@redhat.com>
2493 * ld.1: Replace occurances of -oformat with --oformat.
2495 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2497 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2498 load_base is specified.
2500 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2502 * emultempl/elf32.em: Correct spelling in comments and listed
2505 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2507 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2508 default for the first section of a group of overlay sections.
2510 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2512 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2513 * Makefile.in: Regenerate.
2514 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2515 Check for null tool_dir.
2517 2001-01-16 Jim Wilson <wilson@redhat.com>
2519 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2520 and IA_64.unwind.info.
2522 2001-01-16 H.J. Lu <hjl@gnu.org>
2524 * ldlang.c (lang_check): Merge the private data only if the
2525 input file has contents.
2527 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2529 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2531 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2532 enabling search for libmilli. On a relocatable link, make .text
2534 (LDEMUL_AFTER_PARSE): Define.
2535 (hppaelf_finish): Correct spelling of relocatable in comments.
2537 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2538 rummage through the script for sections on the unique list.
2539 Correct length of strncmp for ".note".
2540 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2542 * ldlang.c (unique_section_list): New var.
2543 (unique_section_p): New function.
2544 (walk_wild_section): Don't match sections on unique_section_list.
2545 (lang_add_unique): New function.
2546 Correct spelling of relocatable in comments.
2548 * ldlang.h (struct unique_sections): Declare.
2549 (unique_section_list): Declare.
2550 (unique_section_p): Declare.
2551 (lang_add_unique): Declare.
2553 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2554 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2556 * ld.texinfo (--unique): Update.
2558 2001-01-13 Nick Clifton <nickc@redhat.com>
2560 * lexsup.c (parse_args): Remove spurious white space.
2562 2001-01-12 Nick Clifton <nickc@redhat.com>
2564 * lexsup.c (parse_args): Update copyright date.
2566 2001-01-12 Philip Blundell <pb@futuretv.com>
2568 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2570 2001-01-10 Kazu Hirata <kazu@hxi.com>
2572 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2573 * scripttempl/h8300h.sc: Fix formatting.
2574 * scripttempl/h8300s.sc: Likewise.
2575 * scripttempl/h8500.sc: Likewise.
2576 * scripttempl/h8500b.sc: Likewise.
2577 * scripttempl/h8500c.sc: Likewise.
2578 * scripttempl/h8500m.sc: Likewise.
2579 * scripttempl/h8500s.sc: Likewise.
2581 2000-01-07 David O'Brien <obrien@BSDi.com>
2583 * emultempl/elf32.em: Only perform Linux ld hints processing when
2586 2001-01-07 Philip Blundell <philb@gnu.org>
2588 * ld.texinfo (Bug Reporting): Update email address for reports.
2590 2000-12-31 Nick Clifton <nickc@redhat.com>
2592 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2593 options by checking for a return value of '?' not -1.
2595 2000-12-28 Nick Clifton <nickc@redhat.com>
2597 * lexsup.c (struct ld_option): Add new enum value:
2599 (ld_options[]): Change -omagic, -output and -oformat options
2600 to be EXACTLY_TWO_DASHES.
2601 (OUTPUT_COUNT): Use ARRAY_SIZE.
2602 (parse_args): Change parameter 'argc' to unsigned.
2603 Place EXACTLY_TWO_DASHES options into new really_longopts
2605 If getopt_long_only fails, try calling getopt_long using the
2606 really_longopts array.
2607 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2610 * ldlex.h: Fix prototype of parse_args.
2612 * ld.texinfo: Document that long options starting with 'o'
2613 must be preceeded by two dashes. Change example of a single
2614 dashed long option from -oformat to -trace-symbol.
2616 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2618 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2619 (longopts[]): New --no-default-excludes option.
2620 (gld_${EMULATION_NAME}_list_options): Document.
2621 (gld_${EMULATION_NAME}_parse_args): Handle.
2623 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2625 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2626 whitespace, it breaks the K&R C preprocessor.
2628 2000-12-11 DJ Delorie <dj@redhat.com>
2630 * ld.texinfo: Add notes about --whole-archive and gcc.
2632 2000-11-18 Fred Fish <fnf@be.com>
2634 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2635 (ld_options): Entry for --allow-shlib-undefined.
2636 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2637 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2639 * ld.texinfo: Document new command line switch.
2641 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2643 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2644 .fixup is actually read/write.
2645 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2646 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2647 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2649 2000-12-11 Jan Hubicka <jh@suse.cz>
2651 * NEWS: Add note about x86_64 architecture.
2653 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2655 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2656 Set DWARF2 sections to a VMA of zero.
2658 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2660 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2662 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2663 (sparc*-*-rtems*): Switched from a.out to ELF.
2665 2000-11-30 Jan Hubicka <jh@suse.cz>
2667 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2668 (eelf_x86_64.c): New.
2669 * Makefile.in: Regenerate.
2670 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2671 * emulparams/elf_x86_64.sh: New.
2673 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2675 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2676 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2678 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2679 merging non-a.out sections into CONSTRUCTING.
2681 2000-11-28 Nick Clifton <nickc@redhat.com>
2683 * ld.1 (COPYING): Mention that the GNU Free Documentation
2684 License is present in the sources, but not the output, and
2685 also available from the GNU website.
2686 (GNU Free Documentation License): Comment out this section.
2688 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2690 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2693 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2695 * ld.1: Remove old date so it does not give the impression the manpage
2698 2000-11-24 Nick Clifton <nickc@redhat.com>
2700 * configure.tgt (xscale-coff): Add target.
2701 (xscale-elf): Add target.
2703 2000-11-24 Fred Fish <fnf@be.com>
2705 * ldmain.c (main): Remove redundant init of config.make_executable
2708 2000-11-15 Richard Henderson <rth@redhat.com>
2710 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2712 2000-11-14 Kazu Hirata <kazu@hxi.com>
2714 * scripttempl/h8300.sc: Fix formatting.
2715 * scripttempl/h8300h.sc: Likewise.
2716 * scripttempl/h8300s.sc: Likewise.
2718 2000-11-14 Denis Chertykov <denisc@overta.ru>
2720 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2722 2000-11-09 Philip Blundell <pb@futuretv.com>
2724 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2725 around orphan sections whose names can be represented in C.
2727 2000-11-07 Jim Wilson <wilson@redhat.com>
2729 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2730 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2732 2000-11-06 Nick Clifton <nickc@redhat.com>
2734 * ld.texinfo: Add GNU Free Documentation License.
2735 * ldint.texinfo: Add GNU Free Documentation License.
2736 * ld.1: Add GNU Free Documentation License.
2738 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2740 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2741 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2743 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2744 Move 2000-11-02 Makefile.in changes to this file.
2745 * Makefile.in: Regenerate.
2747 2000-11-03 Nick Clifton <nickc@redhat.com>
2749 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2750 constructors and destructors.
2751 * scripttempl/h8300h.sc: Ditto.
2752 * scripttempl/h8300s.sc: Ditto.
2753 * scripttempl/h8500.sc: Ditto.
2754 * scripttempl/h8500b.sc: Ditto.
2755 * scripttempl/h8500c.sc: Ditto.
2756 * scripttempl/h8500m.sc: Ditto.
2757 * scripttempl/h8500s.sc: Ditto.
2758 * scripttempl/v850.sc: Ditto.
2759 * scripttempl/w65.sc: Ditto.
2760 * scripttempl/z8000.sc: Ditto.
2762 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2764 * Makefile.in (e_i386_chaos.c): New rule.
2765 (ALL_EMULATIONS): Added e_i386_chaos.o.
2766 * emulparams/elf_i386_chaos.sh: New file.
2767 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2769 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2771 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2772 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2773 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2774 library path suffix.
2775 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2777 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2779 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2780 for consecutive sections.
2782 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2784 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2786 * ld.texinfo: Added notes about this new option.
2788 2000-10-16 Nick Clifton <nickc@redhat.com>
2790 * emultempl/pe.em (_after_open): Add tests of return values from
2791 bfd functions. Emit appropriate error messages if necessary.
2793 2000-10-13 Nick Clifton <nickc@redhat.com>
2795 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2796 local variables - they are not used, but leave in the call to
2797 bfd_canonicalize_symtab.
2798 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2799 pe_dll_search_prefix.
2801 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2803 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2804 (longopts): New --dll-search-prefix option.
2805 (gld_${EMULATION_NAME}_list_options): Document.
2806 (gld_${EMULATION_NAME}_parse_args): Handle.
2807 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2808 dynamically, search for a dll named '<prefix><basename>.dll'
2809 in preference to 'lib<basename>.dll' if --dll-search-prefix
2812 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2814 * ldlang.c (section_already_linked): Set kept_section instead of
2817 2000-10-10 Kazu Hirata <kazu@hxi.com>
2819 * deffile.h: Fix formatting.
2820 * lexsup.c: Likewise.
2823 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2825 * pe-dll.c (make_one): Do not generate code thunk for DATA
2827 (process_def_file): deduce DATA flag for auto-export sumbols.
2829 2000-10-09 Kazu Hirata <kazu@hxi.com>
2831 * ld.h: Fix formatting.
2832 * ldcref.c: Likewise.
2833 * ldctor.h: Likewise.
2834 * ldemul.c: Likewise.
2835 * ldemul.h: Likewise.
2836 * ldexp.c: Likewise.
2837 * ldexp.h: Likewise.
2838 * ldfile.c: Likewise.
2839 * ldfile.h: Likewise.
2840 * ldlang.c: Likewise.
2841 * ldlang.h: Likewise.
2842 * ldmain.c: Likewise.
2843 * pe-dll.c: Likewise.
2845 * pe-dll.c: Revert some formatting fixes.
2847 2000-10-08 Kazu Hirata <kazu@hxi.com>
2849 * pe-dll.c: Fix formatting.
2851 2000-10-05 Kazu Hirata <kazu@hxi.com>
2853 * ldlang.c: Fix formatting.
2855 2000-10-03 DJ Delorie <dj@redhat.com>
2857 * pe-dll.c (fill_edata): initialize entire block
2858 (make_one): fill in correct section.
2860 2000-10-03 Kazu Hirata <kazu@hxi.com>
2862 * ldexp.c: Fix formatting.
2864 2000-10-02 DJ Delorie <dj@redhat.com>
2866 * emultempl/pe.em (gld_*_after_open): detect case where there two
2867 import libraries for same dll; rename one to ensure proper link
2870 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2872 (generate_edata): fix typo
2874 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2876 * scripttempl/crisaout.sc (ENTRY): Now __start.
2877 (.text): Add default setting for __start.
2878 Remove CONSTRUCTORS handling.
2879 (/DISCARD/): Add .gnu.warning.*.
2880 * emulparams/crislinux.sh (ENTRY): Now __start.
2881 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2882 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2883 (ENTRY): Now __start.
2884 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2885 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2887 2000-09-29 Kazu Hirata <kazu@hxi.com>
2889 * deffile.h: Fix formatting.
2891 * ldcref.c: Likewise.
2892 * ldctor.c: Likewise.
2893 * ldctor.h: Likewise.
2894 * ldemul.c: Likewise.
2895 * ldemul.h: Likewise.
2896 * ldexp.c: Likewise.
2897 * ldexp.h: Likewise.
2898 * ldfile.c: Likewise.
2899 * ldfile.h: Likewise.
2900 * ldlang.c: Likewise.
2901 * ldlang.h: Likewise.
2902 * lexsup.c: Likewise.
2904 * pe-dll.c: Likewise.
2906 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2908 * pe-dll.c (process_def_file): Uninitialized data wasn't
2909 exported with --export-all-symbols switch.
2911 2000-09-28 DJ Delorie <dj@redhat.com>
2913 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2914 noname work properly.
2916 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2918 * ld.texinfo (HPPA ELF32): New section.
2920 * emultempl/hppaelf.em (group_size): New.
2921 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2922 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2923 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2924 options to prevent abbreviations matching.
2925 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2926 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2928 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2930 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2931 on the m68*-*-elf target. Make it support COFF input objects.
2933 2000-09-21 Kazu Hirata <kazu@hxi.com>
2935 * ldmain.c: Fix formatting.
2936 * ldmisc.c: Likewise.
2937 * ldver.c: Likewise.
2938 * ldwrite.c: Likewise.
2940 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2942 * ldwrite.c (clone_section): Silence gcc warnings.
2944 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2946 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2947 out of memory failure.
2949 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2950 (clone_section): Handle out of memory failures. Rename var to
2951 avoid c++ reserved word.
2953 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2955 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2956 stub_name param to stub_sec_name.
2957 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2959 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2961 * emultempl/m68kelf.em: New file.
2962 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2963 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2964 * Makefile.in: Regenerate.
2966 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2968 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2971 2000-09-13 Nick Clifton <nickc@redhat.com>
2973 * ldmain.c (multiple_definition): Disable relaxation if
2974 multiple symbol definitions are encountered - otherwise the
2975 linker could abort with an assertion failure.
2977 2000-09-10 Nick Clifton <nickc@redhat.com>
2979 * mri.c: Fix formatting.
2981 2000-09-07 H.J. Lu <hjl@gnu.org>
2983 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2984 * configure: Rebuild.
2986 2000-09-07 H.J. Lu <hjl@gnu.org>
2988 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2989 * Makefile.in: Rebuild.
2991 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2993 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2994 broken list handling. Create __start_SECNAME and __stop_SECNAME
2995 when no place-holder. Add some comments. Test both SEC_CODE and
2996 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2997 Handle case where no output section statement created.
2999 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3001 * configure.tgt (sh-*-linux*): Added.
3002 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3003 * Makefile.in: Rebuilt.
3004 * emulparams/shelf_linux.sh: New file.
3005 * emulparams/shlelf_linux.sh: New file.
3007 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3009 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3010 try shuffling sections when the orphan happens to be the place
3011 holder. Keep count of unique section names generated so we speed
3012 the search for a new name.
3014 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3016 * configure: Rebuilt with new libtool.m4.
3018 2000-09-05 Nick Clifton <nickc@redhat.com>
3020 * Makefile.in: Regenerate.
3021 * aclocal.m4: Regenerate.
3022 * configure: Regenerate.
3023 * config.in: Regenerate.
3024 * po/ld.pot: Regenerate.
3026 * ldint.texinfo: Remove CVS revision marker - it foils local
3029 * emultempl/ticoff.em: Remove extraneous comma.
3031 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3033 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3034 to stub section flags.
3035 (hppa_for_each_input_file_wrapper): New.
3036 (hppa_lang_for_each_input_file): New.
3037 (lang_for_each_input_file): Define to call above.
3038 (multi_subspace): New.
3039 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3040 (PARSE_AND_LIST_PROLOGUE): Define.
3041 (PARSE_AND_LIST_LONGOPTS): Define.
3042 (PARSE_AND_LIST_OPTIONS): Define.
3043 (PARSE_AND_LIST_ARGS_CASES): Define.
3044 (hppaelf_finish): Call elf32_hppa_set_gp.
3045 (hppaelf_set_output_arch): Remove.
3046 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3048 * emulparams/hppalinux.sh (ELFSIZE): Define.
3050 (OTHER_READONLY_SECTIONS): Define.
3052 (GENERATE_SHLIB_SCRIPT): Define.
3054 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3055 to const throughout. Change `void *' to `PTR' throughout.
3056 (lang_memory_default): Function is local to file, add `static'.
3058 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3059 (ehppalinux.c): Likewise.
3060 (earmelf.c): Likewise.
3061 (earmelf_linux.c): Likewise.
3062 (earmelf_linux26.c): Likewise.
3063 * Makefile.in: Regenerate.
3065 * ld.h (ld_config_type): Add unique_orphan_sections.
3066 * lexsup.c (OPTION_UNIQUE): Define.
3067 (ld_options): Add "--unique".
3068 (parse_args): Handle it.
3069 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3070 search for an existing output section if unique_orphan_sections is
3071 set. Make use of bfd_get_unique_section_name rather than
3072 duplicating code here.
3073 * ld.texinfo: Describe --unique.
3075 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3076 optional arg to split-by-file.
3077 (parse_args): Handle them.
3078 * ld.texinfo: Update description of these options.
3079 * ldwrite.c (clone_section): Pass in the section name. Replace
3080 local code with bfd_get_unique_section_name.
3081 (split_sections): Tidy code and comments. Use a list traversal
3082 more appropriate to the list construction. Handle cooked section
3083 sizes. Split when split_by_reloc reached rather than exceeded.
3084 Track section size and split when split_by_file reached. Fix
3085 link_order_tail (even though it's not used).
3086 (ldwrite): Modify condition for calling split_sections to suit
3087 changed split_by_reloc and split_by_file.
3088 * ldmain.c (main): Init config.split_by_reloc and
3089 config.split_by_file to -1.
3090 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3091 Change split_by_file to bfd_size_type.
3093 2000-09-02 Nick Clifton <nickc@redhat.com>
3095 * configure.in: Increase version number to 2.10.91.
3096 * NEWS: Mention new ability to support removal of duplicate DWARF2
3098 * configure: Regenerate.
3099 * aclocal.m4: Regenerate.
3100 * config.in: Regenerate.
3102 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3104 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3106 * scripttempl/elf32avr.sc: Ditto.
3107 * scripttempl/elfd10v.sc: Ditto.
3108 * scripttempl/elfd30v.sc: Ditto.
3109 * scripttempl/elfi370.sc: Ditto.
3110 * scripttempl/elfm68hc11.sc: Ditto.
3111 * scripttempl/elfm68hc12.sc: Ditto.
3112 * scripttempl/elfi386beos.sc: Ditto.
3113 * scripttempl/v850.sc: Ditto.
3115 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3117 * acinclude.m4: Include libtool and gettext macros from the
3119 * aclocal.m4, configure: Rebuilt.
3121 2000-08-25 Nick Clifton <nickc@redhat.com>
3123 * ldlang.c (open_output): When choosing the target for a
3124 particular endianness, do nothing if the target is not
3127 2000-08-25 H.J. Lu <hjl@gnu.org>
3129 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3130 check -rpath nor LD_RUN_PATH for cross link.
3131 * ld.texinfo: Document the change.
3133 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3135 * NEWS: Mention support for CRIS.
3137 2000-08-23 H.J. Lu <hjl@gnu.org>
3139 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3140 the current runpath list from bfd_elf_get_runpath_list ()
3143 2000-08-22 H.J. Lu <hjl@gnu.org>
3145 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3146 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3147 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3148 trace_file_tries is non-zero.
3149 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3150 if trace_file_tries is non-zero.
3152 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3155 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3157 * NEWS: Mention i860 support.
3159 2000-08-14 Andreas Schwab <schwab@suse.de>
3161 * scripttempl/elf.sc: Fix last change to use correct comment
3164 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3166 * scripttempl/elf.sc: Add a comment giving the correspondence
3167 between sections, per-datum sections, and linkonce sections. Make
3168 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3171 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3173 * emulparams/elf32_i860.sh: New file.
3174 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3175 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3176 (eelf32_i860.c): New rule.
3177 * Makefile.in: Regenerate.
3179 2000-08-10 Nick Clifton <nickc@cygnus.com>
3181 * emulparams/mipspe.sh (ENTRY): Add definition.
3183 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3185 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3188 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3190 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3191 the final size of .bss section.
3192 * scripttempl/elfm68hc12.sc: Likewise.
3194 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3196 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3197 gld${EMULATION_NAME}_parse_args for consistency. Combine
3198 lastoptind and prevoptind vars, and keep track of last optind.
3199 (gld_${EMULATION_NAME}_list_options): Rename to
3200 gld${EMULATION_NAME}_list_options.
3202 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3204 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3205 (i586-sco-sysv5uw7.1.0).
3207 2000-07-27 H.J. Lu <hjl@gnu.org>
3209 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3210 (PARSE_AND_LIST_PROLOGUE): New.
3211 (PARSE_AND_LIST_LONGOPTS): Likewise.
3212 (PARSE_AND_LIST_OPTIONS): Likewise.
3213 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3214 (PARSE_AND_LIST_EPILOGUE): Likewise.
3216 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3218 * emultempl/armelf.em: Elide functions common to elf32.em,
3219 ie. most of the file.
3220 (arm_elf_after_open): New. Do arm specific things then call
3221 gld${EMULATION_NAME}_after_open.
3222 (arm_elf_before_allocation): New. Call
3223 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3224 (PARSE_AND_LIST_PROLOGUE): Define.
3225 (PARSE_AND_LIST_SHORTOPTS): Define.
3226 (PARSE_AND_LIST_LONGOPTS): Define.
3227 (PARSE_AND_LIST_OPTIONS): Define.
3228 (PARSE_AND_LIST_ARGS_CASES): Define.
3229 (LDEMUL_AFTER_OPEN): Define.
3230 (LDEMUL_BEFORE_ALLOCATION): Define.
3231 (LDEMUL_BEFORE_PARSE): Define.
3232 (LDEMUL_FINISH): Define.
3234 * emultempl/hppaelf.em: Similarly zap most of this file.
3235 (hppaelf_add_stub_section): Prototype.
3236 (hppaelf_layaout_sections_again): Prototype.
3237 (hook_in_stub): Prototype.
3238 (LDEMUL_SET_OUTPUT_ARCH): Define.
3239 (LDEMUL_FINISH): Define.
3240 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3242 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3243 (EXTRA_EM_FILE): New.
3244 * emulparams/armelf_linux.sh: Likewise.
3245 * emulparams/armelf_linux26.sh: Likewise.
3246 * emulparams/hppalinux.sh: Likewise.
3247 * emulparams/hppaelf.sh: Likewise.
3250 * emultempl/elf32.em: Fix formatting.
3251 (EXTRA_EM_FILE): Source it.
3252 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3253 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3254 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3255 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3256 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3257 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3258 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3259 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3260 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3261 allow functions in this file to be overridden.
3262 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3264 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3266 * emultempl/elf32.em: Reorganize file.
3268 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3270 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3271 specific option to fit 64-bit executable in the lower
3272 31-bit address range. This is done by changing start
3273 address of .interp (the very first section of executable)
3274 and then setting EF_ALPHA_32BIT elf header flag.
3276 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3278 * emultempl/m68kcoff.em: New file.
3279 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3280 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3282 * Makefile.in: Regenerate.
3284 2000-07-20 H.J. Lu <hjl@gnu.org>
3286 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3287 and "disable-new-dtags" to stop getopt from treating -d/-e as
3288 abbreviations for these options.
3290 2000-07-20 H.J. Lu <hjl@gnu.org>
3292 * ld.texinfo: Add documentation for --disable-new-dtags and
3295 * ldmain.c (main): Initialize link_info.new_dtags to false.
3297 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3298 --disable-new-dtags and --enable-new-dtags.
3299 (gld_${EMULATION_NAME}_list_options): Likewise.
3301 2000-07-05 Kenneth Block <krblock@computer.org>
3303 * lexsup.c: Add optional style to demangle switch
3304 * ld.texinfo: Document optional style to demangle switch.
3306 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3308 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3310 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3311 Regenerate dependencies.
3312 * Makefile.in: Rebuild.
3313 * configure.tgt (cris-*-*): New target.
3314 * emulparams/crisaout.sh, emulparams/criself.sh,
3315 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3316 * po/POTFILES.in, po/ld.pot: Regenerate.
3318 2000-07-20 H.J. Lu <hjl@gnu.org>
3320 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3321 Print out ignored -z options.
3323 2000-07-19 H.J. Lu <hjl@gnu.org>
3325 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3326 (PARSE_AND_LIST_PROLOGUE): New.
3327 (PARSE_AND_LIST_LONGOPTS): Likewise.
3328 (PARSE_AND_LIST_OPTIONS): Likewise.
3329 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3331 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3333 * lexsup.c (ld_options): Comment out 'z'.
3334 (parse_args): Likewise.
3336 * emultempl/elf32.em: Include "elf/common.h".
3337 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3339 (gld_${EMULATION_NAME}_list_options): Likewise.
3341 * ld.texinfo: Add documentation for the recognized -z options.
3343 2000-07-19 H.J. Lu <hjl@gnu.org>
3345 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3346 bfd_elf_set_dt_needed_soname ().
3348 2000-07-18 DJ Delorie <dj@cygnus.com>
3350 * pe-dll.c (pe_dll_id_target): check object target name also
3352 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3354 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3355 ${INIT_END} if relocating.
3356 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3358 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3360 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3361 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3362 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3363 errors introduced by the old dynamic lib search order.
3365 2000-07-17 DJ Delorie <dj@cygnus.com>
3367 * pe-dll.c (process_def_file): auto-export data items also
3368 (pe_process_import_defs): also see if _imp_ form needed
3370 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3372 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3373 for dll import libraries
3375 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3377 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3378 gcc 2.95.2 and later.
3380 2000-07-11 Kazu Hirata <kazu@hxi.com>
3382 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3385 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3387 * ldemul.h (struct lang_input_statement_struct): Remove forward
3389 (struct search_dirs): Likewise.
3390 * ldfile.h (struct lang_input_statement_struct): Likewise.
3391 Protect file from multiple inclusion.
3392 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3393 declaration from macro to file scope.
3395 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3396 * ldgram.y: Likewise here.
3397 * ldlang.c: And here.
3398 * ldmain.c: And here.
3399 * mpw-elfmips.c: And here.
3400 * mpw-eppcmac.c: And here.
3401 * emultempl/aix.em: And here.
3402 * emultempl/armcoff.em: And here.
3403 * emultempl/armelf.em: And here.
3404 * emultempl/armelf_oabi.em: And here.
3405 * emultempl/beos.em: And here.
3406 * emultempl/elf32.em: And here.
3407 * emultempl/hppaelf.em: And here.
3408 * emultempl/linux.em: And here.
3409 * emultempl/lnk960.em: And here.
3410 * emultempl/pe.em: And here.
3411 * emultempl/sunos.em: And here.
3412 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3413 * mpw-idtmips.c: Ditto.
3414 * emultempl/generic.em: Ditto.
3415 * emultempl/gld960.em: Ditto.
3416 * emultempl/gld960c.em: Ditto.
3417 * emultempl/mipsecoff.em: Ditto.
3418 * emultempl/ticoff.em: Ditto.
3419 * emultempl/vanilla.em: Ditto.
3421 * pe-dll.c: Include ldfile.h
3422 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3424 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3425 arguments to bfd_elf32_size_dynamic_sections call.
3426 (gldelf32ebmip_place_orphan): Add missing arguments to
3427 lang_leave_output_section_statement call.
3429 2000-07-10 H.J. Lu <hjl@gnu.org>
3431 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3433 (strhash): Likewise.
3434 (compute_dll_image_base): Likewise.
3435 (pe_undef_found_sym): Likewise.
3436 (pe_undef_cdecl_match): Likewise.
3437 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3438 argument "arch" with ATTRIBUTE_UNUSED.
3440 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3442 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3444 From Ryan Bradetich <rbradetich@uswest.net>
3445 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3447 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3449 Changes to create multiple linker stubs, positioned immediately
3450 before the section where they are required.
3451 * emultempl/hppaelf.em: Include elf32-hppa.h.
3452 (stub_sec, file_chain): Delete.
3453 (hppaelf_create_output_section_statements): Don't make a stub
3455 (hook_stub_info): New struct.
3456 (hook_in_stub): New function.
3457 (hppaelf_add_stub_section): New function.
3458 (hppaelf_finish): Do nothing for relocateable links. Modify the
3459 call to elf32_hppa_size_stubs. Move code for updating section
3461 (hppaelf_layaout_sections_again): ..to here, a new function.
3463 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3464 broken list handling. Pass in a pointer to the list.
3465 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3467 (hppaelf_before_parse): Prototype.
3468 (hppaelf_set_output_arch): Prototype.
3469 (hppaelf_create_output_section_statements): Prototype.
3470 (hppaelf_delete_padding_statements): Prototype.
3471 (hppaelf_finish): Prototype.
3474 * emultempl/hppaelf.em: Include ctype.h.
3475 (struct orphan_save): New.
3476 (gld${EMULATION_NAME}_place_orphan): New.
3477 (output_rel_find): New.
3478 (hppaelf_get_script): Update from elf32.em.
3479 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3480 Change emulation_name field to "${EMULATION_NAME}". Add
3481 gld${EMULATION_NAME}_place_orphan.
3483 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3484 ehppalinux.o, sort it. Regenerate dependencies.
3485 (ehppalinux.c): Depend on hppaelf.em
3486 * Makefile.in: Regenerate.
3488 * configure.tgt: targ_emul=hppalinux for hppa*linux
3490 * emulparams/hppalinux.sh: New.
3491 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3493 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3495 * lexsup.c (parse_args): Copy section name.
3497 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3499 * emultempl/pe.em: institute the following search order for
3500 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3501 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3502 static lib (libfoo.a) if none of the above are found.
3504 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3506 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3507 (longopts): New --{enable,disable}-auto-image-base options.
3508 (gld_${EMULATION_NAME}_list_options): Document.
3509 (gld_${EMULATION_NAME}_parse): Handle.
3510 (strhash): New static function.
3511 (compute_dll_image_base): New static function.
3512 (gld_${EMULATION_NAME}_set_symbols): Use.
3514 2000-07-05 DJ Delorie <dj@redhat.com>
3518 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3520 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3521 * emulparams/elf32btsmip.sh: New file.
3522 * Makefile.am: Add traditional mips target.
3523 * Makefile.in: Rebuild.
3525 2000-07-01 H.J. Lu <hjl@gnu.org>
3527 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3528 automake to use YLWRAP.
3529 * Makefile.in: Rebuild.
3531 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3533 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3534 (CLEANFILES): Add DEPA.
3535 * Makefile.in: Regenerate.
3537 2000-06-30 Timothy Wall <twall@ppc>
3539 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3540 the page in the upper octet of the address.
3542 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3544 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3546 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3548 * NEWS: arm-elf does --gc-sections too.
3550 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3552 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3554 * Makefile.in: Regenerate.
3556 2000-06-21 H.J. Lu <hjl@gnu.org>
3558 * Makefile.am: Rebuild dependency.
3559 * Makefile.in: Rebuild.
3561 2000-06-20 H.J. Lu <hjl@gnu.org>
3563 * Makefile.am: Rebuild dependency.
3564 * Makefile.in: Rebuild.
3566 2000-06-20 Timothy Wall <twall@cygnus.com>
3568 * scripttempl/tic54xcoff.sc: New.
3569 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3570 * gen-doc.texi: Add flag for TI COFF.
3571 * ld.texinfo: Add documentation for TI COFF handling switches.
3572 * emultempl/ticoff.em: New. TI COFF handling.
3573 * configure.tgt: Add tic54x target.
3574 * Makefile.am: Add tic54x target.
3575 * Makefile.in: Ditto.
3577 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3579 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3580 checking for backslashes.
3582 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3584 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3586 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3588 * NEWS: Update list of targets supporting --gc-sections.
3590 * scripttempl/elf.sc: KEEP .eh_frame contents.
3591 * scripttempl/elfd30v.sc: Same here.
3593 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3595 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3597 * Makefile.in: Rebuild.
3598 * configure.tgt: Recognize m68hc12 and m68hc11.
3599 * scripttempl/elfm68hc12.sc: New file.
3600 * emulparams/m68hc12elfb: New emulation.
3601 * emulparams/m68hc12elf: New emulation.
3602 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3603 (includes a memory.x script to define the ROM and RAM banks).
3604 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3605 New configuration files for support of Motorola 68hc11
3607 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3609 * ldmain.c (main): Only change SEC_READONLY for final link.
3611 2000-06-13 H.J. Lu <hjl@gnu.org>
3613 * configure: Regenerate.
3615 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3617 * configure.in (VERSION): Update to show this is the CVS mainline.
3619 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3621 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3622 input objects to be ECOFF.
3623 (check_sections): einfo takes %B, not %P, to print a BFD name.
3625 2000-06-05 Michael Matz <matz@ifh.de>
3627 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3630 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3632 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3634 * emulparams/avr1200.sh (STACK): Define as 0.
3635 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3636 * emulparams/avr4433.sh (STACK): Likewise.
3637 * emulparams/avr44x4.sh (STACK): Likewise.
3638 * emulparams/avr85xx.sh (STACK): Likewise.
3639 * emulparams/avrmega103.sh (STACK): Likewise.
3640 * emulparams/avrmega161.sh (STACK): Likewise.
3641 * emulparams/avrmega603.sh (STACK): Likewise.
3642 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3643 (__stack): Define from ${STACK} for main().
3645 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3647 * Makefile.am: Update dependencies with "make dep-am"
3648 * Makefile.in: Regenerate.
3650 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3652 * ldmain.c: Include filenames.h.
3653 (set_scripts_dir): Support backslashes in program name.
3655 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3657 * ldmain.c (main): When deciding if ".text" section should be
3658 read-only, don't forget to reset SEC_READONLY because it
3659 could be already set.
3661 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3663 * ld.1: Add documentation for new command line option:
3664 --section-start <sectionname>=<sectionorg>
3665 This is a generic version of -Ttext etc. which accepts
3666 any section name as a parameter instead of just text/data/
3668 * ld.texinfo: More docs.
3670 * lexsup.c: (parse_args): Recognize new command line option.
3671 (ld_options): Add new option.
3673 2000-05-18 H.J. Lu <hjl@gnu.org>
3675 * lexsup.c (parse_args): `i' == `r', not `q'.
3677 2000-05-18 Jeffrey A Law (law@cygnus.com)
3679 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3681 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3682 Rick Gorton <gorton@scrugs.lkg.dec.com>
3684 Add support for '-q' == '--emit-relocs' switch.
3685 * ldmain.c (main): Default to false.
3686 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3687 * NEWS: Describe the emitrelocations switch.
3688 * ld.texinfo: Describe the emitrelocations switch.
3690 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3692 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3693 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3694 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3697 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3699 * lexsup.c (parse_args): Update the year in the copyright notice.
3701 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3703 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3704 Replace defines with those from intl/libgettext.h to quieten gcc
3707 2000-05-10 H.J. Lu <hjl@gnu.org>
3709 * ldlang.c (open_input_bfds): Don't load the same file within
3710 a group again if the whole archive has been loaded already.
3712 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3714 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3715 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3718 2000-05-01 Jim Wilson <wilson@cygnus.com>
3720 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3722 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3723 host "ia64-*-linux-gnu*".
3725 2000-04-29 Andreas Jaeger <aj@suse.de>
3727 * ld.h: Correctly check GCC version.
3729 2000-04-25 Jeffrey A Law (law@cygnus.com)
3731 * Makefile.am: Add PA64 support. Add missing dependencies for
3733 * Makefile.in: Rebuilt.
3734 * configure.tgt: Add PA64 support (currently disabled).
3736 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3738 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3739 (output_rel_find): New function.
3740 (hold_section, hold_use): Delete.
3741 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3742 hold_interp): Make local to place_orphan.
3743 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3744 rather than place_section to find possible previous use of orphan.
3745 Similarly find the place-holder output sections. Use returned
3746 value from lang_enter_output_section_statement rather than calling
3747 lang_output_section_statement_lookup.
3748 * emultempl/armelf.em: Same here.
3749 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3751 * ldlang.c (lang_enter_output_section_statement): Return output
3753 * ldlang.h (lang_enter_output_section_statement): Change
3756 * ldlang.h (lang_output_section_statement): Export it.
3757 * ldlang.c (lang_output_section_statement): Ditto.
3759 2000-04-24 Nick Clifton <nickc@cygnus.com>
3761 * ld.texinfo (Output Section Data): Add note that section data
3762 commands cannot appear outside of section directives.
3764 2000-04-2 Matthew Green <mrg@cygnus.com>
3766 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3768 2000-04-21 Richard Henderson <rth@cygnus.com>
3769 David Mosberger <davidm@hpl.hp.com>
3771 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3772 (eelf64_ia64.c): New rule.
3773 * Makefile.in: Rebuild.
3774 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3775 * emulparams/elf64_ia64.sh: New file.
3777 2000-04-21 Richard Henderson <rth@cygnus.com>
3779 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3781 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3783 * dep-in.sed: Match space at start of file name, not at end.
3785 2000-04-18 H.J. Lu <hjl@gnu.org>
3787 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3788 lang_leave_output_section_statement () after calling
3789 lang_enter_output_section_statement ().
3790 * emultempl/armelf.em: Likewise.
3792 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3794 * emultempl/elf32.em (struct orphan_save): Add section field.
3795 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3796 better order, and place first orphan section as we did before the
3797 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3798 Don't call make_bfd_section here, let wild_doit do the job for us.
3799 Don't build a statement list when we'll only throw it away.
3800 * emultempl/armelf.em: Ditto.
3801 * emultempl/pe.em: Similarly.
3803 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3805 * scripttempl/elfppc.sc: Remove.
3806 * emulparams/elf32ppc.sh: Use elf.sc.
3807 * emulparams/elf32lppc.sh: Use elf.sc.
3808 * emulparams/elf32ppclinux.sh: Use elf.sc.
3809 * emulparams/elf32ppcsim.sh: New file.
3810 * emulparams/elf32lppcsim.sh: New file.
3811 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3812 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3813 * Makefile.in: Regenerate.
3814 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3816 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3818 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3819 ~SEC_ALLOC sections too. Init start address of debug sections.
3820 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3821 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3822 Also set all relocateable section start addresses.
3824 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3826 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3827 Add new BSS_PLT variable for when .plt need not be contained in
3828 the file. Move _etext so that it is also after .fini, and provide
3829 both etext and _etext with a leading underscore. Mark the start
3832 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3834 * emultempl/elf32.em (struct orphan_save): New.
3835 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3836 hold_interp): Make them struct orphan_save.
3837 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3838 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3839 the end of the relevant section list. Also add associated section
3840 statements to the end of any previous orphan statements.
3841 * emultempl/armelf.em: Similarly.
3842 * emultempl/pe.em: Similarly.
3844 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3846 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3848 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3850 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3851 --enable-build-warnings option.
3852 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3853 * Makefile.in, configure: Re-generate.
3855 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3857 * po/ld.pot: Regenerate.
3859 * lexsup.c (help): Restore translated part of bug string.
3861 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3862 (DEP): Quote when passing vars to sub-make. Add warning message
3864 (DEP1): Rewrite for "gcc -MM".
3865 (CLEANFILES): Add DEP2.
3866 Update dependencies.
3867 * Makefile.in: Regenerate.
3869 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3871 * ld.h: #include "bin-bugs.h"
3872 * lexsup.c (help): Use REPORT_BUGS_TO.
3874 2000-03-27 Denis Chertykov <denisc@overta.ru>
3876 * configure.tgt (avr-*-*): New target support.
3877 * Makefile.am: Likewise.
3878 * scripttempl/elf32avr.sc: New script file.
3879 * emulparams/avr1200.sh: New file.
3880 * emulparams/avr23xx.sh: New file.
3881 * emulparams/avr4433.sh New file.
3882 * emulparams/avr44x4.sh New file.
3883 * emulparams/avr85xx.sh New file.
3884 * emulparams/avrmega103.sh New file.
3885 * emulparams/avrmega161.sh New file.
3886 * emulparams/avrmega603.sh New file.
3887 * Makefile.in: Regenerate.
3889 2000-03-09 Andreas Jaeger <aj@suse.de>
3891 * Makefile.am (check-DEJAGNU): Also unset LANG.
3892 * Makefile.in: Rebuild.
3894 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3896 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3899 2000-03-02 H.J. Lu <hjl@gnu.org>
3901 * emulparams/elf32mcore.sh: Include "getopt.h".
3903 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3905 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3907 2000-03-01 H.J. Lu <hjl@gnu.org>
3909 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3910 * emulparams/shpe.sh: Likewise.
3912 2000-03-01 Nick Clifton <nickc@cygnus.com>
3914 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3915 to unused parameters.
3917 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3918 functions only used by DLL code.
3919 (_place_orphan): Initialise 'dollar'.
3921 2000-03-01 H.J. Lu <hjl@gnu.org>
3923 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3924 indicate if the undefined symbol is a fatal error or not.
3925 Don't delete the output file if "fatal" is false.
3927 2000-02-29 H.J. Lu <hjl@gnu.org>
3929 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3930 Set LC_COLLATE and LC_ALL to null and export them. It is for
3931 sort which expects the C locale.
3932 Add $(LIBS) to all $(HOSTING_LIBS).
3933 * Makefile.in: Rebuild.
3935 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3937 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3938 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3939 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3940 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3941 find_potential_libraries.
3943 2000-02-28 Jim Blandy <jimb@redhat.com>
3945 * ldgram.y (exclude_name_list): Don't require a comma to separate
3946 list entries; the lexer considers commas to be valid part of a
3947 filename, so in something like `foo, bar' the comma is considered
3948 part of the first filename, `foo,'.
3949 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3951 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3953 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3954 host "i[3456]86-*-freebsdelf*".
3956 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3958 * scripttempl/i386go32.sc: Move misplaced semicolons.
3960 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3962 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3963 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3964 (eelf64hppa.c, ehppaelf.c): Remove targets.
3965 * Makefile.in: Rebuild.
3967 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3969 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3970 GNU/Linux/sparc, but keep the default as 32.
3972 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3973 it default if sparcv9 or sparc64.
3975 2000-02-24 Nick Clifton <nickc@cygnus.com>
3977 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3978 * Makefile.in: Regenerate.
3979 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3981 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3982 find_potential_libraries.
3983 * ldemul.c (ldemul_find_potential_libraries): New function.
3985 * ldfile.c (ldfile_open_file_search): Allow function to be
3987 (ldfile_open_file): Call ldemul_find_potential_libraries.
3988 * ldfile.h: Add prototype for ldfile_open_file_search.
3990 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3992 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3993 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3995 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3996 (gld_X_find_potential_libraries): New function. Search for
3997 libraries called "*.lib".
3999 * scripttempl/pe.sc: Add .pdata section.
4001 2000-02-23 Richard Henderson <rth@cygnus.com>
4003 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4004 Add and use memory regions.
4006 2000-02-23 Linas Vepstas (linas@linas.org)
4008 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4010 * Makefile.am: Add support for Linux/IBM 370.
4011 * configure.tgt: Likewise.
4013 * Makefile.in: Regenerate.
4015 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4017 * ldlang.c (print_input_section, print_data_statement,
4018 print_reloc_statement, print_padding_statement, insert_pad,
4019 size_input_section, lang_check_section_addresses,
4020 lang_size_sections, lang_do_assignments, lang_set_startof,
4021 lang_one_common): Change `opb' to unsigned.
4022 (lang_do_assignments): Also change `size' to unsigned.
4024 2000-02-16 Richard Henderson <rth@cygnus.com>
4026 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4028 2000-02-16 Timothy Wall <twall@cygnus.com>
4030 * mri.c (mri_draw_tree): Add default LMA region argument to call
4031 to lang_leave_output_section_statement.
4032 * ldlang.h: Update prototypes with LMA region arguments.
4033 * ldlang.c (lang_size_sections): Encapsulate region bounds
4034 checking in os_check_region call.
4035 (os_check_region): New function.
4036 (lang_output_section_statement_lookup): Initialize lma_region.
4037 (lang_leave_output_section_statement): Add LMA region argument.
4038 (lang_leave_overlay): Ditto.
4039 * ldgram.y: Handle LMA region syntax.
4040 * ld.texinfo (Output Section Description): Describe LMA region usage.
4041 * emultempl/armelf.em (gld$place_orphan): Add default value for
4042 lma region in call to lang_leave_output_section_statement.
4043 * emultempl/elf32.em (gld$place_orphan): Add default value for
4044 lma region in call to lang_leave_output_section_statement.
4045 * emultempl/pe.em (gld$place_orphan): Add default value for
4046 lma region in call to lang_leave_output_section_statement.
4049 2000-02-04 Timothy Wall <twall@redhat.com>
4051 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4052 octets when calculating section end addresses.
4054 2000-02-04 Timothy Wall <twall@redhat.com>
4056 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4058 2000-02-03 Timothy Wall <twall@redhat.com>
4060 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4062 * ldlang.c (print_input_section, print_data_statement,
4063 print_reloc_statement, print_padding_statement): Print target
4064 address values and section sizes as bytes, not octets.
4065 (insert_pad) Calculate padding size in octets, and adjust "dot"
4067 (size_input_section) Always adjust "dot" by bytes, not octets.
4068 (lang_check_section_addresses, lang_do_assignments) Adjust
4069 "dot" by bytes, not octets. Use the larger of the directive size
4070 or octets_per_byte for the number of octets actually allocated in
4072 (lang_set_startof) Make sure STARTOF returns a target address.
4073 (lang_one_common) Record size changes in octets.
4074 (lang_abs_symbol_at_end_of) Section end symbol's value is
4075 recorded in target bytes.
4076 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4077 to be clear about behavior when an octet is smaller than one byte.
4079 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4081 * ldcref.c (output_cref): Don't pass message strings to printf
4085 * ldmisc.c (vfinfo): Same here.
4088 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4090 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4091 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4092 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4093 Add missing NULL initialisers, and comments.
4095 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4097 2000-01-21 Nick Clifton <nickc@cygnus.com>
4099 * ldlang.c (lang_size_sections): Fix typo in comment.
4101 2000-01-18 H.J. Lu <hjl@gnu.org>
4103 * ldlang.c (lang_size_sections): Also update the current
4104 address of a region if the SEC_NEVER_LOAD bit is not set.
4106 2000-01-10 Philip Blundell <pb@futuretv.com>
4108 * configure.tgt (arm*-*-conix*): New target.
4110 2000-01-07 Nick Clifton <nickc@cygnus.com>
4112 * ld.texinfo (Options): Remind users to preceed linker command
4113 line switches with -Wl, (or whatever is appropriate) if it is
4114 being invoked by a comnpiler driver program.
4115 Fix description of the behaviour of the -n command line switch.
4117 2000-01-05 Catherine Moore <clm@cygnus.com>
4119 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4121 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4122 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4123 (exclude_name_list): New.
4124 ldlang.c (walk_wild_section): Support list of excluded files.
4125 (print_wild_statement): Likewise.
4126 (lang_add_wild): Likewise.
4127 * ldlang.h (lang_wild_statement_type): Likewise.
4128 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4130 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4132 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4133 (process_def_file): Use.
4134 (pe_dll_compat_implib): New variable.
4137 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4138 pe_dll_compat_implib.
4140 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4141 compat-implib options.
4142 (gld_${EMULATION_NAME}_list_options): List new options.
4143 (gld_${EMULATION_NAME}_parse_args): Handle.
4145 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4148 * deffilep.y (opt_name): Allow "." in name.
4150 For older changes see ChangeLog-9899
4156 version-control: never