1 2002-05-10 Jakub Jelinek <jakub@redhat.com>
3 * ldmain.c (main): Enable -z combreloc by default.
5 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
7 * Makefile.am: Honour DESTDIR.
8 * Makefile.in: Regenerate.
10 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
12 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
13 (lang_enter_overlay): Remove the last two parameters.
14 (lang_leave_overlay): Take them here instead.
15 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
16 (section): Pass LMA and crossref flag to lang_leave_overlay rather
17 than lang_enter_overlay.
18 * ldlang.c (lang_memory_region_lookup): Return null for null names.
19 (lang_output_section_statement_lookup): Initialize update_dot_tree.
20 (lang_size_sections_1): Evaluate it.
21 (lang_leave_output_section_statement): Rework LMA lookup.
22 (overlay_lma, overlay_nocrossrefs): Remove.
23 (lang_enter_overlay): Remove LMA and corssref arguments.
24 (lang_enter_overlay_section): Don't set the LMA here.
25 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
26 assignment to the last section's update_dot_tree. Unconditionally
27 use the load and run-time regions specified in the OVERLAY statement.
28 Likewise the first section's LMA. Only set the other sections' LMAs
29 when no load region is given.
31 2002-05-06 Nick Clifton <nickc@redhat.com>
33 * po/sv.po: New translation.
35 2002-05-04 Alan Modra <amodra@bigpond.net.au>
37 * emultempl/hppaelf.em (build_section_lists): New function.
38 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
39 and build_section_lists.
41 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
43 * ld.h: Fix formatting.
51 2002-05-02 Alan Modra <amodra@bigpond.net.au>
53 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
54 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
55 (build_section_lists): Do output_section tests here.
57 2002-04-30 Tom Rix <trix@redhat.com>
59 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
61 2002-05-01 Alan Modra <amodra@bigpond.net.au>
63 Long branch stubs, multiple stub sections.
64 * emultempl/ppc64elf.em: Include ldctor.h.
66 (group_size): New var.
67 (ppc_create_output_section_statements): New function.
68 (struct hook_stub_info): New.
69 (hook_in_stub): New function.
70 (ppc_add_stub_section): New function.
71 (ppc_layout_sections_again): New function.
72 (build_section_lists): New function.
73 (gld${EMULATION_NAME}_finish): Rewrite.
75 (ppc_for_each_input_file_wrapper): New function.
76 (ppc_lang_for_each_input_file): New function.
77 (lang_for_each_input_file): Define.
78 (PARSE_AND_LIST_PROLOGUE): Define.
79 (PARSE_AND_LIST_LONGOPTS): Define.
80 (PARSE_AND_LIST_OPTIONS): Define.
81 (PARSE_AND_LIST_ARGS_CASES): Define.
82 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
84 2002-04-30 Tom Rix <trix@redhat.com>
86 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
87 -blibpath, -bnolibpath support.
89 2002-04-30 Mark Mitchell <mark@codesourcery.com>
91 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
92 (eelf32ppcwindiss.c): New target.
93 * Makefile.in: Regenerated.
94 * configure.tgt: Add support for powerpc-*-windiss.
95 * emulparams/elf32ppcwindiss.sh: New file.
97 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
99 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
100 * ldexp.c (exp_print_token): Add "infix_p" argument.
101 (exp_print_tree): Update accordingly.
103 2002-04-28 Alan Modra <amodra@bigpond.net.au>
105 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
106 * Makefile.in: Regenerate.
107 * mpw-elfmips.c: Delete.
108 * mpw-eppcmac.c: Delete.
110 * mpw-idtmips.c: Delete.
112 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
114 * emulparams/shelf32.sh (MACHINE): Now sh5.
116 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
118 * ldgram.y: Fix syntax warning.
120 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
122 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
123 to prevent "-n" from being taken as an abbreviation for
124 "--no-pipeline-knowledge".
126 2002-04-08 Alan Modra <amodra@bigpond.net.au>
128 * ldlang.c (lang_size_sections_1): Don't complain about
129 SEC_NEVER_LOAD sections having no memory region specified.
131 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
133 2002-04-07 matthew green <mrg@redhat.com>
135 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
137 2002-04-04 Alan Modra <amodra@bigpond.net.au>
139 * dep-in.sed: Cope with absolute paths.
140 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
142 * Makefile.in: Regenerate.
144 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
146 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
148 2002-04-03 Jakub Jelinek <jakub@redhat.com>
150 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
151 is smaller than maximum, round dot up to common page boundary.
153 2002-03-28 Alan Modra <amodra@bigpond.net.au>
155 * configure.host: Set up for generic hosts first, then tweak as
156 necessary in more specific targets.
157 (HOSTING_LIBS): Include libgcc_eh.a if found.
159 2002-03-23 Andreas Jaeger <aj@suse.de>
161 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
163 2002-03-21 Alan Modra <amodra@bigpond.net.au>
165 * Makefile.am: Run "make dep-am".
166 * Makefile.in: Regenerate.
168 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
170 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
172 2002-03-20 Alan Modra <amodra@bigpond.net.au>
174 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
175 add the symbol to the linker hash table immediately.
176 (lang_place_undefineds): Split symbol creation out..
177 (insert_undefined): ..to here.
179 2002-03-18 David O'Brien <obrien@FreeBSD.org>
181 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
182 the contents of the buffer returned from basename function will are
183 getting overwritten while still being used.
185 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
186 Andreas Jaeger <aj@suse.de>
187 Andreas Schwab <schwab@suse.de>
189 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
190 * elf_x86_64.sh (ARCH): Set to i386:x86-64
191 set libraries to default to lib64 paths.
193 2002-03-18 Tom Rix <trix@redhat.com>
195 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
196 * configure.tgt : Same.
197 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
198 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
199 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
200 emulation parameters for better -b32, -b64 support.
201 * emulparms/aixrs6.sh : Same.
202 * emulparms/ppcmacos.sh : Same.
203 * emultempl/aix.em (choose_target) : Use new emulation parameters
204 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
205 * Makefile.in : Regenerate.
207 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
209 * po/fr.po: Updated version.
211 2002-03-18 Alan Modra <amodra@bigpond.net.au>
213 * ldmain.c (main): Move .text readonly flag fudges from here..
214 * ldlang.c (lang_process): ..to here.
216 2002-03-14 Alan Modra <amodra@bigpond.net.au>
218 * ldlang.c (lang_check): Remove the word size check added in last
219 change. Treat emitrelocations case as for relocatable links.
221 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
223 * po/fr.po: Updated version.
225 2002-03-13 Alan Modra <amodra@bigpond.net.au>
227 * ldlang.c (lang_check): Do relocatable link checks first, so that
228 warn_mismatch can't override. Check compatible and word size too.
230 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
232 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
234 2002-03-05 Jakub Jelinek <jakub@redhat.com>
236 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
239 2002-03-04 H.J. Lu <hjl@gnu.org>
241 * scripttempl/elf.sc: Put .preinit_array, .init_array and
242 .fini_array in the data segment.
244 2002-03-04 Alan Modra <amodra@bigpond.net.au>
246 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
248 2002-03-01 David Mosberger <davidm@hpl.hp.com>
250 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
251 .init_array, and .fini_array.
253 2002-02-20 Andreas Schwab <schwab@suse.de>
255 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
256 .IA64_unwind* in a relocatable link.
258 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
260 * NEWS: Mark 2.12 branch.
262 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
264 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
265 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
267 2002-02-18 Tom Rix <trix@redhat.com>
269 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
270 (gld*_before_allocation): Same.
271 (gld*_create_output_section_statements): Generate
272 __rtinit if run time linking. Add librtl.a to the link.
273 (gld*_read_file): Clean.
275 2002-02-18 Alan Modra <amodra@bigpond.net.au>
277 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
279 2002-02-18 David O'Brien <obrien@FreeBSD.org>
281 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
282 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
283 and eelf64alpha_fbsd.
284 * Makefile.in: Regenerate.
285 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
286 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
287 use a FreeBSD-specific emulation rather than the psABI one.
288 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
289 for all FreeBSD ELF systems.
290 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
292 * emulparams/elf32ppc_fbsd.sh: Likewise.
293 * emulparams/elf64_ia64_fbsd.sh: Likewise.
294 * emulparams/elf64_sparc_fbsd.sh: Likewise.
295 * emulparams/elf64alpha_fbsd.sh: Likewise.
296 * emulparams/elf_i386_fbsd.sh: Likewise.
297 * emulparams/elf_x86_64_fbsd.sh: Likewise.
299 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
301 * po/tr.po: Updated version.
303 2002-02-18 Alan Modra <amodra@bigpond.net.au>
305 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
308 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
310 * emultempl/mmo.em (mmo_after_open): Don't call
311 _bfd_mmix_check_all_relocs when producing ELF output.
313 2002-02-15 Richard Henderson <rth@redhat.com>
315 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
316 definition. Emit a unop+nop pair.
318 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
320 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
321 for presence of .MMIX.reg_contents.linker_allocated before early
324 * NEWS: Mention support for MMIX.
326 2002-02-15 Alan Modra <amodra@bigpond.net.au>
328 Support arbitrary length fill patterns.
329 * ld.texinfo (Output Section Fill): Describe fill expressions.
330 (FILL): Refer to the above.
331 * ldexp.h (etree_value_type): Add "str" field.
332 (union etree_union): Add "str" to "value" struct.
333 (exp_bigintop): Declare.
334 (exp_get_fill): Declare.
335 * ldexp.c: Include "safe-ctype.h".
336 (exp_intop): Set value.str to NULL.
337 (exp_bigintop): New function.
338 (new_rel): Pass in "str", and set new.str from it.
339 (new_rel_from_section): Set new.str to NULL.
340 (fold_name): Adjust calls to new_rel.
341 (exp_fold_tree): Likewise.
342 (exp_get_fill): New function.
343 * ldgram.y (struct big_int bigint, fill_type *fill): New.
344 (INT): Returns a "bigint". Adjust all code handling INTs.
345 (fill_opt): Returns a "fill".
346 (fill_exp): Split out of fill_opt, use for FILL.
347 * ldlang.h (struct _fill_type): New.
348 (fill_type): Move typedef to ldexp.h.
349 (lang_output_section_statement_type): "fill" is now a pointer.
350 (lang_fill_statement_type): Likewise.
351 (lang_padding_statement_type): Likewise.
352 (lang_add_fill): Now takes a "fill_type *" param.
353 (lang_leave_output_section_statement): Likewise.
354 (lang_do_assignments): Likewise.
355 (lang_size_sections): Likewise.
356 (lang_leave_overlay_section): Likewise.
357 (lang_leave_overlay): Likewise.
358 * ldlang.c: Include ldgram.h after ldexp.h.
359 (lang_output_section_statement_lookup): Adjust for fill_type change.
360 (print_fill_statement): Likewise.
361 (print_padding_statement): Likewise.
362 (insert_pad): Now takes a "fill_type *" arg.
363 (size_input_section): Likewise.
364 (lang_size_sections_1): Likewise.
365 (lang_size_sections): Likewise.
366 (lang_do_assignments): Likewise.
367 (lang_add_fill): Likewise.
368 (lang_leave_output_section_statement): Likewise.
369 (lang_leave_overlay_section): Likewise.
370 (lang_leave_overlay): Likewise.
371 Adjust all callers of the above function.
372 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
373 starting with "0X" as well as "0x". Return bigint.str for hex
374 numbers starting with "0x" or "0X", zero bigint.str otherwise.
375 Always use base 16 for numbers starting with "$".
376 * ldmain.c: Include ldgram.h after ldexp.h.
377 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
378 of bfd_fill_link_order.
379 * pe-dll.c: Adjust lang_do_assignments calls.
380 * emultempl/elf32.em: Likewise.
381 * emultempl/hppaelf.em: Likewise.
382 * emultempl/ppc64elf.em: Likewise.
383 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
384 lang_add_assignment call.
385 * emultempl/pe.em: Likewise.
387 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
389 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
390 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
391 the pattern in question is not a regexp.
392 * ldlang.c: Likewise.
393 * ldlang.h: Likewise.
394 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
396 2002-02-12 Jakub Jelinek <jakub@redhat.com>
398 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
399 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
400 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
401 * ldexp.c (exp_data_seg): New variable.
402 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
403 (fold_binary): Handle DATA_SEGMENT_ALIGN.
404 (exp_fold_tree): Handle DATA_SEGMENT_END.
405 Pass allocation_done when recursing instead of hardcoding
406 lang_allocating_phase_enum.
407 * ldexp.h (exp_data_seg): New.
408 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
409 (lang_size_sections): New.
410 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
411 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
412 if COMMONPAGESIZE is defined.
413 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
414 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
415 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
416 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
417 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
420 2002-02-11 Alan Modra <amodra@bigpond.net.au>
422 * Makefile.in: Regenerate.
424 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
426 * lexsup.c: Remove strtoul declaration.
428 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
430 * ldmain.c: Add prototype for main ().
431 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
432 * emultempl/lnk960.em (lnk960_choose_target): Function should
435 2002-02-10 Alan Modra <amodra@bigpond.net.au>
437 * ldlang.c (entry_section): New initialised variable.
438 (lang_finish): Use it.
439 * ldlang.h (entry_section): Declare.
440 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
441 entry_section to ".opd".
443 2002-02-09 Chris Demetriou <cgd@broadcom.com>
445 * ld.texinfo (Options): Add back in -nostdlib documentation,
446 which had been inadvertently removed.
448 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
450 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
451 register section vma to a sane value after emitting error. Make
452 fatal conditions cause program exit when emitting message.
454 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
456 * configure.tgt: Add or32-*-rtems target.
458 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
461 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
462 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
463 in OTHER_RELOCATABLE_SECTIONS.
464 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
465 * emulparams/shelf32.sh (STACK_ADDR): Define.
466 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
467 (OTHER_SECTIONS): this. Removed stack settings.
468 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
469 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
470 2001-03-12 DJ Delorie <dj@redhat.com>
471 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
472 relaxing if any shmedia or mixed sections are found.
473 2001-03-07 DJ Delorie <dj@redhat.com>
474 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
475 einfo. Gracefully decline to output to non-elf formats.
476 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
477 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
478 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
479 * emulparams/shelf32.sh: Ditto.
480 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
481 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
483 2001-01-10 Ben Elliston <bje@redhat.com>
484 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
485 non-portable shell constructs. From Hans-Peter Nilsson.
486 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
487 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
488 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
489 dependencies to the shell script include chain.
490 * Makefile.in: Regenerate.
491 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
492 * emultempl/sh64elf.em: Update and tweak comments.
493 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
494 make a .cranges section SEC_IN_MEMORY.
495 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
496 * emultempl/sh64elf.em
497 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
498 .cranges section found to be necessary; continue and set stored
499 section contents flags for sections with non-mixed contents.
500 Use a struct sh64_section_data container and sh64_elf_section_data
501 to store contents-type flags.
502 Remove unused update of "isec".
503 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
504 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
505 access contents-type flags. Assert that the associated container
506 is initialized. Use that container, not elf_gp_size, to hold size
507 of linker-generated cranges contents.
508 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
509 * emultempl/sh64elf.em
510 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
511 there's already a .cranges section. When section flag difference
512 is found, don't NULL-check cranges a second time. Tweak comments.
513 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
514 merging, not max size, as size of ld-generated .cranges contents.
515 Don't set ELF section flags in output section. When checking for
516 needed .cranges descriptors, don't use a variable; compare
517 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
519 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
520 * emultempl/sh64elf.em: New file.
521 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
522 * Makefile.in: Regenerate.
523 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
524 (OTHER_RELOCATING_SECTIONS): Ditto.
525 (EXTRA_EM_FILE): New, set to sh64elf if not set.
526 * emulparams/shlelf32.sh: Stub out all settings except
527 OUTPUT_FORMAT. Source shelf32.sh.
528 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
529 OTHER_RELOCATING_SECTIONS.
530 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
531 * emulparams/shlelf64.sh: Stub out all settings except
532 OUTPUT_FORMAT. Source shelf64.sh.
533 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
534 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
536 (DATA_START_SYMBOLS): Define, provide ___data.
537 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
538 for consecutive .data section.
539 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
540 section after .data section.
541 * emulparams/shlelf64.sh: Ditto.
542 * emulparams/shelf32.sh: Ditto.
543 (ALIGNMENT): Define to 8.
544 * emulparams/shelf32.sh: Ditto.
545 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
546 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
547 built-in linker scripts.
548 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
549 * emulparams/shlelf64.sh: New.
550 * emulparams/shelf64.sh: New.
551 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
553 * Makefile.am: Add support for shlelf64 and shelf64.
554 * Makefile.in: Regenerate.
555 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
556 * configure.tgt (sh64-*-elf*): Add shelf as default.
557 Add shlelf to targ_extra_emuls.
558 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
559 * emulparams/shelf32.sh: New file.
560 * emulparams/shlelf32.sh: New file.
561 * Makefile.am: Add support for shlelf32 and shelf32.
562 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
563 * Makefile.in: Regenerate.
565 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
567 * ldlang.c (lang_reset_memory_regions): Rename from
568 reset_memory_regions. Change all callers. Make public.
569 * ldlang.h (lang_reset_memory_regions): Prototype.
570 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
571 lang_reset_memory_regions before lang_size_sections.
572 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
573 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
575 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
577 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
578 arithmetic when checking for too many global registers.
580 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
582 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
583 (ehppanbsd.c): New rule.
584 * Makefile.in: Regenerate.
585 * configure.tgt (hppa*-*-netbsd*): New target.
586 * emulparams/hppalinux.sh: Add comment to check other files
587 that source this file it is modified, and list which
589 * emulparams/hppanbsd.sh: New file.
591 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
593 * scripttempl/xstormy16.sc: Don't allocate extra space for the
596 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
598 Support on-demand global register allocation from
599 R_MMIX_BASE_PLUS_OFFSET relocs.
600 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
601 mmix_set_reg_section_vma. Call
602 _bfd_mmix_finalize_linker_allocated_gregs.
603 (mmix_before_allocation): New function.
604 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
605 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
606 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
607 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
608 before .MMIX.reg_contents.
609 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
610 (mmo_after_open): New function.
611 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
612 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
613 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
615 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
617 * emulparams/or32.sh: New file.
618 * emulparams/or32elf.sh: New file.
619 * scripttempl/or32.sc: New file.
620 * configure.tgt : Add support for or32.
621 * configure: Regenerate
622 * Makefile.am: Add support for or32.
623 * Makefile.in: Regenerate.
624 * NEWS: Mention support for or32.
625 * po/ld.pot: Regenerate.
627 2002-01-29 Chris Demetriou <cgd@broadcom.com>
628 Mitch Lichtenberg <mpl@broadcom.com>
630 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
631 * emultempl/mipself.em: New file to handle MIPS ELF embedded
632 reloc creation (ld --embedded-relocs).
634 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
636 * configure: Regenerated.
638 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
640 * Makefile.am (install): Depend on install-info.
641 * Makefile.in: Regenerate.
643 2002-01-26 Christian Rose <menthos@menthos.com>
645 * ldmain.c (main): Use full sentences to ease translation.
647 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
649 * po/fr.po: Updated version.
651 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
653 * po/es.po: Updated version.
655 2002-01-25 Andreas Jaeger <aj@suse.de>
657 * ldlex.l (yy_input): Correct error check.
659 2002-01-25 Alan Modra <amodra@bigpond.net.au>
661 * ldmisc.c (demangle): Put back dots when string not demangled.
663 2002-01-22 Richard Henderson <rth@redhat.com>
665 * emulparams/elf64alpha.sh (NOP): Use unop.
667 2002-01-21 Andreas Jaeger <aj@suse.de>
669 * ldlex.l: Use fread instead of read.
671 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
673 * configure.tgt (ia64-*-netbsd*): New target.
675 2002-01-21 H.J. Lu <hjl@gnu.org>
677 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
679 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
681 2002-01-18 Andreas Jaeger <aj@suse.de>
683 * ldver.c (ldversion): Update year.
685 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
687 * po/ld.pot: Regenerate.
689 2002-01-16 Alan Modra <amodra@bigpond.net.au>
691 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
692 * Makefile.in: Regenerate.
693 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
694 * emultempl/ppc64elf.em: New file.
696 2002-01-15 DJ Delorie <dj@redhat.com>
698 * scripttempl/pe.sc: Add support for constructor priorities.
700 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
702 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
703 * emulparams/avr23xx.sh: Likewise.
704 * emulparams/avr4433.sh: Likewise.
705 * emulparams/avr44x4.sh: Likewise.
706 * emulparams/avr85xx.sh: Likewise.
707 * emulparams/avrmega103.sh: Likewise.
708 * emulparams/avrmega161.sh: Likewise.
709 * emulparams/avrmega603.sh: Likewise.
710 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
712 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
714 * ldlang.c (walk_wild_section): Exclude object file if enclosing
717 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
719 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
720 (eshelf_nbsd.c): New rule.
721 (eshlelf_nbsd.c): New rule.
722 * Makefile.in: Regenerate.
723 * configure.tgt (sh*le-*-netbsdelf*): New target.
724 (sh*-*-netbsdelf*): New target.
725 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
726 * ld/emulparams/shelf_nbsd.sh: New emulation.
727 * ld/emulparams/shlelf_nbsd.sh: New emulation.
729 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
731 * po/es.po: New file: Spanish translation.
732 * configure.in (ALL_LINGUAS): Add es.
733 * configure: Regenerate.
735 2002-01-06 John Marshall <jmarshall@acm.org>
737 * ld.texinfo: Note that --emit-relocs is currently only
740 2002-01-05 Alan Modra <amodra@bigpond.net.au>
742 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
743 of bfd_section_list_remove and bfd_section_list_insert macros.
744 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
745 * emultempl/mmo.em (mmo_place_orphan): Likewise.
747 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
749 * configure.tgt (x86_64-*-netbsd*): New target.
751 2001-12-21 Tom Rix <trix@redhat.com>
753 (gld*_create_output_section_statements): New function.
754 For -binitfini support.
755 * emultempl/aix.em (gld*_before_parse): Fix comment.
756 * emultempl/aix.em (gld*_parse_args): Fix comment.
758 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
760 * configure.tgt (mips*-dec-netbsd*): Delete alias for
762 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
764 * configure.tgt (arm-*-netbsdelf*): Add target.
765 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
766 * emulparams/armelf_nbsd.sh: Added.
767 * Makefile.am: Add rules for earmelf_nbsd.
768 * Makefile.in: Regenerate.
770 2001-12-19 Andreas Jaeger <aj@suse.de>,
771 Susanne Oberhauser <froh@suse.de>
773 * configure.host: Add rules for x86_64-*linux-gnu. Change
774 s390x-linux entry to use gcc to report configuration, replace gcc
775 with $CC in s390-linux
777 2001-12-19 Andreas Jaeger <aj@suse.de>
779 * ld.texinfo (VERSION): Fix markup.
781 2001-12-18 matthew green <mrg@eterna.com.au>
783 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
784 (m68kelfnbsd.c): New rule.
785 * Makefile.in: Regenerate.
786 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
787 (m68*-*-netbsd*4k*): .. this.
788 (m68*-*-netbsdelf*): New target.
789 (m68*-*-netbsd*): Also include ELF support.
790 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
791 * emulparams/m68kelfnbsd.sh: New emulation.
793 2001-12-18 Jakub Jelinek <jakub@redhat.com>
795 * ldgram.y (vers_node): Support anonymous version tags.
796 * ldlang.c (lang_register_vers_node): Ensure anonymous version
797 tag is not defined together with non-anonymous versions.
798 * ld.texinfo: Document it.
800 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
802 * po/tr.po: New file: Turkish translation.
803 * configure.in (ALL_LINGUAS): Add tr.
804 * configure: Regenerate.
806 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
808 * Makefile.am: Add rules for eelf64alpha_nbsd.
809 * Makefile.in: Regenerate.
810 * configure.tgt (alpha*-*-netbsd*): Set
811 targ_emul to elf64alpha_nbsd.
812 * emulparams/elf64alpha_nbsd.sh: Added.
814 2001-12-17 Alan Modra <amodra@bigpond.net.au>
816 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
817 section_tail when fiddling with section list.
818 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
819 broken into separate strings to make translation easier.
820 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
821 fiddling with section list.
822 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
824 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
826 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
828 2001-12-15 Alan Modra <amodra@bigpond.net.au>
830 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
832 2001-12-13 Jakub Jelinek <jakub@redhat.com>
834 * emultempl/elf32.em (finish): Supply output_bfd
835 to bfd_elf*_discard_info.
836 (OPTION_EH_FRAME_HDR): Define.
837 (longopts): Add --eh-frame-hdr.
838 (parse_args): Handle it.
839 (list_options): Add --eh-frame-hdr to help.
840 * emultempl/hppaelf.em (finish): Supply output_bfd
841 to bfd_elf*_discard_info.
842 * scripttempl/elf.sc (.eh_frame_hdr): Add.
844 2001-12-13 Alan Modra <amodra@bigpond.net.au>
846 * lexsup.c (parse_args): Don't pass shortopts to second call to
847 getopt functions. Restore optind rather than decrementing before
848 second call. Remove errind as it now duplicates last_optind.
850 2001-12-11 Christopher Faylor <cgf@redhat.com>
852 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
854 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
855 Richard Henderson <rth@redhat.com>
857 * Makefile.am: Add support for xstormy16.
858 * configure.tgt: Add support for xstormy16.
859 * Makefile.in: Regenerate.
860 * emulparams/elf32xstormy16.sh: New file.
861 * scripttempl/xstormy16.sc: New file.
863 2001-10-01 Christopher Faylor <cgf@cygnus.com>
865 * Makefile.in (LIB_PATH): Make configurable.
866 (GENSCRIPTS): Set LIB_PATH in environment.
867 * configure.in: Substitute LIB_PATH.
868 * configure: Regenerate.
869 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
870 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
872 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
874 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
875 describing the -N option so that it is easier to translate into
878 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
880 * emultempl/pe.em (..._list_options): Replace multiple fprintf
881 statements describing a single option with a single, newline
882 escaped fprintf. This allows better translation into other
885 * ldmain.c (add_archive_element): Combine multiple strings
886 into a single string to permit better translation into other
889 2001-12-05 Tom Rix <trix@redhat.com>
891 * Makefile.am: Remove eaixppc64.
892 * Makefile.in: Regenerate.
894 2001-12-04 Tom Rix <trix@redhat.com>
896 * emultempl/aix.em (choose_target): Change default target to
897 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
899 (gld*_read_file): Fix typo.
900 (change_symbol_mode): Add prototype.
903 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
904 * emulparams/aixrs6.sh : Same.
905 * emulparams/ppcmacos.sh : Same.
906 * emulparams/aixppc64.sh : Delete file.
907 * emultempl/aix.em : Formatting changes.
909 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
911 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
912 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
914 (OTHER_END_SYMBOLS): Fix formatting.
915 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
916 (OTHER_END_SYMBOLS): Fix formatting.
918 2001-12-04 Alan Modra <amodra@bigpond.net.au>
920 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
922 2001-12-02 Tom Rix <trix@redhat.com>
924 * configure.tgt : Remove eaixppc64 emulations.
925 * Makefile.in : Remove eaixppc64.c
926 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
927 (ldemul_default_target): Same.
928 * emultempl/gld960.em (gld960_choose_target): Same.
929 * emultempl/gld960c.em (gld960_choose_target): Same.
930 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
931 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
932 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
933 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
934 * emultempl/aix.em (choose_target): New function. Handle emulation of
937 2001-11-27 H.J. Lu <hjl@gnu.org>
939 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
940 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
941 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
942 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
943 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
944 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
945 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
946 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
948 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
951 (REL_SDATA): Likewise.
952 (REL_SBSS): Likewise.
953 (REL_SDATA2): Likewise.
954 (REL_SBSS2): Likewise.
955 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
958 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
960 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
962 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
964 2001-11-22 H.J. Lu <hjl@gnu.org>
966 * Makefile.in: Regenerated with automake based on automake
969 2001-11-22 Alan Modra <amodra@bigpond.net.au>
971 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
972 (config.status): Delete rule.
973 Add extra dependencies to cover sourced emulparams files.
974 * Makefile.in: Regenerate.
976 * scripttempl/elf.sc: Order <section>, <section>.* and
977 corresponding linkonce sections as seen in input files.
978 Formatting fixes. Zero vma of all sections if not relocating.
979 (STACK): Define and insert if STACK_ADDR defined.
980 (OTHER_RELOCATING_SECTIONS): Delete.
981 (OTHER_END_SYMBOLS): Define.
982 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
983 (OTHER_READWRITE_SECTIONS): Likewise.
984 (OTHER_GOT_SECTIONS): Likewise.
985 (OTHER_SDATA_SECTIONS): Likewise.
986 (OTHER_BSS_SECTIONS): Likewise.
987 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
988 (OTHER_READWRITE_SECTIONS): Likewise.
989 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
990 (OTHER_READWRITE_SECTIONS): Likewise
992 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
993 (STACK_ADDR): Define.
994 * emulparams/armelf_oabi.sh: As for armelf.sh.
995 * emulparams/elf32mcore.sh: As for armelf.sh.
996 * emulparams/h8300elf.sh: As for armelf.sh.
997 * emulparams/mn10200.sh: As for armelf.sh.
998 * emulparams/shelf.sh: As for armelf.sh.
1000 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1001 (OTHER_END_SYMBOLS): Define.
1002 * emulparams/m32relf.sh: As for elf32fr30.sh.
1003 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1004 * emulparams/h8300self.sh: As for elf32fr30.sh.
1006 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1007 defines with RELOCATING test.
1008 (OTHER_SDATA_SECTIONS): Likewise.
1009 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1010 (OTHER_END_SYMBOLS): ..this.
1011 * emulparams/crislinux.sh: As for criself.sh.
1013 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1015 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1016 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1017 normal and linkonce sections as seen in input files.
1018 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1019 (TEXT_DYNAMIC): Likewise.
1020 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1021 (OTHER_SDATA_SECTIONS): Likewise.
1022 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1023 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1024 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1025 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1026 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1027 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1028 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1029 sections as seen in input files.
1030 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1031 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1033 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1034 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1035 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1036 (OTHER_SECTIONS): Instead, use this..
1037 (OTHER_END_SYMBOLS): ..and this.
1039 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1040 * emulparams/elf32bsmip.sh: Likewise.
1041 * emulparams/elf32btsmip.sh: Likewise.
1042 * emulparams/elf32ebmip.sh: Likewise.
1043 * emulparams/elf32lmip.sh: Likewise.
1044 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1045 * emulparams/elf32lsmip.sh: Likewise.
1046 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1047 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1048 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1049 * emulparams/elf64btsmip.sh: Likewise.
1050 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1051 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1052 * emulparams/elf32ppclinux.sh: Likewise.
1053 * emulparams/elf32ppcsim.sh: Likewise.
1054 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1055 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1056 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1057 * emulparams/h8300self.sh: Likewise.
1058 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1059 * emulparams/sh.sh: Comment.
1060 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1061 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1062 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1064 2001-11-21 David Heine <dlheine@tensilica.com>
1065 Alan Modra <amodra@bigpond.net.au>
1067 * ldlang.c (map_input_to_output_sections): Replace "break"
1068 accidentally removed with 2001-08-03 change.
1069 (lang_gc_sections_1): Likewise.
1071 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1073 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1075 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1077 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1078 of false when calling lang_size_sections.
1079 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1081 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1083 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1084 function when LDEMUL_FINISH isn't set to the same name. Don't
1085 call ${LDEMUL_FINISH}.
1086 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1087 * emultempl/armelf.em (arm_elf_finish): Call
1088 gld${EMULATION_NAME}_finish.
1089 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1090 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1091 hppaelf_layout_sections_again if necessary.
1092 (need_laying_out): New var.
1093 (hppaelf_layaout_sections_again): Rename to
1094 hppaelf_layout_sections_again. Clear need_laying_out.
1095 (PARSE_AND_LIST_OPTIONS): Format text.
1097 2001-11-14 H.J. Lu <hjl@gnu.org>
1099 * emultempl/armelf.em (arm_elf_finish): Renamed from
1100 gld${EMULATION_NAME}_finish.
1101 (LDEMUL_FINISH): Set to arm_elf_finish.
1103 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1105 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1106 (struct ld_emulation_xfer_struct): Use it.
1108 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1110 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1111 additional symbols referenced by newer crt0.o files from HP.
1113 2001-11-12 Anthony Green <green@redhat.com>
1115 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1117 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1119 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1120 * Makefile.in: Regenerate.
1122 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1124 * ld.texinfo: Use @command for commands, @option for options.
1125 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1127 * Makefile.in: Rebuild.
1129 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1131 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1132 Add support for targets.
1134 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1136 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1137 * configure: Regernate.
1138 * po/fr.po: New file.
1139 * po/sv.po: New file.
1141 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1143 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1144 as little endian default and to support big endian.
1146 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1148 * ld.texinfo (Options): Document new option, -nostdlib.
1149 * lexsup.c (OPTION_NOSTDLIB): New definition.
1150 (ld_options): Add entry for "nostdlib".
1151 (parse_args): Handle OPTIONS_NOSTDLIB.
1152 * ldfile.c (ldfile_add_library_path): Don't add directories
1153 to the search path if they weren't specified on the command line
1154 and -nostdlib was specified.
1155 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1157 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1159 * lexsup.c (parse_args): Prevent infinite parsing loop when
1160 "-rpath.a" is specified on the command line.
1161 Replace calls to fprintf with calls to einfo.
1163 2001-10-31 John Marshall <jmarshall@acm.org>
1165 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1166 appear only once across all the linker scripts involved in a link
1167 invocation no longer applies. Make the documentation reflect
1170 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1172 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1174 (sh-*-linux*): Added targ_extra_libpath.
1176 2001-10-31 David Heine <dlheine@tensilica.com>
1178 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1179 for padding statements.
1181 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1183 * configure.tgt (mmix-*-*): New target.
1184 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1185 Add dependencies to match.
1186 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1187 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1188 scripttempl/mmo.sc: New files.
1189 * gen-doc.texi: @set MMIX.
1190 * ld.texinfo: Ditto.
1191 [MMIX] Add MMIX node.
1192 * Makefile.in: Regenerate.
1194 2001-10-29 Kazu Hirata <kazu@hxi.com>
1196 * ldlang.c: Fix a comment typo.
1198 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1200 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1201 entries, and match *-*-linux*.
1203 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1205 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1206 with ldlex_script, ldlex_popstate.
1207 (ifile_p1): Likewise.
1208 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1210 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1211 to 1. Don't BEGIN(SCRIPT).
1212 (lex_redirect): Similarly.
1213 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1215 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1217 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1218 __EH_FRAME_END__ and accept eh frames into data section.
1219 Add ctor and dtor sections.
1221 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1223 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1224 (auto-export): Fix indentation.
1226 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1228 * pe-dll.c (autofilter_objectlist): Add startup objects
1230 (auto-export): Constify char * p.
1231 Extract file basename and use strcmp rather than ststr
1234 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1236 * ldmain.c (get_emulation): Improve comment about the handling
1239 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1241 * po/POTFILES.in: Regenerate.
1243 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1245 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1246 -z nocopyreloc and -z nocombreloc usage strings.
1248 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1250 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1253 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1255 * scripttempl/armaout.sc: Place .bss section after end of aligned
1256 data section to match behaviour of aout code in constructrion of
1259 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1261 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1262 startup files for mingw32 dlls to list.
1264 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1266 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1268 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1270 * configure.tgt (targ): Add arm9e-*-elf.
1272 2001-10-05 H.J. Lu <hjl@gnu.org>
1274 * genscripts.sh: Fix a typo in the last change.
1276 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1278 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1279 -z nocombreloc in usage.
1281 2001-10-03 Jim Blandy <jimb@redhat.com>
1283 * genscripts.sh: Include a comment at the top of each generated
1284 script, explaining its purpose.
1286 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1288 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1289 * NEWS: Mention -z nocopyreloc.
1290 * ld.texinfo (Options): Describe nocopyreloc.
1292 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1294 * configure: Regenerate.
1296 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1298 * ldver.h (ld_program_version): Remove declaration.
1299 * lexsup.c (parse_args): Move printing of copyright message..
1300 * ldver.c (ldversion): .. to here.
1301 Use BFD_VERSION_STRING in place of BFD_VERSION.
1302 (ld_program_version): Remove.
1303 * Makefile.am (Makefile): Depend on bfd/configure.in.
1305 * Makefile.in: Regenerate.
1307 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1309 * Makefile.am: Update dependencies with "make dep-am".
1310 * Makefile.in: Regenerate.
1312 2001-09-29 John Reiser <jreiser@BitWagon.com>
1314 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1315 * lexsup.c: Add --no-define-common commandline option.
1316 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1317 * ldlex.l: Likewise.
1318 * ld.h: Add command_line.inhibit_common_definition.
1319 * ldmain.c (main): Initialize.
1320 * ld.texinfo: Document.
1322 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1324 * ldmisc.c (USE_STDARG): Remove.
1325 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1330 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1331 declarations. Update copyright.
1333 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1335 * pe-dll.c: Remove obsoleted declaration of
1336 pe_get_data_import_dll_name.
1337 (pe_create_import_fixup): Fix thinko.
1339 * ld.texinfo(enable-auto-import): Clarify the explanation.
1341 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1343 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1344 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1345 DLL_SUPPORT controlled code.
1347 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1349 * emultempl/pe.em(pe_data_import_dll): Make static.
1350 (pe_get_data_import_dll_name): New accessor function.
1351 * pe-dll.c(pe_create_import_fixup): call
1352 pe_get_data_import_dll_name() from pe.em, instead of
1353 directly accessing pe_data_import_dll variable from pe.em.
1355 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1357 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1358 (def_file_add_directive): Use ISSPACE instead of isspace.
1359 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1360 isdigit/isxdigit/isalpha/isalnum.
1361 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1362 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1363 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1364 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1366 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1367 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1369 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1370 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1371 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1372 (ctor_prio): Use ISDIGIT instead of isdigit.
1373 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1374 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1375 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1377 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1378 (stricpy): Use TOLOWER instead of isupper/tolower.
1379 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1380 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1381 (lex_warn_invalid): Use ISPRINT instead of isprint.
1382 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1383 (main): For gettext, also set the LC_CTYPE locate facet.
1384 (add_keepsyms_file): Use ISSPACE instead of isspace.
1385 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1386 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1387 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1388 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1389 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1390 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1391 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1392 (quoteput): Use ISSPACE instead of isspace.
1393 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1396 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1398 * deffilep.y (def_stash_module): Constify "name" param.
1400 * pe-dll.c: Replace CONST with const throughout.
1401 (quick_symbol): Constify "n1", "n2", "n3" params.
1402 (make_singleton_name_thunk): Constify "import" param. Make
1403 "buffer_len" a size_t.
1404 (make_import_fixup_entry): Constify "name", "fixup_name",
1405 "dll_symname" params.
1406 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1407 (pe_get32): Likewise.
1408 (pe_implied_import_dll): Likewise.
1410 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1411 (sort_by_section_name): Likewise.
1413 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1414 (make_import_fixup): Cast printf arg, rel->address to long rather
1416 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1418 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1420 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1421 defines BufferSize. Increase buffer size by one.
1423 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1425 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1427 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1429 * configure.tgt: Add arm-openbsd target.
1431 2001-09-12 H.J. Lu <hjl@gnu.org>
1433 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1435 (ALL_64_EMULATIONS): Here.
1436 * Makefile.in: Regenerated.
1438 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1440 * emultempl/pe.em(make_import_fixup): change signature to
1441 take asection as well as arelec; we need this for proper
1442 error reporting. Only call pe_create_import_fixup() if
1443 there is no attempt to add a constant addend to the reloc;
1444 otherwise, report error condition.
1445 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1446 since final argument is a pointer to make_import_fixup().
1447 Change call to cb() to match make_import_fixup() signature.
1448 (make_import_fixup_mark): make buffer_len unsigned.
1449 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1451 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1453 * ld.texinfo: add verbose documentation for auto-import
1454 direct-addressing workaround, to compliment the terse
1457 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1459 * scripttempl/v850.sc: Add gcc_except_table sections.
1461 2001-09-11 Jeffrey A Law (law@cygnus.com)
1463 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1464 * emulparams/h8300self.sh: Similarly.
1466 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1468 * ld.texinfo (Options, --stack): Correct default value for stack
1471 2001-09-05 Tom Rix <trix@redhat.com>
1473 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1475 2001-09-03 Andreas Jaeger <aj@suse.de>
1477 * emultempl/beos.em: Declare prototypes for comparions functions,
1480 2001-09-02 Andreas Jaeger <aj@suse.de>
1482 * emultempl/aix.em: Add missing prototype.
1483 * emultempl/lnk960.em: Likewise.
1484 * emultempl/vanilla.em: Likewise.
1485 * emultempl/armcoff.em: Likewise.
1486 * emultempl/armelf_oabi.em: Likewise.
1487 * emultempl/beos.em: Likewise.
1488 * emultempl/gld960c.em: Likewise.
1489 * emultempl/gld960.em: Likewise.
1491 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1492 for prototype declaration.
1494 2001-08-31 Eric Christopher <echristo@redhat.com>
1495 Jason Eckhardt <jle@redhat.com>
1497 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1499 2001-08-31 Andreas Jaeger <aj@suse.de>
1501 * emultempl/pe.em: Add missing prototypes.
1502 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1503 pe_find_data_imports.
1504 (pr_sym): Add unused attribute.
1506 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1508 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1509 default from coff to elf.
1511 2001-08-29 Jeff Law <law@redhat.com>
1513 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1515 * emulparams/h8300self.sh: Similarly.
1517 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1519 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1521 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1522 * configure.tgt (h8300-*-elf*): New case.
1523 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1524 * emulparams/h8300self.sh: New file.
1525 * Makefile.in: Regenerated.
1527 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1529 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1532 2001-08-27 Linus Nordberg <linus@swox.com>
1533 Alan Modra <amodra@bigpond.net.au>
1535 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1536 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1538 * Makefile.in: Regenerate.
1539 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1540 entries to correct alphabetical position.
1541 * emulparams/elf64ppc.sh: New.
1542 * emulparams/elf64lppc.sh: New.
1544 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1546 * ldmain.c (main): Declare BSIZE as static.
1548 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1550 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1551 into .rel.dyn resp. .rela.dyn if combreloc.
1552 (get_script): If .x linker script is equal to .xn, only put it
1553 once into the binary.
1554 Add .xc and .xsc scripts.
1555 (parse_args): Handle -z combreloc and -z nocombreloc.
1556 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1557 For .xc and .xsc scripts put all .rel* or .rela* input sections
1558 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1559 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1561 Strip trailing whitespace from script.
1562 Generate .xc and .xsc scripts if requested.
1563 * ldmain.c (main): Initialize link_info.combreloc and
1564 link_info.spare_dynamic_tags.
1565 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1566 (ld_options): Add --spare-dynamic-tags option.
1567 (parse_args): Likewise.
1568 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1569 * ldint.texinfo: Document .xc and .xsc linker scripts.
1570 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1572 2001-08-22 H.J. Lu <hjl@gnu.org>
1574 * emulparams/elf32fr30.sh: Add a newline.
1576 2001-08-21 Andreas Jaeger <aj@suse.de>
1578 * deffilep.y: Add missing prototypes.
1579 * pe-dll.c: Likewise.
1581 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1583 * ldlang.c (insert_pad): Fix typos in last patch.
1585 * ldlang.c: When traversing lang_statement_union_type lists,
1586 consistently use "header.next" rather than "next".
1587 * mpw-eppcmac.c: Likewise.
1588 * emultempl/beos.em: Likewise.
1589 * emultempl/hppaelf.em: Likewise.
1590 * emultempl/pe.em: Likewise.
1591 * ldlang.h (union lang_statement_union): Remove "next" field.
1593 * ldlang.c (insert_pad): Use offsetof macro.
1594 (lang_size_sections): Always neuter padding statements.
1595 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1597 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1598 passed to lang_size_sections.
1599 (pe_exe_fill_sections): Likewise.
1600 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1601 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1603 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1605 * emultempl/aix.em: Formatting fixes.
1607 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1609 * ldlang.c (insert_pad): Make use of an existing pad statement if
1610 available. Move code calculating alignment, adjusting section
1611 alignment power, and adjusting dot to ..
1612 (size_input_section): .. here. Remove unused relax param.
1613 (lang_size_sections): Change boolean `relax' param to boolean *.
1614 Adjust call to size_input_section. Make use of insert_pad to
1615 place pad after the assignment statement. If relaxing, zap
1617 (reset_memory_regions): Reset output_bfd section sizes too.
1618 (relax_again): Move to..
1619 (lang_process): ..here. Adjust call to lang_size_sections, and
1620 remove duplicated code.
1621 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1623 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1625 * ld.texinfo: Document that fill values now use the four least
1627 * emulparams/elf32fr30.sh (NOP): Update.
1628 * emulparams/elf32mcore.sh: Likewise.
1629 * emulparams/elf64_s390.sh: Likewise.
1630 * emulparams/elf_i386.sh: Likewise.
1631 * emulparams/elf_i386_be.sh: Likewise.
1632 * emulparams/elf_i386_chaos.sh: Likewise.
1633 * emulparams/elf_i386_ldso.sh: Likewise.
1634 * emulparams/elf_s390.sh: Likewise.
1635 * emulparams/elf_x86_64.sh: Likewise.
1636 * emulparams/i386moss.sh: Likewise.
1637 * emulparams/i386nw.sh: Likewise.
1638 * emulparams/m68kelf.sh: Likewise.
1639 * scripttempl/elf.sc: Update NOP comment.
1640 * scripttempl/elfi370.sc: Likewise.
1641 * scripttempl/elfm68hc11.sc: Likewise.
1642 * scripttempl/elfm68hc12.sc: Likewise.
1643 * scripttempl/nw.sc: Likewise.
1645 2001-08-15 Tom Rix <trix@redhat.com>
1647 * ldgram.y (saved_script_handle): Initialize to NULL.
1648 * ldmain.c (main): Change check on saved_script_handle.
1650 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1652 * emultempl/elf32.em: Formatting fixes.
1653 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1654 looking at sec->owner.
1655 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1656 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1657 unused code, and reorganize orphan section placement code.
1659 * ldlang.c (wild_doit): Rename to lang_add_section.
1660 * ldlang.h: Here too.
1661 * mpw-elfmips.c: And here.
1662 * emultempl/beos.em: And here.
1663 * emultempl/elf32.em: And here.
1664 * emultempl/hppaelf.em: And here.
1665 * emultempl/pe.em: And here.
1667 2001-08-13 Richard Henderson <rth@redhat.com>
1669 * emultempl/needrelax.em: New file.
1670 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1671 * Makefile.am (eelf64_ia64.c): Depend on it.
1672 * Makefile.in: Rebuild.
1674 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1676 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1677 output_section is set non-NULL.
1679 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1680 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1681 needlessly create an output_section_statement. Treat a correctly
1682 named output_section_statement with NULL bfd_section as compatible.
1684 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1686 * emultempl/generic.em: Support EXTRA_EM_FILE.
1687 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1688 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1689 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1690 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1691 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1692 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1693 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1694 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1695 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1696 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1698 2001-08-12 Richard Henderson <rth@redhat.com>
1700 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1701 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1702 scripttempl/v850.sc: Keep .jcr data.
1704 2001-08-12 H.J. Lu <hjl@gnu.org>
1705 Andrew Haley <aph@cambridge.redhat.com>
1706 Nick Clifton <nickc@redhat.com>
1708 * ldgram.y (had_script): Change name to saved_script_handle.
1709 Change type to file handle.
1710 * ld.h (had_script): Rename and retype.
1711 * ldfile.c (ldfile_open_command_file): Save the file handle
1712 used in saved_script_handle.
1713 * lexsup.c (parse_args): Do not allow -c option to alter
1714 saved_script_handle.
1715 * ldmain.c (main): Print out the linker script used if
1716 --verbose is given. Check saved_script_handle to obtain the
1717 external linker script used, or if NULL, dump the builtin
1719 * ld.texinfo: Document that --verbose now dumps the linker
1720 script used, regardless of whether it was an internal or an
1723 2001-08-10 Andreas Jaeger <aj@suse.de>
1725 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1727 * configure: Regenerate.
1729 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1731 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1733 * scripttempl/elf.sc: Move non-text .dynamic section before
1734 .plt/.got/.sdata* group.
1735 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1736 (OTHER_SDATA_SECTIONS): Add.
1737 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1739 * emulparams/crislinux.sh: Likewise.
1740 * emulparams/elf32b4300.sh: Likewise.
1741 * emulparams/elf32bmip.sh: Likewise.
1742 * emulparams/elf32bmipn32.sh: Likewise.
1743 * emulparams/elf32bsmip.sh: Likewise.
1744 * emulparams/elf32btsmip.sh: Likewise.
1745 * emulparams/elf32ebmip.sh: Likewise.
1746 * emulparams/elf32elmip.sh: Likewise.
1747 * emulparams/elf32l4300.sh: Likewise.
1748 * emulparams/elf32lmip.sh: Likewise.
1749 * emulparams/elf32lsmip.sh: Likewise.
1750 * emulparams/elf32ltsmip.sh: Likewise.
1751 * emulparams/elf64bmip.sh: Likewise.
1752 * emulparams/elf64btsmip.sh: Likewise.
1753 * emulparams/elf64ltsmip.sh: Likewise.
1755 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1757 * genscripts.sh: Source the emulparams script before each output
1758 script is generated so that variables like `RELOCATING' may affect
1759 variables defined in the emulparams script.
1761 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1763 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1766 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1767 ie. iterate over wild_statement.section_list.
1768 (gld${EMULATION_NAME}_place_orphan): Likewise.
1770 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1772 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1773 .fini[0-4] sections used by _exit
1774 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1775 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1776 * scripttempl/elfm68hc11.sc: Likewise.
1778 2001-08-03 H.J. Lu <hjl@gnu.org>
1780 * emultempl/beos.em (init): Add the missing initialization.
1782 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1784 * ld.texinfo (Input Section Basics): Clarify ordering of output
1786 * ldlang.c (callback_t): Add wildcard_list param.
1787 (walk_wild_section): Remove "section" param. Rewrite for
1788 lang_wild_statement_type change. Remove unique_section_p test.
1789 (walk_wild_file): Remove "section" param.
1790 (walk_wild): Remove "section" and "file" params.
1791 (lang_gc_wild): Likewise.
1792 (wild): Likewise. Modify for lang_wild_statement_type change.
1793 (wild_sort): Likewise. Add "sec" param.
1794 (gc_section_callback): Likewise.
1795 (output_section_callback): Likewise. Do unique_section_p test.
1796 (map_input_to_output_sections): Modify call to wild.
1797 (lang_gc_sections_1): Likewise.
1798 (print_wild_statement): Modify for lang_wild_statement_type
1800 (lang_add_wild): Replace filename, filenames_sorted param with
1801 filespec. Replace section_name, sections_sorted,
1802 exclude_filename_list with section_list.
1803 * ldlang.h (lang_add_wild): Here too.
1804 (lang_wild_statement_type): Replace section_name, sections_sorted,
1805 and exclude_filename_list with section_list.
1806 * ldgram.y (current_file): Delete.
1807 (%union): Add wildcard_list.
1808 (file_NAME_list): Set type to wildcard_list. Build a linked list
1809 rather than calling lang_add_wild for each entry.
1810 (input_section_spec_no_keep): Call lang_add_wild here instead.
1811 * ld.h (struct wildcard_list): Declare.
1812 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1814 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1816 * ldmain.c (main): initialize link_info.pei386_auto_import
1817 * pe-dll.c: new tables for auto-export filtering
1818 (auto_export): change API, pass abfd for contextual filtering.
1819 Loop thru tables of excluded symbols instead of comparing
1822 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1824 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1825 static variable current_sec (static struct sec *). Add
1826 forward declaration for add_bfd_to_link.
1827 (process_def_file): Don't export undefined symbols. Do not
1828 export symbols starting with "_imp__". Call auto_export()
1830 (pe_walk_relocs_of_symbol): New function.
1831 (generate_reloc): add optional extra debugging
1832 (pe_dll_generate_def_file): eliminate extraneous initial blank
1834 (make_one): enlarge symtab to make room for __nm__ symbols
1835 (DATA auto-import support).
1836 (make_singleton_name_thunk): New function.
1837 (make_import_fixup_mark): New function.
1838 (make_import_fixup_entry): New function.
1839 (pe_create_import_fixup): New function.
1840 (add_bfd_to_link): Specify that 'name' argument is a CONST
1842 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1843 declare new functions pe_walk_relocs_of_symbol and
1844 pe_create_import_fixup.
1845 * emultempl/pe.em: add new options --enable-auto-import,
1846 --disable-auto-import, and --enable-extra-pe-debug.
1847 (make_import_fixup): New function.
1848 (pe_find_data_imports): New function.
1849 (pr_sym): New function.
1850 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1851 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1854 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1856 * ld.texinfo: add additional documentation for
1857 --export-all-symbols. Document --out-implib,
1858 --enable-auto-image-base, --disable-auto-image-base,
1859 --dll-search-prefix, --enable-auto-import, and
1860 --disable-auto-import.
1861 * ldint.texinfo: Add detailed documentation on auto-import
1864 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1866 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1869 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1871 * Makefile.am: Update dependencies with "make dep-am".
1872 * Makefile.in: Regenerate
1874 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1876 * ldcref.c (check_section_sym_xref): New function.
1877 (check_nocrossrefs): Call it.
1878 (check_nocrossref): Interate over h->refs here instead of..
1879 (check_refs): ..here. Pass in the symbol name, section, and bfd
1880 rather than hash_entry pointers.
1881 (struct check_refs_info): Keep symbol name rather than hash entry.
1883 (check_reloc_refs): Tweak for above changes in check_refs_info.
1884 Only report references to section syms when symname is NULL to
1885 prevent duplicate messages for the same reloc.
1887 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1889 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1890 available. Do not print NULL trees.
1891 (exp_print_token): Print unknown tokens with values > 126 as
1892 decimal values not ASCII characters.
1894 * ldlang.c (lang_leave_overlay): If a region is specified assign
1895 it to all sections inside the overlay unless they have been
1896 assigned to the own, non-default, memory region.
1898 * README: Add header for consistency with other README files.
1900 2001-07-14 H.J. Lu <hjl@gnu.org>
1902 * emultempl/elf32.em (output_prev_sec_find): Never return
1903 bfd_abs_section_ptr, bfd_com_section_ptr nor
1904 bfd_und_section_ptr.
1906 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1908 * Makefile.am (em32relf.c): Change dependency from generic.em to
1910 * Makefile.in: Regenerate.
1912 2001-07-14 matthew green <mrg@eterna.com.au>
1914 * configure.tgt (i386-*-netbsdelf*): New target.
1915 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1917 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1919 * emultempl/elf32.em (output_prev_sec_find): New.
1920 (place_orphan): Use it.
1922 2001-07-11 H.J. Lu <hjl@gnu.org>
1924 * ldmain.c (main): Fix typos in the last change.
1926 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1928 * ldmain.c (main): Disallow -F and -f without -shared.
1930 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1932 * emultempl/pe.em (after_open): Check for the output_bfd not
1933 having any coff_data structure allocated to it.
1935 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1937 * emultempl/elf32.em: Do not assuming that contents of the buffer
1938 returned from basename function will remain unchanged accross other
1941 2001-07-03 H.J. Lu <hjl@gnu.org>
1943 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1944 2001-07-03. It creates dynamic entries even for static binaries.
1946 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1948 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1949 (DYNAMIC): Use it to reserve few dynamic entries for
1952 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1954 * emulparams/hppa64linux.sh: New file.
1955 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1956 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1957 (ehppa64linux.c): Add rule to make it.
1959 * Makefile.in: Regenerate.
1961 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1963 * ld.texinfo (Options, -r): Mention restrictions when using
1964 different object formats.
1966 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1968 * ldlang.c (lang_check): Emit fatal error if relocatable link
1969 between different object flavours with relocations in input.
1971 2001-06-19 H.J. Lu <hjl@gnu.org>
1973 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1974 (--version-script): Mention the language support.
1976 2001-06-19 H.J. Lu <hjl@gnu.org>
1978 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1980 2001-06-18 H.J. Lu <hjl@gnu.org>
1982 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1983 (diststuff): Add $(MANS).
1984 * Makefile.in: Regenerated.
1988 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1990 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1991 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1992 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1993 * ld.h (args_type): Remove member export_dynamic. All users
1994 changed to use struct bfd_link_info member.
1996 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1997 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1998 * Makefile.in: Regenerate.
2000 2001-06-18 H.J. Lu <hjl@gnu.org>
2002 * ldlang.c (init_os): Add the newline to the einfo call.
2003 (lang_check): Likewise.
2004 (lang_do_version_exports_section): Likewise.
2006 2001-06-15 H.J. Lu <hjl@gnu.org>
2008 * lexsup.c (parse_args); Save optind to report unrecognized
2011 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2013 * ldlang.c (lang_check): Emit fatal error if relocatable link
2014 between different object flavours.
2016 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2017 Set new link_info member export_dynamic.
2018 * ldmain.c (main): Initialize new link_info member export_dynamic.
2020 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2022 * ldlang.c (walk_wild): Only call walk_wild_file if
2023 lookup_name returns something.
2024 (lookup_name): If load_symbols fails, return NULL.
2025 (load_symbols): Change to a boolean function.
2026 (open_input_bfds): If load_symbols fails then do not make the
2029 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2031 * ldlang.c (record_bfd_errors): Remove.
2033 * emultempl/aix.em: Fix copyright dates.
2035 2001-06-07 Andreas Jaeger <aj@suse.de>
2037 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2038 (TEXT_START_ADDR): Likewise.
2040 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2042 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2044 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2046 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2048 2001-05-31 H.J. Lu <hjl@gnu.org>
2050 * ldlang.c (open_input_bfds): Don't change the bfd error
2051 handler whilst loading symbols.
2053 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2055 * configure.tgt: Remove i370-mvs architecture, it is not currently
2058 2001-05-25 H.J. Lu <hjl@gnu.org>
2060 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2061 like emulparams/aixppc.sh.
2063 2001-05-25 H.J. Lu <hjl@gnu.org>
2065 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2066 setting of output_filename after bfd_scan_arch.
2067 * emultempl/pe.em: Likewise.
2069 2001-05-25 H.J. Lu <hjl@gnu.org>
2071 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2072 like emulparams/aixppc.sh.
2074 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2075 instead of ${srcdir}/emultempl/stringify.sed.
2077 2001-05-25 Timothy Wall <twall@oculustech.com>
2079 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2082 2001-05-25 Alan Modra <amodra@one.net.au>
2084 * configure.host: Replace linuxoldld with linux*oldld.
2085 * configure.tgt: Likewise.
2087 2001-05-24 H.J. Lu <hjl@gnu.org>
2089 * emultempl/stringify.sed: Removed again.
2091 2001-05-24 H.J. Lu <hjl@gnu.org>
2093 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2094 (gld${EMULATION_NAME}_before_parse): Initialize
2095 ldfile_output_architecture, ldfile_output_machine and
2096 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2097 * emultempl/beos.em: Likewise.
2098 * emultempl/elf32.em: Likewise.
2099 * emultempl/linux.em: Likewise.
2100 * emultempl/mipsecoff.em: Likewise.
2101 * emultempl/pe.em: Likewise.
2102 * emultempl/sunos.em: Likewise.
2104 2001-05-24 Tom Rix <trix@redhat.com>
2106 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2107 udate import file format.
2108 (change_symbol_mode) New, same
2109 (is_syscall) New, same
2110 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2111 * emulparams/aixppc64.sh : same
2112 * emulparams/aixrs6.sh : same
2113 * emulparams/ppcmacos.sh : same
2114 * emultempl/aix.em : use strtoull to parse options
2115 * Makefile.am : add eaixppc64 emulation for xcoff64
2116 * Makefile.in : same
2117 * configure.tgt : same
2119 * scripttempl/aix.sc : default text section offset to 0x10000000
2120 default data section offset to 0x20000000
2121 add .sv3264 and .sv64 pseudo sections
2122 loader and debug sections use the currect section offset.
2124 * emultempl/aix.em : Add xcoff64 support
2125 Add -binitfini support
2126 (gld${EMULATION_NAME}_before_parse) -binitfini
2127 (gld${EMULATION_NAME}_parse_args) same
2128 (gld${EMULATION_NAME}_before_allocation) format change for special
2131 * emulparams/aixppc64.sh : New file for xcoff64 support
2133 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2135 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2136 variable to avoid non-portable shell construct.
2138 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2140 * ldmain.c (get_emulation): Add -mips5 command line argument.
2142 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2144 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2145 (ELF_INTERPRETER_NAME): Define it.
2146 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2148 * configure.tgt (targ_emul, targ_extra_emuls)
2149 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2150 as primary, elf_i386 as extra.
2151 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2152 (eelf_i386_ldso.c): New rule.
2153 * Makefile.in: Rebuilt.
2155 2001-05-22 Nick Clifton <nickc@redhat.com>
2157 * lexsup.c (ld_options): Allow -I to be an alias for
2158 --dynamic-linker. This is for Solaris compatability.
2159 * ld.texinfo: Document that -I can be used.
2162 2001-05-16 Alan Modra <amodra@one.net.au>
2164 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2165 whether an input section is the first one assigned to an output
2167 Assorted formatting fixes.
2169 2001-05-14 DJ Delorie <dj@delorie.com>
2171 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2172 * Makefile.in: Ditto.
2174 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2176 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2177 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2179 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2181 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2183 * ldlang.c (lang_process): Call bfd_merge_sections.
2185 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2187 * ldgram.y: Fix typo.
2189 2001-05-03 H.J. Lu <hjl@gnu.org>
2191 * emultempl/elf32.em: Include "libiberty.h".
2192 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2193 basename of the bfd filename.
2194 (gld${EMULATION_NAME}_stat_needed): Likewise.
2195 (gld${EMULATION_NAME}_try_needed): Likewise.
2196 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2198 2001-05-02 H.J. Lu <hjl@gnu.org>
2200 * emultempl/pe.em: Include <ctype.h>.
2202 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2204 * emulparams/elf32openrisc.sh: New file.
2206 * Makefile.am: Add OpenRISC target.
2207 * Makefile.in: Regenerated.
2209 * configure.tgt: Add openrisc-*-* mapping.
2211 2001-05-02 Nick Clifton <nickc@redhat.com>
2213 * emultempl/aix.em: Replace buystring with xstrdup.
2214 * emultempl/beos.em: Replace buystring with xstrdup.
2216 2001-05-02 H.J. Lu <hjl@gnu.org>
2218 * ldfile.c: Include "libiberty.h".
2219 * ldlex.l: Likewise.
2221 * ldmisc.c (buystring): Removed.
2222 * ldmisc.h: Likewise.
2224 * ldfile.c: Replace buystring with xstrdup.
2225 * ldlang.c: Likewise.
2226 * ldlex.l: Likewise.
2227 * ldmain.c: Likewise.
2228 * ldmisc.c: Likewise.
2229 * lexsup.c: Likewise.
2230 * mpw-eppcmac.c: Likewise.
2232 2001-04-30 Andreas Jaeger <aj@suse.de>
2234 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2236 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2238 * ldlang.c (load_symbols): Give emulation a chance
2239 to process unrecognized file before fatal error is
2240 reported, not after.
2242 2001-04-27 Sean McNeil <sean@mcneil.com>
2244 * configure.tgt: Add arm-vxworks target.
2245 * scripttempl/armcoff.sc: Support .text or .data as a section name
2249 2001-04-13 J.T. Conklin <jtc@redback.com>
2251 * ld.texinfo: Document --fatal-warnings.
2254 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2255 warnings have been turned into errors.
2256 * lexsup.c (OPTION_WARN_FATAL): Define.
2257 (ld_options): Entry for --fatal-warnings.
2258 (parse_args): Handle OPTION_WARN_FATAL.
2259 * ld.h (ld_config_type): Add fatal_warnings field.
2261 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2263 * ldmain.c (main): Default to discard_sec_merge.
2264 * lexsup.c (OPTION_DISCARD_NONE): Define.
2265 (ld_options): Add --discard-none.
2266 (parse_args): Handle OPTION_DISCARD_NONE.
2267 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2268 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2269 all its input sections match.
2271 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2273 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2274 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2275 (eelf32ltsmip.c): New target.
2276 (eelf64btsmip.c): Likewise.
2277 (eelf64ltsmip.c): Likewise.
2278 * Makefile.in: Regenerated.
2280 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2282 (mips*-*-linux-gnu*): Likewise.
2284 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2286 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2288 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2291 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2293 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2294 correct value of __Stext here.
2295 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2298 * emulparams/crislinux.sh: Remove FIXME.
2300 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2302 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2303 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2305 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2307 * configure.tgt (cris-*-*): Change default emulation to criself.
2308 (cris-*-*aout*): New rule.
2310 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2312 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2313 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2315 2001-03-26 Andreas Jaeger <aj@suse.de>
2317 * ld.texinfo (Overview): Fix syntax in texi code.
2319 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2321 * ld.texinfo: Put @c man indications to generate the ld man page.
2322 When generating man, define all the variables. Define SEEALSO
2323 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2324 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2325 (ld.1): Generate from ld.texinfo.
2326 * Makefile.in: Regenerate.
2328 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2330 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2331 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2333 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2335 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2336 is an absolute path look only for this file and not along the path.
2338 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2340 * emultempl/elf32.em (OPTION_GROUP): New macro.
2341 Add new option Bgroup to longopts.
2342 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2343 (gld*_list_options): Add -Bgroup and -z defs.
2344 * ld.1: Document -Bgroup and -z defs.
2345 * ld.texinfo: Likewise.
2347 2001-03-07 Michael Meissner <meissner@redhat.com>
2349 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2350 with sections created by -fdata-sections.
2351 (.dynbss,.bss): Ditto.
2353 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2355 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2356 after_allocation_default, not gld..._before_allocation.
2358 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2360 * configure.in (BFD_VERSION): New.
2361 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2362 * configure: Regenerate.
2363 * Makefile.am: Run "make dep-am"
2364 * Makefile.in: Regenerate.
2366 2001-02-26 Timothy Wall <twall@cygnus.com>
2368 * emulparams/elf64_aix.sh: Add additional read-only sections;
2369 uncomment lines which are now required.
2371 2001-02-26 H.J. Lu <hjl@gnu.org>
2373 * ldlang.c (open_input_bfds): Set the bfd error handler so
2374 that problems can be caught whilst loading symbols.
2375 (record_bfd_errors): New function: Report BFD errors and mark
2376 the executable output as being invalid.
2378 2001-02-22 Timothy Wall <twall@cygnus.com>
2380 * configure.host: Add configuration for ia64-*-aix*.
2381 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2382 Add dependencies for eelf64_aix.c.
2383 * Makefile.in: Regenerate.
2384 * configure.tgt: Add ia64-*-aix* mapping.
2385 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2386 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2389 2001-02-20 H.J. Lu <hjl@gnu.org>
2391 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2392 false if we found the file.
2394 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2396 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2397 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2399 2001-02-18 lars brinkhoff <lars@nocrew.org>
2401 * Makefile.am: Add PDP-11 target.
2402 * configure.tgt: Likewise.
2403 * emulparams/pdp11.sh: New file.
2405 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2407 * configure.host: Add a generic FreeBSD configuration entry such that
2408 all [modern] FreeBSD systems on all platforms will look the same.
2410 2001-02-14 H.J. Lu <hjl@gnu.org>
2412 * configure.tgt: Remove mention of earmelf_linux26.
2414 2001-02-13 Richard Henderson <rth@redhat.com>
2416 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2418 2001-02-13 H.J. Lu <hjl@gnu.org>
2420 * ldexp.h (node_type): Add etree_provided.
2421 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2422 type to etree_provided if defined by PROVIDE. Allow updating
2424 (exp_print_tree): Handle etree_provided.
2425 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2428 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2430 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2431 .IA_64.unwind.* pattern to unwind table section and
2432 .IA_64.unwind_info* pattern to unwind info section.
2434 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2436 * Makefile.am: Add linux target for S/390.
2437 * Makefile.in: Likewise.
2438 * configure.host: Likewise.
2439 * configure.tgt: Likewise.
2440 * emulparams/elf64_s390.sh: New file.
2441 * emulparams/elf_s390.sh: New file.
2443 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2445 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2447 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2449 2001-02-06 Philip Blundell <philb@gnu.org>
2451 * Makefile.am: Remove mention of earmelf_linux26.
2452 * Makefile.in: Regenerate.
2454 2001-02-04 Philip Blundell <philb@gnu.org>
2456 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2457 * emulparams/armelf_linux26.sh: Delete.
2458 * configure.tgt: Remove mention of armelf_linux26 emulation.
2460 2001-02-01 Nick Clifton <nickc@redhat.com>
2462 * ld.1: Replace occurances of -oformat with --oformat.
2464 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2466 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2467 load_base is specified.
2469 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2471 * emultempl/elf32.em: Correct spelling in comments and listed
2474 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2476 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2477 default for the first section of a group of overlay sections.
2479 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2481 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2482 * Makefile.in: Regenerate.
2483 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2484 Check for null tool_dir.
2486 2001-01-16 Jim Wilson <wilson@redhat.com>
2488 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2489 and IA_64.unwind.info.
2491 2001-01-16 H.J. Lu <hjl@gnu.org>
2493 * ldlang.c (lang_check): Merge the private data only if the
2494 input file has contents.
2496 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2498 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2500 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2501 enabling search for libmilli. On a relocatable link, make .text
2503 (LDEMUL_AFTER_PARSE): Define.
2504 (hppaelf_finish): Correct spelling of relocatable in comments.
2506 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2507 rummage through the script for sections on the unique list.
2508 Correct length of strncmp for ".note".
2509 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2511 * ldlang.c (unique_section_list): New var.
2512 (unique_section_p): New function.
2513 (walk_wild_section): Don't match sections on unique_section_list.
2514 (lang_add_unique): New function.
2515 Correct spelling of relocatable in comments.
2517 * ldlang.h (struct unique_sections): Declare.
2518 (unique_section_list): Declare.
2519 (unique_section_p): Declare.
2520 (lang_add_unique): Declare.
2522 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2523 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2525 * ld.texinfo (--unique): Update.
2527 2001-01-13 Nick Clifton <nickc@redhat.com>
2529 * lexsup.c (parse_args): Remove spurious white space.
2531 2001-01-12 Nick Clifton <nickc@redhat.com>
2533 * lexsup.c (parse_args): Update copyright date.
2535 2001-01-12 Philip Blundell <pb@futuretv.com>
2537 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2539 2001-01-10 Kazu Hirata <kazu@hxi.com>
2541 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2542 * scripttempl/h8300h.sc: Fix formatting.
2543 * scripttempl/h8300s.sc: Likewise.
2544 * scripttempl/h8500.sc: Likewise.
2545 * scripttempl/h8500b.sc: Likewise.
2546 * scripttempl/h8500c.sc: Likewise.
2547 * scripttempl/h8500m.sc: Likewise.
2548 * scripttempl/h8500s.sc: Likewise.
2550 2000-01-07 David O'Brien <obrien@BSDi.com>
2552 * emultempl/elf32.em: Only perform Linux ld hints processing when
2555 2001-01-07 Philip Blundell <philb@gnu.org>
2557 * ld.texinfo (Bug Reporting): Update email address for reports.
2559 2000-12-31 Nick Clifton <nickc@redhat.com>
2561 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2562 options by checking for a return value of '?' not -1.
2564 2000-12-28 Nick Clifton <nickc@redhat.com>
2566 * lexsup.c (struct ld_option): Add new enum value:
2568 (ld_options[]): Change -omagic, -output and -oformat options
2569 to be EXACTLY_TWO_DASHES.
2570 (OUTPUT_COUNT): Use ARRAY_SIZE.
2571 (parse_args): Change parameter 'argc' to unsigned.
2572 Place EXACTLY_TWO_DASHES options into new really_longopts
2574 If getopt_long_only fails, try calling getopt_long using the
2575 really_longopts array.
2576 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2579 * ldlex.h: Fix prototype of parse_args.
2581 * ld.texinfo: Document that long options starting with 'o'
2582 must be preceeded by two dashes. Change example of a single
2583 dashed long option from -oformat to -trace-symbol.
2585 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2587 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2588 (longopts[]): New --no-default-excludes option.
2589 (gld_${EMULATION_NAME}_list_options): Document.
2590 (gld_${EMULATION_NAME}_parse_args): Handle.
2592 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2594 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2595 whitespace, it breaks the K&R C preprocessor.
2597 2000-12-11 DJ Delorie <dj@redhat.com>
2599 * ld.texinfo: Add notes about --whole-archive and gcc.
2601 2000-11-18 Fred Fish <fnf@be.com>
2603 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2604 (ld_options): Entry for --allow-shlib-undefined.
2605 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2606 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2608 * ld.texinfo: Document new command line switch.
2610 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2612 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2613 .fixup is actually read/write.
2614 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2615 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2616 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2618 2000-12-11 Jan Hubicka <jh@suse.cz>
2620 * NEWS: Add note about x86_64 architecture.
2622 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2624 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2625 Set DWARF2 sections to a VMA of zero.
2627 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2629 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2631 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2632 (sparc*-*-rtems*): Switched from a.out to ELF.
2634 2000-11-30 Jan Hubicka <jh@suse.cz>
2636 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2637 (eelf_x86_64.c): New.
2638 * Makefile.in: Regenerate.
2639 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2640 * emulparams/elf_x86_64.sh: New.
2642 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2644 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2645 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2647 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2648 merging non-a.out sections into CONSTRUCTING.
2650 2000-11-28 Nick Clifton <nickc@redhat.com>
2652 * ld.1 (COPYING): Mention that the GNU Free Documentation
2653 License is present in the sources, but not the output, and
2654 also available from the GNU website.
2655 (GNU Free Documentation License): Comment out this section.
2657 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2659 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2662 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2664 * ld.1: Remove old date so it does not give the impression the manpage
2667 2000-11-24 Nick Clifton <nickc@redhat.com>
2669 * configure.tgt (xscale-coff): Add target.
2670 (xscale-elf): Add target.
2672 2000-11-24 Fred Fish <fnf@be.com>
2674 * ldmain.c (main): Remove redundant init of config.make_executable
2677 2000-11-15 Richard Henderson <rth@redhat.com>
2679 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2681 2000-11-14 Kazu Hirata <kazu@hxi.com>
2683 * scripttempl/h8300.sc: Fix formatting.
2684 * scripttempl/h8300h.sc: Likewise.
2685 * scripttempl/h8300s.sc: Likewise.
2687 2000-11-14 Denis Chertykov <denisc@overta.ru>
2689 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2691 2000-11-09 Philip Blundell <pb@futuretv.com>
2693 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2694 around orphan sections whose names can be represented in C.
2696 2000-11-07 Jim Wilson <wilson@redhat.com>
2698 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2699 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2701 2000-11-06 Nick Clifton <nickc@redhat.com>
2703 * ld.texinfo: Add GNU Free Documentation License.
2704 * ldint.texinfo: Add GNU Free Documentation License.
2705 * ld.1: Add GNU Free Documentation License.
2707 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2709 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2710 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2712 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2713 Move 2000-11-02 Makefile.in changes to this file.
2714 * Makefile.in: Regenerate.
2716 2000-11-03 Nick Clifton <nickc@redhat.com>
2718 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2719 constructors and destructors.
2720 * scripttempl/h8300h.sc: Ditto.
2721 * scripttempl/h8300s.sc: Ditto.
2722 * scripttempl/h8500.sc: Ditto.
2723 * scripttempl/h8500b.sc: Ditto.
2724 * scripttempl/h8500c.sc: Ditto.
2725 * scripttempl/h8500m.sc: Ditto.
2726 * scripttempl/h8500s.sc: Ditto.
2727 * scripttempl/v850.sc: Ditto.
2728 * scripttempl/w65.sc: Ditto.
2729 * scripttempl/z8000.sc: Ditto.
2731 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2733 * Makefile.in (e_i386_chaos.c): New rule.
2734 (ALL_EMULATIONS): Added e_i386_chaos.o.
2735 * emulparams/elf_i386_chaos.sh: New file.
2736 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2738 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2740 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2741 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2742 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2743 library path suffix.
2744 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2746 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2748 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2749 for consecutive sections.
2751 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2753 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2755 * ld.texinfo: Added notes about this new option.
2757 2000-10-16 Nick Clifton <nickc@redhat.com>
2759 * emultempl/pe.em (_after_open): Add tests of return values from
2760 bfd functions. Emit appropriate error messages if necessary.
2762 2000-10-13 Nick Clifton <nickc@redhat.com>
2764 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2765 local variables - they are not used, but leave in the call to
2766 bfd_canonicalize_symtab.
2767 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2768 pe_dll_search_prefix.
2770 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2772 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2773 (longopts): New --dll-search-prefix option.
2774 (gld_${EMULATION_NAME}_list_options): Document.
2775 (gld_${EMULATION_NAME}_parse_args): Handle.
2776 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2777 dynamically, search for a dll named '<prefix><basename>.dll'
2778 in preference to 'lib<basename>.dll' if --dll-search-prefix
2781 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2783 * ldlang.c (section_already_linked): Set kept_section instead of
2786 2000-10-10 Kazu Hirata <kazu@hxi.com>
2788 * deffile.h: Fix formatting.
2789 * lexsup.c: Likewise.
2792 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2794 * pe-dll.c (make_one): Do not generate code thunk for DATA
2796 (process_def_file): deduce DATA flag for auto-export sumbols.
2798 2000-10-09 Kazu Hirata <kazu@hxi.com>
2800 * ld.h: Fix formatting.
2801 * ldcref.c: Likewise.
2802 * ldctor.h: Likewise.
2803 * ldemul.c: Likewise.
2804 * ldemul.h: Likewise.
2805 * ldexp.c: Likewise.
2806 * ldexp.h: Likewise.
2807 * ldfile.c: Likewise.
2808 * ldfile.h: Likewise.
2809 * ldlang.c: Likewise.
2810 * ldlang.h: Likewise.
2811 * ldmain.c: Likewise.
2812 * pe-dll.c: Likewise.
2814 * pe-dll.c: Revert some formatting fixes.
2816 2000-10-08 Kazu Hirata <kazu@hxi.com>
2818 * pe-dll.c: Fix formatting.
2820 2000-10-05 Kazu Hirata <kazu@hxi.com>
2822 * ldlang.c: Fix formatting.
2824 2000-10-03 DJ Delorie <dj@redhat.com>
2826 * pe-dll.c (fill_edata): initialize entire block
2827 (make_one): fill in correct section.
2829 2000-10-03 Kazu Hirata <kazu@hxi.com>
2831 * ldexp.c: Fix formatting.
2833 2000-10-02 DJ Delorie <dj@redhat.com>
2835 * emultempl/pe.em (gld_*_after_open): detect case where there two
2836 import libraries for same dll; rename one to ensure proper link
2839 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2841 (generate_edata): fix typo
2843 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2845 * scripttempl/crisaout.sc (ENTRY): Now __start.
2846 (.text): Add default setting for __start.
2847 Remove CONSTRUCTORS handling.
2848 (/DISCARD/): Add .gnu.warning.*.
2849 * emulparams/crislinux.sh (ENTRY): Now __start.
2850 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2851 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2852 (ENTRY): Now __start.
2853 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2854 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2856 2000-09-29 Kazu Hirata <kazu@hxi.com>
2858 * deffile.h: Fix formatting.
2860 * ldcref.c: Likewise.
2861 * ldctor.c: Likewise.
2862 * ldctor.h: Likewise.
2863 * ldemul.c: Likewise.
2864 * ldemul.h: Likewise.
2865 * ldexp.c: Likewise.
2866 * ldexp.h: Likewise.
2867 * ldfile.c: Likewise.
2868 * ldfile.h: Likewise.
2869 * ldlang.c: Likewise.
2870 * ldlang.h: Likewise.
2871 * lexsup.c: Likewise.
2873 * pe-dll.c: Likewise.
2875 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2877 * pe-dll.c (process_def_file): Uninitialized data wasn't
2878 exported with --export-all-symbols switch.
2880 2000-09-28 DJ Delorie <dj@redhat.com>
2882 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2883 noname work properly.
2885 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2887 * ld.texinfo (HPPA ELF32): New section.
2889 * emultempl/hppaelf.em (group_size): New.
2890 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2891 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2892 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2893 options to prevent abbreviations matching.
2894 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2895 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2897 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2899 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2900 on the m68*-*-elf target. Make it support COFF input objects.
2902 2000-09-21 Kazu Hirata <kazu@hxi.com>
2904 * ldmain.c: Fix formatting.
2905 * ldmisc.c: Likewise.
2906 * ldver.c: Likewise.
2907 * ldwrite.c: Likewise.
2909 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2911 * ldwrite.c (clone_section): Silence gcc warnings.
2913 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2915 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2916 out of memory failure.
2918 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2919 (clone_section): Handle out of memory failures. Rename var to
2920 avoid c++ reserved word.
2922 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2924 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2925 stub_name param to stub_sec_name.
2926 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2928 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2930 * emultempl/m68kelf.em: New file.
2931 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2932 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2933 * Makefile.in: Regenerate.
2935 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2937 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2940 2000-09-13 Nick Clifton <nickc@redhat.com>
2942 * ldmain.c (multiple_definition): Disable relaxation if
2943 multiple symbol definitions are encountered - otherwise the
2944 linker could abort with an assertion failure.
2946 2000-09-10 Nick Clifton <nickc@redhat.com>
2948 * mri.c: Fix formatting.
2950 2000-09-07 H.J. Lu <hjl@gnu.org>
2952 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2953 * configure: Rebuild.
2955 2000-09-07 H.J. Lu <hjl@gnu.org>
2957 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2958 * Makefile.in: Rebuild.
2960 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2962 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2963 broken list handling. Create __start_SECNAME and __stop_SECNAME
2964 when no place-holder. Add some comments. Test both SEC_CODE and
2965 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2966 Handle case where no output section statement created.
2968 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2970 * configure.tgt (sh-*-linux*): Added.
2971 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2972 * Makefile.in: Rebuilt.
2973 * emulparams/shelf_linux.sh: New file.
2974 * emulparams/shlelf_linux.sh: New file.
2976 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2978 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2979 try shuffling sections when the orphan happens to be the place
2980 holder. Keep count of unique section names generated so we speed
2981 the search for a new name.
2983 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2985 * configure: Rebuilt with new libtool.m4.
2987 2000-09-05 Nick Clifton <nickc@redhat.com>
2989 * Makefile.in: Regenerate.
2990 * aclocal.m4: Regenerate.
2991 * configure: Regenerate.
2992 * config.in: Regenerate.
2993 * po/ld.pot: Regenerate.
2995 * ldint.texinfo: Remove CVS revision marker - it foils local
2998 * emultempl/ticoff.em: Remove extraneous comma.
3000 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3002 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3003 to stub section flags.
3004 (hppa_for_each_input_file_wrapper): New.
3005 (hppa_lang_for_each_input_file): New.
3006 (lang_for_each_input_file): Define to call above.
3007 (multi_subspace): New.
3008 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3009 (PARSE_AND_LIST_PROLOGUE): Define.
3010 (PARSE_AND_LIST_LONGOPTS): Define.
3011 (PARSE_AND_LIST_OPTIONS): Define.
3012 (PARSE_AND_LIST_ARGS_CASES): Define.
3013 (hppaelf_finish): Call elf32_hppa_set_gp.
3014 (hppaelf_set_output_arch): Remove.
3015 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3017 * emulparams/hppalinux.sh (ELFSIZE): Define.
3019 (OTHER_READONLY_SECTIONS): Define.
3021 (GENERATE_SHLIB_SCRIPT): Define.
3023 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3024 to const throughout. Change `void *' to `PTR' throughout.
3025 (lang_memory_default): Function is local to file, add `static'.
3027 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3028 (ehppalinux.c): Likewise.
3029 (earmelf.c): Likewise.
3030 (earmelf_linux.c): Likewise.
3031 (earmelf_linux26.c): Likewise.
3032 * Makefile.in: Regenerate.
3034 * ld.h (ld_config_type): Add unique_orphan_sections.
3035 * lexsup.c (OPTION_UNIQUE): Define.
3036 (ld_options): Add "--unique".
3037 (parse_args): Handle it.
3038 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3039 search for an existing output section if unique_orphan_sections is
3040 set. Make use of bfd_get_unique_section_name rather than
3041 duplicating code here.
3042 * ld.texinfo: Describe --unique.
3044 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3045 optional arg to split-by-file.
3046 (parse_args): Handle them.
3047 * ld.texinfo: Update description of these options.
3048 * ldwrite.c (clone_section): Pass in the section name. Replace
3049 local code with bfd_get_unique_section_name.
3050 (split_sections): Tidy code and comments. Use a list traversal
3051 more appropriate to the list construction. Handle cooked section
3052 sizes. Split when split_by_reloc reached rather than exceeded.
3053 Track section size and split when split_by_file reached. Fix
3054 link_order_tail (even though it's not used).
3055 (ldwrite): Modify condition for calling split_sections to suit
3056 changed split_by_reloc and split_by_file.
3057 * ldmain.c (main): Init config.split_by_reloc and
3058 config.split_by_file to -1.
3059 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3060 Change split_by_file to bfd_size_type.
3062 2000-09-02 Nick Clifton <nickc@redhat.com>
3064 * configure.in: Increase version number to 2.10.91.
3065 * NEWS: Mention new ability to support removal of duplicate DWARF2
3067 * configure: Regenerate.
3068 * aclocal.m4: Regenerate.
3069 * config.in: Regenerate.
3071 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3073 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3075 * scripttempl/elf32avr.sc: Ditto.
3076 * scripttempl/elfd10v.sc: Ditto.
3077 * scripttempl/elfd30v.sc: Ditto.
3078 * scripttempl/elfi370.sc: Ditto.
3079 * scripttempl/elfm68hc11.sc: Ditto.
3080 * scripttempl/elfm68hc12.sc: Ditto.
3081 * scripttempl/elfi386beos.sc: Ditto.
3082 * scripttempl/v850.sc: Ditto.
3084 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3086 * acinclude.m4: Include libtool and gettext macros from the
3088 * aclocal.m4, configure: Rebuilt.
3090 2000-08-25 Nick Clifton <nickc@redhat.com>
3092 * ldlang.c (open_output): When choosing the target for a
3093 particular endianness, do nothing if the target is not
3096 2000-08-25 H.J. Lu <hjl@gnu.org>
3098 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3099 check -rpath nor LD_RUN_PATH for cross link.
3100 * ld.texinfo: Document the change.
3102 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3104 * NEWS: Mention support for CRIS.
3106 2000-08-23 H.J. Lu <hjl@gnu.org>
3108 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3109 the current runpath list from bfd_elf_get_runpath_list ()
3112 2000-08-22 H.J. Lu <hjl@gnu.org>
3114 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3115 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3116 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3117 trace_file_tries is non-zero.
3118 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3119 if trace_file_tries is non-zero.
3121 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3124 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3126 * NEWS: Mention i860 support.
3128 2000-08-14 Andreas Schwab <schwab@suse.de>
3130 * scripttempl/elf.sc: Fix last change to use correct comment
3133 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3135 * scripttempl/elf.sc: Add a comment giving the correspondence
3136 between sections, per-datum sections, and linkonce sections. Make
3137 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3140 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3142 * emulparams/elf32_i860.sh: New file.
3143 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3144 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3145 (eelf32_i860.c): New rule.
3146 * Makefile.in: Regenerate.
3148 2000-08-10 Nick Clifton <nickc@cygnus.com>
3150 * emulparams/mipspe.sh (ENTRY): Add definition.
3152 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3154 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3157 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3159 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3160 the final size of .bss section.
3161 * scripttempl/elfm68hc12.sc: Likewise.
3163 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3165 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3166 gld${EMULATION_NAME}_parse_args for consistency. Combine
3167 lastoptind and prevoptind vars, and keep track of last optind.
3168 (gld_${EMULATION_NAME}_list_options): Rename to
3169 gld${EMULATION_NAME}_list_options.
3171 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3173 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3174 (i586-sco-sysv5uw7.1.0).
3176 2000-07-27 H.J. Lu <hjl@gnu.org>
3178 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3179 (PARSE_AND_LIST_PROLOGUE): New.
3180 (PARSE_AND_LIST_LONGOPTS): Likewise.
3181 (PARSE_AND_LIST_OPTIONS): Likewise.
3182 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3183 (PARSE_AND_LIST_EPILOGUE): Likewise.
3185 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3187 * emultempl/armelf.em: Elide functions common to elf32.em,
3188 ie. most of the file.
3189 (arm_elf_after_open): New. Do arm specific things then call
3190 gld${EMULATION_NAME}_after_open.
3191 (arm_elf_before_allocation): New. Call
3192 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3193 (PARSE_AND_LIST_PROLOGUE): Define.
3194 (PARSE_AND_LIST_SHORTOPTS): Define.
3195 (PARSE_AND_LIST_LONGOPTS): Define.
3196 (PARSE_AND_LIST_OPTIONS): Define.
3197 (PARSE_AND_LIST_ARGS_CASES): Define.
3198 (LDEMUL_AFTER_OPEN): Define.
3199 (LDEMUL_BEFORE_ALLOCATION): Define.
3200 (LDEMUL_BEFORE_PARSE): Define.
3201 (LDEMUL_FINISH): Define.
3203 * emultempl/hppaelf.em: Similarly zap most of this file.
3204 (hppaelf_add_stub_section): Prototype.
3205 (hppaelf_layaout_sections_again): Prototype.
3206 (hook_in_stub): Prototype.
3207 (LDEMUL_SET_OUTPUT_ARCH): Define.
3208 (LDEMUL_FINISH): Define.
3209 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3211 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3212 (EXTRA_EM_FILE): New.
3213 * emulparams/armelf_linux.sh: Likewise.
3214 * emulparams/armelf_linux26.sh: Likewise.
3215 * emulparams/hppalinux.sh: Likewise.
3216 * emulparams/hppaelf.sh: Likewise.
3219 * emultempl/elf32.em: Fix formatting.
3220 (EXTRA_EM_FILE): Source it.
3221 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3222 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3223 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3224 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3225 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3226 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3227 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3228 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3229 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3230 allow functions in this file to be overridden.
3231 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3233 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3235 * emultempl/elf32.em: Reorganize file.
3237 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3239 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3240 specific option to fit 64-bit executable in the lower
3241 31-bit address range. This is done by changing start
3242 address of .interp (the very first section of executable)
3243 and then setting EF_ALPHA_32BIT elf header flag.
3245 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3247 * emultempl/m68kcoff.em: New file.
3248 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3249 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3251 * Makefile.in: Regenerate.
3253 2000-07-20 H.J. Lu <hjl@gnu.org>
3255 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3256 and "disable-new-dtags" to stop getopt from treating -d/-e as
3257 abbreviations for these options.
3259 2000-07-20 H.J. Lu <hjl@gnu.org>
3261 * ld.texinfo: Add documentation for --disable-new-dtags and
3264 * ldmain.c (main): Initialize link_info.new_dtags to false.
3266 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3267 --disable-new-dtags and --enable-new-dtags.
3268 (gld_${EMULATION_NAME}_list_options): Likewise.
3270 2000-07-05 Kenneth Block <krblock@computer.org>
3272 * lexsup.c: Add optional style to demangle switch
3273 * ld.texinfo: Document optional style to demangle switch.
3275 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3277 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3279 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3280 Regenerate dependencies.
3281 * Makefile.in: Rebuild.
3282 * configure.tgt (cris-*-*): New target.
3283 * emulparams/crisaout.sh, emulparams/criself.sh,
3284 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3285 * po/POTFILES.in, po/ld.pot: Regenerate.
3287 2000-07-20 H.J. Lu <hjl@gnu.org>
3289 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3290 Print out ignored -z options.
3292 2000-07-19 H.J. Lu <hjl@gnu.org>
3294 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3295 (PARSE_AND_LIST_PROLOGUE): New.
3296 (PARSE_AND_LIST_LONGOPTS): Likewise.
3297 (PARSE_AND_LIST_OPTIONS): Likewise.
3298 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3300 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3302 * lexsup.c (ld_options): Comment out 'z'.
3303 (parse_args): Likewise.
3305 * emultempl/elf32.em: Include "elf/common.h".
3306 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3308 (gld_${EMULATION_NAME}_list_options): Likewise.
3310 * ld.texinfo: Add documentation for the recognized -z options.
3312 2000-07-19 H.J. Lu <hjl@gnu.org>
3314 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3315 bfd_elf_set_dt_needed_soname ().
3317 2000-07-18 DJ Delorie <dj@cygnus.com>
3319 * pe-dll.c (pe_dll_id_target): check object target name also
3321 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3323 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3324 ${INIT_END} if relocating.
3325 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3327 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3329 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3330 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3331 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3332 errors introduced by the old dynamic lib search order.
3334 2000-07-17 DJ Delorie <dj@cygnus.com>
3336 * pe-dll.c (process_def_file): auto-export data items also
3337 (pe_process_import_defs): also see if _imp_ form needed
3339 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3341 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3342 for dll import libraries
3344 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3346 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3347 gcc 2.95.2 and later.
3349 2000-07-11 Kazu Hirata <kazu@hxi.com>
3351 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3354 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3356 * ldemul.h (struct lang_input_statement_struct): Remove forward
3358 (struct search_dirs): Likewise.
3359 * ldfile.h (struct lang_input_statement_struct): Likewise.
3360 Protect file from multiple inclusion.
3361 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3362 declaration from macro to file scope.
3364 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3365 * ldgram.y: Likewise here.
3366 * ldlang.c: And here.
3367 * ldmain.c: And here.
3368 * mpw-elfmips.c: And here.
3369 * mpw-eppcmac.c: And here.
3370 * emultempl/aix.em: And here.
3371 * emultempl/armcoff.em: And here.
3372 * emultempl/armelf.em: And here.
3373 * emultempl/armelf_oabi.em: And here.
3374 * emultempl/beos.em: And here.
3375 * emultempl/elf32.em: And here.
3376 * emultempl/hppaelf.em: And here.
3377 * emultempl/linux.em: And here.
3378 * emultempl/lnk960.em: And here.
3379 * emultempl/pe.em: And here.
3380 * emultempl/sunos.em: And here.
3381 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3382 * mpw-idtmips.c: Ditto.
3383 * emultempl/generic.em: Ditto.
3384 * emultempl/gld960.em: Ditto.
3385 * emultempl/gld960c.em: Ditto.
3386 * emultempl/mipsecoff.em: Ditto.
3387 * emultempl/ticoff.em: Ditto.
3388 * emultempl/vanilla.em: Ditto.
3390 * pe-dll.c: Include ldfile.h
3391 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3393 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3394 arguments to bfd_elf32_size_dynamic_sections call.
3395 (gldelf32ebmip_place_orphan): Add missing arguments to
3396 lang_leave_output_section_statement call.
3398 2000-07-10 H.J. Lu <hjl@gnu.org>
3400 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3402 (strhash): Likewise.
3403 (compute_dll_image_base): Likewise.
3404 (pe_undef_found_sym): Likewise.
3405 (pe_undef_cdecl_match): Likewise.
3406 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3407 argument "arch" with ATTRIBUTE_UNUSED.
3409 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3411 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3413 From Ryan Bradetich <rbradetich@uswest.net>
3414 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3416 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3418 Changes to create multiple linker stubs, positioned immediately
3419 before the section where they are required.
3420 * emultempl/hppaelf.em: Include elf32-hppa.h.
3421 (stub_sec, file_chain): Delete.
3422 (hppaelf_create_output_section_statements): Don't make a stub
3424 (hook_stub_info): New struct.
3425 (hook_in_stub): New function.
3426 (hppaelf_add_stub_section): New function.
3427 (hppaelf_finish): Do nothing for relocateable links. Modify the
3428 call to elf32_hppa_size_stubs. Move code for updating section
3430 (hppaelf_layaout_sections_again): ..to here, a new function.
3432 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3433 broken list handling. Pass in a pointer to the list.
3434 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3436 (hppaelf_before_parse): Prototype.
3437 (hppaelf_set_output_arch): Prototype.
3438 (hppaelf_create_output_section_statements): Prototype.
3439 (hppaelf_delete_padding_statements): Prototype.
3440 (hppaelf_finish): Prototype.
3443 * emultempl/hppaelf.em: Include ctype.h.
3444 (struct orphan_save): New.
3445 (gld${EMULATION_NAME}_place_orphan): New.
3446 (output_rel_find): New.
3447 (hppaelf_get_script): Update from elf32.em.
3448 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3449 Change emulation_name field to "${EMULATION_NAME}". Add
3450 gld${EMULATION_NAME}_place_orphan.
3452 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3453 ehppalinux.o, sort it. Regenerate dependencies.
3454 (ehppalinux.c): Depend on hppaelf.em
3455 * Makefile.in: Regenerate.
3457 * configure.tgt: targ_emul=hppalinux for hppa*linux
3459 * emulparams/hppalinux.sh: New.
3460 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3462 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3464 * lexsup.c (parse_args): Copy section name.
3466 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3468 * emultempl/pe.em: institute the following search order for
3469 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3470 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3471 static lib (libfoo.a) if none of the above are found.
3473 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3475 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3476 (longopts): New --{enable,disable}-auto-image-base options.
3477 (gld_${EMULATION_NAME}_list_options): Document.
3478 (gld_${EMULATION_NAME}_parse): Handle.
3479 (strhash): New static function.
3480 (compute_dll_image_base): New static function.
3481 (gld_${EMULATION_NAME}_set_symbols): Use.
3483 2000-07-05 DJ Delorie <dj@redhat.com>
3487 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3489 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3490 * emulparams/elf32btsmip.sh: New file.
3491 * Makefile.am: Add traditional mips target.
3492 * Makefile.in: Rebuild.
3494 2000-07-01 H.J. Lu <hjl@gnu.org>
3496 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3497 automake to use YLWRAP.
3498 * Makefile.in: Rebuild.
3500 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3502 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3503 (CLEANFILES): Add DEPA.
3504 * Makefile.in: Regenerate.
3506 2000-06-30 Timothy Wall <twall@ppc>
3508 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3509 the page in the upper octet of the address.
3511 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3513 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3515 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3517 * NEWS: arm-elf does --gc-sections too.
3519 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3521 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3523 * Makefile.in: Regenerate.
3525 2000-06-21 H.J. Lu <hjl@gnu.org>
3527 * Makefile.am: Rebuild dependency.
3528 * Makefile.in: Rebuild.
3530 2000-06-20 H.J. Lu <hjl@gnu.org>
3532 * Makefile.am: Rebuild dependency.
3533 * Makefile.in: Rebuild.
3535 2000-06-20 Timothy Wall <twall@cygnus.com>
3537 * scripttempl/tic54xcoff.sc: New.
3538 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3539 * gen-doc.texi: Add flag for TI COFF.
3540 * ld.texinfo: Add documentation for TI COFF handling switches.
3541 * emultempl/ticoff.em: New. TI COFF handling.
3542 * configure.tgt: Add tic54x target.
3543 * Makefile.am: Add tic54x target.
3544 * Makefile.in: Ditto.
3546 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3548 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3549 checking for backslashes.
3551 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3553 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3555 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3557 * NEWS: Update list of targets supporting --gc-sections.
3559 * scripttempl/elf.sc: KEEP .eh_frame contents.
3560 * scripttempl/elfd30v.sc: Same here.
3562 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3564 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3566 * Makefile.in: Rebuild.
3567 * configure.tgt: Recognize m68hc12 and m68hc11.
3568 * scripttempl/elfm68hc12.sc: New file.
3569 * emulparams/m68hc12elfb: New emulation.
3570 * emulparams/m68hc12elf: New emulation.
3571 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3572 (includes a memory.x script to define the ROM and RAM banks).
3573 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3574 New configuration files for support of Motorola 68hc11
3576 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3578 * ldmain.c (main): Only change SEC_READONLY for final link.
3580 2000-06-13 H.J. Lu <hjl@gnu.org>
3582 * configure: Regenerate.
3584 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3586 * configure.in (VERSION): Update to show this is the CVS mainline.
3588 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3590 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3591 input objects to be ECOFF.
3592 (check_sections): einfo takes %B, not %P, to print a BFD name.
3594 2000-06-05 Michael Matz <matz@ifh.de>
3596 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3599 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3601 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3603 * emulparams/avr1200.sh (STACK): Define as 0.
3604 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3605 * emulparams/avr4433.sh (STACK): Likewise.
3606 * emulparams/avr44x4.sh (STACK): Likewise.
3607 * emulparams/avr85xx.sh (STACK): Likewise.
3608 * emulparams/avrmega103.sh (STACK): Likewise.
3609 * emulparams/avrmega161.sh (STACK): Likewise.
3610 * emulparams/avrmega603.sh (STACK): Likewise.
3611 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3612 (__stack): Define from ${STACK} for main().
3614 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3616 * Makefile.am: Update dependencies with "make dep-am"
3617 * Makefile.in: Regenerate.
3619 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3621 * ldmain.c: Include filenames.h.
3622 (set_scripts_dir): Support backslashes in program name.
3624 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3626 * ldmain.c (main): When deciding if ".text" section should be
3627 read-only, don't forget to reset SEC_READONLY because it
3628 could be already set.
3630 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3632 * ld.1: Add documentation for new command line option:
3633 --section-start <sectionname>=<sectionorg>
3634 This is a generic version of -Ttext etc. which accepts
3635 any section name as a parameter instead of just text/data/
3637 * ld.texinfo: More docs.
3639 * lexsup.c: (parse_args): Recognize new command line option.
3640 (ld_options): Add new option.
3642 2000-05-18 H.J. Lu <hjl@gnu.org>
3644 * lexsup.c (parse_args): `i' == `r', not `q'.
3646 2000-05-18 Jeffrey A Law (law@cygnus.com)
3648 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3650 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3651 Rick Gorton <gorton@scrugs.lkg.dec.com>
3653 Add support for '-q' == '--emit-relocs' switch.
3654 * ldmain.c (main): Default to false.
3655 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3656 * NEWS: Describe the emitrelocations switch.
3657 * ld.texinfo: Describe the emitrelocations switch.
3659 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3661 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3662 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3663 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3666 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3668 * lexsup.c (parse_args): Update the year in the copyright notice.
3670 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3672 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3673 Replace defines with those from intl/libgettext.h to quieten gcc
3676 2000-05-10 H.J. Lu <hjl@gnu.org>
3678 * ldlang.c (open_input_bfds): Don't load the same file within
3679 a group again if the whole archive has been loaded already.
3681 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3683 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3684 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3687 2000-05-01 Jim Wilson <wilson@cygnus.com>
3689 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3691 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3692 host "ia64-*-linux-gnu*".
3694 2000-04-29 Andreas Jaeger <aj@suse.de>
3696 * ld.h: Correctly check GCC version.
3698 2000-04-25 Jeffrey A Law (law@cygnus.com)
3700 * Makefile.am: Add PA64 support. Add missing dependencies for
3702 * Makefile.in: Rebuilt.
3703 * configure.tgt: Add PA64 support (currently disabled).
3705 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3707 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3708 (output_rel_find): New function.
3709 (hold_section, hold_use): Delete.
3710 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3711 hold_interp): Make local to place_orphan.
3712 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3713 rather than place_section to find possible previous use of orphan.
3714 Similarly find the place-holder output sections. Use returned
3715 value from lang_enter_output_section_statement rather than calling
3716 lang_output_section_statement_lookup.
3717 * emultempl/armelf.em: Same here.
3718 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3720 * ldlang.c (lang_enter_output_section_statement): Return output
3722 * ldlang.h (lang_enter_output_section_statement): Change
3725 * ldlang.h (lang_output_section_statement): Export it.
3726 * ldlang.c (lang_output_section_statement): Ditto.
3728 2000-04-24 Nick Clifton <nickc@cygnus.com>
3730 * ld.texinfo (Output Section Data): Add note that section data
3731 commands cannot appear outside of section directives.
3733 2000-04-2 Matthew Green <mrg@cygnus.com>
3735 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3737 2000-04-21 Richard Henderson <rth@cygnus.com>
3738 David Mosberger <davidm@hpl.hp.com>
3740 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3741 (eelf64_ia64.c): New rule.
3742 * Makefile.in: Rebuild.
3743 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3744 * emulparams/elf64_ia64.sh: New file.
3746 2000-04-21 Richard Henderson <rth@cygnus.com>
3748 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3750 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3752 * dep-in.sed: Match space at start of file name, not at end.
3754 2000-04-18 H.J. Lu <hjl@gnu.org>
3756 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3757 lang_leave_output_section_statement () after calling
3758 lang_enter_output_section_statement ().
3759 * emultempl/armelf.em: Likewise.
3761 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3763 * emultempl/elf32.em (struct orphan_save): Add section field.
3764 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3765 better order, and place first orphan section as we did before the
3766 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3767 Don't call make_bfd_section here, let wild_doit do the job for us.
3768 Don't build a statement list when we'll only throw it away.
3769 * emultempl/armelf.em: Ditto.
3770 * emultempl/pe.em: Similarly.
3772 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3774 * scripttempl/elfppc.sc: Remove.
3775 * emulparams/elf32ppc.sh: Use elf.sc.
3776 * emulparams/elf32lppc.sh: Use elf.sc.
3777 * emulparams/elf32ppclinux.sh: Use elf.sc.
3778 * emulparams/elf32ppcsim.sh: New file.
3779 * emulparams/elf32lppcsim.sh: New file.
3780 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3781 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3782 * Makefile.in: Regenerate.
3783 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3785 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3787 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3788 ~SEC_ALLOC sections too. Init start address of debug sections.
3789 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3790 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3791 Also set all relocateable section start addresses.
3793 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3795 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3796 Add new BSS_PLT variable for when .plt need not be contained in
3797 the file. Move _etext so that it is also after .fini, and provide
3798 both etext and _etext with a leading underscore. Mark the start
3801 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3803 * emultempl/elf32.em (struct orphan_save): New.
3804 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3805 hold_interp): Make them struct orphan_save.
3806 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3807 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3808 the end of the relevant section list. Also add associated section
3809 statements to the end of any previous orphan statements.
3810 * emultempl/armelf.em: Similarly.
3811 * emultempl/pe.em: Similarly.
3813 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3815 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3817 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3819 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3820 --enable-build-warnings option.
3821 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3822 * Makefile.in, configure: Re-generate.
3824 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3826 * po/ld.pot: Regenerate.
3828 * lexsup.c (help): Restore translated part of bug string.
3830 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3831 (DEP): Quote when passing vars to sub-make. Add warning message
3833 (DEP1): Rewrite for "gcc -MM".
3834 (CLEANFILES): Add DEP2.
3835 Update dependencies.
3836 * Makefile.in: Regenerate.
3838 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3840 * ld.h: #include "bin-bugs.h"
3841 * lexsup.c (help): Use REPORT_BUGS_TO.
3843 2000-03-27 Denis Chertykov <denisc@overta.ru>
3845 * configure.tgt (avr-*-*): New target support.
3846 * Makefile.am: Likewise.
3847 * scripttempl/elf32avr.sc: New script file.
3848 * emulparams/avr1200.sh: New file.
3849 * emulparams/avr23xx.sh: New file.
3850 * emulparams/avr4433.sh New file.
3851 * emulparams/avr44x4.sh New file.
3852 * emulparams/avr85xx.sh New file.
3853 * emulparams/avrmega103.sh New file.
3854 * emulparams/avrmega161.sh New file.
3855 * emulparams/avrmega603.sh New file.
3856 * Makefile.in: Regenerate.
3858 2000-03-09 Andreas Jaeger <aj@suse.de>
3860 * Makefile.am (check-DEJAGNU): Also unset LANG.
3861 * Makefile.in: Rebuild.
3863 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3865 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3868 2000-03-02 H.J. Lu <hjl@gnu.org>
3870 * emulparams/elf32mcore.sh: Include "getopt.h".
3872 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3874 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3876 2000-03-01 H.J. Lu <hjl@gnu.org>
3878 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3879 * emulparams/shpe.sh: Likewise.
3881 2000-03-01 Nick Clifton <nickc@cygnus.com>
3883 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3884 to unused parameters.
3886 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3887 functions only used by DLL code.
3888 (_place_orphan): Initialise 'dollar'.
3890 2000-03-01 H.J. Lu <hjl@gnu.org>
3892 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3893 indicate if the undefined symbol is a fatal error or not.
3894 Don't delete the output file if "fatal" is false.
3896 2000-02-29 H.J. Lu <hjl@gnu.org>
3898 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3899 Set LC_COLLATE and LC_ALL to null and export them. It is for
3900 sort which expects the C locale.
3901 Add $(LIBS) to all $(HOSTING_LIBS).
3902 * Makefile.in: Rebuild.
3904 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3906 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3907 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3908 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3909 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3910 find_potential_libraries.
3912 2000-02-28 Jim Blandy <jimb@redhat.com>
3914 * ldgram.y (exclude_name_list): Don't require a comma to separate
3915 list entries; the lexer considers commas to be valid part of a
3916 filename, so in something like `foo, bar' the comma is considered
3917 part of the first filename, `foo,'.
3918 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3920 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3922 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3923 host "i[3456]86-*-freebsdelf*".
3925 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3927 * scripttempl/i386go32.sc: Move misplaced semicolons.
3929 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3931 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3932 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3933 (eelf64hppa.c, ehppaelf.c): Remove targets.
3934 * Makefile.in: Rebuild.
3936 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3938 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3939 GNU/Linux/sparc, but keep the default as 32.
3941 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3942 it default if sparcv9 or sparc64.
3944 2000-02-24 Nick Clifton <nickc@cygnus.com>
3946 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3947 * Makefile.in: Regenerate.
3948 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3950 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3951 find_potential_libraries.
3952 * ldemul.c (ldemul_find_potential_libraries): New function.
3954 * ldfile.c (ldfile_open_file_search): Allow function to be
3956 (ldfile_open_file): Call ldemul_find_potential_libraries.
3957 * ldfile.h: Add prototype for ldfile_open_file_search.
3959 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3961 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3962 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3964 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3965 (gld_X_find_potential_libraries): New function. Search for
3966 libraries called "*.lib".
3968 * scripttempl/pe.sc: Add .pdata section.
3970 2000-02-23 Richard Henderson <rth@cygnus.com>
3972 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3973 Add and use memory regions.
3975 2000-02-23 Linas Vepstas (linas@linas.org)
3977 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3979 * Makefile.am: Add support for Linux/IBM 370.
3980 * configure.tgt: Likewise.
3982 * Makefile.in: Regenerate.
3984 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3986 * ldlang.c (print_input_section, print_data_statement,
3987 print_reloc_statement, print_padding_statement, insert_pad,
3988 size_input_section, lang_check_section_addresses,
3989 lang_size_sections, lang_do_assignments, lang_set_startof,
3990 lang_one_common): Change `opb' to unsigned.
3991 (lang_do_assignments): Also change `size' to unsigned.
3993 2000-02-16 Richard Henderson <rth@cygnus.com>
3995 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3997 2000-02-16 Timothy Wall <twall@cygnus.com>
3999 * mri.c (mri_draw_tree): Add default LMA region argument to call
4000 to lang_leave_output_section_statement.
4001 * ldlang.h: Update prototypes with LMA region arguments.
4002 * ldlang.c (lang_size_sections): Encapsulate region bounds
4003 checking in os_check_region call.
4004 (os_check_region): New function.
4005 (lang_output_section_statement_lookup): Initialize lma_region.
4006 (lang_leave_output_section_statement): Add LMA region argument.
4007 (lang_leave_overlay): Ditto.
4008 * ldgram.y: Handle LMA region syntax.
4009 * ld.texinfo (Output Section Description): Describe LMA region usage.
4010 * emultempl/armelf.em (gld$place_orphan): Add default value for
4011 lma region in call to lang_leave_output_section_statement.
4012 * emultempl/elf32.em (gld$place_orphan): Add default value for
4013 lma region in call to lang_leave_output_section_statement.
4014 * emultempl/pe.em (gld$place_orphan): Add default value for
4015 lma region in call to lang_leave_output_section_statement.
4018 2000-02-04 Timothy Wall <twall@redhat.com>
4020 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4021 octets when calculating section end addresses.
4023 2000-02-04 Timothy Wall <twall@redhat.com>
4025 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4027 2000-02-03 Timothy Wall <twall@redhat.com>
4029 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4031 * ldlang.c (print_input_section, print_data_statement,
4032 print_reloc_statement, print_padding_statement): Print target
4033 address values and section sizes as bytes, not octets.
4034 (insert_pad) Calculate padding size in octets, and adjust "dot"
4036 (size_input_section) Always adjust "dot" by bytes, not octets.
4037 (lang_check_section_addresses, lang_do_assignments) Adjust
4038 "dot" by bytes, not octets. Use the larger of the directive size
4039 or octets_per_byte for the number of octets actually allocated in
4041 (lang_set_startof) Make sure STARTOF returns a target address.
4042 (lang_one_common) Record size changes in octets.
4043 (lang_abs_symbol_at_end_of) Section end symbol's value is
4044 recorded in target bytes.
4045 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4046 to be clear about behavior when an octet is smaller than one byte.
4048 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4050 * ldcref.c (output_cref): Don't pass message strings to printf
4054 * ldmisc.c (vfinfo): Same here.
4057 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4059 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4060 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4061 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4062 Add missing NULL initialisers, and comments.
4064 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4066 2000-01-21 Nick Clifton <nickc@cygnus.com>
4068 * ldlang.c (lang_size_sections): Fix typo in comment.
4070 2000-01-18 H.J. Lu <hjl@gnu.org>
4072 * ldlang.c (lang_size_sections): Also update the current
4073 address of a region if the SEC_NEVER_LOAD bit is not set.
4075 2000-01-10 Philip Blundell <pb@futuretv.com>
4077 * configure.tgt (arm*-*-conix*): New target.
4079 2000-01-07 Nick Clifton <nickc@cygnus.com>
4081 * ld.texinfo (Options): Remind users to preceed linker command
4082 line switches with -Wl, (or whatever is appropriate) if it is
4083 being invoked by a comnpiler driver program.
4084 Fix description of the behaviour of the -n command line switch.
4086 2000-01-05 Catherine Moore <clm@cygnus.com>
4088 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4090 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4091 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4092 (exclude_name_list): New.
4093 ldlang.c (walk_wild_section): Support list of excluded files.
4094 (print_wild_statement): Likewise.
4095 (lang_add_wild): Likewise.
4096 * ldlang.h (lang_wild_statement_type): Likewise.
4097 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4099 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4101 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4102 (process_def_file): Use.
4103 (pe_dll_compat_implib): New variable.
4106 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4107 pe_dll_compat_implib.
4109 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4110 compat-implib options.
4111 (gld_${EMULATION_NAME}_list_options): List new options.
4112 (gld_${EMULATION_NAME}_parse_args): Handle.
4114 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4117 * deffilep.y (opt_name): Allow "." in name.
4119 For older changes see ChangeLog-9899
4125 version-control: never