1 2002-05-02 Alan Modra <amodra@bigpond.net.au>
3 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
4 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
5 (build_section_lists): Do output_section tests here.
7 2002-04-30 Tom Rix <trix@redhat.com>
9 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
11 2002-05-01 Alan Modra <amodra@bigpond.net.au>
13 Long branch stubs, multiple stub sections.
14 * emultempl/ppc64elf.em: Include ldctor.h.
16 (group_size): New var.
17 (ppc_create_output_section_statements): New function.
18 (struct hook_stub_info): New.
19 (hook_in_stub): New function.
20 (ppc_add_stub_section): New function.
21 (ppc_layout_sections_again): New function.
22 (build_section_lists): New function.
23 (gld${EMULATION_NAME}_finish): Rewrite.
25 (ppc_for_each_input_file_wrapper): New function.
26 (ppc_lang_for_each_input_file): New function.
27 (lang_for_each_input_file): Define.
28 (PARSE_AND_LIST_PROLOGUE): Define.
29 (PARSE_AND_LIST_LONGOPTS): Define.
30 (PARSE_AND_LIST_OPTIONS): Define.
31 (PARSE_AND_LIST_ARGS_CASES): Define.
32 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
34 2002-04-30 Tom Rix <trix@redhat.com>
36 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
37 -blibpath, -bnolibpath support.
39 2002-04-30 Mark Mitchell <mark@codesourcery.com>
41 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
42 (eelf32ppcwindiss.c): New target.
43 * Makefile.in: Regenerated.
44 * configure.tgt: Add support for powerpc-*-windiss.
45 * emulparams/elf32ppcwindiss.sh: New file.
47 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
49 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
50 * ldexp.c (exp_print_token): Add "infix_p" argument.
51 (exp_print_tree): Update accordingly.
53 2002-04-28 Alan Modra <amodra@bigpond.net.au>
55 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
56 * Makefile.in: Regenerate.
57 * mpw-elfmips.c: Delete.
58 * mpw-eppcmac.c: Delete.
60 * mpw-idtmips.c: Delete.
62 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
64 * emulparams/shelf32.sh (MACHINE): Now sh5.
66 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
68 * ldgram.y: Fix syntax warning.
70 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
72 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
73 to prevent "-n" from being taken as an abbreviation for
74 "--no-pipeline-knowledge".
76 2002-04-08 Alan Modra <amodra@bigpond.net.au>
78 * ldlang.c (lang_size_sections_1): Don't complain about
79 SEC_NEVER_LOAD sections having no memory region specified.
81 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
83 2002-04-07 matthew green <mrg@redhat.com>
85 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
87 2002-04-04 Alan Modra <amodra@bigpond.net.au>
89 * dep-in.sed: Cope with absolute paths.
90 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
92 * Makefile.in: Regenerate.
94 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
96 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
98 2002-04-03 Jakub Jelinek <jakub@redhat.com>
100 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
101 is smaller than maximum, round dot up to common page boundary.
103 2002-03-28 Alan Modra <amodra@bigpond.net.au>
105 * configure.host: Set up for generic hosts first, then tweak as
106 necessary in more specific targets.
107 (HOSTING_LIBS): Include libgcc_eh.a if found.
109 2002-03-23 Andreas Jaeger <aj@suse.de>
111 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
113 2002-03-21 Alan Modra <amodra@bigpond.net.au>
115 * Makefile.am: Run "make dep-am".
116 * Makefile.in: Regenerate.
118 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
120 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
122 2002-03-20 Alan Modra <amodra@bigpond.net.au>
124 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
125 add the symbol to the linker hash table immediately.
126 (lang_place_undefineds): Split symbol creation out..
127 (insert_undefined): ..to here.
129 2002-03-18 David O'Brien <obrien@FreeBSD.org>
131 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
132 the contents of the buffer returned from basename function will are
133 getting overwritten while still being used.
135 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
136 Andreas Jaeger <aj@suse.de>
137 Andreas Schwab <schwab@suse.de>
139 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
140 * elf_x86_64.sh (ARCH): Set to i386:x86-64
141 set libraries to default to lib64 paths.
143 2002-03-18 Tom Rix <trix@redhat.com>
145 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
146 * configure.tgt : Same.
147 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
148 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
149 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
150 emulation parameters for better -b32, -b64 support.
151 * emulparms/aixrs6.sh : Same.
152 * emulparms/ppcmacos.sh : Same.
153 * emultempl/aix.em (choose_target) : Use new emulation parameters
154 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
155 * Makefile.in : Regenerate.
157 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
159 * po/fr.po: Updated version.
161 2002-03-18 Alan Modra <amodra@bigpond.net.au>
163 * ldmain.c (main): Move .text readonly flag fudges from here..
164 * ldlang.c (lang_process): ..to here.
166 2002-03-14 Alan Modra <amodra@bigpond.net.au>
168 * ldlang.c (lang_check): Remove the word size check added in last
169 change. Treat emitrelocations case as for relocatable links.
171 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
173 * po/fr.po: Updated version.
175 2002-03-13 Alan Modra <amodra@bigpond.net.au>
177 * ldlang.c (lang_check): Do relocatable link checks first, so that
178 warn_mismatch can't override. Check compatible and word size too.
180 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
182 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
184 2002-03-05 Jakub Jelinek <jakub@redhat.com>
186 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
189 2002-03-04 H.J. Lu <hjl@gnu.org>
191 * scripttempl/elf.sc: Put .preinit_array, .init_array and
192 .fini_array in the data segment.
194 2002-03-04 Alan Modra <amodra@bigpond.net.au>
196 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
198 2002-03-01 David Mosberger <davidm@hpl.hp.com>
200 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
201 .init_array, and .fini_array.
203 2002-02-20 Andreas Schwab <schwab@suse.de>
205 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
206 .IA64_unwind* in a relocatable link.
208 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
210 * NEWS: Mark 2.12 branch.
212 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
214 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
215 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
217 2002-02-18 Tom Rix <trix@redhat.com>
219 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
220 (gld*_before_allocation): Same.
221 (gld*_create_output_section_statements): Generate
222 __rtinit if run time linking. Add librtl.a to the link.
223 (gld*_read_file): Clean.
225 2002-02-18 Alan Modra <amodra@bigpond.net.au>
227 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
229 2002-02-18 David O'Brien <obrien@FreeBSD.org>
231 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
232 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
233 and eelf64alpha_fbsd.
234 * Makefile.in: Regenerate.
235 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
236 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
237 use a FreeBSD-specific emulation rather than the psABI one.
238 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
239 for all FreeBSD ELF systems.
240 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
242 * emulparams/elf32ppc_fbsd.sh: Likewise.
243 * emulparams/elf64_ia64_fbsd.sh: Likewise.
244 * emulparams/elf64_sparc_fbsd.sh: Likewise.
245 * emulparams/elf64alpha_fbsd.sh: Likewise.
246 * emulparams/elf_i386_fbsd.sh: Likewise.
247 * emulparams/elf_x86_64_fbsd.sh: Likewise.
249 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
251 * po/tr.po: Updated version.
253 2002-02-18 Alan Modra <amodra@bigpond.net.au>
255 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
258 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
260 * emultempl/mmo.em (mmo_after_open): Don't call
261 _bfd_mmix_check_all_relocs when producing ELF output.
263 2002-02-15 Richard Henderson <rth@redhat.com>
265 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
266 definition. Emit a unop+nop pair.
268 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
270 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
271 for presence of .MMIX.reg_contents.linker_allocated before early
274 * NEWS: Mention support for MMIX.
276 2002-02-15 Alan Modra <amodra@bigpond.net.au>
278 Support arbitrary length fill patterns.
279 * ld.texinfo (Output Section Fill): Describe fill expressions.
280 (FILL): Refer to the above.
281 * ldexp.h (etree_value_type): Add "str" field.
282 (union etree_union): Add "str" to "value" struct.
283 (exp_bigintop): Declare.
284 (exp_get_fill): Declare.
285 * ldexp.c: Include "safe-ctype.h".
286 (exp_intop): Set value.str to NULL.
287 (exp_bigintop): New function.
288 (new_rel): Pass in "str", and set new.str from it.
289 (new_rel_from_section): Set new.str to NULL.
290 (fold_name): Adjust calls to new_rel.
291 (exp_fold_tree): Likewise.
292 (exp_get_fill): New function.
293 * ldgram.y (struct big_int bigint, fill_type *fill): New.
294 (INT): Returns a "bigint". Adjust all code handling INTs.
295 (fill_opt): Returns a "fill".
296 (fill_exp): Split out of fill_opt, use for FILL.
297 * ldlang.h (struct _fill_type): New.
298 (fill_type): Move typedef to ldexp.h.
299 (lang_output_section_statement_type): "fill" is now a pointer.
300 (lang_fill_statement_type): Likewise.
301 (lang_padding_statement_type): Likewise.
302 (lang_add_fill): Now takes a "fill_type *" param.
303 (lang_leave_output_section_statement): Likewise.
304 (lang_do_assignments): Likewise.
305 (lang_size_sections): Likewise.
306 (lang_leave_overlay_section): Likewise.
307 (lang_leave_overlay): Likewise.
308 * ldlang.c: Include ldgram.h after ldexp.h.
309 (lang_output_section_statement_lookup): Adjust for fill_type change.
310 (print_fill_statement): Likewise.
311 (print_padding_statement): Likewise.
312 (insert_pad): Now takes a "fill_type *" arg.
313 (size_input_section): Likewise.
314 (lang_size_sections_1): Likewise.
315 (lang_size_sections): Likewise.
316 (lang_do_assignments): Likewise.
317 (lang_add_fill): Likewise.
318 (lang_leave_output_section_statement): Likewise.
319 (lang_leave_overlay_section): Likewise.
320 (lang_leave_overlay): Likewise.
321 Adjust all callers of the above function.
322 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
323 starting with "0X" as well as "0x". Return bigint.str for hex
324 numbers starting with "0x" or "0X", zero bigint.str otherwise.
325 Always use base 16 for numbers starting with "$".
326 * ldmain.c: Include ldgram.h after ldexp.h.
327 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
328 of bfd_fill_link_order.
329 * pe-dll.c: Adjust lang_do_assignments calls.
330 * emultempl/elf32.em: Likewise.
331 * emultempl/hppaelf.em: Likewise.
332 * emultempl/ppc64elf.em: Likewise.
333 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
334 lang_add_assignment call.
335 * emultempl/pe.em: Likewise.
337 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
339 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
340 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
341 the pattern in question is not a regexp.
342 * ldlang.c: Likewise.
343 * ldlang.h: Likewise.
344 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
346 2002-02-12 Jakub Jelinek <jakub@redhat.com>
348 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
349 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
350 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
351 * ldexp.c (exp_data_seg): New variable.
352 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
353 (fold_binary): Handle DATA_SEGMENT_ALIGN.
354 (exp_fold_tree): Handle DATA_SEGMENT_END.
355 Pass allocation_done when recursing instead of hardcoding
356 lang_allocating_phase_enum.
357 * ldexp.h (exp_data_seg): New.
358 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
359 (lang_size_sections): New.
360 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
361 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
362 if COMMONPAGESIZE is defined.
363 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
364 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
365 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
366 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
367 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
370 2002-02-11 Alan Modra <amodra@bigpond.net.au>
372 * Makefile.in: Regenerate.
374 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
376 * lexsup.c: Remove strtoul declaration.
378 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
380 * ldmain.c: Add prototype for main ().
381 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
382 * emultempl/lnk960.em (lnk960_choose_target): Function should
385 2002-02-10 Alan Modra <amodra@bigpond.net.au>
387 * ldlang.c (entry_section): New initialised variable.
388 (lang_finish): Use it.
389 * ldlang.h (entry_section): Declare.
390 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
391 entry_section to ".opd".
393 2002-02-09 Chris Demetriou <cgd@broadcom.com>
395 * ld.texinfo (Options): Add back in -nostdlib documentation,
396 which had been inadvertently removed.
398 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
400 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
401 register section vma to a sane value after emitting error. Make
402 fatal conditions cause program exit when emitting message.
404 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
406 * configure.tgt: Add or32-*-rtems target.
408 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
411 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
412 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
413 in OTHER_RELOCATABLE_SECTIONS.
414 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
415 * emulparams/shelf32.sh (STACK_ADDR): Define.
416 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
417 (OTHER_SECTIONS): this. Removed stack settings.
418 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
419 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
420 2001-03-12 DJ Delorie <dj@redhat.com>
421 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
422 relaxing if any shmedia or mixed sections are found.
423 2001-03-07 DJ Delorie <dj@redhat.com>
424 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
425 einfo. Gracefully decline to output to non-elf formats.
426 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
427 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
428 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
429 * emulparams/shelf32.sh: Ditto.
430 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
431 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
433 2001-01-10 Ben Elliston <bje@redhat.com>
434 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
435 non-portable shell constructs. From Hans-Peter Nilsson.
436 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
437 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
438 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
439 dependencies to the shell script include chain.
440 * Makefile.in: Regenerate.
441 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
442 * emultempl/sh64elf.em: Update and tweak comments.
443 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
444 make a .cranges section SEC_IN_MEMORY.
445 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
446 * emultempl/sh64elf.em
447 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
448 .cranges section found to be necessary; continue and set stored
449 section contents flags for sections with non-mixed contents.
450 Use a struct sh64_section_data container and sh64_elf_section_data
451 to store contents-type flags.
452 Remove unused update of "isec".
453 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
454 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
455 access contents-type flags. Assert that the associated container
456 is initialized. Use that container, not elf_gp_size, to hold size
457 of linker-generated cranges contents.
458 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
459 * emultempl/sh64elf.em
460 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
461 there's already a .cranges section. When section flag difference
462 is found, don't NULL-check cranges a second time. Tweak comments.
463 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
464 merging, not max size, as size of ld-generated .cranges contents.
465 Don't set ELF section flags in output section. When checking for
466 needed .cranges descriptors, don't use a variable; compare
467 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
469 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
470 * emultempl/sh64elf.em: New file.
471 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
472 * Makefile.in: Regenerate.
473 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
474 (OTHER_RELOCATING_SECTIONS): Ditto.
475 (EXTRA_EM_FILE): New, set to sh64elf if not set.
476 * emulparams/shlelf32.sh: Stub out all settings except
477 OUTPUT_FORMAT. Source shelf32.sh.
478 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
479 OTHER_RELOCATING_SECTIONS.
480 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
481 * emulparams/shlelf64.sh: Stub out all settings except
482 OUTPUT_FORMAT. Source shelf64.sh.
483 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
484 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
486 (DATA_START_SYMBOLS): Define, provide ___data.
487 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
488 for consecutive .data section.
489 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
490 section after .data section.
491 * emulparams/shlelf64.sh: Ditto.
492 * emulparams/shelf32.sh: Ditto.
493 (ALIGNMENT): Define to 8.
494 * emulparams/shelf32.sh: Ditto.
495 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
496 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
497 built-in linker scripts.
498 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
499 * emulparams/shlelf64.sh: New.
500 * emulparams/shelf64.sh: New.
501 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
503 * Makefile.am: Add support for shlelf64 and shelf64.
504 * Makefile.in: Regenerate.
505 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
506 * configure.tgt (sh64-*-elf*): Add shelf as default.
507 Add shlelf to targ_extra_emuls.
508 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
509 * emulparams/shelf32.sh: New file.
510 * emulparams/shlelf32.sh: New file.
511 * Makefile.am: Add support for shlelf32 and shelf32.
512 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
513 * Makefile.in: Regenerate.
515 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
517 * ldlang.c (lang_reset_memory_regions): Rename from
518 reset_memory_regions. Change all callers. Make public.
519 * ldlang.h (lang_reset_memory_regions): Prototype.
520 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
521 lang_reset_memory_regions before lang_size_sections.
522 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
523 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
525 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
527 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
528 arithmetic when checking for too many global registers.
530 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
532 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
533 (ehppanbsd.c): New rule.
534 * Makefile.in: Regenerate.
535 * configure.tgt (hppa*-*-netbsd*): New target.
536 * emulparams/hppalinux.sh: Add comment to check other files
537 that source this file it is modified, and list which
539 * emulparams/hppanbsd.sh: New file.
541 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
543 * scripttempl/xstormy16.sc: Don't allocate extra space for the
546 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
548 Support on-demand global register allocation from
549 R_MMIX_BASE_PLUS_OFFSET relocs.
550 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
551 mmix_set_reg_section_vma. Call
552 _bfd_mmix_finalize_linker_allocated_gregs.
553 (mmix_before_allocation): New function.
554 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
555 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
556 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
557 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
558 before .MMIX.reg_contents.
559 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
560 (mmo_after_open): New function.
561 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
562 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
563 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
565 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
567 * emulparams/or32.sh: New file.
568 * emulparams/or32elf.sh: New file.
569 * scripttempl/or32.sc: New file.
570 * configure.tgt : Add support for or32.
571 * configure: Regenerate
572 * Makefile.am: Add support for or32.
573 * Makefile.in: Regenerate.
574 * NEWS: Mention support for or32.
575 * po/ld.pot: Regenerate.
577 2002-01-29 Chris Demetriou <cgd@broadcom.com>
578 Mitch Lichtenberg <mpl@broadcom.com>
580 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
581 * emultempl/mipself.em: New file to handle MIPS ELF embedded
582 reloc creation (ld --embedded-relocs).
584 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
586 * configure: Regenerated.
588 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
590 * Makefile.am (install): Depend on install-info.
591 * Makefile.in: Regenerate.
593 2002-01-26 Christian Rose <menthos@menthos.com>
595 * ldmain.c (main): Use full sentences to ease translation.
597 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
599 * po/fr.po: Updated version.
601 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
603 * po/es.po: Updated version.
605 2002-01-25 Andreas Jaeger <aj@suse.de>
607 * ldlex.l (yy_input): Correct error check.
609 2002-01-25 Alan Modra <amodra@bigpond.net.au>
611 * ldmisc.c (demangle): Put back dots when string not demangled.
613 2002-01-22 Richard Henderson <rth@redhat.com>
615 * emulparams/elf64alpha.sh (NOP): Use unop.
617 2002-01-21 Andreas Jaeger <aj@suse.de>
619 * ldlex.l: Use fread instead of read.
621 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
623 * configure.tgt (ia64-*-netbsd*): New target.
625 2002-01-21 H.J. Lu <hjl@gnu.org>
627 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
629 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
631 2002-01-18 Andreas Jaeger <aj@suse.de>
633 * ldver.c (ldversion): Update year.
635 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
637 * po/ld.pot: Regenerate.
639 2002-01-16 Alan Modra <amodra@bigpond.net.au>
641 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
642 * Makefile.in: Regenerate.
643 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
644 * emultempl/ppc64elf.em: New file.
646 2002-01-15 DJ Delorie <dj@redhat.com>
648 * scripttempl/pe.sc: Add support for constructor priorities.
650 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
652 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
653 * emulparams/avr23xx.sh: Likewise.
654 * emulparams/avr4433.sh: Likewise.
655 * emulparams/avr44x4.sh: Likewise.
656 * emulparams/avr85xx.sh: Likewise.
657 * emulparams/avrmega103.sh: Likewise.
658 * emulparams/avrmega161.sh: Likewise.
659 * emulparams/avrmega603.sh: Likewise.
660 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
662 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
664 * ldlang.c (walk_wild_section): Exclude object file if enclosing
667 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
669 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
670 (eshelf_nbsd.c): New rule.
671 (eshlelf_nbsd.c): New rule.
672 * Makefile.in: Regenerate.
673 * configure.tgt (sh*le-*-netbsdelf*): New target.
674 (sh*-*-netbsdelf*): New target.
675 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
676 * ld/emulparams/shelf_nbsd.sh: New emulation.
677 * ld/emulparams/shlelf_nbsd.sh: New emulation.
679 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
681 * po/es.po: New file: Spanish translation.
682 * configure.in (ALL_LINGUAS): Add es.
683 * configure: Regenerate.
685 2002-01-06 John Marshall <jmarshall@acm.org>
687 * ld.texinfo: Note that --emit-relocs is currently only
690 2002-01-05 Alan Modra <amodra@bigpond.net.au>
692 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
693 of bfd_section_list_remove and bfd_section_list_insert macros.
694 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
695 * emultempl/mmo.em (mmo_place_orphan): Likewise.
697 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
699 * configure.tgt (x86_64-*-netbsd*): New target.
701 2001-12-21 Tom Rix <trix@redhat.com>
703 (gld*_create_output_section_statements): New function.
704 For -binitfini support.
705 * emultempl/aix.em (gld*_before_parse): Fix comment.
706 * emultempl/aix.em (gld*_parse_args): Fix comment.
708 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
710 * configure.tgt (mips*-dec-netbsd*): Delete alias for
712 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
714 * configure.tgt (arm-*-netbsdelf*): Add target.
715 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
716 * emulparams/armelf_nbsd.sh: Added.
717 * Makefile.am: Add rules for earmelf_nbsd.
718 * Makefile.in: Regenerate.
720 2001-12-19 Andreas Jaeger <aj@suse.de>,
721 Susanne Oberhauser <froh@suse.de>
723 * configure.host: Add rules for x86_64-*linux-gnu. Change
724 s390x-linux entry to use gcc to report configuration, replace gcc
725 with $CC in s390-linux
727 2001-12-19 Andreas Jaeger <aj@suse.de>
729 * ld.texinfo (VERSION): Fix markup.
731 2001-12-18 matthew green <mrg@eterna.com.au>
733 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
734 (m68kelfnbsd.c): New rule.
735 * Makefile.in: Regenerate.
736 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
737 (m68*-*-netbsd*4k*): .. this.
738 (m68*-*-netbsdelf*): New target.
739 (m68*-*-netbsd*): Also include ELF support.
740 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
741 * emulparams/m68kelfnbsd.sh: New emulation.
743 2001-12-18 Jakub Jelinek <jakub@redhat.com>
745 * ldgram.y (vers_node): Support anonymous version tags.
746 * ldlang.c (lang_register_vers_node): Ensure anonymous version
747 tag is not defined together with non-anonymous versions.
748 * ld.texinfo: Document it.
750 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
752 * po/tr.po: New file: Turkish translation.
753 * configure.in (ALL_LINGUAS): Add tr.
754 * configure: Regenerate.
756 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
758 * Makefile.am: Add rules for eelf64alpha_nbsd.
759 * Makefile.in: Regenerate.
760 * configure.tgt (alpha*-*-netbsd*): Set
761 targ_emul to elf64alpha_nbsd.
762 * emulparams/elf64alpha_nbsd.sh: Added.
764 2001-12-17 Alan Modra <amodra@bigpond.net.au>
766 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
767 section_tail when fiddling with section list.
768 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
769 broken into separate strings to make translation easier.
770 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
771 fiddling with section list.
772 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
774 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
776 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
778 2001-12-15 Alan Modra <amodra@bigpond.net.au>
780 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
782 2001-12-13 Jakub Jelinek <jakub@redhat.com>
784 * emultempl/elf32.em (finish): Supply output_bfd
785 to bfd_elf*_discard_info.
786 (OPTION_EH_FRAME_HDR): Define.
787 (longopts): Add --eh-frame-hdr.
788 (parse_args): Handle it.
789 (list_options): Add --eh-frame-hdr to help.
790 * emultempl/hppaelf.em (finish): Supply output_bfd
791 to bfd_elf*_discard_info.
792 * scripttempl/elf.sc (.eh_frame_hdr): Add.
794 2001-12-13 Alan Modra <amodra@bigpond.net.au>
796 * lexsup.c (parse_args): Don't pass shortopts to second call to
797 getopt functions. Restore optind rather than decrementing before
798 second call. Remove errind as it now duplicates last_optind.
800 2001-12-11 Christopher Faylor <cgf@redhat.com>
802 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
804 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
805 Richard Henderson <rth@redhat.com>
807 * Makefile.am: Add support for xstormy16.
808 * configure.tgt: Add support for xstormy16.
809 * Makefile.in: Regenerate.
810 * emulparams/elf32xstormy16.sh: New file.
811 * scripttempl/xstormy16.sc: New file.
813 2001-10-01 Christopher Faylor <cgf@cygnus.com>
815 * Makefile.in (LIB_PATH): Make configurable.
816 (GENSCRIPTS): Set LIB_PATH in environment.
817 * configure.in: Substitute LIB_PATH.
818 * configure: Regenerate.
819 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
820 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
822 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
824 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
825 describing the -N option so that it is easier to translate into
828 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
830 * emultempl/pe.em (..._list_options): Replace multiple fprintf
831 statements describing a single option with a single, newline
832 escaped fprintf. This allows better translation into other
835 * ldmain.c (add_archive_element): Combine multiple strings
836 into a single string to permit better translation into other
839 2001-12-05 Tom Rix <trix@redhat.com>
841 * Makefile.am: Remove eaixppc64.
842 * Makefile.in: Regenerate.
844 2001-12-04 Tom Rix <trix@redhat.com>
846 * emultempl/aix.em (choose_target): Change default target to
847 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
849 (gld*_read_file): Fix typo.
850 (change_symbol_mode): Add prototype.
853 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
854 * emulparams/aixrs6.sh : Same.
855 * emulparams/ppcmacos.sh : Same.
856 * emulparams/aixppc64.sh : Delete file.
857 * emultempl/aix.em : Formatting changes.
859 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
861 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
862 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
864 (OTHER_END_SYMBOLS): Fix formatting.
865 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
866 (OTHER_END_SYMBOLS): Fix formatting.
868 2001-12-04 Alan Modra <amodra@bigpond.net.au>
870 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
872 2001-12-02 Tom Rix <trix@redhat.com>
874 * configure.tgt : Remove eaixppc64 emulations.
875 * Makefile.in : Remove eaixppc64.c
876 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
877 (ldemul_default_target): Same.
878 * emultempl/gld960.em (gld960_choose_target): Same.
879 * emultempl/gld960c.em (gld960_choose_target): Same.
880 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
881 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
882 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
883 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
884 * emultempl/aix.em (choose_target): New function. Handle emulation of
887 2001-11-27 H.J. Lu <hjl@gnu.org>
889 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
890 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
891 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
892 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
893 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
894 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
895 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
896 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
898 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
901 (REL_SDATA): Likewise.
902 (REL_SBSS): Likewise.
903 (REL_SDATA2): Likewise.
904 (REL_SBSS2): Likewise.
905 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
908 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
910 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
912 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
914 2001-11-22 H.J. Lu <hjl@gnu.org>
916 * Makefile.in: Regenerated with automake based on automake
919 2001-11-22 Alan Modra <amodra@bigpond.net.au>
921 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
922 (config.status): Delete rule.
923 Add extra dependencies to cover sourced emulparams files.
924 * Makefile.in: Regenerate.
926 * scripttempl/elf.sc: Order <section>, <section>.* and
927 corresponding linkonce sections as seen in input files.
928 Formatting fixes. Zero vma of all sections if not relocating.
929 (STACK): Define and insert if STACK_ADDR defined.
930 (OTHER_RELOCATING_SECTIONS): Delete.
931 (OTHER_END_SYMBOLS): Define.
932 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
933 (OTHER_READWRITE_SECTIONS): Likewise.
934 (OTHER_GOT_SECTIONS): Likewise.
935 (OTHER_SDATA_SECTIONS): Likewise.
936 (OTHER_BSS_SECTIONS): Likewise.
937 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
938 (OTHER_READWRITE_SECTIONS): Likewise.
939 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
940 (OTHER_READWRITE_SECTIONS): Likewise
942 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
943 (STACK_ADDR): Define.
944 * emulparams/armelf_oabi.sh: As for armelf.sh.
945 * emulparams/elf32mcore.sh: As for armelf.sh.
946 * emulparams/h8300elf.sh: As for armelf.sh.
947 * emulparams/mn10200.sh: As for armelf.sh.
948 * emulparams/shelf.sh: As for armelf.sh.
950 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
951 (OTHER_END_SYMBOLS): Define.
952 * emulparams/m32relf.sh: As for elf32fr30.sh.
953 * emulparams/h8300helf.sh: As for elf32fr30.sh.
954 * emulparams/h8300self.sh: As for elf32fr30.sh.
956 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
957 defines with RELOCATING test.
958 (OTHER_SDATA_SECTIONS): Likewise.
959 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
960 (OTHER_END_SYMBOLS): ..this.
961 * emulparams/crislinux.sh: As for criself.sh.
963 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
965 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
966 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
967 normal and linkonce sections as seen in input files.
968 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
969 (TEXT_DYNAMIC): Likewise.
970 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
971 (OTHER_SDATA_SECTIONS): Likewise.
972 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
973 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
974 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
975 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
976 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
977 (OTHER_PLT_RELOC_SECTIONS): Likewise.
978 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
979 sections as seen in input files.
980 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
981 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
983 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
984 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
985 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
986 (OTHER_SECTIONS): Instead, use this..
987 (OTHER_END_SYMBOLS): ..and this.
989 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
990 * emulparams/elf32bsmip.sh: Likewise.
991 * emulparams/elf32btsmip.sh: Likewise.
992 * emulparams/elf32ebmip.sh: Likewise.
993 * emulparams/elf32lmip.sh: Likewise.
994 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
995 * emulparams/elf32lsmip.sh: Likewise.
996 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
997 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
998 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
999 * emulparams/elf64btsmip.sh: Likewise.
1000 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1001 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1002 * emulparams/elf32ppclinux.sh: Likewise.
1003 * emulparams/elf32ppcsim.sh: Likewise.
1004 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1005 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1006 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1007 * emulparams/h8300self.sh: Likewise.
1008 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1009 * emulparams/sh.sh: Comment.
1010 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1011 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1012 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1014 2001-11-21 David Heine <dlheine@tensilica.com>
1015 Alan Modra <amodra@bigpond.net.au>
1017 * ldlang.c (map_input_to_output_sections): Replace "break"
1018 accidentally removed with 2001-08-03 change.
1019 (lang_gc_sections_1): Likewise.
1021 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1023 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1025 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1027 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1028 of false when calling lang_size_sections.
1029 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1031 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1033 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1034 function when LDEMUL_FINISH isn't set to the same name. Don't
1035 call ${LDEMUL_FINISH}.
1036 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1037 * emultempl/armelf.em (arm_elf_finish): Call
1038 gld${EMULATION_NAME}_finish.
1039 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1040 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1041 hppaelf_layout_sections_again if necessary.
1042 (need_laying_out): New var.
1043 (hppaelf_layaout_sections_again): Rename to
1044 hppaelf_layout_sections_again. Clear need_laying_out.
1045 (PARSE_AND_LIST_OPTIONS): Format text.
1047 2001-11-14 H.J. Lu <hjl@gnu.org>
1049 * emultempl/armelf.em (arm_elf_finish): Renamed from
1050 gld${EMULATION_NAME}_finish.
1051 (LDEMUL_FINISH): Set to arm_elf_finish.
1053 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1055 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1056 (struct ld_emulation_xfer_struct): Use it.
1058 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1060 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1061 additional symbols referenced by newer crt0.o files from HP.
1063 2001-11-12 Anthony Green <green@redhat.com>
1065 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1067 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1069 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1070 * Makefile.in: Regenerate.
1072 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1074 * ld.texinfo: Use @command for commands, @option for options.
1075 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1077 * Makefile.in: Rebuild.
1079 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1081 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1082 Add support for targets.
1084 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1086 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1087 * configure: Regernate.
1088 * po/fr.po: New file.
1089 * po/sv.po: New file.
1091 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1093 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1094 as little endian default and to support big endian.
1096 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1098 * ld.texinfo (Options): Document new option, -nostdlib.
1099 * lexsup.c (OPTION_NOSTDLIB): New definition.
1100 (ld_options): Add entry for "nostdlib".
1101 (parse_args): Handle OPTIONS_NOSTDLIB.
1102 * ldfile.c (ldfile_add_library_path): Don't add directories
1103 to the search path if they weren't specified on the command line
1104 and -nostdlib was specified.
1105 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1107 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1109 * lexsup.c (parse_args): Prevent infinite parsing loop when
1110 "-rpath.a" is specified on the command line.
1111 Replace calls to fprintf with calls to einfo.
1113 2001-10-31 John Marshall <jmarshall@acm.org>
1115 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1116 appear only once across all the linker scripts involved in a link
1117 invocation no longer applies. Make the documentation reflect
1120 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1122 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1124 (sh-*-linux*): Added targ_extra_libpath.
1126 2001-10-31 David Heine <dlheine@tensilica.com>
1128 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1129 for padding statements.
1131 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1133 * configure.tgt (mmix-*-*): New target.
1134 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1135 Add dependencies to match.
1136 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1137 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1138 scripttempl/mmo.sc: New files.
1139 * gen-doc.texi: @set MMIX.
1140 * ld.texinfo: Ditto.
1141 [MMIX] Add MMIX node.
1142 * Makefile.in: Regenerate.
1144 2001-10-29 Kazu Hirata <kazu@hxi.com>
1146 * ldlang.c: Fix a comment typo.
1148 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1150 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1151 entries, and match *-*-linux*.
1153 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1155 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1156 with ldlex_script, ldlex_popstate.
1157 (ifile_p1): Likewise.
1158 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1160 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1161 to 1. Don't BEGIN(SCRIPT).
1162 (lex_redirect): Similarly.
1163 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1165 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1167 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1168 __EH_FRAME_END__ and accept eh frames into data section.
1169 Add ctor and dtor sections.
1171 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1173 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1174 (auto-export): Fix indentation.
1176 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1178 * pe-dll.c (autofilter_objectlist): Add startup objects
1180 (auto-export): Constify char * p.
1181 Extract file basename and use strcmp rather than ststr
1184 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1186 * ldmain.c (get_emulation): Improve comment about the handling
1189 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1191 * po/POTFILES.in: Regenerate.
1193 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1195 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1196 -z nocopyreloc and -z nocombreloc usage strings.
1198 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1200 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1203 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1205 * scripttempl/armaout.sc: Place .bss section after end of aligned
1206 data section to match behaviour of aout code in constructrion of
1209 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1211 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1212 startup files for mingw32 dlls to list.
1214 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1216 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1218 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1220 * configure.tgt (targ): Add arm9e-*-elf.
1222 2001-10-05 H.J. Lu <hjl@gnu.org>
1224 * genscripts.sh: Fix a typo in the last change.
1226 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1228 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1229 -z nocombreloc in usage.
1231 2001-10-03 Jim Blandy <jimb@redhat.com>
1233 * genscripts.sh: Include a comment at the top of each generated
1234 script, explaining its purpose.
1236 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1238 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1239 * NEWS: Mention -z nocopyreloc.
1240 * ld.texinfo (Options): Describe nocopyreloc.
1242 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1244 * configure: Regenerate.
1246 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1248 * ldver.h (ld_program_version): Remove declaration.
1249 * lexsup.c (parse_args): Move printing of copyright message..
1250 * ldver.c (ldversion): .. to here.
1251 Use BFD_VERSION_STRING in place of BFD_VERSION.
1252 (ld_program_version): Remove.
1253 * Makefile.am (Makefile): Depend on bfd/configure.in.
1255 * Makefile.in: Regenerate.
1257 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1259 * Makefile.am: Update dependencies with "make dep-am".
1260 * Makefile.in: Regenerate.
1262 2001-09-29 John Reiser <jreiser@BitWagon.com>
1264 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1265 * lexsup.c: Add --no-define-common commandline option.
1266 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1267 * ldlex.l: Likewise.
1268 * ld.h: Add command_line.inhibit_common_definition.
1269 * ldmain.c (main): Initialize.
1270 * ld.texinfo: Document.
1272 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1274 * ldmisc.c (USE_STDARG): Remove.
1275 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1280 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1281 declarations. Update copyright.
1283 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1285 * pe-dll.c: Remove obsoleted declaration of
1286 pe_get_data_import_dll_name.
1287 (pe_create_import_fixup): Fix thinko.
1289 * ld.texinfo(enable-auto-import): Clarify the explanation.
1291 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1293 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1294 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1295 DLL_SUPPORT controlled code.
1297 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1299 * emultempl/pe.em(pe_data_import_dll): Make static.
1300 (pe_get_data_import_dll_name): New accessor function.
1301 * pe-dll.c(pe_create_import_fixup): call
1302 pe_get_data_import_dll_name() from pe.em, instead of
1303 directly accessing pe_data_import_dll variable from pe.em.
1305 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1307 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1308 (def_file_add_directive): Use ISSPACE instead of isspace.
1309 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1310 isdigit/isxdigit/isalpha/isalnum.
1311 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1312 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1313 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1314 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1316 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1317 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1319 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1320 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1321 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1322 (ctor_prio): Use ISDIGIT instead of isdigit.
1323 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1324 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1325 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1327 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1328 (stricpy): Use TOLOWER instead of isupper/tolower.
1329 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1330 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1331 (lex_warn_invalid): Use ISPRINT instead of isprint.
1332 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1333 (main): For gettext, also set the LC_CTYPE locate facet.
1334 (add_keepsyms_file): Use ISSPACE instead of isspace.
1335 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1336 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1337 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1338 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1339 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1340 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1341 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1342 (quoteput): Use ISSPACE instead of isspace.
1343 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1346 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1348 * deffilep.y (def_stash_module): Constify "name" param.
1350 * pe-dll.c: Replace CONST with const throughout.
1351 (quick_symbol): Constify "n1", "n2", "n3" params.
1352 (make_singleton_name_thunk): Constify "import" param. Make
1353 "buffer_len" a size_t.
1354 (make_import_fixup_entry): Constify "name", "fixup_name",
1355 "dll_symname" params.
1356 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1357 (pe_get32): Likewise.
1358 (pe_implied_import_dll): Likewise.
1360 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1361 (sort_by_section_name): Likewise.
1363 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1364 (make_import_fixup): Cast printf arg, rel->address to long rather
1366 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1368 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1370 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1371 defines BufferSize. Increase buffer size by one.
1373 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1375 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1377 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1379 * configure.tgt: Add arm-openbsd target.
1381 2001-09-12 H.J. Lu <hjl@gnu.org>
1383 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1385 (ALL_64_EMULATIONS): Here.
1386 * Makefile.in: Regenerated.
1388 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1390 * emultempl/pe.em(make_import_fixup): change signature to
1391 take asection as well as arelec; we need this for proper
1392 error reporting. Only call pe_create_import_fixup() if
1393 there is no attempt to add a constant addend to the reloc;
1394 otherwise, report error condition.
1395 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1396 since final argument is a pointer to make_import_fixup().
1397 Change call to cb() to match make_import_fixup() signature.
1398 (make_import_fixup_mark): make buffer_len unsigned.
1399 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1401 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1403 * ld.texinfo: add verbose documentation for auto-import
1404 direct-addressing workaround, to compliment the terse
1407 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1409 * scripttempl/v850.sc: Add gcc_except_table sections.
1411 2001-09-11 Jeffrey A Law (law@cygnus.com)
1413 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1414 * emulparams/h8300self.sh: Similarly.
1416 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1418 * ld.texinfo (Options, --stack): Correct default value for stack
1421 2001-09-05 Tom Rix <trix@redhat.com>
1423 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1425 2001-09-03 Andreas Jaeger <aj@suse.de>
1427 * emultempl/beos.em: Declare prototypes for comparions functions,
1430 2001-09-02 Andreas Jaeger <aj@suse.de>
1432 * emultempl/aix.em: Add missing prototype.
1433 * emultempl/lnk960.em: Likewise.
1434 * emultempl/vanilla.em: Likewise.
1435 * emultempl/armcoff.em: Likewise.
1436 * emultempl/armelf_oabi.em: Likewise.
1437 * emultempl/beos.em: Likewise.
1438 * emultempl/gld960c.em: Likewise.
1439 * emultempl/gld960.em: Likewise.
1441 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1442 for prototype declaration.
1444 2001-08-31 Eric Christopher <echristo@redhat.com>
1445 Jason Eckhardt <jle@redhat.com>
1447 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1449 2001-08-31 Andreas Jaeger <aj@suse.de>
1451 * emultempl/pe.em: Add missing prototypes.
1452 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1453 pe_find_data_imports.
1454 (pr_sym): Add unused attribute.
1456 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1458 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1459 default from coff to elf.
1461 2001-08-29 Jeff Law <law@redhat.com>
1463 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1465 * emulparams/h8300self.sh: Similarly.
1467 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1469 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1471 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1472 * configure.tgt (h8300-*-elf*): New case.
1473 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1474 * emulparams/h8300self.sh: New file.
1475 * Makefile.in: Regenerated.
1477 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1479 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1482 2001-08-27 Linus Nordberg <linus@swox.com>
1483 Alan Modra <amodra@bigpond.net.au>
1485 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1486 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1488 * Makefile.in: Regenerate.
1489 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1490 entries to correct alphabetical position.
1491 * emulparams/elf64ppc.sh: New.
1492 * emulparams/elf64lppc.sh: New.
1494 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1496 * ldmain.c (main): Declare BSIZE as static.
1498 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1500 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1501 into .rel.dyn resp. .rela.dyn if combreloc.
1502 (get_script): If .x linker script is equal to .xn, only put it
1503 once into the binary.
1504 Add .xc and .xsc scripts.
1505 (parse_args): Handle -z combreloc and -z nocombreloc.
1506 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1507 For .xc and .xsc scripts put all .rel* or .rela* input sections
1508 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1509 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1511 Strip trailing whitespace from script.
1512 Generate .xc and .xsc scripts if requested.
1513 * ldmain.c (main): Initialize link_info.combreloc and
1514 link_info.spare_dynamic_tags.
1515 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1516 (ld_options): Add --spare-dynamic-tags option.
1517 (parse_args): Likewise.
1518 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1519 * ldint.texinfo: Document .xc and .xsc linker scripts.
1520 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1522 2001-08-22 H.J. Lu <hjl@gnu.org>
1524 * emulparams/elf32fr30.sh: Add a newline.
1526 2001-08-21 Andreas Jaeger <aj@suse.de>
1528 * deffilep.y: Add missing prototypes.
1529 * pe-dll.c: Likewise.
1531 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1533 * ldlang.c (insert_pad): Fix typos in last patch.
1535 * ldlang.c: When traversing lang_statement_union_type lists,
1536 consistently use "header.next" rather than "next".
1537 * mpw-eppcmac.c: Likewise.
1538 * emultempl/beos.em: Likewise.
1539 * emultempl/hppaelf.em: Likewise.
1540 * emultempl/pe.em: Likewise.
1541 * ldlang.h (union lang_statement_union): Remove "next" field.
1543 * ldlang.c (insert_pad): Use offsetof macro.
1544 (lang_size_sections): Always neuter padding statements.
1545 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1547 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1548 passed to lang_size_sections.
1549 (pe_exe_fill_sections): Likewise.
1550 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1551 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1553 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1555 * emultempl/aix.em: Formatting fixes.
1557 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1559 * ldlang.c (insert_pad): Make use of an existing pad statement if
1560 available. Move code calculating alignment, adjusting section
1561 alignment power, and adjusting dot to ..
1562 (size_input_section): .. here. Remove unused relax param.
1563 (lang_size_sections): Change boolean `relax' param to boolean *.
1564 Adjust call to size_input_section. Make use of insert_pad to
1565 place pad after the assignment statement. If relaxing, zap
1567 (reset_memory_regions): Reset output_bfd section sizes too.
1568 (relax_again): Move to..
1569 (lang_process): ..here. Adjust call to lang_size_sections, and
1570 remove duplicated code.
1571 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1573 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1575 * ld.texinfo: Document that fill values now use the four least
1577 * emulparams/elf32fr30.sh (NOP): Update.
1578 * emulparams/elf32mcore.sh: Likewise.
1579 * emulparams/elf64_s390.sh: Likewise.
1580 * emulparams/elf_i386.sh: Likewise.
1581 * emulparams/elf_i386_be.sh: Likewise.
1582 * emulparams/elf_i386_chaos.sh: Likewise.
1583 * emulparams/elf_i386_ldso.sh: Likewise.
1584 * emulparams/elf_s390.sh: Likewise.
1585 * emulparams/elf_x86_64.sh: Likewise.
1586 * emulparams/i386moss.sh: Likewise.
1587 * emulparams/i386nw.sh: Likewise.
1588 * emulparams/m68kelf.sh: Likewise.
1589 * scripttempl/elf.sc: Update NOP comment.
1590 * scripttempl/elfi370.sc: Likewise.
1591 * scripttempl/elfm68hc11.sc: Likewise.
1592 * scripttempl/elfm68hc12.sc: Likewise.
1593 * scripttempl/nw.sc: Likewise.
1595 2001-08-15 Tom Rix <trix@redhat.com>
1597 * ldgram.y (saved_script_handle): Initialize to NULL.
1598 * ldmain.c (main): Change check on saved_script_handle.
1600 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1602 * emultempl/elf32.em: Formatting fixes.
1603 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1604 looking at sec->owner.
1605 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1606 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1607 unused code, and reorganize orphan section placement code.
1609 * ldlang.c (wild_doit): Rename to lang_add_section.
1610 * ldlang.h: Here too.
1611 * mpw-elfmips.c: And here.
1612 * emultempl/beos.em: And here.
1613 * emultempl/elf32.em: And here.
1614 * emultempl/hppaelf.em: And here.
1615 * emultempl/pe.em: And here.
1617 2001-08-13 Richard Henderson <rth@redhat.com>
1619 * emultempl/needrelax.em: New file.
1620 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1621 * Makefile.am (eelf64_ia64.c): Depend on it.
1622 * Makefile.in: Rebuild.
1624 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1626 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1627 output_section is set non-NULL.
1629 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1630 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1631 needlessly create an output_section_statement. Treat a correctly
1632 named output_section_statement with NULL bfd_section as compatible.
1634 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1636 * emultempl/generic.em: Support EXTRA_EM_FILE.
1637 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1638 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1639 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1640 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1641 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1642 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1643 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1644 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1645 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1646 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1648 2001-08-12 Richard Henderson <rth@redhat.com>
1650 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1651 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1652 scripttempl/v850.sc: Keep .jcr data.
1654 2001-08-12 H.J. Lu <hjl@gnu.org>
1655 Andrew Haley <aph@cambridge.redhat.com>
1656 Nick Clifton <nickc@redhat.com>
1658 * ldgram.y (had_script): Change name to saved_script_handle.
1659 Change type to file handle.
1660 * ld.h (had_script): Rename and retype.
1661 * ldfile.c (ldfile_open_command_file): Save the file handle
1662 used in saved_script_handle.
1663 * lexsup.c (parse_args): Do not allow -c option to alter
1664 saved_script_handle.
1665 * ldmain.c (main): Print out the linker script used if
1666 --verbose is given. Check saved_script_handle to obtain the
1667 external linker script used, or if NULL, dump the builtin
1669 * ld.texinfo: Document that --verbose now dumps the linker
1670 script used, regardless of whether it was an internal or an
1673 2001-08-10 Andreas Jaeger <aj@suse.de>
1675 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1677 * configure: Regenerate.
1679 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1681 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1683 * scripttempl/elf.sc: Move non-text .dynamic section before
1684 .plt/.got/.sdata* group.
1685 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1686 (OTHER_SDATA_SECTIONS): Add.
1687 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1689 * emulparams/crislinux.sh: Likewise.
1690 * emulparams/elf32b4300.sh: Likewise.
1691 * emulparams/elf32bmip.sh: Likewise.
1692 * emulparams/elf32bmipn32.sh: Likewise.
1693 * emulparams/elf32bsmip.sh: Likewise.
1694 * emulparams/elf32btsmip.sh: Likewise.
1695 * emulparams/elf32ebmip.sh: Likewise.
1696 * emulparams/elf32elmip.sh: Likewise.
1697 * emulparams/elf32l4300.sh: Likewise.
1698 * emulparams/elf32lmip.sh: Likewise.
1699 * emulparams/elf32lsmip.sh: Likewise.
1700 * emulparams/elf32ltsmip.sh: Likewise.
1701 * emulparams/elf64bmip.sh: Likewise.
1702 * emulparams/elf64btsmip.sh: Likewise.
1703 * emulparams/elf64ltsmip.sh: Likewise.
1705 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1707 * genscripts.sh: Source the emulparams script before each output
1708 script is generated so that variables like `RELOCATING' may affect
1709 variables defined in the emulparams script.
1711 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1713 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1716 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1717 ie. iterate over wild_statement.section_list.
1718 (gld${EMULATION_NAME}_place_orphan): Likewise.
1720 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1722 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1723 .fini[0-4] sections used by _exit
1724 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1725 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1726 * scripttempl/elfm68hc11.sc: Likewise.
1728 2001-08-03 H.J. Lu <hjl@gnu.org>
1730 * emultempl/beos.em (init): Add the missing initialization.
1732 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1734 * ld.texinfo (Input Section Basics): Clarify ordering of output
1736 * ldlang.c (callback_t): Add wildcard_list param.
1737 (walk_wild_section): Remove "section" param. Rewrite for
1738 lang_wild_statement_type change. Remove unique_section_p test.
1739 (walk_wild_file): Remove "section" param.
1740 (walk_wild): Remove "section" and "file" params.
1741 (lang_gc_wild): Likewise.
1742 (wild): Likewise. Modify for lang_wild_statement_type change.
1743 (wild_sort): Likewise. Add "sec" param.
1744 (gc_section_callback): Likewise.
1745 (output_section_callback): Likewise. Do unique_section_p test.
1746 (map_input_to_output_sections): Modify call to wild.
1747 (lang_gc_sections_1): Likewise.
1748 (print_wild_statement): Modify for lang_wild_statement_type
1750 (lang_add_wild): Replace filename, filenames_sorted param with
1751 filespec. Replace section_name, sections_sorted,
1752 exclude_filename_list with section_list.
1753 * ldlang.h (lang_add_wild): Here too.
1754 (lang_wild_statement_type): Replace section_name, sections_sorted,
1755 and exclude_filename_list with section_list.
1756 * ldgram.y (current_file): Delete.
1757 (%union): Add wildcard_list.
1758 (file_NAME_list): Set type to wildcard_list. Build a linked list
1759 rather than calling lang_add_wild for each entry.
1760 (input_section_spec_no_keep): Call lang_add_wild here instead.
1761 * ld.h (struct wildcard_list): Declare.
1762 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1764 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1766 * ldmain.c (main): initialize link_info.pei386_auto_import
1767 * pe-dll.c: new tables for auto-export filtering
1768 (auto_export): change API, pass abfd for contextual filtering.
1769 Loop thru tables of excluded symbols instead of comparing
1772 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1774 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1775 static variable current_sec (static struct sec *). Add
1776 forward declaration for add_bfd_to_link.
1777 (process_def_file): Don't export undefined symbols. Do not
1778 export symbols starting with "_imp__". Call auto_export()
1780 (pe_walk_relocs_of_symbol): New function.
1781 (generate_reloc): add optional extra debugging
1782 (pe_dll_generate_def_file): eliminate extraneous initial blank
1784 (make_one): enlarge symtab to make room for __nm__ symbols
1785 (DATA auto-import support).
1786 (make_singleton_name_thunk): New function.
1787 (make_import_fixup_mark): New function.
1788 (make_import_fixup_entry): New function.
1789 (pe_create_import_fixup): New function.
1790 (add_bfd_to_link): Specify that 'name' argument is a CONST
1792 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1793 declare new functions pe_walk_relocs_of_symbol and
1794 pe_create_import_fixup.
1795 * emultempl/pe.em: add new options --enable-auto-import,
1796 --disable-auto-import, and --enable-extra-pe-debug.
1797 (make_import_fixup): New function.
1798 (pe_find_data_imports): New function.
1799 (pr_sym): New function.
1800 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1801 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1804 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1806 * ld.texinfo: add additional documentation for
1807 --export-all-symbols. Document --out-implib,
1808 --enable-auto-image-base, --disable-auto-image-base,
1809 --dll-search-prefix, --enable-auto-import, and
1810 --disable-auto-import.
1811 * ldint.texinfo: Add detailed documentation on auto-import
1814 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1816 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1819 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1821 * Makefile.am: Update dependencies with "make dep-am".
1822 * Makefile.in: Regenerate
1824 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1826 * ldcref.c (check_section_sym_xref): New function.
1827 (check_nocrossrefs): Call it.
1828 (check_nocrossref): Interate over h->refs here instead of..
1829 (check_refs): ..here. Pass in the symbol name, section, and bfd
1830 rather than hash_entry pointers.
1831 (struct check_refs_info): Keep symbol name rather than hash entry.
1833 (check_reloc_refs): Tweak for above changes in check_refs_info.
1834 Only report references to section syms when symname is NULL to
1835 prevent duplicate messages for the same reloc.
1837 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1839 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1840 available. Do not print NULL trees.
1841 (exp_print_token): Print unknown tokens with values > 126 as
1842 decimal values not ASCII characters.
1844 * ldlang.c (lang_leave_overlay): If a region is specified assign
1845 it to all sections inside the overlay unless they have been
1846 assigned to the own, non-default, memory region.
1848 * README: Add header for consistency with other README files.
1850 2001-07-14 H.J. Lu <hjl@gnu.org>
1852 * emultempl/elf32.em (output_prev_sec_find): Never return
1853 bfd_abs_section_ptr, bfd_com_section_ptr nor
1854 bfd_und_section_ptr.
1856 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1858 * Makefile.am (em32relf.c): Change dependency from generic.em to
1860 * Makefile.in: Regenerate.
1862 2001-07-14 matthew green <mrg@eterna.com.au>
1864 * configure.tgt (i386-*-netbsdelf*): New target.
1865 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1867 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1869 * emultempl/elf32.em (output_prev_sec_find): New.
1870 (place_orphan): Use it.
1872 2001-07-11 H.J. Lu <hjl@gnu.org>
1874 * ldmain.c (main): Fix typos in the last change.
1876 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1878 * ldmain.c (main): Disallow -F and -f without -shared.
1880 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1882 * emultempl/pe.em (after_open): Check for the output_bfd not
1883 having any coff_data structure allocated to it.
1885 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1887 * emultempl/elf32.em: Do not assuming that contents of the buffer
1888 returned from basename function will remain unchanged accross other
1891 2001-07-03 H.J. Lu <hjl@gnu.org>
1893 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1894 2001-07-03. It creates dynamic entries even for static binaries.
1896 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1898 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1899 (DYNAMIC): Use it to reserve few dynamic entries for
1902 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1904 * emulparams/hppa64linux.sh: New file.
1905 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1906 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1907 (ehppa64linux.c): Add rule to make it.
1909 * Makefile.in: Regenerate.
1911 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1913 * ld.texinfo (Options, -r): Mention restrictions when using
1914 different object formats.
1916 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1918 * ldlang.c (lang_check): Emit fatal error if relocatable link
1919 between different object flavours with relocations in input.
1921 2001-06-19 H.J. Lu <hjl@gnu.org>
1923 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1924 (--version-script): Mention the language support.
1926 2001-06-19 H.J. Lu <hjl@gnu.org>
1928 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1930 2001-06-18 H.J. Lu <hjl@gnu.org>
1932 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1933 (diststuff): Add $(MANS).
1934 * Makefile.in: Regenerated.
1938 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1940 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1941 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1942 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1943 * ld.h (args_type): Remove member export_dynamic. All users
1944 changed to use struct bfd_link_info member.
1946 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1947 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1948 * Makefile.in: Regenerate.
1950 2001-06-18 H.J. Lu <hjl@gnu.org>
1952 * ldlang.c (init_os): Add the newline to the einfo call.
1953 (lang_check): Likewise.
1954 (lang_do_version_exports_section): Likewise.
1956 2001-06-15 H.J. Lu <hjl@gnu.org>
1958 * lexsup.c (parse_args); Save optind to report unrecognized
1961 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1963 * ldlang.c (lang_check): Emit fatal error if relocatable link
1964 between different object flavours.
1966 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1967 Set new link_info member export_dynamic.
1968 * ldmain.c (main): Initialize new link_info member export_dynamic.
1970 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1972 * ldlang.c (walk_wild): Only call walk_wild_file if
1973 lookup_name returns something.
1974 (lookup_name): If load_symbols fails, return NULL.
1975 (load_symbols): Change to a boolean function.
1976 (open_input_bfds): If load_symbols fails then do not make the
1979 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1981 * ldlang.c (record_bfd_errors): Remove.
1983 * emultempl/aix.em: Fix copyright dates.
1985 2001-06-07 Andreas Jaeger <aj@suse.de>
1987 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1988 (TEXT_START_ADDR): Likewise.
1990 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1992 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1994 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1996 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1998 2001-05-31 H.J. Lu <hjl@gnu.org>
2000 * ldlang.c (open_input_bfds): Don't change the bfd error
2001 handler whilst loading symbols.
2003 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2005 * configure.tgt: Remove i370-mvs architecture, it is not currently
2008 2001-05-25 H.J. Lu <hjl@gnu.org>
2010 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2011 like emulparams/aixppc.sh.
2013 2001-05-25 H.J. Lu <hjl@gnu.org>
2015 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2016 setting of output_filename after bfd_scan_arch.
2017 * emultempl/pe.em: Likewise.
2019 2001-05-25 H.J. Lu <hjl@gnu.org>
2021 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2022 like emulparams/aixppc.sh.
2024 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2025 instead of ${srcdir}/emultempl/stringify.sed.
2027 2001-05-25 Timothy Wall <twall@oculustech.com>
2029 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2032 2001-05-25 Alan Modra <amodra@one.net.au>
2034 * configure.host: Replace linuxoldld with linux*oldld.
2035 * configure.tgt: Likewise.
2037 2001-05-24 H.J. Lu <hjl@gnu.org>
2039 * emultempl/stringify.sed: Removed again.
2041 2001-05-24 H.J. Lu <hjl@gnu.org>
2043 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2044 (gld${EMULATION_NAME}_before_parse): Initialize
2045 ldfile_output_architecture, ldfile_output_machine and
2046 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2047 * emultempl/beos.em: Likewise.
2048 * emultempl/elf32.em: Likewise.
2049 * emultempl/linux.em: Likewise.
2050 * emultempl/mipsecoff.em: Likewise.
2051 * emultempl/pe.em: Likewise.
2052 * emultempl/sunos.em: Likewise.
2054 2001-05-24 Tom Rix <trix@redhat.com>
2056 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2057 udate import file format.
2058 (change_symbol_mode) New, same
2059 (is_syscall) New, same
2060 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2061 * emulparams/aixppc64.sh : same
2062 * emulparams/aixrs6.sh : same
2063 * emulparams/ppcmacos.sh : same
2064 * emultempl/aix.em : use strtoull to parse options
2065 * Makefile.am : add eaixppc64 emulation for xcoff64
2066 * Makefile.in : same
2067 * configure.tgt : same
2069 * scripttempl/aix.sc : default text section offset to 0x10000000
2070 default data section offset to 0x20000000
2071 add .sv3264 and .sv64 pseudo sections
2072 loader and debug sections use the currect section offset.
2074 * emultempl/aix.em : Add xcoff64 support
2075 Add -binitfini support
2076 (gld${EMULATION_NAME}_before_parse) -binitfini
2077 (gld${EMULATION_NAME}_parse_args) same
2078 (gld${EMULATION_NAME}_before_allocation) format change for special
2081 * emulparams/aixppc64.sh : New file for xcoff64 support
2083 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2085 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2086 variable to avoid non-portable shell construct.
2088 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2090 * ldmain.c (get_emulation): Add -mips5 command line argument.
2092 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2094 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2095 (ELF_INTERPRETER_NAME): Define it.
2096 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2098 * configure.tgt (targ_emul, targ_extra_emuls)
2099 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2100 as primary, elf_i386 as extra.
2101 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2102 (eelf_i386_ldso.c): New rule.
2103 * Makefile.in: Rebuilt.
2105 2001-05-22 Nick Clifton <nickc@redhat.com>
2107 * lexsup.c (ld_options): Allow -I to be an alias for
2108 --dynamic-linker. This is for Solaris compatability.
2109 * ld.texinfo: Document that -I can be used.
2112 2001-05-16 Alan Modra <amodra@one.net.au>
2114 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2115 whether an input section is the first one assigned to an output
2117 Assorted formatting fixes.
2119 2001-05-14 DJ Delorie <dj@delorie.com>
2121 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2122 * Makefile.in: Ditto.
2124 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2126 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2127 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2129 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2131 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2133 * ldlang.c (lang_process): Call bfd_merge_sections.
2135 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2137 * ldgram.y: Fix typo.
2139 2001-05-03 H.J. Lu <hjl@gnu.org>
2141 * emultempl/elf32.em: Include "libiberty.h".
2142 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2143 basename of the bfd filename.
2144 (gld${EMULATION_NAME}_stat_needed): Likewise.
2145 (gld${EMULATION_NAME}_try_needed): Likewise.
2146 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2148 2001-05-02 H.J. Lu <hjl@gnu.org>
2150 * emultempl/pe.em: Include <ctype.h>.
2152 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2154 * emulparams/elf32openrisc.sh: New file.
2156 * Makefile.am: Add OpenRISC target.
2157 * Makefile.in: Regenerated.
2159 * configure.tgt: Add openrisc-*-* mapping.
2161 2001-05-02 Nick Clifton <nickc@redhat.com>
2163 * emultempl/aix.em: Replace buystring with xstrdup.
2164 * emultempl/beos.em: Replace buystring with xstrdup.
2166 2001-05-02 H.J. Lu <hjl@gnu.org>
2168 * ldfile.c: Include "libiberty.h".
2169 * ldlex.l: Likewise.
2171 * ldmisc.c (buystring): Removed.
2172 * ldmisc.h: Likewise.
2174 * ldfile.c: Replace buystring with xstrdup.
2175 * ldlang.c: Likewise.
2176 * ldlex.l: Likewise.
2177 * ldmain.c: Likewise.
2178 * ldmisc.c: Likewise.
2179 * lexsup.c: Likewise.
2180 * mpw-eppcmac.c: Likewise.
2182 2001-04-30 Andreas Jaeger <aj@suse.de>
2184 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2186 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2188 * ldlang.c (load_symbols): Give emulation a chance
2189 to process unrecognized file before fatal error is
2190 reported, not after.
2192 2001-04-27 Sean McNeil <sean@mcneil.com>
2194 * configure.tgt: Add arm-vxworks target.
2195 * scripttempl/armcoff.sc: Support .text or .data as a section name
2199 2001-04-13 J.T. Conklin <jtc@redback.com>
2201 * ld.texinfo: Document --fatal-warnings.
2204 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2205 warnings have been turned into errors.
2206 * lexsup.c (OPTION_WARN_FATAL): Define.
2207 (ld_options): Entry for --fatal-warnings.
2208 (parse_args): Handle OPTION_WARN_FATAL.
2209 * ld.h (ld_config_type): Add fatal_warnings field.
2211 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2213 * ldmain.c (main): Default to discard_sec_merge.
2214 * lexsup.c (OPTION_DISCARD_NONE): Define.
2215 (ld_options): Add --discard-none.
2216 (parse_args): Handle OPTION_DISCARD_NONE.
2217 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2218 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2219 all its input sections match.
2221 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2223 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2224 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2225 (eelf32ltsmip.c): New target.
2226 (eelf64btsmip.c): Likewise.
2227 (eelf64ltsmip.c): Likewise.
2228 * Makefile.in: Regenerated.
2230 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2232 (mips*-*-linux-gnu*): Likewise.
2234 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2236 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2238 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2241 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2243 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2244 correct value of __Stext here.
2245 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2248 * emulparams/crislinux.sh: Remove FIXME.
2250 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2252 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2253 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2255 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2257 * configure.tgt (cris-*-*): Change default emulation to criself.
2258 (cris-*-*aout*): New rule.
2260 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2262 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2263 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2265 2001-03-26 Andreas Jaeger <aj@suse.de>
2267 * ld.texinfo (Overview): Fix syntax in texi code.
2269 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2271 * ld.texinfo: Put @c man indications to generate the ld man page.
2272 When generating man, define all the variables. Define SEEALSO
2273 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2274 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2275 (ld.1): Generate from ld.texinfo.
2276 * Makefile.in: Regenerate.
2278 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2280 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2281 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2283 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2285 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2286 is an absolute path look only for this file and not along the path.
2288 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2290 * emultempl/elf32.em (OPTION_GROUP): New macro.
2291 Add new option Bgroup to longopts.
2292 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2293 (gld*_list_options): Add -Bgroup and -z defs.
2294 * ld.1: Document -Bgroup and -z defs.
2295 * ld.texinfo: Likewise.
2297 2001-03-07 Michael Meissner <meissner@redhat.com>
2299 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2300 with sections created by -fdata-sections.
2301 (.dynbss,.bss): Ditto.
2303 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2305 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2306 after_allocation_default, not gld..._before_allocation.
2308 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2310 * configure.in (BFD_VERSION): New.
2311 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2312 * configure: Regenerate.
2313 * Makefile.am: Run "make dep-am"
2314 * Makefile.in: Regenerate.
2316 2001-02-26 Timothy Wall <twall@cygnus.com>
2318 * emulparams/elf64_aix.sh: Add additional read-only sections;
2319 uncomment lines which are now required.
2321 2001-02-26 H.J. Lu <hjl@gnu.org>
2323 * ldlang.c (open_input_bfds): Set the bfd error handler so
2324 that problems can be caught whilst loading symbols.
2325 (record_bfd_errors): New function: Report BFD errors and mark
2326 the executable output as being invalid.
2328 2001-02-22 Timothy Wall <twall@cygnus.com>
2330 * configure.host: Add configuration for ia64-*-aix*.
2331 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2332 Add dependencies for eelf64_aix.c.
2333 * Makefile.in: Regenerate.
2334 * configure.tgt: Add ia64-*-aix* mapping.
2335 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2336 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2339 2001-02-20 H.J. Lu <hjl@gnu.org>
2341 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2342 false if we found the file.
2344 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2346 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2347 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2349 2001-02-18 lars brinkhoff <lars@nocrew.org>
2351 * Makefile.am: Add PDP-11 target.
2352 * configure.tgt: Likewise.
2353 * emulparams/pdp11.sh: New file.
2355 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2357 * configure.host: Add a generic FreeBSD configuration entry such that
2358 all [modern] FreeBSD systems on all platforms will look the same.
2360 2001-02-14 H.J. Lu <hjl@gnu.org>
2362 * configure.tgt: Remove mention of earmelf_linux26.
2364 2001-02-13 Richard Henderson <rth@redhat.com>
2366 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2368 2001-02-13 H.J. Lu <hjl@gnu.org>
2370 * ldexp.h (node_type): Add etree_provided.
2371 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2372 type to etree_provided if defined by PROVIDE. Allow updating
2374 (exp_print_tree): Handle etree_provided.
2375 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2378 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2380 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2381 .IA_64.unwind.* pattern to unwind table section and
2382 .IA_64.unwind_info* pattern to unwind info section.
2384 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2386 * Makefile.am: Add linux target for S/390.
2387 * Makefile.in: Likewise.
2388 * configure.host: Likewise.
2389 * configure.tgt: Likewise.
2390 * emulparams/elf64_s390.sh: New file.
2391 * emulparams/elf_s390.sh: New file.
2393 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2395 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2397 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2399 2001-02-06 Philip Blundell <philb@gnu.org>
2401 * Makefile.am: Remove mention of earmelf_linux26.
2402 * Makefile.in: Regenerate.
2404 2001-02-04 Philip Blundell <philb@gnu.org>
2406 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2407 * emulparams/armelf_linux26.sh: Delete.
2408 * configure.tgt: Remove mention of armelf_linux26 emulation.
2410 2001-02-01 Nick Clifton <nickc@redhat.com>
2412 * ld.1: Replace occurances of -oformat with --oformat.
2414 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2416 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2417 load_base is specified.
2419 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2421 * emultempl/elf32.em: Correct spelling in comments and listed
2424 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2426 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2427 default for the first section of a group of overlay sections.
2429 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2431 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2432 * Makefile.in: Regenerate.
2433 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2434 Check for null tool_dir.
2436 2001-01-16 Jim Wilson <wilson@redhat.com>
2438 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2439 and IA_64.unwind.info.
2441 2001-01-16 H.J. Lu <hjl@gnu.org>
2443 * ldlang.c (lang_check): Merge the private data only if the
2444 input file has contents.
2446 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2448 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2450 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2451 enabling search for libmilli. On a relocatable link, make .text
2453 (LDEMUL_AFTER_PARSE): Define.
2454 (hppaelf_finish): Correct spelling of relocatable in comments.
2456 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2457 rummage through the script for sections on the unique list.
2458 Correct length of strncmp for ".note".
2459 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2461 * ldlang.c (unique_section_list): New var.
2462 (unique_section_p): New function.
2463 (walk_wild_section): Don't match sections on unique_section_list.
2464 (lang_add_unique): New function.
2465 Correct spelling of relocatable in comments.
2467 * ldlang.h (struct unique_sections): Declare.
2468 (unique_section_list): Declare.
2469 (unique_section_p): Declare.
2470 (lang_add_unique): Declare.
2472 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2473 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2475 * ld.texinfo (--unique): Update.
2477 2001-01-13 Nick Clifton <nickc@redhat.com>
2479 * lexsup.c (parse_args): Remove spurious white space.
2481 2001-01-12 Nick Clifton <nickc@redhat.com>
2483 * lexsup.c (parse_args): Update copyright date.
2485 2001-01-12 Philip Blundell <pb@futuretv.com>
2487 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2489 2001-01-10 Kazu Hirata <kazu@hxi.com>
2491 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2492 * scripttempl/h8300h.sc: Fix formatting.
2493 * scripttempl/h8300s.sc: Likewise.
2494 * scripttempl/h8500.sc: Likewise.
2495 * scripttempl/h8500b.sc: Likewise.
2496 * scripttempl/h8500c.sc: Likewise.
2497 * scripttempl/h8500m.sc: Likewise.
2498 * scripttempl/h8500s.sc: Likewise.
2500 2000-01-07 David O'Brien <obrien@BSDi.com>
2502 * emultempl/elf32.em: Only perform Linux ld hints processing when
2505 2001-01-07 Philip Blundell <philb@gnu.org>
2507 * ld.texinfo (Bug Reporting): Update email address for reports.
2509 2000-12-31 Nick Clifton <nickc@redhat.com>
2511 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2512 options by checking for a return value of '?' not -1.
2514 2000-12-28 Nick Clifton <nickc@redhat.com>
2516 * lexsup.c (struct ld_option): Add new enum value:
2518 (ld_options[]): Change -omagic, -output and -oformat options
2519 to be EXACTLY_TWO_DASHES.
2520 (OUTPUT_COUNT): Use ARRAY_SIZE.
2521 (parse_args): Change parameter 'argc' to unsigned.
2522 Place EXACTLY_TWO_DASHES options into new really_longopts
2524 If getopt_long_only fails, try calling getopt_long using the
2525 really_longopts array.
2526 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2529 * ldlex.h: Fix prototype of parse_args.
2531 * ld.texinfo: Document that long options starting with 'o'
2532 must be preceeded by two dashes. Change example of a single
2533 dashed long option from -oformat to -trace-symbol.
2535 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2537 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2538 (longopts[]): New --no-default-excludes option.
2539 (gld_${EMULATION_NAME}_list_options): Document.
2540 (gld_${EMULATION_NAME}_parse_args): Handle.
2542 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2544 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2545 whitespace, it breaks the K&R C preprocessor.
2547 2000-12-11 DJ Delorie <dj@redhat.com>
2549 * ld.texinfo: Add notes about --whole-archive and gcc.
2551 2000-11-18 Fred Fish <fnf@be.com>
2553 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2554 (ld_options): Entry for --allow-shlib-undefined.
2555 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2556 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2558 * ld.texinfo: Document new command line switch.
2560 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2562 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2563 .fixup is actually read/write.
2564 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2565 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2566 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2568 2000-12-11 Jan Hubicka <jh@suse.cz>
2570 * NEWS: Add note about x86_64 architecture.
2572 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2574 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2575 Set DWARF2 sections to a VMA of zero.
2577 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2579 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2581 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2582 (sparc*-*-rtems*): Switched from a.out to ELF.
2584 2000-11-30 Jan Hubicka <jh@suse.cz>
2586 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2587 (eelf_x86_64.c): New.
2588 * Makefile.in: Regenerate.
2589 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2590 * emulparams/elf_x86_64.sh: New.
2592 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2594 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2595 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2597 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2598 merging non-a.out sections into CONSTRUCTING.
2600 2000-11-28 Nick Clifton <nickc@redhat.com>
2602 * ld.1 (COPYING): Mention that the GNU Free Documentation
2603 License is present in the sources, but not the output, and
2604 also available from the GNU website.
2605 (GNU Free Documentation License): Comment out this section.
2607 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2609 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2612 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2614 * ld.1: Remove old date so it does not give the impression the manpage
2617 2000-11-24 Nick Clifton <nickc@redhat.com>
2619 * configure.tgt (xscale-coff): Add target.
2620 (xscale-elf): Add target.
2622 2000-11-24 Fred Fish <fnf@be.com>
2624 * ldmain.c (main): Remove redundant init of config.make_executable
2627 2000-11-15 Richard Henderson <rth@redhat.com>
2629 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2631 2000-11-14 Kazu Hirata <kazu@hxi.com>
2633 * scripttempl/h8300.sc: Fix formatting.
2634 * scripttempl/h8300h.sc: Likewise.
2635 * scripttempl/h8300s.sc: Likewise.
2637 2000-11-14 Denis Chertykov <denisc@overta.ru>
2639 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2641 2000-11-09 Philip Blundell <pb@futuretv.com>
2643 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2644 around orphan sections whose names can be represented in C.
2646 2000-11-07 Jim Wilson <wilson@redhat.com>
2648 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2649 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2651 2000-11-06 Nick Clifton <nickc@redhat.com>
2653 * ld.texinfo: Add GNU Free Documentation License.
2654 * ldint.texinfo: Add GNU Free Documentation License.
2655 * ld.1: Add GNU Free Documentation License.
2657 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2659 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2660 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2662 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2663 Move 2000-11-02 Makefile.in changes to this file.
2664 * Makefile.in: Regenerate.
2666 2000-11-03 Nick Clifton <nickc@redhat.com>
2668 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2669 constructors and destructors.
2670 * scripttempl/h8300h.sc: Ditto.
2671 * scripttempl/h8300s.sc: Ditto.
2672 * scripttempl/h8500.sc: Ditto.
2673 * scripttempl/h8500b.sc: Ditto.
2674 * scripttempl/h8500c.sc: Ditto.
2675 * scripttempl/h8500m.sc: Ditto.
2676 * scripttempl/h8500s.sc: Ditto.
2677 * scripttempl/v850.sc: Ditto.
2678 * scripttempl/w65.sc: Ditto.
2679 * scripttempl/z8000.sc: Ditto.
2681 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2683 * Makefile.in (e_i386_chaos.c): New rule.
2684 (ALL_EMULATIONS): Added e_i386_chaos.o.
2685 * emulparams/elf_i386_chaos.sh: New file.
2686 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2688 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2690 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2691 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2692 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2693 library path suffix.
2694 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2696 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2698 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2699 for consecutive sections.
2701 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2703 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2705 * ld.texinfo: Added notes about this new option.
2707 2000-10-16 Nick Clifton <nickc@redhat.com>
2709 * emultempl/pe.em (_after_open): Add tests of return values from
2710 bfd functions. Emit appropriate error messages if necessary.
2712 2000-10-13 Nick Clifton <nickc@redhat.com>
2714 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2715 local variables - they are not used, but leave in the call to
2716 bfd_canonicalize_symtab.
2717 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2718 pe_dll_search_prefix.
2720 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2722 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2723 (longopts): New --dll-search-prefix option.
2724 (gld_${EMULATION_NAME}_list_options): Document.
2725 (gld_${EMULATION_NAME}_parse_args): Handle.
2726 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2727 dynamically, search for a dll named '<prefix><basename>.dll'
2728 in preference to 'lib<basename>.dll' if --dll-search-prefix
2731 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2733 * ldlang.c (section_already_linked): Set kept_section instead of
2736 2000-10-10 Kazu Hirata <kazu@hxi.com>
2738 * deffile.h: Fix formatting.
2739 * lexsup.c: Likewise.
2742 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2744 * pe-dll.c (make_one): Do not generate code thunk for DATA
2746 (process_def_file): deduce DATA flag for auto-export sumbols.
2748 2000-10-09 Kazu Hirata <kazu@hxi.com>
2750 * ld.h: Fix formatting.
2751 * ldcref.c: Likewise.
2752 * ldctor.h: Likewise.
2753 * ldemul.c: Likewise.
2754 * ldemul.h: Likewise.
2755 * ldexp.c: Likewise.
2756 * ldexp.h: Likewise.
2757 * ldfile.c: Likewise.
2758 * ldfile.h: Likewise.
2759 * ldlang.c: Likewise.
2760 * ldlang.h: Likewise.
2761 * ldmain.c: Likewise.
2762 * pe-dll.c: Likewise.
2764 * pe-dll.c: Revert some formatting fixes.
2766 2000-10-08 Kazu Hirata <kazu@hxi.com>
2768 * pe-dll.c: Fix formatting.
2770 2000-10-05 Kazu Hirata <kazu@hxi.com>
2772 * ldlang.c: Fix formatting.
2774 2000-10-03 DJ Delorie <dj@redhat.com>
2776 * pe-dll.c (fill_edata): initialize entire block
2777 (make_one): fill in correct section.
2779 2000-10-03 Kazu Hirata <kazu@hxi.com>
2781 * ldexp.c: Fix formatting.
2783 2000-10-02 DJ Delorie <dj@redhat.com>
2785 * emultempl/pe.em (gld_*_after_open): detect case where there two
2786 import libraries for same dll; rename one to ensure proper link
2789 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2791 (generate_edata): fix typo
2793 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2795 * scripttempl/crisaout.sc (ENTRY): Now __start.
2796 (.text): Add default setting for __start.
2797 Remove CONSTRUCTORS handling.
2798 (/DISCARD/): Add .gnu.warning.*.
2799 * emulparams/crislinux.sh (ENTRY): Now __start.
2800 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2801 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2802 (ENTRY): Now __start.
2803 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2804 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2806 2000-09-29 Kazu Hirata <kazu@hxi.com>
2808 * deffile.h: Fix formatting.
2810 * ldcref.c: Likewise.
2811 * ldctor.c: Likewise.
2812 * ldctor.h: Likewise.
2813 * ldemul.c: Likewise.
2814 * ldemul.h: Likewise.
2815 * ldexp.c: Likewise.
2816 * ldexp.h: Likewise.
2817 * ldfile.c: Likewise.
2818 * ldfile.h: Likewise.
2819 * ldlang.c: Likewise.
2820 * ldlang.h: Likewise.
2821 * lexsup.c: Likewise.
2823 * pe-dll.c: Likewise.
2825 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2827 * pe-dll.c (process_def_file): Uninitialized data wasn't
2828 exported with --export-all-symbols switch.
2830 2000-09-28 DJ Delorie <dj@redhat.com>
2832 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2833 noname work properly.
2835 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2837 * ld.texinfo (HPPA ELF32): New section.
2839 * emultempl/hppaelf.em (group_size): New.
2840 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2841 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2842 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2843 options to prevent abbreviations matching.
2844 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2845 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2847 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2849 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2850 on the m68*-*-elf target. Make it support COFF input objects.
2852 2000-09-21 Kazu Hirata <kazu@hxi.com>
2854 * ldmain.c: Fix formatting.
2855 * ldmisc.c: Likewise.
2856 * ldver.c: Likewise.
2857 * ldwrite.c: Likewise.
2859 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2861 * ldwrite.c (clone_section): Silence gcc warnings.
2863 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2865 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2866 out of memory failure.
2868 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2869 (clone_section): Handle out of memory failures. Rename var to
2870 avoid c++ reserved word.
2872 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2874 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2875 stub_name param to stub_sec_name.
2876 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2878 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2880 * emultempl/m68kelf.em: New file.
2881 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2882 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2883 * Makefile.in: Regenerate.
2885 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2887 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2890 2000-09-13 Nick Clifton <nickc@redhat.com>
2892 * ldmain.c (multiple_definition): Disable relaxation if
2893 multiple symbol definitions are encountered - otherwise the
2894 linker could abort with an assertion failure.
2896 2000-09-10 Nick Clifton <nickc@redhat.com>
2898 * mri.c: Fix formatting.
2900 2000-09-07 H.J. Lu <hjl@gnu.org>
2902 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2903 * configure: Rebuild.
2905 2000-09-07 H.J. Lu <hjl@gnu.org>
2907 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2908 * Makefile.in: Rebuild.
2910 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2912 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2913 broken list handling. Create __start_SECNAME and __stop_SECNAME
2914 when no place-holder. Add some comments. Test both SEC_CODE and
2915 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2916 Handle case where no output section statement created.
2918 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2920 * configure.tgt (sh-*-linux*): Added.
2921 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2922 * Makefile.in: Rebuilt.
2923 * emulparams/shelf_linux.sh: New file.
2924 * emulparams/shlelf_linux.sh: New file.
2926 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2928 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2929 try shuffling sections when the orphan happens to be the place
2930 holder. Keep count of unique section names generated so we speed
2931 the search for a new name.
2933 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2935 * configure: Rebuilt with new libtool.m4.
2937 2000-09-05 Nick Clifton <nickc@redhat.com>
2939 * Makefile.in: Regenerate.
2940 * aclocal.m4: Regenerate.
2941 * configure: Regenerate.
2942 * config.in: Regenerate.
2943 * po/ld.pot: Regenerate.
2945 * ldint.texinfo: Remove CVS revision marker - it foils local
2948 * emultempl/ticoff.em: Remove extraneous comma.
2950 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2952 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2953 to stub section flags.
2954 (hppa_for_each_input_file_wrapper): New.
2955 (hppa_lang_for_each_input_file): New.
2956 (lang_for_each_input_file): Define to call above.
2957 (multi_subspace): New.
2958 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2959 (PARSE_AND_LIST_PROLOGUE): Define.
2960 (PARSE_AND_LIST_LONGOPTS): Define.
2961 (PARSE_AND_LIST_OPTIONS): Define.
2962 (PARSE_AND_LIST_ARGS_CASES): Define.
2963 (hppaelf_finish): Call elf32_hppa_set_gp.
2964 (hppaelf_set_output_arch): Remove.
2965 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2967 * emulparams/hppalinux.sh (ELFSIZE): Define.
2969 (OTHER_READONLY_SECTIONS): Define.
2971 (GENERATE_SHLIB_SCRIPT): Define.
2973 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2974 to const throughout. Change `void *' to `PTR' throughout.
2975 (lang_memory_default): Function is local to file, add `static'.
2977 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2978 (ehppalinux.c): Likewise.
2979 (earmelf.c): Likewise.
2980 (earmelf_linux.c): Likewise.
2981 (earmelf_linux26.c): Likewise.
2982 * Makefile.in: Regenerate.
2984 * ld.h (ld_config_type): Add unique_orphan_sections.
2985 * lexsup.c (OPTION_UNIQUE): Define.
2986 (ld_options): Add "--unique".
2987 (parse_args): Handle it.
2988 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2989 search for an existing output section if unique_orphan_sections is
2990 set. Make use of bfd_get_unique_section_name rather than
2991 duplicating code here.
2992 * ld.texinfo: Describe --unique.
2994 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2995 optional arg to split-by-file.
2996 (parse_args): Handle them.
2997 * ld.texinfo: Update description of these options.
2998 * ldwrite.c (clone_section): Pass in the section name. Replace
2999 local code with bfd_get_unique_section_name.
3000 (split_sections): Tidy code and comments. Use a list traversal
3001 more appropriate to the list construction. Handle cooked section
3002 sizes. Split when split_by_reloc reached rather than exceeded.
3003 Track section size and split when split_by_file reached. Fix
3004 link_order_tail (even though it's not used).
3005 (ldwrite): Modify condition for calling split_sections to suit
3006 changed split_by_reloc and split_by_file.
3007 * ldmain.c (main): Init config.split_by_reloc and
3008 config.split_by_file to -1.
3009 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3010 Change split_by_file to bfd_size_type.
3012 2000-09-02 Nick Clifton <nickc@redhat.com>
3014 * configure.in: Increase version number to 2.10.91.
3015 * NEWS: Mention new ability to support removal of duplicate DWARF2
3017 * configure: Regenerate.
3018 * aclocal.m4: Regenerate.
3019 * config.in: Regenerate.
3021 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3023 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3025 * scripttempl/elf32avr.sc: Ditto.
3026 * scripttempl/elfd10v.sc: Ditto.
3027 * scripttempl/elfd30v.sc: Ditto.
3028 * scripttempl/elfi370.sc: Ditto.
3029 * scripttempl/elfm68hc11.sc: Ditto.
3030 * scripttempl/elfm68hc12.sc: Ditto.
3031 * scripttempl/elfi386beos.sc: Ditto.
3032 * scripttempl/v850.sc: Ditto.
3034 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3036 * acinclude.m4: Include libtool and gettext macros from the
3038 * aclocal.m4, configure: Rebuilt.
3040 2000-08-25 Nick Clifton <nickc@redhat.com>
3042 * ldlang.c (open_output): When choosing the target for a
3043 particular endianness, do nothing if the target is not
3046 2000-08-25 H.J. Lu <hjl@gnu.org>
3048 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3049 check -rpath nor LD_RUN_PATH for cross link.
3050 * ld.texinfo: Document the change.
3052 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3054 * NEWS: Mention support for CRIS.
3056 2000-08-23 H.J. Lu <hjl@gnu.org>
3058 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3059 the current runpath list from bfd_elf_get_runpath_list ()
3062 2000-08-22 H.J. Lu <hjl@gnu.org>
3064 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3065 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3066 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3067 trace_file_tries is non-zero.
3068 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3069 if trace_file_tries is non-zero.
3071 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3074 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3076 * NEWS: Mention i860 support.
3078 2000-08-14 Andreas Schwab <schwab@suse.de>
3080 * scripttempl/elf.sc: Fix last change to use correct comment
3083 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3085 * scripttempl/elf.sc: Add a comment giving the correspondence
3086 between sections, per-datum sections, and linkonce sections. Make
3087 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3090 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3092 * emulparams/elf32_i860.sh: New file.
3093 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3094 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3095 (eelf32_i860.c): New rule.
3096 * Makefile.in: Regenerate.
3098 2000-08-10 Nick Clifton <nickc@cygnus.com>
3100 * emulparams/mipspe.sh (ENTRY): Add definition.
3102 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3104 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3107 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3109 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3110 the final size of .bss section.
3111 * scripttempl/elfm68hc12.sc: Likewise.
3113 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3115 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3116 gld${EMULATION_NAME}_parse_args for consistency. Combine
3117 lastoptind and prevoptind vars, and keep track of last optind.
3118 (gld_${EMULATION_NAME}_list_options): Rename to
3119 gld${EMULATION_NAME}_list_options.
3121 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3123 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3124 (i586-sco-sysv5uw7.1.0).
3126 2000-07-27 H.J. Lu <hjl@gnu.org>
3128 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3129 (PARSE_AND_LIST_PROLOGUE): New.
3130 (PARSE_AND_LIST_LONGOPTS): Likewise.
3131 (PARSE_AND_LIST_OPTIONS): Likewise.
3132 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3133 (PARSE_AND_LIST_EPILOGUE): Likewise.
3135 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3137 * emultempl/armelf.em: Elide functions common to elf32.em,
3138 ie. most of the file.
3139 (arm_elf_after_open): New. Do arm specific things then call
3140 gld${EMULATION_NAME}_after_open.
3141 (arm_elf_before_allocation): New. Call
3142 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3143 (PARSE_AND_LIST_PROLOGUE): Define.
3144 (PARSE_AND_LIST_SHORTOPTS): Define.
3145 (PARSE_AND_LIST_LONGOPTS): Define.
3146 (PARSE_AND_LIST_OPTIONS): Define.
3147 (PARSE_AND_LIST_ARGS_CASES): Define.
3148 (LDEMUL_AFTER_OPEN): Define.
3149 (LDEMUL_BEFORE_ALLOCATION): Define.
3150 (LDEMUL_BEFORE_PARSE): Define.
3151 (LDEMUL_FINISH): Define.
3153 * emultempl/hppaelf.em: Similarly zap most of this file.
3154 (hppaelf_add_stub_section): Prototype.
3155 (hppaelf_layaout_sections_again): Prototype.
3156 (hook_in_stub): Prototype.
3157 (LDEMUL_SET_OUTPUT_ARCH): Define.
3158 (LDEMUL_FINISH): Define.
3159 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3161 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3162 (EXTRA_EM_FILE): New.
3163 * emulparams/armelf_linux.sh: Likewise.
3164 * emulparams/armelf_linux26.sh: Likewise.
3165 * emulparams/hppalinux.sh: Likewise.
3166 * emulparams/hppaelf.sh: Likewise.
3169 * emultempl/elf32.em: Fix formatting.
3170 (EXTRA_EM_FILE): Source it.
3171 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3172 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3173 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3174 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3175 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3176 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3177 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3178 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3179 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3180 allow functions in this file to be overridden.
3181 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3183 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3185 * emultempl/elf32.em: Reorganize file.
3187 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3189 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3190 specific option to fit 64-bit executable in the lower
3191 31-bit address range. This is done by changing start
3192 address of .interp (the very first section of executable)
3193 and then setting EF_ALPHA_32BIT elf header flag.
3195 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3197 * emultempl/m68kcoff.em: New file.
3198 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3199 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3201 * Makefile.in: Regenerate.
3203 2000-07-20 H.J. Lu <hjl@gnu.org>
3205 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3206 and "disable-new-dtags" to stop getopt from treating -d/-e as
3207 abbreviations for these options.
3209 2000-07-20 H.J. Lu <hjl@gnu.org>
3211 * ld.texinfo: Add documentation for --disable-new-dtags and
3214 * ldmain.c (main): Initialize link_info.new_dtags to false.
3216 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3217 --disable-new-dtags and --enable-new-dtags.
3218 (gld_${EMULATION_NAME}_list_options): Likewise.
3220 2000-07-05 Kenneth Block <krblock@computer.org>
3222 * lexsup.c: Add optional style to demangle switch
3223 * ld.texinfo: Document optional style to demangle switch.
3225 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3227 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3229 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3230 Regenerate dependencies.
3231 * Makefile.in: Rebuild.
3232 * configure.tgt (cris-*-*): New target.
3233 * emulparams/crisaout.sh, emulparams/criself.sh,
3234 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3235 * po/POTFILES.in, po/ld.pot: Regenerate.
3237 2000-07-20 H.J. Lu <hjl@gnu.org>
3239 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3240 Print out ignored -z options.
3242 2000-07-19 H.J. Lu <hjl@gnu.org>
3244 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3245 (PARSE_AND_LIST_PROLOGUE): New.
3246 (PARSE_AND_LIST_LONGOPTS): Likewise.
3247 (PARSE_AND_LIST_OPTIONS): Likewise.
3248 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3250 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3252 * lexsup.c (ld_options): Comment out 'z'.
3253 (parse_args): Likewise.
3255 * emultempl/elf32.em: Include "elf/common.h".
3256 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3258 (gld_${EMULATION_NAME}_list_options): Likewise.
3260 * ld.texinfo: Add documentation for the recognized -z options.
3262 2000-07-19 H.J. Lu <hjl@gnu.org>
3264 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3265 bfd_elf_set_dt_needed_soname ().
3267 2000-07-18 DJ Delorie <dj@cygnus.com>
3269 * pe-dll.c (pe_dll_id_target): check object target name also
3271 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3273 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3274 ${INIT_END} if relocating.
3275 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3277 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3279 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3280 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3281 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3282 errors introduced by the old dynamic lib search order.
3284 2000-07-17 DJ Delorie <dj@cygnus.com>
3286 * pe-dll.c (process_def_file): auto-export data items also
3287 (pe_process_import_defs): also see if _imp_ form needed
3289 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3291 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3292 for dll import libraries
3294 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3296 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3297 gcc 2.95.2 and later.
3299 2000-07-11 Kazu Hirata <kazu@hxi.com>
3301 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3304 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3306 * ldemul.h (struct lang_input_statement_struct): Remove forward
3308 (struct search_dirs): Likewise.
3309 * ldfile.h (struct lang_input_statement_struct): Likewise.
3310 Protect file from multiple inclusion.
3311 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3312 declaration from macro to file scope.
3314 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3315 * ldgram.y: Likewise here.
3316 * ldlang.c: And here.
3317 * ldmain.c: And here.
3318 * mpw-elfmips.c: And here.
3319 * mpw-eppcmac.c: And here.
3320 * emultempl/aix.em: And here.
3321 * emultempl/armcoff.em: And here.
3322 * emultempl/armelf.em: And here.
3323 * emultempl/armelf_oabi.em: And here.
3324 * emultempl/beos.em: And here.
3325 * emultempl/elf32.em: And here.
3326 * emultempl/hppaelf.em: And here.
3327 * emultempl/linux.em: And here.
3328 * emultempl/lnk960.em: And here.
3329 * emultempl/pe.em: And here.
3330 * emultempl/sunos.em: And here.
3331 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3332 * mpw-idtmips.c: Ditto.
3333 * emultempl/generic.em: Ditto.
3334 * emultempl/gld960.em: Ditto.
3335 * emultempl/gld960c.em: Ditto.
3336 * emultempl/mipsecoff.em: Ditto.
3337 * emultempl/ticoff.em: Ditto.
3338 * emultempl/vanilla.em: Ditto.
3340 * pe-dll.c: Include ldfile.h
3341 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3343 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3344 arguments to bfd_elf32_size_dynamic_sections call.
3345 (gldelf32ebmip_place_orphan): Add missing arguments to
3346 lang_leave_output_section_statement call.
3348 2000-07-10 H.J. Lu <hjl@gnu.org>
3350 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3352 (strhash): Likewise.
3353 (compute_dll_image_base): Likewise.
3354 (pe_undef_found_sym): Likewise.
3355 (pe_undef_cdecl_match): Likewise.
3356 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3357 argument "arch" with ATTRIBUTE_UNUSED.
3359 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3361 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3363 From Ryan Bradetich <rbradetich@uswest.net>
3364 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3366 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3368 Changes to create multiple linker stubs, positioned immediately
3369 before the section where they are required.
3370 * emultempl/hppaelf.em: Include elf32-hppa.h.
3371 (stub_sec, file_chain): Delete.
3372 (hppaelf_create_output_section_statements): Don't make a stub
3374 (hook_stub_info): New struct.
3375 (hook_in_stub): New function.
3376 (hppaelf_add_stub_section): New function.
3377 (hppaelf_finish): Do nothing for relocateable links. Modify the
3378 call to elf32_hppa_size_stubs. Move code for updating section
3380 (hppaelf_layaout_sections_again): ..to here, a new function.
3382 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3383 broken list handling. Pass in a pointer to the list.
3384 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3386 (hppaelf_before_parse): Prototype.
3387 (hppaelf_set_output_arch): Prototype.
3388 (hppaelf_create_output_section_statements): Prototype.
3389 (hppaelf_delete_padding_statements): Prototype.
3390 (hppaelf_finish): Prototype.
3393 * emultempl/hppaelf.em: Include ctype.h.
3394 (struct orphan_save): New.
3395 (gld${EMULATION_NAME}_place_orphan): New.
3396 (output_rel_find): New.
3397 (hppaelf_get_script): Update from elf32.em.
3398 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3399 Change emulation_name field to "${EMULATION_NAME}". Add
3400 gld${EMULATION_NAME}_place_orphan.
3402 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3403 ehppalinux.o, sort it. Regenerate dependencies.
3404 (ehppalinux.c): Depend on hppaelf.em
3405 * Makefile.in: Regenerate.
3407 * configure.tgt: targ_emul=hppalinux for hppa*linux
3409 * emulparams/hppalinux.sh: New.
3410 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3412 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3414 * lexsup.c (parse_args): Copy section name.
3416 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3418 * emultempl/pe.em: institute the following search order for
3419 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3420 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3421 static lib (libfoo.a) if none of the above are found.
3423 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3425 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3426 (longopts): New --{enable,disable}-auto-image-base options.
3427 (gld_${EMULATION_NAME}_list_options): Document.
3428 (gld_${EMULATION_NAME}_parse): Handle.
3429 (strhash): New static function.
3430 (compute_dll_image_base): New static function.
3431 (gld_${EMULATION_NAME}_set_symbols): Use.
3433 2000-07-05 DJ Delorie <dj@redhat.com>
3437 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3439 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3440 * emulparams/elf32btsmip.sh: New file.
3441 * Makefile.am: Add traditional mips target.
3442 * Makefile.in: Rebuild.
3444 2000-07-01 H.J. Lu <hjl@gnu.org>
3446 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3447 automake to use YLWRAP.
3448 * Makefile.in: Rebuild.
3450 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3452 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3453 (CLEANFILES): Add DEPA.
3454 * Makefile.in: Regenerate.
3456 2000-06-30 Timothy Wall <twall@ppc>
3458 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3459 the page in the upper octet of the address.
3461 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3463 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3465 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3467 * NEWS: arm-elf does --gc-sections too.
3469 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3471 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3473 * Makefile.in: Regenerate.
3475 2000-06-21 H.J. Lu <hjl@gnu.org>
3477 * Makefile.am: Rebuild dependency.
3478 * Makefile.in: Rebuild.
3480 2000-06-20 H.J. Lu <hjl@gnu.org>
3482 * Makefile.am: Rebuild dependency.
3483 * Makefile.in: Rebuild.
3485 2000-06-20 Timothy Wall <twall@cygnus.com>
3487 * scripttempl/tic54xcoff.sc: New.
3488 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3489 * gen-doc.texi: Add flag for TI COFF.
3490 * ld.texinfo: Add documentation for TI COFF handling switches.
3491 * emultempl/ticoff.em: New. TI COFF handling.
3492 * configure.tgt: Add tic54x target.
3493 * Makefile.am: Add tic54x target.
3494 * Makefile.in: Ditto.
3496 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3498 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3499 checking for backslashes.
3501 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3503 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3505 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3507 * NEWS: Update list of targets supporting --gc-sections.
3509 * scripttempl/elf.sc: KEEP .eh_frame contents.
3510 * scripttempl/elfd30v.sc: Same here.
3512 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3514 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3516 * Makefile.in: Rebuild.
3517 * configure.tgt: Recognize m68hc12 and m68hc11.
3518 * scripttempl/elfm68hc12.sc: New file.
3519 * emulparams/m68hc12elfb: New emulation.
3520 * emulparams/m68hc12elf: New emulation.
3521 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3522 (includes a memory.x script to define the ROM and RAM banks).
3523 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3524 New configuration files for support of Motorola 68hc11
3526 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3528 * ldmain.c (main): Only change SEC_READONLY for final link.
3530 2000-06-13 H.J. Lu <hjl@gnu.org>
3532 * configure: Regenerate.
3534 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3536 * configure.in (VERSION): Update to show this is the CVS mainline.
3538 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3540 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3541 input objects to be ECOFF.
3542 (check_sections): einfo takes %B, not %P, to print a BFD name.
3544 2000-06-05 Michael Matz <matz@ifh.de>
3546 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3549 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3551 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3553 * emulparams/avr1200.sh (STACK): Define as 0.
3554 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3555 * emulparams/avr4433.sh (STACK): Likewise.
3556 * emulparams/avr44x4.sh (STACK): Likewise.
3557 * emulparams/avr85xx.sh (STACK): Likewise.
3558 * emulparams/avrmega103.sh (STACK): Likewise.
3559 * emulparams/avrmega161.sh (STACK): Likewise.
3560 * emulparams/avrmega603.sh (STACK): Likewise.
3561 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3562 (__stack): Define from ${STACK} for main().
3564 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3566 * Makefile.am: Update dependencies with "make dep-am"
3567 * Makefile.in: Regenerate.
3569 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3571 * ldmain.c: Include filenames.h.
3572 (set_scripts_dir): Support backslashes in program name.
3574 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3576 * ldmain.c (main): When deciding if ".text" section should be
3577 read-only, don't forget to reset SEC_READONLY because it
3578 could be already set.
3580 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3582 * ld.1: Add documentation for new command line option:
3583 --section-start <sectionname>=<sectionorg>
3584 This is a generic version of -Ttext etc. which accepts
3585 any section name as a parameter instead of just text/data/
3587 * ld.texinfo: More docs.
3589 * lexsup.c: (parse_args): Recognize new command line option.
3590 (ld_options): Add new option.
3592 2000-05-18 H.J. Lu <hjl@gnu.org>
3594 * lexsup.c (parse_args): `i' == `r', not `q'.
3596 2000-05-18 Jeffrey A Law (law@cygnus.com)
3598 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3600 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3601 Rick Gorton <gorton@scrugs.lkg.dec.com>
3603 Add support for '-q' == '--emit-relocs' switch.
3604 * ldmain.c (main): Default to false.
3605 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3606 * NEWS: Describe the emitrelocations switch.
3607 * ld.texinfo: Describe the emitrelocations switch.
3609 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3611 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3612 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3613 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3616 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3618 * lexsup.c (parse_args): Update the year in the copyright notice.
3620 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3622 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3623 Replace defines with those from intl/libgettext.h to quieten gcc
3626 2000-05-10 H.J. Lu <hjl@gnu.org>
3628 * ldlang.c (open_input_bfds): Don't load the same file within
3629 a group again if the whole archive has been loaded already.
3631 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3633 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3634 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3637 2000-05-01 Jim Wilson <wilson@cygnus.com>
3639 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3641 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3642 host "ia64-*-linux-gnu*".
3644 2000-04-29 Andreas Jaeger <aj@suse.de>
3646 * ld.h: Correctly check GCC version.
3648 2000-04-25 Jeffrey A Law (law@cygnus.com)
3650 * Makefile.am: Add PA64 support. Add missing dependencies for
3652 * Makefile.in: Rebuilt.
3653 * configure.tgt: Add PA64 support (currently disabled).
3655 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3657 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3658 (output_rel_find): New function.
3659 (hold_section, hold_use): Delete.
3660 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3661 hold_interp): Make local to place_orphan.
3662 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3663 rather than place_section to find possible previous use of orphan.
3664 Similarly find the place-holder output sections. Use returned
3665 value from lang_enter_output_section_statement rather than calling
3666 lang_output_section_statement_lookup.
3667 * emultempl/armelf.em: Same here.
3668 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3670 * ldlang.c (lang_enter_output_section_statement): Return output
3672 * ldlang.h (lang_enter_output_section_statement): Change
3675 * ldlang.h (lang_output_section_statement): Export it.
3676 * ldlang.c (lang_output_section_statement): Ditto.
3678 2000-04-24 Nick Clifton <nickc@cygnus.com>
3680 * ld.texinfo (Output Section Data): Add note that section data
3681 commands cannot appear outside of section directives.
3683 2000-04-2 Matthew Green <mrg@cygnus.com>
3685 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3687 2000-04-21 Richard Henderson <rth@cygnus.com>
3688 David Mosberger <davidm@hpl.hp.com>
3690 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3691 (eelf64_ia64.c): New rule.
3692 * Makefile.in: Rebuild.
3693 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3694 * emulparams/elf64_ia64.sh: New file.
3696 2000-04-21 Richard Henderson <rth@cygnus.com>
3698 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3700 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3702 * dep-in.sed: Match space at start of file name, not at end.
3704 2000-04-18 H.J. Lu <hjl@gnu.org>
3706 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3707 lang_leave_output_section_statement () after calling
3708 lang_enter_output_section_statement ().
3709 * emultempl/armelf.em: Likewise.
3711 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3713 * emultempl/elf32.em (struct orphan_save): Add section field.
3714 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3715 better order, and place first orphan section as we did before the
3716 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3717 Don't call make_bfd_section here, let wild_doit do the job for us.
3718 Don't build a statement list when we'll only throw it away.
3719 * emultempl/armelf.em: Ditto.
3720 * emultempl/pe.em: Similarly.
3722 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3724 * scripttempl/elfppc.sc: Remove.
3725 * emulparams/elf32ppc.sh: Use elf.sc.
3726 * emulparams/elf32lppc.sh: Use elf.sc.
3727 * emulparams/elf32ppclinux.sh: Use elf.sc.
3728 * emulparams/elf32ppcsim.sh: New file.
3729 * emulparams/elf32lppcsim.sh: New file.
3730 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3731 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3732 * Makefile.in: Regenerate.
3733 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3735 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3737 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3738 ~SEC_ALLOC sections too. Init start address of debug sections.
3739 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3740 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3741 Also set all relocateable section start addresses.
3743 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3745 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3746 Add new BSS_PLT variable for when .plt need not be contained in
3747 the file. Move _etext so that it is also after .fini, and provide
3748 both etext and _etext with a leading underscore. Mark the start
3751 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3753 * emultempl/elf32.em (struct orphan_save): New.
3754 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3755 hold_interp): Make them struct orphan_save.
3756 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3757 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3758 the end of the relevant section list. Also add associated section
3759 statements to the end of any previous orphan statements.
3760 * emultempl/armelf.em: Similarly.
3761 * emultempl/pe.em: Similarly.
3763 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3765 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3767 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3769 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3770 --enable-build-warnings option.
3771 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3772 * Makefile.in, configure: Re-generate.
3774 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3776 * po/ld.pot: Regenerate.
3778 * lexsup.c (help): Restore translated part of bug string.
3780 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3781 (DEP): Quote when passing vars to sub-make. Add warning message
3783 (DEP1): Rewrite for "gcc -MM".
3784 (CLEANFILES): Add DEP2.
3785 Update dependencies.
3786 * Makefile.in: Regenerate.
3788 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3790 * ld.h: #include "bin-bugs.h"
3791 * lexsup.c (help): Use REPORT_BUGS_TO.
3793 2000-03-27 Denis Chertykov <denisc@overta.ru>
3795 * configure.tgt (avr-*-*): New target support.
3796 * Makefile.am: Likewise.
3797 * scripttempl/elf32avr.sc: New script file.
3798 * emulparams/avr1200.sh: New file.
3799 * emulparams/avr23xx.sh: New file.
3800 * emulparams/avr4433.sh New file.
3801 * emulparams/avr44x4.sh New file.
3802 * emulparams/avr85xx.sh New file.
3803 * emulparams/avrmega103.sh New file.
3804 * emulparams/avrmega161.sh New file.
3805 * emulparams/avrmega603.sh New file.
3806 * Makefile.in: Regenerate.
3808 2000-03-09 Andreas Jaeger <aj@suse.de>
3810 * Makefile.am (check-DEJAGNU): Also unset LANG.
3811 * Makefile.in: Rebuild.
3813 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3815 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3818 2000-03-02 H.J. Lu <hjl@gnu.org>
3820 * emulparams/elf32mcore.sh: Include "getopt.h".
3822 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3824 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3826 2000-03-01 H.J. Lu <hjl@gnu.org>
3828 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3829 * emulparams/shpe.sh: Likewise.
3831 2000-03-01 Nick Clifton <nickc@cygnus.com>
3833 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3834 to unused parameters.
3836 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3837 functions only used by DLL code.
3838 (_place_orphan): Initialise 'dollar'.
3840 2000-03-01 H.J. Lu <hjl@gnu.org>
3842 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3843 indicate if the undefined symbol is a fatal error or not.
3844 Don't delete the output file if "fatal" is false.
3846 2000-02-29 H.J. Lu <hjl@gnu.org>
3848 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3849 Set LC_COLLATE and LC_ALL to null and export them. It is for
3850 sort which expects the C locale.
3851 Add $(LIBS) to all $(HOSTING_LIBS).
3852 * Makefile.in: Rebuild.
3854 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3856 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3857 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3858 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3859 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3860 find_potential_libraries.
3862 2000-02-28 Jim Blandy <jimb@redhat.com>
3864 * ldgram.y (exclude_name_list): Don't require a comma to separate
3865 list entries; the lexer considers commas to be valid part of a
3866 filename, so in something like `foo, bar' the comma is considered
3867 part of the first filename, `foo,'.
3868 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3870 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3872 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3873 host "i[3456]86-*-freebsdelf*".
3875 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3877 * scripttempl/i386go32.sc: Move misplaced semicolons.
3879 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3881 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3882 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3883 (eelf64hppa.c, ehppaelf.c): Remove targets.
3884 * Makefile.in: Rebuild.
3886 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3888 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3889 GNU/Linux/sparc, but keep the default as 32.
3891 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3892 it default if sparcv9 or sparc64.
3894 2000-02-24 Nick Clifton <nickc@cygnus.com>
3896 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3897 * Makefile.in: Regenerate.
3898 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3900 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3901 find_potential_libraries.
3902 * ldemul.c (ldemul_find_potential_libraries): New function.
3904 * ldfile.c (ldfile_open_file_search): Allow function to be
3906 (ldfile_open_file): Call ldemul_find_potential_libraries.
3907 * ldfile.h: Add prototype for ldfile_open_file_search.
3909 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3911 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3912 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3914 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3915 (gld_X_find_potential_libraries): New function. Search for
3916 libraries called "*.lib".
3918 * scripttempl/pe.sc: Add .pdata section.
3920 2000-02-23 Richard Henderson <rth@cygnus.com>
3922 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3923 Add and use memory regions.
3925 2000-02-23 Linas Vepstas (linas@linas.org)
3927 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3929 * Makefile.am: Add support for Linux/IBM 370.
3930 * configure.tgt: Likewise.
3932 * Makefile.in: Regenerate.
3934 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3936 * ldlang.c (print_input_section, print_data_statement,
3937 print_reloc_statement, print_padding_statement, insert_pad,
3938 size_input_section, lang_check_section_addresses,
3939 lang_size_sections, lang_do_assignments, lang_set_startof,
3940 lang_one_common): Change `opb' to unsigned.
3941 (lang_do_assignments): Also change `size' to unsigned.
3943 2000-02-16 Richard Henderson <rth@cygnus.com>
3945 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3947 2000-02-16 Timothy Wall <twall@cygnus.com>
3949 * mri.c (mri_draw_tree): Add default LMA region argument to call
3950 to lang_leave_output_section_statement.
3951 * ldlang.h: Update prototypes with LMA region arguments.
3952 * ldlang.c (lang_size_sections): Encapsulate region bounds
3953 checking in os_check_region call.
3954 (os_check_region): New function.
3955 (lang_output_section_statement_lookup): Initialize lma_region.
3956 (lang_leave_output_section_statement): Add LMA region argument.
3957 (lang_leave_overlay): Ditto.
3958 * ldgram.y: Handle LMA region syntax.
3959 * ld.texinfo (Output Section Description): Describe LMA region usage.
3960 * emultempl/armelf.em (gld$place_orphan): Add default value for
3961 lma region in call to lang_leave_output_section_statement.
3962 * emultempl/elf32.em (gld$place_orphan): Add default value for
3963 lma region in call to lang_leave_output_section_statement.
3964 * emultempl/pe.em (gld$place_orphan): Add default value for
3965 lma region in call to lang_leave_output_section_statement.
3968 2000-02-04 Timothy Wall <twall@redhat.com>
3970 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3971 octets when calculating section end addresses.
3973 2000-02-04 Timothy Wall <twall@redhat.com>
3975 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3977 2000-02-03 Timothy Wall <twall@redhat.com>
3979 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3981 * ldlang.c (print_input_section, print_data_statement,
3982 print_reloc_statement, print_padding_statement): Print target
3983 address values and section sizes as bytes, not octets.
3984 (insert_pad) Calculate padding size in octets, and adjust "dot"
3986 (size_input_section) Always adjust "dot" by bytes, not octets.
3987 (lang_check_section_addresses, lang_do_assignments) Adjust
3988 "dot" by bytes, not octets. Use the larger of the directive size
3989 or octets_per_byte for the number of octets actually allocated in
3991 (lang_set_startof) Make sure STARTOF returns a target address.
3992 (lang_one_common) Record size changes in octets.
3993 (lang_abs_symbol_at_end_of) Section end symbol's value is
3994 recorded in target bytes.
3995 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3996 to be clear about behavior when an octet is smaller than one byte.
3998 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4000 * ldcref.c (output_cref): Don't pass message strings to printf
4004 * ldmisc.c (vfinfo): Same here.
4007 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4009 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4010 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4011 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4012 Add missing NULL initialisers, and comments.
4014 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4016 2000-01-21 Nick Clifton <nickc@cygnus.com>
4018 * ldlang.c (lang_size_sections): Fix typo in comment.
4020 2000-01-18 H.J. Lu <hjl@gnu.org>
4022 * ldlang.c (lang_size_sections): Also update the current
4023 address of a region if the SEC_NEVER_LOAD bit is not set.
4025 2000-01-10 Philip Blundell <pb@futuretv.com>
4027 * configure.tgt (arm*-*-conix*): New target.
4029 2000-01-07 Nick Clifton <nickc@cygnus.com>
4031 * ld.texinfo (Options): Remind users to preceed linker command
4032 line switches with -Wl, (or whatever is appropriate) if it is
4033 being invoked by a comnpiler driver program.
4034 Fix description of the behaviour of the -n command line switch.
4036 2000-01-05 Catherine Moore <clm@cygnus.com>
4038 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4040 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4041 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4042 (exclude_name_list): New.
4043 ldlang.c (walk_wild_section): Support list of excluded files.
4044 (print_wild_statement): Likewise.
4045 (lang_add_wild): Likewise.
4046 * ldlang.h (lang_wild_statement_type): Likewise.
4047 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4049 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4051 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4052 (process_def_file): Use.
4053 (pe_dll_compat_implib): New variable.
4056 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4057 pe_dll_compat_implib.
4059 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4060 compat-implib options.
4061 (gld_${EMULATION_NAME}_list_options): List new options.
4062 (gld_${EMULATION_NAME}_parse_args): Handle.
4064 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4067 * deffilep.y (opt_name): Allow "." in name.
4069 For older changes see ChangeLog-9899
4075 version-control: never