1 2002-04-30 Tom Rix <trix@redhat.com>
3 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
5 2002-05-01 Alan Modra <amodra@bigpond.net.au>
7 Long branch stubs, multiple stub sections.
8 * emultempl/ppc64elf.em: Include ldctor.h.
10 (group_size): New var.
11 (ppc_create_output_section_statements): New function.
12 (struct hook_stub_info): New.
13 (hook_in_stub): New function.
14 (ppc_add_stub_section): New function.
15 (ppc_layout_sections_again): New function.
16 (build_section_lists): New function.
17 (gld${EMULATION_NAME}_finish): Rewrite.
19 (ppc_for_each_input_file_wrapper): New function.
20 (ppc_lang_for_each_input_file): New function.
21 (lang_for_each_input_file): Define.
22 (PARSE_AND_LIST_PROLOGUE): Define.
23 (PARSE_AND_LIST_LONGOPTS): Define.
24 (PARSE_AND_LIST_OPTIONS): Define.
25 (PARSE_AND_LIST_ARGS_CASES): Define.
26 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
28 2002-04-30 Tom Rix <trix@redhat.com>
30 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
31 -blibpath, -bnolibpath support.
33 2002-04-30 Mark Mitchell <mark@codesourcery.com>
35 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
36 (eelf32ppcwindiss.c): New target.
37 * Makefile.in: Regenerated.
38 * configure.tgt: Add support for powerpc-*-windiss.
39 * emulparams/elf32ppcwindiss.sh: New file.
41 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
43 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
44 * ldexp.c (exp_print_token): Add "infix_p" argument.
45 (exp_print_tree): Update accordingly.
47 2002-04-28 Alan Modra <amodra@bigpond.net.au>
49 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
50 * Makefile.in: Regenerate.
51 * mpw-elfmips.c: Delete.
52 * mpw-eppcmac.c: Delete.
54 * mpw-idtmips.c: Delete.
56 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
58 * emulparams/shelf32.sh (MACHINE): Now sh5.
60 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
62 * ldgram.y: Fix syntax warning.
64 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
66 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
67 to prevent "-n" from being taken as an abbreviation for
68 "--no-pipeline-knowledge".
70 2002-04-08 Alan Modra <amodra@bigpond.net.au>
72 * ldlang.c (lang_size_sections_1): Don't complain about
73 SEC_NEVER_LOAD sections having no memory region specified.
75 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
77 2002-04-07 matthew green <mrg@redhat.com>
79 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
81 2002-04-04 Alan Modra <amodra@bigpond.net.au>
83 * dep-in.sed: Cope with absolute paths.
84 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
86 * Makefile.in: Regenerate.
88 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
90 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
92 2002-04-03 Jakub Jelinek <jakub@redhat.com>
94 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
95 is smaller than maximum, round dot up to common page boundary.
97 2002-03-28 Alan Modra <amodra@bigpond.net.au>
99 * configure.host: Set up for generic hosts first, then tweak as
100 necessary in more specific targets.
101 (HOSTING_LIBS): Include libgcc_eh.a if found.
103 2002-03-23 Andreas Jaeger <aj@suse.de>
105 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
107 2002-03-21 Alan Modra <amodra@bigpond.net.au>
109 * Makefile.am: Run "make dep-am".
110 * Makefile.in: Regenerate.
112 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
114 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
116 2002-03-20 Alan Modra <amodra@bigpond.net.au>
118 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
119 add the symbol to the linker hash table immediately.
120 (lang_place_undefineds): Split symbol creation out..
121 (insert_undefined): ..to here.
123 2002-03-18 David O'Brien <obrien@FreeBSD.org>
125 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
126 the contents of the buffer returned from basename function will are
127 getting overwritten while still being used.
129 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
130 Andreas Jaeger <aj@suse.de>
131 Andreas Schwab <schwab@suse.de>
133 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
134 * elf_x86_64.sh (ARCH): Set to i386:x86-64
135 set libraries to default to lib64 paths.
137 2002-03-18 Tom Rix <trix@redhat.com>
139 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
140 * configure.tgt : Same.
141 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
142 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
143 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
144 emulation parameters for better -b32, -b64 support.
145 * emulparms/aixrs6.sh : Same.
146 * emulparms/ppcmacos.sh : Same.
147 * emultempl/aix.em (choose_target) : Use new emulation parameters
148 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
149 * Makefile.in : Regenerate.
151 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
153 * po/fr.po: Updated version.
155 2002-03-18 Alan Modra <amodra@bigpond.net.au>
157 * ldmain.c (main): Move .text readonly flag fudges from here..
158 * ldlang.c (lang_process): ..to here.
160 2002-03-14 Alan Modra <amodra@bigpond.net.au>
162 * ldlang.c (lang_check): Remove the word size check added in last
163 change. Treat emitrelocations case as for relocatable links.
165 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
167 * po/fr.po: Updated version.
169 2002-03-13 Alan Modra <amodra@bigpond.net.au>
171 * ldlang.c (lang_check): Do relocatable link checks first, so that
172 warn_mismatch can't override. Check compatible and word size too.
174 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
176 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
178 2002-03-05 Jakub Jelinek <jakub@redhat.com>
180 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
183 2002-03-04 H.J. Lu <hjl@gnu.org>
185 * scripttempl/elf.sc: Put .preinit_array, .init_array and
186 .fini_array in the data segment.
188 2002-03-04 Alan Modra <amodra@bigpond.net.au>
190 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
192 2002-03-01 David Mosberger <davidm@hpl.hp.com>
194 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
195 .init_array, and .fini_array.
197 2002-02-20 Andreas Schwab <schwab@suse.de>
199 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
200 .IA64_unwind* in a relocatable link.
202 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
204 * NEWS: Mark 2.12 branch.
206 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
208 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
209 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
211 2002-02-18 Tom Rix <trix@redhat.com>
213 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
214 (gld*_before_allocation): Same.
215 (gld*_create_output_section_statements): Generate
216 __rtinit if run time linking. Add librtl.a to the link.
217 (gld*_read_file): Clean.
219 2002-02-18 Alan Modra <amodra@bigpond.net.au>
221 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
223 2002-02-18 David O'Brien <obrien@FreeBSD.org>
225 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
226 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
227 and eelf64alpha_fbsd.
228 * Makefile.in: Regenerate.
229 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
230 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
231 use a FreeBSD-specific emulation rather than the psABI one.
232 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
233 for all FreeBSD ELF systems.
234 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
236 * emulparams/elf32ppc_fbsd.sh: Likewise.
237 * emulparams/elf64_ia64_fbsd.sh: Likewise.
238 * emulparams/elf64_sparc_fbsd.sh: Likewise.
239 * emulparams/elf64alpha_fbsd.sh: Likewise.
240 * emulparams/elf_i386_fbsd.sh: Likewise.
241 * emulparams/elf_x86_64_fbsd.sh: Likewise.
243 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
245 * po/tr.po: Updated version.
247 2002-02-18 Alan Modra <amodra@bigpond.net.au>
249 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
252 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
254 * emultempl/mmo.em (mmo_after_open): Don't call
255 _bfd_mmix_check_all_relocs when producing ELF output.
257 2002-02-15 Richard Henderson <rth@redhat.com>
259 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
260 definition. Emit a unop+nop pair.
262 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
264 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
265 for presence of .MMIX.reg_contents.linker_allocated before early
268 * NEWS: Mention support for MMIX.
270 2002-02-15 Alan Modra <amodra@bigpond.net.au>
272 Support arbitrary length fill patterns.
273 * ld.texinfo (Output Section Fill): Describe fill expressions.
274 (FILL): Refer to the above.
275 * ldexp.h (etree_value_type): Add "str" field.
276 (union etree_union): Add "str" to "value" struct.
277 (exp_bigintop): Declare.
278 (exp_get_fill): Declare.
279 * ldexp.c: Include "safe-ctype.h".
280 (exp_intop): Set value.str to NULL.
281 (exp_bigintop): New function.
282 (new_rel): Pass in "str", and set new.str from it.
283 (new_rel_from_section): Set new.str to NULL.
284 (fold_name): Adjust calls to new_rel.
285 (exp_fold_tree): Likewise.
286 (exp_get_fill): New function.
287 * ldgram.y (struct big_int bigint, fill_type *fill): New.
288 (INT): Returns a "bigint". Adjust all code handling INTs.
289 (fill_opt): Returns a "fill".
290 (fill_exp): Split out of fill_opt, use for FILL.
291 * ldlang.h (struct _fill_type): New.
292 (fill_type): Move typedef to ldexp.h.
293 (lang_output_section_statement_type): "fill" is now a pointer.
294 (lang_fill_statement_type): Likewise.
295 (lang_padding_statement_type): Likewise.
296 (lang_add_fill): Now takes a "fill_type *" param.
297 (lang_leave_output_section_statement): Likewise.
298 (lang_do_assignments): Likewise.
299 (lang_size_sections): Likewise.
300 (lang_leave_overlay_section): Likewise.
301 (lang_leave_overlay): Likewise.
302 * ldlang.c: Include ldgram.h after ldexp.h.
303 (lang_output_section_statement_lookup): Adjust for fill_type change.
304 (print_fill_statement): Likewise.
305 (print_padding_statement): Likewise.
306 (insert_pad): Now takes a "fill_type *" arg.
307 (size_input_section): Likewise.
308 (lang_size_sections_1): Likewise.
309 (lang_size_sections): Likewise.
310 (lang_do_assignments): Likewise.
311 (lang_add_fill): Likewise.
312 (lang_leave_output_section_statement): Likewise.
313 (lang_leave_overlay_section): Likewise.
314 (lang_leave_overlay): Likewise.
315 Adjust all callers of the above function.
316 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
317 starting with "0X" as well as "0x". Return bigint.str for hex
318 numbers starting with "0x" or "0X", zero bigint.str otherwise.
319 Always use base 16 for numbers starting with "$".
320 * ldmain.c: Include ldgram.h after ldexp.h.
321 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
322 of bfd_fill_link_order.
323 * pe-dll.c: Adjust lang_do_assignments calls.
324 * emultempl/elf32.em: Likewise.
325 * emultempl/hppaelf.em: Likewise.
326 * emultempl/ppc64elf.em: Likewise.
327 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
328 lang_add_assignment call.
329 * emultempl/pe.em: Likewise.
331 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
333 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
334 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
335 the pattern in question is not a regexp.
336 * ldlang.c: Likewise.
337 * ldlang.h: Likewise.
338 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
340 2002-02-12 Jakub Jelinek <jakub@redhat.com>
342 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
343 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
344 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
345 * ldexp.c (exp_data_seg): New variable.
346 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
347 (fold_binary): Handle DATA_SEGMENT_ALIGN.
348 (exp_fold_tree): Handle DATA_SEGMENT_END.
349 Pass allocation_done when recursing instead of hardcoding
350 lang_allocating_phase_enum.
351 * ldexp.h (exp_data_seg): New.
352 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
353 (lang_size_sections): New.
354 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
355 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
356 if COMMONPAGESIZE is defined.
357 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
358 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
359 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
360 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
361 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
364 2002-02-11 Alan Modra <amodra@bigpond.net.au>
366 * Makefile.in: Regenerate.
368 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
370 * lexsup.c: Remove strtoul declaration.
372 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
374 * ldmain.c: Add prototype for main ().
375 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
376 * emultempl/lnk960.em (lnk960_choose_target): Function should
379 2002-02-10 Alan Modra <amodra@bigpond.net.au>
381 * ldlang.c (entry_section): New initialised variable.
382 (lang_finish): Use it.
383 * ldlang.h (entry_section): Declare.
384 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
385 entry_section to ".opd".
387 2002-02-09 Chris Demetriou <cgd@broadcom.com>
389 * ld.texinfo (Options): Add back in -nostdlib documentation,
390 which had been inadvertently removed.
392 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
394 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
395 register section vma to a sane value after emitting error. Make
396 fatal conditions cause program exit when emitting message.
398 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
400 * configure.tgt: Add or32-*-rtems target.
402 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
405 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
406 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
407 in OTHER_RELOCATABLE_SECTIONS.
408 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
409 * emulparams/shelf32.sh (STACK_ADDR): Define.
410 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
411 (OTHER_SECTIONS): this. Removed stack settings.
412 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
413 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
414 2001-03-12 DJ Delorie <dj@redhat.com>
415 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
416 relaxing if any shmedia or mixed sections are found.
417 2001-03-07 DJ Delorie <dj@redhat.com>
418 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
419 einfo. Gracefully decline to output to non-elf formats.
420 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
421 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
422 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
423 * emulparams/shelf32.sh: Ditto.
424 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
425 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
427 2001-01-10 Ben Elliston <bje@redhat.com>
428 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
429 non-portable shell constructs. From Hans-Peter Nilsson.
430 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
431 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
432 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
433 dependencies to the shell script include chain.
434 * Makefile.in: Regenerate.
435 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
436 * emultempl/sh64elf.em: Update and tweak comments.
437 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
438 make a .cranges section SEC_IN_MEMORY.
439 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
440 * emultempl/sh64elf.em
441 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
442 .cranges section found to be necessary; continue and set stored
443 section contents flags for sections with non-mixed contents.
444 Use a struct sh64_section_data container and sh64_elf_section_data
445 to store contents-type flags.
446 Remove unused update of "isec".
447 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
448 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
449 access contents-type flags. Assert that the associated container
450 is initialized. Use that container, not elf_gp_size, to hold size
451 of linker-generated cranges contents.
452 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
453 * emultempl/sh64elf.em
454 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
455 there's already a .cranges section. When section flag difference
456 is found, don't NULL-check cranges a second time. Tweak comments.
457 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
458 merging, not max size, as size of ld-generated .cranges contents.
459 Don't set ELF section flags in output section. When checking for
460 needed .cranges descriptors, don't use a variable; compare
461 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
463 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
464 * emultempl/sh64elf.em: New file.
465 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
466 * Makefile.in: Regenerate.
467 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
468 (OTHER_RELOCATING_SECTIONS): Ditto.
469 (EXTRA_EM_FILE): New, set to sh64elf if not set.
470 * emulparams/shlelf32.sh: Stub out all settings except
471 OUTPUT_FORMAT. Source shelf32.sh.
472 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
473 OTHER_RELOCATING_SECTIONS.
474 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
475 * emulparams/shlelf64.sh: Stub out all settings except
476 OUTPUT_FORMAT. Source shelf64.sh.
477 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
478 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
480 (DATA_START_SYMBOLS): Define, provide ___data.
481 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
482 for consecutive .data section.
483 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
484 section after .data section.
485 * emulparams/shlelf64.sh: Ditto.
486 * emulparams/shelf32.sh: Ditto.
487 (ALIGNMENT): Define to 8.
488 * emulparams/shelf32.sh: Ditto.
489 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
490 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
491 built-in linker scripts.
492 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
493 * emulparams/shlelf64.sh: New.
494 * emulparams/shelf64.sh: New.
495 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
497 * Makefile.am: Add support for shlelf64 and shelf64.
498 * Makefile.in: Regenerate.
499 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
500 * configure.tgt (sh64-*-elf*): Add shelf as default.
501 Add shlelf to targ_extra_emuls.
502 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
503 * emulparams/shelf32.sh: New file.
504 * emulparams/shlelf32.sh: New file.
505 * Makefile.am: Add support for shlelf32 and shelf32.
506 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
507 * Makefile.in: Regenerate.
509 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
511 * ldlang.c (lang_reset_memory_regions): Rename from
512 reset_memory_regions. Change all callers. Make public.
513 * ldlang.h (lang_reset_memory_regions): Prototype.
514 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
515 lang_reset_memory_regions before lang_size_sections.
516 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
517 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
519 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
521 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
522 arithmetic when checking for too many global registers.
524 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
526 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
527 (ehppanbsd.c): New rule.
528 * Makefile.in: Regenerate.
529 * configure.tgt (hppa*-*-netbsd*): New target.
530 * emulparams/hppalinux.sh: Add comment to check other files
531 that source this file it is modified, and list which
533 * emulparams/hppanbsd.sh: New file.
535 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
537 * scripttempl/xstormy16.sc: Don't allocate extra space for the
540 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
542 Support on-demand global register allocation from
543 R_MMIX_BASE_PLUS_OFFSET relocs.
544 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
545 mmix_set_reg_section_vma. Call
546 _bfd_mmix_finalize_linker_allocated_gregs.
547 (mmix_before_allocation): New function.
548 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
549 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
550 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
551 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
552 before .MMIX.reg_contents.
553 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
554 (mmo_after_open): New function.
555 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
556 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
557 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
559 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
561 * emulparams/or32.sh: New file.
562 * emulparams/or32elf.sh: New file.
563 * scripttempl/or32.sc: New file.
564 * configure.tgt : Add support for or32.
565 * configure: Regenerate
566 * Makefile.am: Add support for or32.
567 * Makefile.in: Regenerate.
568 * NEWS: Mention support for or32.
569 * po/ld.pot: Regenerate.
571 2002-01-29 Chris Demetriou <cgd@broadcom.com>
572 Mitch Lichtenberg <mpl@broadcom.com>
574 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
575 * emultempl/mipself.em: New file to handle MIPS ELF embedded
576 reloc creation (ld --embedded-relocs).
578 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
580 * configure: Regenerated.
582 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
584 * Makefile.am (install): Depend on install-info.
585 * Makefile.in: Regenerate.
587 2002-01-26 Christian Rose <menthos@menthos.com>
589 * ldmain.c (main): Use full sentences to ease translation.
591 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
593 * po/fr.po: Updated version.
595 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
597 * po/es.po: Updated version.
599 2002-01-25 Andreas Jaeger <aj@suse.de>
601 * ldlex.l (yy_input): Correct error check.
603 2002-01-25 Alan Modra <amodra@bigpond.net.au>
605 * ldmisc.c (demangle): Put back dots when string not demangled.
607 2002-01-22 Richard Henderson <rth@redhat.com>
609 * emulparams/elf64alpha.sh (NOP): Use unop.
611 2002-01-21 Andreas Jaeger <aj@suse.de>
613 * ldlex.l: Use fread instead of read.
615 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
617 * configure.tgt (ia64-*-netbsd*): New target.
619 2002-01-21 H.J. Lu <hjl@gnu.org>
621 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
623 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
625 2002-01-18 Andreas Jaeger <aj@suse.de>
627 * ldver.c (ldversion): Update year.
629 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
631 * po/ld.pot: Regenerate.
633 2002-01-16 Alan Modra <amodra@bigpond.net.au>
635 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
636 * Makefile.in: Regenerate.
637 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
638 * emultempl/ppc64elf.em: New file.
640 2002-01-15 DJ Delorie <dj@redhat.com>
642 * scripttempl/pe.sc: Add support for constructor priorities.
644 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
646 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
647 * emulparams/avr23xx.sh: Likewise.
648 * emulparams/avr4433.sh: Likewise.
649 * emulparams/avr44x4.sh: Likewise.
650 * emulparams/avr85xx.sh: Likewise.
651 * emulparams/avrmega103.sh: Likewise.
652 * emulparams/avrmega161.sh: Likewise.
653 * emulparams/avrmega603.sh: Likewise.
654 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
656 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
658 * ldlang.c (walk_wild_section): Exclude object file if enclosing
661 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
663 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
664 (eshelf_nbsd.c): New rule.
665 (eshlelf_nbsd.c): New rule.
666 * Makefile.in: Regenerate.
667 * configure.tgt (sh*le-*-netbsdelf*): New target.
668 (sh*-*-netbsdelf*): New target.
669 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
670 * ld/emulparams/shelf_nbsd.sh: New emulation.
671 * ld/emulparams/shlelf_nbsd.sh: New emulation.
673 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
675 * po/es.po: New file: Spanish translation.
676 * configure.in (ALL_LINGUAS): Add es.
677 * configure: Regenerate.
679 2002-01-06 John Marshall <jmarshall@acm.org>
681 * ld.texinfo: Note that --emit-relocs is currently only
684 2002-01-05 Alan Modra <amodra@bigpond.net.au>
686 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
687 of bfd_section_list_remove and bfd_section_list_insert macros.
688 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
689 * emultempl/mmo.em (mmo_place_orphan): Likewise.
691 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
693 * configure.tgt (x86_64-*-netbsd*): New target.
695 2001-12-21 Tom Rix <trix@redhat.com>
697 (gld*_create_output_section_statements): New function.
698 For -binitfini support.
699 * emultempl/aix.em (gld*_before_parse): Fix comment.
700 * emultempl/aix.em (gld*_parse_args): Fix comment.
702 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
704 * configure.tgt (mips*-dec-netbsd*): Delete alias for
706 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
708 * configure.tgt (arm-*-netbsdelf*): Add target.
709 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
710 * emulparams/armelf_nbsd.sh: Added.
711 * Makefile.am: Add rules for earmelf_nbsd.
712 * Makefile.in: Regenerate.
714 2001-12-19 Andreas Jaeger <aj@suse.de>,
715 Susanne Oberhauser <froh@suse.de>
717 * configure.host: Add rules for x86_64-*linux-gnu. Change
718 s390x-linux entry to use gcc to report configuration, replace gcc
719 with $CC in s390-linux
721 2001-12-19 Andreas Jaeger <aj@suse.de>
723 * ld.texinfo (VERSION): Fix markup.
725 2001-12-18 matthew green <mrg@eterna.com.au>
727 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
728 (m68kelfnbsd.c): New rule.
729 * Makefile.in: Regenerate.
730 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
731 (m68*-*-netbsd*4k*): .. this.
732 (m68*-*-netbsdelf*): New target.
733 (m68*-*-netbsd*): Also include ELF support.
734 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
735 * emulparams/m68kelfnbsd.sh: New emulation.
737 2001-12-18 Jakub Jelinek <jakub@redhat.com>
739 * ldgram.y (vers_node): Support anonymous version tags.
740 * ldlang.c (lang_register_vers_node): Ensure anonymous version
741 tag is not defined together with non-anonymous versions.
742 * ld.texinfo: Document it.
744 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
746 * po/tr.po: New file: Turkish translation.
747 * configure.in (ALL_LINGUAS): Add tr.
748 * configure: Regenerate.
750 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
752 * Makefile.am: Add rules for eelf64alpha_nbsd.
753 * Makefile.in: Regenerate.
754 * configure.tgt (alpha*-*-netbsd*): Set
755 targ_emul to elf64alpha_nbsd.
756 * emulparams/elf64alpha_nbsd.sh: Added.
758 2001-12-17 Alan Modra <amodra@bigpond.net.au>
760 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
761 section_tail when fiddling with section list.
762 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
763 broken into separate strings to make translation easier.
764 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
765 fiddling with section list.
766 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
768 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
770 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
772 2001-12-15 Alan Modra <amodra@bigpond.net.au>
774 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
776 2001-12-13 Jakub Jelinek <jakub@redhat.com>
778 * emultempl/elf32.em (finish): Supply output_bfd
779 to bfd_elf*_discard_info.
780 (OPTION_EH_FRAME_HDR): Define.
781 (longopts): Add --eh-frame-hdr.
782 (parse_args): Handle it.
783 (list_options): Add --eh-frame-hdr to help.
784 * emultempl/hppaelf.em (finish): Supply output_bfd
785 to bfd_elf*_discard_info.
786 * scripttempl/elf.sc (.eh_frame_hdr): Add.
788 2001-12-13 Alan Modra <amodra@bigpond.net.au>
790 * lexsup.c (parse_args): Don't pass shortopts to second call to
791 getopt functions. Restore optind rather than decrementing before
792 second call. Remove errind as it now duplicates last_optind.
794 2001-12-11 Christopher Faylor <cgf@redhat.com>
796 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
798 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
799 Richard Henderson <rth@redhat.com>
801 * Makefile.am: Add support for xstormy16.
802 * configure.tgt: Add support for xstormy16.
803 * Makefile.in: Regenerate.
804 * emulparams/elf32xstormy16.sh: New file.
805 * scripttempl/xstormy16.sc: New file.
807 2001-10-01 Christopher Faylor <cgf@cygnus.com>
809 * Makefile.in (LIB_PATH): Make configurable.
810 (GENSCRIPTS): Set LIB_PATH in environment.
811 * configure.in: Substitute LIB_PATH.
812 * configure: Regenerate.
813 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
814 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
816 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
818 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
819 describing the -N option so that it is easier to translate into
822 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
824 * emultempl/pe.em (..._list_options): Replace multiple fprintf
825 statements describing a single option with a single, newline
826 escaped fprintf. This allows better translation into other
829 * ldmain.c (add_archive_element): Combine multiple strings
830 into a single string to permit better translation into other
833 2001-12-05 Tom Rix <trix@redhat.com>
835 * Makefile.am: Remove eaixppc64.
836 * Makefile.in: Regenerate.
838 2001-12-04 Tom Rix <trix@redhat.com>
840 * emultempl/aix.em (choose_target): Change default target to
841 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
843 (gld*_read_file): Fix typo.
844 (change_symbol_mode): Add prototype.
847 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
848 * emulparams/aixrs6.sh : Same.
849 * emulparams/ppcmacos.sh : Same.
850 * emulparams/aixppc64.sh : Delete file.
851 * emultempl/aix.em : Formatting changes.
853 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
855 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
856 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
858 (OTHER_END_SYMBOLS): Fix formatting.
859 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
860 (OTHER_END_SYMBOLS): Fix formatting.
862 2001-12-04 Alan Modra <amodra@bigpond.net.au>
864 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
866 2001-12-02 Tom Rix <trix@redhat.com>
868 * configure.tgt : Remove eaixppc64 emulations.
869 * Makefile.in : Remove eaixppc64.c
870 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
871 (ldemul_default_target): Same.
872 * emultempl/gld960.em (gld960_choose_target): Same.
873 * emultempl/gld960c.em (gld960_choose_target): Same.
874 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
875 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
876 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
877 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
878 * emultempl/aix.em (choose_target): New function. Handle emulation of
881 2001-11-27 H.J. Lu <hjl@gnu.org>
883 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
884 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
885 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
886 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
887 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
888 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
889 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
890 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
892 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
895 (REL_SDATA): Likewise.
896 (REL_SBSS): Likewise.
897 (REL_SDATA2): Likewise.
898 (REL_SBSS2): Likewise.
899 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
902 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
904 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
906 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
908 2001-11-22 H.J. Lu <hjl@gnu.org>
910 * Makefile.in: Regenerated with automake based on automake
913 2001-11-22 Alan Modra <amodra@bigpond.net.au>
915 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
916 (config.status): Delete rule.
917 Add extra dependencies to cover sourced emulparams files.
918 * Makefile.in: Regenerate.
920 * scripttempl/elf.sc: Order <section>, <section>.* and
921 corresponding linkonce sections as seen in input files.
922 Formatting fixes. Zero vma of all sections if not relocating.
923 (STACK): Define and insert if STACK_ADDR defined.
924 (OTHER_RELOCATING_SECTIONS): Delete.
925 (OTHER_END_SYMBOLS): Define.
926 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
927 (OTHER_READWRITE_SECTIONS): Likewise.
928 (OTHER_GOT_SECTIONS): Likewise.
929 (OTHER_SDATA_SECTIONS): Likewise.
930 (OTHER_BSS_SECTIONS): Likewise.
931 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
932 (OTHER_READWRITE_SECTIONS): Likewise.
933 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
934 (OTHER_READWRITE_SECTIONS): Likewise
936 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
937 (STACK_ADDR): Define.
938 * emulparams/armelf_oabi.sh: As for armelf.sh.
939 * emulparams/elf32mcore.sh: As for armelf.sh.
940 * emulparams/h8300elf.sh: As for armelf.sh.
941 * emulparams/mn10200.sh: As for armelf.sh.
942 * emulparams/shelf.sh: As for armelf.sh.
944 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
945 (OTHER_END_SYMBOLS): Define.
946 * emulparams/m32relf.sh: As for elf32fr30.sh.
947 * emulparams/h8300helf.sh: As for elf32fr30.sh.
948 * emulparams/h8300self.sh: As for elf32fr30.sh.
950 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
951 defines with RELOCATING test.
952 (OTHER_SDATA_SECTIONS): Likewise.
953 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
954 (OTHER_END_SYMBOLS): ..this.
955 * emulparams/crislinux.sh: As for criself.sh.
957 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
959 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
960 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
961 normal and linkonce sections as seen in input files.
962 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
963 (TEXT_DYNAMIC): Likewise.
964 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
965 (OTHER_SDATA_SECTIONS): Likewise.
966 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
967 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
968 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
969 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
970 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
971 (OTHER_PLT_RELOC_SECTIONS): Likewise.
972 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
973 sections as seen in input files.
974 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
975 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
977 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
978 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
979 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
980 (OTHER_SECTIONS): Instead, use this..
981 (OTHER_END_SYMBOLS): ..and this.
983 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
984 * emulparams/elf32bsmip.sh: Likewise.
985 * emulparams/elf32btsmip.sh: Likewise.
986 * emulparams/elf32ebmip.sh: Likewise.
987 * emulparams/elf32lmip.sh: Likewise.
988 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
989 * emulparams/elf32lsmip.sh: Likewise.
990 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
991 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
992 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
993 * emulparams/elf64btsmip.sh: Likewise.
994 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
995 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
996 * emulparams/elf32ppclinux.sh: Likewise.
997 * emulparams/elf32ppcsim.sh: Likewise.
998 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
999 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1000 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1001 * emulparams/h8300self.sh: Likewise.
1002 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1003 * emulparams/sh.sh: Comment.
1004 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1005 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1006 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1008 2001-11-21 David Heine <dlheine@tensilica.com>
1009 Alan Modra <amodra@bigpond.net.au>
1011 * ldlang.c (map_input_to_output_sections): Replace "break"
1012 accidentally removed with 2001-08-03 change.
1013 (lang_gc_sections_1): Likewise.
1015 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1017 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1019 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1021 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1022 of false when calling lang_size_sections.
1023 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1025 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1027 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1028 function when LDEMUL_FINISH isn't set to the same name. Don't
1029 call ${LDEMUL_FINISH}.
1030 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1031 * emultempl/armelf.em (arm_elf_finish): Call
1032 gld${EMULATION_NAME}_finish.
1033 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1034 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1035 hppaelf_layout_sections_again if necessary.
1036 (need_laying_out): New var.
1037 (hppaelf_layaout_sections_again): Rename to
1038 hppaelf_layout_sections_again. Clear need_laying_out.
1039 (PARSE_AND_LIST_OPTIONS): Format text.
1041 2001-11-14 H.J. Lu <hjl@gnu.org>
1043 * emultempl/armelf.em (arm_elf_finish): Renamed from
1044 gld${EMULATION_NAME}_finish.
1045 (LDEMUL_FINISH): Set to arm_elf_finish.
1047 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1049 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1050 (struct ld_emulation_xfer_struct): Use it.
1052 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1054 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1055 additional symbols referenced by newer crt0.o files from HP.
1057 2001-11-12 Anthony Green <green@redhat.com>
1059 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1061 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1063 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1064 * Makefile.in: Regenerate.
1066 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1068 * ld.texinfo: Use @command for commands, @option for options.
1069 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1071 * Makefile.in: Rebuild.
1073 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1075 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1076 Add support for targets.
1078 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1080 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1081 * configure: Regernate.
1082 * po/fr.po: New file.
1083 * po/sv.po: New file.
1085 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1087 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1088 as little endian default and to support big endian.
1090 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1092 * ld.texinfo (Options): Document new option, -nostdlib.
1093 * lexsup.c (OPTION_NOSTDLIB): New definition.
1094 (ld_options): Add entry for "nostdlib".
1095 (parse_args): Handle OPTIONS_NOSTDLIB.
1096 * ldfile.c (ldfile_add_library_path): Don't add directories
1097 to the search path if they weren't specified on the command line
1098 and -nostdlib was specified.
1099 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1101 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1103 * lexsup.c (parse_args): Prevent infinite parsing loop when
1104 "-rpath.a" is specified on the command line.
1105 Replace calls to fprintf with calls to einfo.
1107 2001-10-31 John Marshall <jmarshall@acm.org>
1109 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1110 appear only once across all the linker scripts involved in a link
1111 invocation no longer applies. Make the documentation reflect
1114 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1116 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1118 (sh-*-linux*): Added targ_extra_libpath.
1120 2001-10-31 David Heine <dlheine@tensilica.com>
1122 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1123 for padding statements.
1125 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1127 * configure.tgt (mmix-*-*): New target.
1128 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1129 Add dependencies to match.
1130 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1131 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1132 scripttempl/mmo.sc: New files.
1133 * gen-doc.texi: @set MMIX.
1134 * ld.texinfo: Ditto.
1135 [MMIX] Add MMIX node.
1136 * Makefile.in: Regenerate.
1138 2001-10-29 Kazu Hirata <kazu@hxi.com>
1140 * ldlang.c: Fix a comment typo.
1142 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1144 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1145 entries, and match *-*-linux*.
1147 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1149 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1150 with ldlex_script, ldlex_popstate.
1151 (ifile_p1): Likewise.
1152 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1154 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1155 to 1. Don't BEGIN(SCRIPT).
1156 (lex_redirect): Similarly.
1157 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1159 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1161 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1162 __EH_FRAME_END__ and accept eh frames into data section.
1163 Add ctor and dtor sections.
1165 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1167 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1168 (auto-export): Fix indentation.
1170 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1172 * pe-dll.c (autofilter_objectlist): Add startup objects
1174 (auto-export): Constify char * p.
1175 Extract file basename and use strcmp rather than ststr
1178 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1180 * ldmain.c (get_emulation): Improve comment about the handling
1183 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1185 * po/POTFILES.in: Regenerate.
1187 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1189 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1190 -z nocopyreloc and -z nocombreloc usage strings.
1192 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1194 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1197 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1199 * scripttempl/armaout.sc: Place .bss section after end of aligned
1200 data section to match behaviour of aout code in constructrion of
1203 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1205 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1206 startup files for mingw32 dlls to list.
1208 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1210 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1212 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1214 * configure.tgt (targ): Add arm9e-*-elf.
1216 2001-10-05 H.J. Lu <hjl@gnu.org>
1218 * genscripts.sh: Fix a typo in the last change.
1220 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1222 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1223 -z nocombreloc in usage.
1225 2001-10-03 Jim Blandy <jimb@redhat.com>
1227 * genscripts.sh: Include a comment at the top of each generated
1228 script, explaining its purpose.
1230 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1232 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1233 * NEWS: Mention -z nocopyreloc.
1234 * ld.texinfo (Options): Describe nocopyreloc.
1236 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1238 * configure: Regenerate.
1240 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1242 * ldver.h (ld_program_version): Remove declaration.
1243 * lexsup.c (parse_args): Move printing of copyright message..
1244 * ldver.c (ldversion): .. to here.
1245 Use BFD_VERSION_STRING in place of BFD_VERSION.
1246 (ld_program_version): Remove.
1247 * Makefile.am (Makefile): Depend on bfd/configure.in.
1249 * Makefile.in: Regenerate.
1251 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1253 * Makefile.am: Update dependencies with "make dep-am".
1254 * Makefile.in: Regenerate.
1256 2001-09-29 John Reiser <jreiser@BitWagon.com>
1258 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1259 * lexsup.c: Add --no-define-common commandline option.
1260 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1261 * ldlex.l: Likewise.
1262 * ld.h: Add command_line.inhibit_common_definition.
1263 * ldmain.c (main): Initialize.
1264 * ld.texinfo: Document.
1266 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1268 * ldmisc.c (USE_STDARG): Remove.
1269 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1274 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1275 declarations. Update copyright.
1277 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1279 * pe-dll.c: Remove obsoleted declaration of
1280 pe_get_data_import_dll_name.
1281 (pe_create_import_fixup): Fix thinko.
1283 * ld.texinfo(enable-auto-import): Clarify the explanation.
1285 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1287 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1288 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1289 DLL_SUPPORT controlled code.
1291 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1293 * emultempl/pe.em(pe_data_import_dll): Make static.
1294 (pe_get_data_import_dll_name): New accessor function.
1295 * pe-dll.c(pe_create_import_fixup): call
1296 pe_get_data_import_dll_name() from pe.em, instead of
1297 directly accessing pe_data_import_dll variable from pe.em.
1299 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1301 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1302 (def_file_add_directive): Use ISSPACE instead of isspace.
1303 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1304 isdigit/isxdigit/isalpha/isalnum.
1305 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1306 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1307 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1308 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1310 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1311 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1313 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1314 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1315 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1316 (ctor_prio): Use ISDIGIT instead of isdigit.
1317 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1318 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1319 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1321 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1322 (stricpy): Use TOLOWER instead of isupper/tolower.
1323 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1324 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1325 (lex_warn_invalid): Use ISPRINT instead of isprint.
1326 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1327 (main): For gettext, also set the LC_CTYPE locate facet.
1328 (add_keepsyms_file): Use ISSPACE instead of isspace.
1329 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1330 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1331 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1332 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1333 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1334 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1335 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1336 (quoteput): Use ISSPACE instead of isspace.
1337 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1340 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1342 * deffilep.y (def_stash_module): Constify "name" param.
1344 * pe-dll.c: Replace CONST with const throughout.
1345 (quick_symbol): Constify "n1", "n2", "n3" params.
1346 (make_singleton_name_thunk): Constify "import" param. Make
1347 "buffer_len" a size_t.
1348 (make_import_fixup_entry): Constify "name", "fixup_name",
1349 "dll_symname" params.
1350 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1351 (pe_get32): Likewise.
1352 (pe_implied_import_dll): Likewise.
1354 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1355 (sort_by_section_name): Likewise.
1357 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1358 (make_import_fixup): Cast printf arg, rel->address to long rather
1360 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1362 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1364 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1365 defines BufferSize. Increase buffer size by one.
1367 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1369 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1371 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1373 * configure.tgt: Add arm-openbsd target.
1375 2001-09-12 H.J. Lu <hjl@gnu.org>
1377 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1379 (ALL_64_EMULATIONS): Here.
1380 * Makefile.in: Regenerated.
1382 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1384 * emultempl/pe.em(make_import_fixup): change signature to
1385 take asection as well as arelec; we need this for proper
1386 error reporting. Only call pe_create_import_fixup() if
1387 there is no attempt to add a constant addend to the reloc;
1388 otherwise, report error condition.
1389 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1390 since final argument is a pointer to make_import_fixup().
1391 Change call to cb() to match make_import_fixup() signature.
1392 (make_import_fixup_mark): make buffer_len unsigned.
1393 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1395 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1397 * ld.texinfo: add verbose documentation for auto-import
1398 direct-addressing workaround, to compliment the terse
1401 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1403 * scripttempl/v850.sc: Add gcc_except_table sections.
1405 2001-09-11 Jeffrey A Law (law@cygnus.com)
1407 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1408 * emulparams/h8300self.sh: Similarly.
1410 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1412 * ld.texinfo (Options, --stack): Correct default value for stack
1415 2001-09-05 Tom Rix <trix@redhat.com>
1417 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1419 2001-09-03 Andreas Jaeger <aj@suse.de>
1421 * emultempl/beos.em: Declare prototypes for comparions functions,
1424 2001-09-02 Andreas Jaeger <aj@suse.de>
1426 * emultempl/aix.em: Add missing prototype.
1427 * emultempl/lnk960.em: Likewise.
1428 * emultempl/vanilla.em: Likewise.
1429 * emultempl/armcoff.em: Likewise.
1430 * emultempl/armelf_oabi.em: Likewise.
1431 * emultempl/beos.em: Likewise.
1432 * emultempl/gld960c.em: Likewise.
1433 * emultempl/gld960.em: Likewise.
1435 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1436 for prototype declaration.
1438 2001-08-31 Eric Christopher <echristo@redhat.com>
1439 Jason Eckhardt <jle@redhat.com>
1441 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1443 2001-08-31 Andreas Jaeger <aj@suse.de>
1445 * emultempl/pe.em: Add missing prototypes.
1446 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1447 pe_find_data_imports.
1448 (pr_sym): Add unused attribute.
1450 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1452 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1453 default from coff to elf.
1455 2001-08-29 Jeff Law <law@redhat.com>
1457 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1459 * emulparams/h8300self.sh: Similarly.
1461 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1463 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1465 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1466 * configure.tgt (h8300-*-elf*): New case.
1467 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1468 * emulparams/h8300self.sh: New file.
1469 * Makefile.in: Regenerated.
1471 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1473 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1476 2001-08-27 Linus Nordberg <linus@swox.com>
1477 Alan Modra <amodra@bigpond.net.au>
1479 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1480 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1482 * Makefile.in: Regenerate.
1483 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1484 entries to correct alphabetical position.
1485 * emulparams/elf64ppc.sh: New.
1486 * emulparams/elf64lppc.sh: New.
1488 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1490 * ldmain.c (main): Declare BSIZE as static.
1492 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1494 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1495 into .rel.dyn resp. .rela.dyn if combreloc.
1496 (get_script): If .x linker script is equal to .xn, only put it
1497 once into the binary.
1498 Add .xc and .xsc scripts.
1499 (parse_args): Handle -z combreloc and -z nocombreloc.
1500 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1501 For .xc and .xsc scripts put all .rel* or .rela* input sections
1502 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1503 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1505 Strip trailing whitespace from script.
1506 Generate .xc and .xsc scripts if requested.
1507 * ldmain.c (main): Initialize link_info.combreloc and
1508 link_info.spare_dynamic_tags.
1509 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1510 (ld_options): Add --spare-dynamic-tags option.
1511 (parse_args): Likewise.
1512 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1513 * ldint.texinfo: Document .xc and .xsc linker scripts.
1514 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1516 2001-08-22 H.J. Lu <hjl@gnu.org>
1518 * emulparams/elf32fr30.sh: Add a newline.
1520 2001-08-21 Andreas Jaeger <aj@suse.de>
1522 * deffilep.y: Add missing prototypes.
1523 * pe-dll.c: Likewise.
1525 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1527 * ldlang.c (insert_pad): Fix typos in last patch.
1529 * ldlang.c: When traversing lang_statement_union_type lists,
1530 consistently use "header.next" rather than "next".
1531 * mpw-eppcmac.c: Likewise.
1532 * emultempl/beos.em: Likewise.
1533 * emultempl/hppaelf.em: Likewise.
1534 * emultempl/pe.em: Likewise.
1535 * ldlang.h (union lang_statement_union): Remove "next" field.
1537 * ldlang.c (insert_pad): Use offsetof macro.
1538 (lang_size_sections): Always neuter padding statements.
1539 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1541 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1542 passed to lang_size_sections.
1543 (pe_exe_fill_sections): Likewise.
1544 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1545 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1547 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1549 * emultempl/aix.em: Formatting fixes.
1551 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1553 * ldlang.c (insert_pad): Make use of an existing pad statement if
1554 available. Move code calculating alignment, adjusting section
1555 alignment power, and adjusting dot to ..
1556 (size_input_section): .. here. Remove unused relax param.
1557 (lang_size_sections): Change boolean `relax' param to boolean *.
1558 Adjust call to size_input_section. Make use of insert_pad to
1559 place pad after the assignment statement. If relaxing, zap
1561 (reset_memory_regions): Reset output_bfd section sizes too.
1562 (relax_again): Move to..
1563 (lang_process): ..here. Adjust call to lang_size_sections, and
1564 remove duplicated code.
1565 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1567 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1569 * ld.texinfo: Document that fill values now use the four least
1571 * emulparams/elf32fr30.sh (NOP): Update.
1572 * emulparams/elf32mcore.sh: Likewise.
1573 * emulparams/elf64_s390.sh: Likewise.
1574 * emulparams/elf_i386.sh: Likewise.
1575 * emulparams/elf_i386_be.sh: Likewise.
1576 * emulparams/elf_i386_chaos.sh: Likewise.
1577 * emulparams/elf_i386_ldso.sh: Likewise.
1578 * emulparams/elf_s390.sh: Likewise.
1579 * emulparams/elf_x86_64.sh: Likewise.
1580 * emulparams/i386moss.sh: Likewise.
1581 * emulparams/i386nw.sh: Likewise.
1582 * emulparams/m68kelf.sh: Likewise.
1583 * scripttempl/elf.sc: Update NOP comment.
1584 * scripttempl/elfi370.sc: Likewise.
1585 * scripttempl/elfm68hc11.sc: Likewise.
1586 * scripttempl/elfm68hc12.sc: Likewise.
1587 * scripttempl/nw.sc: Likewise.
1589 2001-08-15 Tom Rix <trix@redhat.com>
1591 * ldgram.y (saved_script_handle): Initialize to NULL.
1592 * ldmain.c (main): Change check on saved_script_handle.
1594 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1596 * emultempl/elf32.em: Formatting fixes.
1597 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1598 looking at sec->owner.
1599 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1600 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1601 unused code, and reorganize orphan section placement code.
1603 * ldlang.c (wild_doit): Rename to lang_add_section.
1604 * ldlang.h: Here too.
1605 * mpw-elfmips.c: And here.
1606 * emultempl/beos.em: And here.
1607 * emultempl/elf32.em: And here.
1608 * emultempl/hppaelf.em: And here.
1609 * emultempl/pe.em: And here.
1611 2001-08-13 Richard Henderson <rth@redhat.com>
1613 * emultempl/needrelax.em: New file.
1614 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1615 * Makefile.am (eelf64_ia64.c): Depend on it.
1616 * Makefile.in: Rebuild.
1618 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1620 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1621 output_section is set non-NULL.
1623 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1624 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1625 needlessly create an output_section_statement. Treat a correctly
1626 named output_section_statement with NULL bfd_section as compatible.
1628 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1630 * emultempl/generic.em: Support EXTRA_EM_FILE.
1631 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1632 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1633 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1634 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1635 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1636 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1637 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1638 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1639 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1640 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1642 2001-08-12 Richard Henderson <rth@redhat.com>
1644 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1645 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1646 scripttempl/v850.sc: Keep .jcr data.
1648 2001-08-12 H.J. Lu <hjl@gnu.org>
1649 Andrew Haley <aph@cambridge.redhat.com>
1650 Nick Clifton <nickc@redhat.com>
1652 * ldgram.y (had_script): Change name to saved_script_handle.
1653 Change type to file handle.
1654 * ld.h (had_script): Rename and retype.
1655 * ldfile.c (ldfile_open_command_file): Save the file handle
1656 used in saved_script_handle.
1657 * lexsup.c (parse_args): Do not allow -c option to alter
1658 saved_script_handle.
1659 * ldmain.c (main): Print out the linker script used if
1660 --verbose is given. Check saved_script_handle to obtain the
1661 external linker script used, or if NULL, dump the builtin
1663 * ld.texinfo: Document that --verbose now dumps the linker
1664 script used, regardless of whether it was an internal or an
1667 2001-08-10 Andreas Jaeger <aj@suse.de>
1669 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1671 * configure: Regenerate.
1673 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1675 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1677 * scripttempl/elf.sc: Move non-text .dynamic section before
1678 .plt/.got/.sdata* group.
1679 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1680 (OTHER_SDATA_SECTIONS): Add.
1681 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1683 * emulparams/crislinux.sh: Likewise.
1684 * emulparams/elf32b4300.sh: Likewise.
1685 * emulparams/elf32bmip.sh: Likewise.
1686 * emulparams/elf32bmipn32.sh: Likewise.
1687 * emulparams/elf32bsmip.sh: Likewise.
1688 * emulparams/elf32btsmip.sh: Likewise.
1689 * emulparams/elf32ebmip.sh: Likewise.
1690 * emulparams/elf32elmip.sh: Likewise.
1691 * emulparams/elf32l4300.sh: Likewise.
1692 * emulparams/elf32lmip.sh: Likewise.
1693 * emulparams/elf32lsmip.sh: Likewise.
1694 * emulparams/elf32ltsmip.sh: Likewise.
1695 * emulparams/elf64bmip.sh: Likewise.
1696 * emulparams/elf64btsmip.sh: Likewise.
1697 * emulparams/elf64ltsmip.sh: Likewise.
1699 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1701 * genscripts.sh: Source the emulparams script before each output
1702 script is generated so that variables like `RELOCATING' may affect
1703 variables defined in the emulparams script.
1705 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1707 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1710 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1711 ie. iterate over wild_statement.section_list.
1712 (gld${EMULATION_NAME}_place_orphan): Likewise.
1714 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1716 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1717 .fini[0-4] sections used by _exit
1718 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1719 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1720 * scripttempl/elfm68hc11.sc: Likewise.
1722 2001-08-03 H.J. Lu <hjl@gnu.org>
1724 * emultempl/beos.em (init): Add the missing initialization.
1726 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1728 * ld.texinfo (Input Section Basics): Clarify ordering of output
1730 * ldlang.c (callback_t): Add wildcard_list param.
1731 (walk_wild_section): Remove "section" param. Rewrite for
1732 lang_wild_statement_type change. Remove unique_section_p test.
1733 (walk_wild_file): Remove "section" param.
1734 (walk_wild): Remove "section" and "file" params.
1735 (lang_gc_wild): Likewise.
1736 (wild): Likewise. Modify for lang_wild_statement_type change.
1737 (wild_sort): Likewise. Add "sec" param.
1738 (gc_section_callback): Likewise.
1739 (output_section_callback): Likewise. Do unique_section_p test.
1740 (map_input_to_output_sections): Modify call to wild.
1741 (lang_gc_sections_1): Likewise.
1742 (print_wild_statement): Modify for lang_wild_statement_type
1744 (lang_add_wild): Replace filename, filenames_sorted param with
1745 filespec. Replace section_name, sections_sorted,
1746 exclude_filename_list with section_list.
1747 * ldlang.h (lang_add_wild): Here too.
1748 (lang_wild_statement_type): Replace section_name, sections_sorted,
1749 and exclude_filename_list with section_list.
1750 * ldgram.y (current_file): Delete.
1751 (%union): Add wildcard_list.
1752 (file_NAME_list): Set type to wildcard_list. Build a linked list
1753 rather than calling lang_add_wild for each entry.
1754 (input_section_spec_no_keep): Call lang_add_wild here instead.
1755 * ld.h (struct wildcard_list): Declare.
1756 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1758 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1760 * ldmain.c (main): initialize link_info.pei386_auto_import
1761 * pe-dll.c: new tables for auto-export filtering
1762 (auto_export): change API, pass abfd for contextual filtering.
1763 Loop thru tables of excluded symbols instead of comparing
1766 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1768 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1769 static variable current_sec (static struct sec *). Add
1770 forward declaration for add_bfd_to_link.
1771 (process_def_file): Don't export undefined symbols. Do not
1772 export symbols starting with "_imp__". Call auto_export()
1774 (pe_walk_relocs_of_symbol): New function.
1775 (generate_reloc): add optional extra debugging
1776 (pe_dll_generate_def_file): eliminate extraneous initial blank
1778 (make_one): enlarge symtab to make room for __nm__ symbols
1779 (DATA auto-import support).
1780 (make_singleton_name_thunk): New function.
1781 (make_import_fixup_mark): New function.
1782 (make_import_fixup_entry): New function.
1783 (pe_create_import_fixup): New function.
1784 (add_bfd_to_link): Specify that 'name' argument is a CONST
1786 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1787 declare new functions pe_walk_relocs_of_symbol and
1788 pe_create_import_fixup.
1789 * emultempl/pe.em: add new options --enable-auto-import,
1790 --disable-auto-import, and --enable-extra-pe-debug.
1791 (make_import_fixup): New function.
1792 (pe_find_data_imports): New function.
1793 (pr_sym): New function.
1794 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1795 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1798 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1800 * ld.texinfo: add additional documentation for
1801 --export-all-symbols. Document --out-implib,
1802 --enable-auto-image-base, --disable-auto-image-base,
1803 --dll-search-prefix, --enable-auto-import, and
1804 --disable-auto-import.
1805 * ldint.texinfo: Add detailed documentation on auto-import
1808 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1810 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1813 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1815 * Makefile.am: Update dependencies with "make dep-am".
1816 * Makefile.in: Regenerate
1818 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1820 * ldcref.c (check_section_sym_xref): New function.
1821 (check_nocrossrefs): Call it.
1822 (check_nocrossref): Interate over h->refs here instead of..
1823 (check_refs): ..here. Pass in the symbol name, section, and bfd
1824 rather than hash_entry pointers.
1825 (struct check_refs_info): Keep symbol name rather than hash entry.
1827 (check_reloc_refs): Tweak for above changes in check_refs_info.
1828 Only report references to section syms when symname is NULL to
1829 prevent duplicate messages for the same reloc.
1831 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1833 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1834 available. Do not print NULL trees.
1835 (exp_print_token): Print unknown tokens with values > 126 as
1836 decimal values not ASCII characters.
1838 * ldlang.c (lang_leave_overlay): If a region is specified assign
1839 it to all sections inside the overlay unless they have been
1840 assigned to the own, non-default, memory region.
1842 * README: Add header for consistency with other README files.
1844 2001-07-14 H.J. Lu <hjl@gnu.org>
1846 * emultempl/elf32.em (output_prev_sec_find): Never return
1847 bfd_abs_section_ptr, bfd_com_section_ptr nor
1848 bfd_und_section_ptr.
1850 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1852 * Makefile.am (em32relf.c): Change dependency from generic.em to
1854 * Makefile.in: Regenerate.
1856 2001-07-14 matthew green <mrg@eterna.com.au>
1858 * configure.tgt (i386-*-netbsdelf*): New target.
1859 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1861 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1863 * emultempl/elf32.em (output_prev_sec_find): New.
1864 (place_orphan): Use it.
1866 2001-07-11 H.J. Lu <hjl@gnu.org>
1868 * ldmain.c (main): Fix typos in the last change.
1870 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1872 * ldmain.c (main): Disallow -F and -f without -shared.
1874 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1876 * emultempl/pe.em (after_open): Check for the output_bfd not
1877 having any coff_data structure allocated to it.
1879 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1881 * emultempl/elf32.em: Do not assuming that contents of the buffer
1882 returned from basename function will remain unchanged accross other
1885 2001-07-03 H.J. Lu <hjl@gnu.org>
1887 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1888 2001-07-03. It creates dynamic entries even for static binaries.
1890 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1892 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1893 (DYNAMIC): Use it to reserve few dynamic entries for
1896 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1898 * emulparams/hppa64linux.sh: New file.
1899 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1900 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1901 (ehppa64linux.c): Add rule to make it.
1903 * Makefile.in: Regenerate.
1905 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1907 * ld.texinfo (Options, -r): Mention restrictions when using
1908 different object formats.
1910 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1912 * ldlang.c (lang_check): Emit fatal error if relocatable link
1913 between different object flavours with relocations in input.
1915 2001-06-19 H.J. Lu <hjl@gnu.org>
1917 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1918 (--version-script): Mention the language support.
1920 2001-06-19 H.J. Lu <hjl@gnu.org>
1922 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1924 2001-06-18 H.J. Lu <hjl@gnu.org>
1926 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1927 (diststuff): Add $(MANS).
1928 * Makefile.in: Regenerated.
1932 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1934 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1935 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1936 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1937 * ld.h (args_type): Remove member export_dynamic. All users
1938 changed to use struct bfd_link_info member.
1940 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1941 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1942 * Makefile.in: Regenerate.
1944 2001-06-18 H.J. Lu <hjl@gnu.org>
1946 * ldlang.c (init_os): Add the newline to the einfo call.
1947 (lang_check): Likewise.
1948 (lang_do_version_exports_section): Likewise.
1950 2001-06-15 H.J. Lu <hjl@gnu.org>
1952 * lexsup.c (parse_args); Save optind to report unrecognized
1955 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1957 * ldlang.c (lang_check): Emit fatal error if relocatable link
1958 between different object flavours.
1960 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1961 Set new link_info member export_dynamic.
1962 * ldmain.c (main): Initialize new link_info member export_dynamic.
1964 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1966 * ldlang.c (walk_wild): Only call walk_wild_file if
1967 lookup_name returns something.
1968 (lookup_name): If load_symbols fails, return NULL.
1969 (load_symbols): Change to a boolean function.
1970 (open_input_bfds): If load_symbols fails then do not make the
1973 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1975 * ldlang.c (record_bfd_errors): Remove.
1977 * emultempl/aix.em: Fix copyright dates.
1979 2001-06-07 Andreas Jaeger <aj@suse.de>
1981 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1982 (TEXT_START_ADDR): Likewise.
1984 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1986 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1988 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1990 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1992 2001-05-31 H.J. Lu <hjl@gnu.org>
1994 * ldlang.c (open_input_bfds): Don't change the bfd error
1995 handler whilst loading symbols.
1997 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1999 * configure.tgt: Remove i370-mvs architecture, it is not currently
2002 2001-05-25 H.J. Lu <hjl@gnu.org>
2004 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2005 like emulparams/aixppc.sh.
2007 2001-05-25 H.J. Lu <hjl@gnu.org>
2009 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2010 setting of output_filename after bfd_scan_arch.
2011 * emultempl/pe.em: Likewise.
2013 2001-05-25 H.J. Lu <hjl@gnu.org>
2015 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2016 like emulparams/aixppc.sh.
2018 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2019 instead of ${srcdir}/emultempl/stringify.sed.
2021 2001-05-25 Timothy Wall <twall@oculustech.com>
2023 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2026 2001-05-25 Alan Modra <amodra@one.net.au>
2028 * configure.host: Replace linuxoldld with linux*oldld.
2029 * configure.tgt: Likewise.
2031 2001-05-24 H.J. Lu <hjl@gnu.org>
2033 * emultempl/stringify.sed: Removed again.
2035 2001-05-24 H.J. Lu <hjl@gnu.org>
2037 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2038 (gld${EMULATION_NAME}_before_parse): Initialize
2039 ldfile_output_architecture, ldfile_output_machine and
2040 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2041 * emultempl/beos.em: Likewise.
2042 * emultempl/elf32.em: Likewise.
2043 * emultempl/linux.em: Likewise.
2044 * emultempl/mipsecoff.em: Likewise.
2045 * emultempl/pe.em: Likewise.
2046 * emultempl/sunos.em: Likewise.
2048 2001-05-24 Tom Rix <trix@redhat.com>
2050 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2051 udate import file format.
2052 (change_symbol_mode) New, same
2053 (is_syscall) New, same
2054 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2055 * emulparams/aixppc64.sh : same
2056 * emulparams/aixrs6.sh : same
2057 * emulparams/ppcmacos.sh : same
2058 * emultempl/aix.em : use strtoull to parse options
2059 * Makefile.am : add eaixppc64 emulation for xcoff64
2060 * Makefile.in : same
2061 * configure.tgt : same
2063 * scripttempl/aix.sc : default text section offset to 0x10000000
2064 default data section offset to 0x20000000
2065 add .sv3264 and .sv64 pseudo sections
2066 loader and debug sections use the currect section offset.
2068 * emultempl/aix.em : Add xcoff64 support
2069 Add -binitfini support
2070 (gld${EMULATION_NAME}_before_parse) -binitfini
2071 (gld${EMULATION_NAME}_parse_args) same
2072 (gld${EMULATION_NAME}_before_allocation) format change for special
2075 * emulparams/aixppc64.sh : New file for xcoff64 support
2077 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2079 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2080 variable to avoid non-portable shell construct.
2082 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2084 * ldmain.c (get_emulation): Add -mips5 command line argument.
2086 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2088 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2089 (ELF_INTERPRETER_NAME): Define it.
2090 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2092 * configure.tgt (targ_emul, targ_extra_emuls)
2093 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2094 as primary, elf_i386 as extra.
2095 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2096 (eelf_i386_ldso.c): New rule.
2097 * Makefile.in: Rebuilt.
2099 2001-05-22 Nick Clifton <nickc@redhat.com>
2101 * lexsup.c (ld_options): Allow -I to be an alias for
2102 --dynamic-linker. This is for Solaris compatability.
2103 * ld.texinfo: Document that -I can be used.
2106 2001-05-16 Alan Modra <amodra@one.net.au>
2108 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2109 whether an input section is the first one assigned to an output
2111 Assorted formatting fixes.
2113 2001-05-14 DJ Delorie <dj@delorie.com>
2115 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2116 * Makefile.in: Ditto.
2118 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2120 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2121 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2123 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2125 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2127 * ldlang.c (lang_process): Call bfd_merge_sections.
2129 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2131 * ldgram.y: Fix typo.
2133 2001-05-03 H.J. Lu <hjl@gnu.org>
2135 * emultempl/elf32.em: Include "libiberty.h".
2136 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2137 basename of the bfd filename.
2138 (gld${EMULATION_NAME}_stat_needed): Likewise.
2139 (gld${EMULATION_NAME}_try_needed): Likewise.
2140 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2142 2001-05-02 H.J. Lu <hjl@gnu.org>
2144 * emultempl/pe.em: Include <ctype.h>.
2146 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2148 * emulparams/elf32openrisc.sh: New file.
2150 * Makefile.am: Add OpenRISC target.
2151 * Makefile.in: Regenerated.
2153 * configure.tgt: Add openrisc-*-* mapping.
2155 2001-05-02 Nick Clifton <nickc@redhat.com>
2157 * emultempl/aix.em: Replace buystring with xstrdup.
2158 * emultempl/beos.em: Replace buystring with xstrdup.
2160 2001-05-02 H.J. Lu <hjl@gnu.org>
2162 * ldfile.c: Include "libiberty.h".
2163 * ldlex.l: Likewise.
2165 * ldmisc.c (buystring): Removed.
2166 * ldmisc.h: Likewise.
2168 * ldfile.c: Replace buystring with xstrdup.
2169 * ldlang.c: Likewise.
2170 * ldlex.l: Likewise.
2171 * ldmain.c: Likewise.
2172 * ldmisc.c: Likewise.
2173 * lexsup.c: Likewise.
2174 * mpw-eppcmac.c: Likewise.
2176 2001-04-30 Andreas Jaeger <aj@suse.de>
2178 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2180 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2182 * ldlang.c (load_symbols): Give emulation a chance
2183 to process unrecognized file before fatal error is
2184 reported, not after.
2186 2001-04-27 Sean McNeil <sean@mcneil.com>
2188 * configure.tgt: Add arm-vxworks target.
2189 * scripttempl/armcoff.sc: Support .text or .data as a section name
2193 2001-04-13 J.T. Conklin <jtc@redback.com>
2195 * ld.texinfo: Document --fatal-warnings.
2198 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2199 warnings have been turned into errors.
2200 * lexsup.c (OPTION_WARN_FATAL): Define.
2201 (ld_options): Entry for --fatal-warnings.
2202 (parse_args): Handle OPTION_WARN_FATAL.
2203 * ld.h (ld_config_type): Add fatal_warnings field.
2205 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2207 * ldmain.c (main): Default to discard_sec_merge.
2208 * lexsup.c (OPTION_DISCARD_NONE): Define.
2209 (ld_options): Add --discard-none.
2210 (parse_args): Handle OPTION_DISCARD_NONE.
2211 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2212 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2213 all its input sections match.
2215 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2217 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2218 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2219 (eelf32ltsmip.c): New target.
2220 (eelf64btsmip.c): Likewise.
2221 (eelf64ltsmip.c): Likewise.
2222 * Makefile.in: Regenerated.
2224 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2226 (mips*-*-linux-gnu*): Likewise.
2228 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2230 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2232 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2235 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2237 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2238 correct value of __Stext here.
2239 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2242 * emulparams/crislinux.sh: Remove FIXME.
2244 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2246 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2247 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2249 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2251 * configure.tgt (cris-*-*): Change default emulation to criself.
2252 (cris-*-*aout*): New rule.
2254 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2256 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2257 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2259 2001-03-26 Andreas Jaeger <aj@suse.de>
2261 * ld.texinfo (Overview): Fix syntax in texi code.
2263 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2265 * ld.texinfo: Put @c man indications to generate the ld man page.
2266 When generating man, define all the variables. Define SEEALSO
2267 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2268 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2269 (ld.1): Generate from ld.texinfo.
2270 * Makefile.in: Regenerate.
2272 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2274 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2275 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2277 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2279 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2280 is an absolute path look only for this file and not along the path.
2282 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2284 * emultempl/elf32.em (OPTION_GROUP): New macro.
2285 Add new option Bgroup to longopts.
2286 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2287 (gld*_list_options): Add -Bgroup and -z defs.
2288 * ld.1: Document -Bgroup and -z defs.
2289 * ld.texinfo: Likewise.
2291 2001-03-07 Michael Meissner <meissner@redhat.com>
2293 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2294 with sections created by -fdata-sections.
2295 (.dynbss,.bss): Ditto.
2297 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2299 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2300 after_allocation_default, not gld..._before_allocation.
2302 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2304 * configure.in (BFD_VERSION): New.
2305 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2306 * configure: Regenerate.
2307 * Makefile.am: Run "make dep-am"
2308 * Makefile.in: Regenerate.
2310 2001-02-26 Timothy Wall <twall@cygnus.com>
2312 * emulparams/elf64_aix.sh: Add additional read-only sections;
2313 uncomment lines which are now required.
2315 2001-02-26 H.J. Lu <hjl@gnu.org>
2317 * ldlang.c (open_input_bfds): Set the bfd error handler so
2318 that problems can be caught whilst loading symbols.
2319 (record_bfd_errors): New function: Report BFD errors and mark
2320 the executable output as being invalid.
2322 2001-02-22 Timothy Wall <twall@cygnus.com>
2324 * configure.host: Add configuration for ia64-*-aix*.
2325 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2326 Add dependencies for eelf64_aix.c.
2327 * Makefile.in: Regenerate.
2328 * configure.tgt: Add ia64-*-aix* mapping.
2329 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2330 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2333 2001-02-20 H.J. Lu <hjl@gnu.org>
2335 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2336 false if we found the file.
2338 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2340 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2341 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2343 2001-02-18 lars brinkhoff <lars@nocrew.org>
2345 * Makefile.am: Add PDP-11 target.
2346 * configure.tgt: Likewise.
2347 * emulparams/pdp11.sh: New file.
2349 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2351 * configure.host: Add a generic FreeBSD configuration entry such that
2352 all [modern] FreeBSD systems on all platforms will look the same.
2354 2001-02-14 H.J. Lu <hjl@gnu.org>
2356 * configure.tgt: Remove mention of earmelf_linux26.
2358 2001-02-13 Richard Henderson <rth@redhat.com>
2360 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2362 2001-02-13 H.J. Lu <hjl@gnu.org>
2364 * ldexp.h (node_type): Add etree_provided.
2365 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2366 type to etree_provided if defined by PROVIDE. Allow updating
2368 (exp_print_tree): Handle etree_provided.
2369 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2372 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2374 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2375 .IA_64.unwind.* pattern to unwind table section and
2376 .IA_64.unwind_info* pattern to unwind info section.
2378 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2380 * Makefile.am: Add linux target for S/390.
2381 * Makefile.in: Likewise.
2382 * configure.host: Likewise.
2383 * configure.tgt: Likewise.
2384 * emulparams/elf64_s390.sh: New file.
2385 * emulparams/elf_s390.sh: New file.
2387 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2389 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2391 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2393 2001-02-06 Philip Blundell <philb@gnu.org>
2395 * Makefile.am: Remove mention of earmelf_linux26.
2396 * Makefile.in: Regenerate.
2398 2001-02-04 Philip Blundell <philb@gnu.org>
2400 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2401 * emulparams/armelf_linux26.sh: Delete.
2402 * configure.tgt: Remove mention of armelf_linux26 emulation.
2404 2001-02-01 Nick Clifton <nickc@redhat.com>
2406 * ld.1: Replace occurances of -oformat with --oformat.
2408 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2410 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2411 load_base is specified.
2413 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2415 * emultempl/elf32.em: Correct spelling in comments and listed
2418 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2420 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2421 default for the first section of a group of overlay sections.
2423 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2425 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2426 * Makefile.in: Regenerate.
2427 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2428 Check for null tool_dir.
2430 2001-01-16 Jim Wilson <wilson@redhat.com>
2432 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2433 and IA_64.unwind.info.
2435 2001-01-16 H.J. Lu <hjl@gnu.org>
2437 * ldlang.c (lang_check): Merge the private data only if the
2438 input file has contents.
2440 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2442 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2444 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2445 enabling search for libmilli. On a relocatable link, make .text
2447 (LDEMUL_AFTER_PARSE): Define.
2448 (hppaelf_finish): Correct spelling of relocatable in comments.
2450 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2451 rummage through the script for sections on the unique list.
2452 Correct length of strncmp for ".note".
2453 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2455 * ldlang.c (unique_section_list): New var.
2456 (unique_section_p): New function.
2457 (walk_wild_section): Don't match sections on unique_section_list.
2458 (lang_add_unique): New function.
2459 Correct spelling of relocatable in comments.
2461 * ldlang.h (struct unique_sections): Declare.
2462 (unique_section_list): Declare.
2463 (unique_section_p): Declare.
2464 (lang_add_unique): Declare.
2466 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2467 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2469 * ld.texinfo (--unique): Update.
2471 2001-01-13 Nick Clifton <nickc@redhat.com>
2473 * lexsup.c (parse_args): Remove spurious white space.
2475 2001-01-12 Nick Clifton <nickc@redhat.com>
2477 * lexsup.c (parse_args): Update copyright date.
2479 2001-01-12 Philip Blundell <pb@futuretv.com>
2481 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2483 2001-01-10 Kazu Hirata <kazu@hxi.com>
2485 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2486 * scripttempl/h8300h.sc: Fix formatting.
2487 * scripttempl/h8300s.sc: Likewise.
2488 * scripttempl/h8500.sc: Likewise.
2489 * scripttempl/h8500b.sc: Likewise.
2490 * scripttempl/h8500c.sc: Likewise.
2491 * scripttempl/h8500m.sc: Likewise.
2492 * scripttempl/h8500s.sc: Likewise.
2494 2000-01-07 David O'Brien <obrien@BSDi.com>
2496 * emultempl/elf32.em: Only perform Linux ld hints processing when
2499 2001-01-07 Philip Blundell <philb@gnu.org>
2501 * ld.texinfo (Bug Reporting): Update email address for reports.
2503 2000-12-31 Nick Clifton <nickc@redhat.com>
2505 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2506 options by checking for a return value of '?' not -1.
2508 2000-12-28 Nick Clifton <nickc@redhat.com>
2510 * lexsup.c (struct ld_option): Add new enum value:
2512 (ld_options[]): Change -omagic, -output and -oformat options
2513 to be EXACTLY_TWO_DASHES.
2514 (OUTPUT_COUNT): Use ARRAY_SIZE.
2515 (parse_args): Change parameter 'argc' to unsigned.
2516 Place EXACTLY_TWO_DASHES options into new really_longopts
2518 If getopt_long_only fails, try calling getopt_long using the
2519 really_longopts array.
2520 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2523 * ldlex.h: Fix prototype of parse_args.
2525 * ld.texinfo: Document that long options starting with 'o'
2526 must be preceeded by two dashes. Change example of a single
2527 dashed long option from -oformat to -trace-symbol.
2529 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2531 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2532 (longopts[]): New --no-default-excludes option.
2533 (gld_${EMULATION_NAME}_list_options): Document.
2534 (gld_${EMULATION_NAME}_parse_args): Handle.
2536 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2538 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2539 whitespace, it breaks the K&R C preprocessor.
2541 2000-12-11 DJ Delorie <dj@redhat.com>
2543 * ld.texinfo: Add notes about --whole-archive and gcc.
2545 2000-11-18 Fred Fish <fnf@be.com>
2547 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2548 (ld_options): Entry for --allow-shlib-undefined.
2549 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2550 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2552 * ld.texinfo: Document new command line switch.
2554 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2556 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2557 .fixup is actually read/write.
2558 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2559 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2560 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2562 2000-12-11 Jan Hubicka <jh@suse.cz>
2564 * NEWS: Add note about x86_64 architecture.
2566 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2568 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2569 Set DWARF2 sections to a VMA of zero.
2571 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2573 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2575 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2576 (sparc*-*-rtems*): Switched from a.out to ELF.
2578 2000-11-30 Jan Hubicka <jh@suse.cz>
2580 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2581 (eelf_x86_64.c): New.
2582 * Makefile.in: Regenerate.
2583 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2584 * emulparams/elf_x86_64.sh: New.
2586 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2588 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2589 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2591 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2592 merging non-a.out sections into CONSTRUCTING.
2594 2000-11-28 Nick Clifton <nickc@redhat.com>
2596 * ld.1 (COPYING): Mention that the GNU Free Documentation
2597 License is present in the sources, but not the output, and
2598 also available from the GNU website.
2599 (GNU Free Documentation License): Comment out this section.
2601 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2603 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2606 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2608 * ld.1: Remove old date so it does not give the impression the manpage
2611 2000-11-24 Nick Clifton <nickc@redhat.com>
2613 * configure.tgt (xscale-coff): Add target.
2614 (xscale-elf): Add target.
2616 2000-11-24 Fred Fish <fnf@be.com>
2618 * ldmain.c (main): Remove redundant init of config.make_executable
2621 2000-11-15 Richard Henderson <rth@redhat.com>
2623 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2625 2000-11-14 Kazu Hirata <kazu@hxi.com>
2627 * scripttempl/h8300.sc: Fix formatting.
2628 * scripttempl/h8300h.sc: Likewise.
2629 * scripttempl/h8300s.sc: Likewise.
2631 2000-11-14 Denis Chertykov <denisc@overta.ru>
2633 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2635 2000-11-09 Philip Blundell <pb@futuretv.com>
2637 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2638 around orphan sections whose names can be represented in C.
2640 2000-11-07 Jim Wilson <wilson@redhat.com>
2642 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2643 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2645 2000-11-06 Nick Clifton <nickc@redhat.com>
2647 * ld.texinfo: Add GNU Free Documentation License.
2648 * ldint.texinfo: Add GNU Free Documentation License.
2649 * ld.1: Add GNU Free Documentation License.
2651 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2653 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2654 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2656 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2657 Move 2000-11-02 Makefile.in changes to this file.
2658 * Makefile.in: Regenerate.
2660 2000-11-03 Nick Clifton <nickc@redhat.com>
2662 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2663 constructors and destructors.
2664 * scripttempl/h8300h.sc: Ditto.
2665 * scripttempl/h8300s.sc: Ditto.
2666 * scripttempl/h8500.sc: Ditto.
2667 * scripttempl/h8500b.sc: Ditto.
2668 * scripttempl/h8500c.sc: Ditto.
2669 * scripttempl/h8500m.sc: Ditto.
2670 * scripttempl/h8500s.sc: Ditto.
2671 * scripttempl/v850.sc: Ditto.
2672 * scripttempl/w65.sc: Ditto.
2673 * scripttempl/z8000.sc: Ditto.
2675 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2677 * Makefile.in (e_i386_chaos.c): New rule.
2678 (ALL_EMULATIONS): Added e_i386_chaos.o.
2679 * emulparams/elf_i386_chaos.sh: New file.
2680 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2682 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2684 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2685 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2686 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2687 library path suffix.
2688 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2690 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2692 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2693 for consecutive sections.
2695 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2697 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2699 * ld.texinfo: Added notes about this new option.
2701 2000-10-16 Nick Clifton <nickc@redhat.com>
2703 * emultempl/pe.em (_after_open): Add tests of return values from
2704 bfd functions. Emit appropriate error messages if necessary.
2706 2000-10-13 Nick Clifton <nickc@redhat.com>
2708 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2709 local variables - they are not used, but leave in the call to
2710 bfd_canonicalize_symtab.
2711 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2712 pe_dll_search_prefix.
2714 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2716 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2717 (longopts): New --dll-search-prefix option.
2718 (gld_${EMULATION_NAME}_list_options): Document.
2719 (gld_${EMULATION_NAME}_parse_args): Handle.
2720 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2721 dynamically, search for a dll named '<prefix><basename>.dll'
2722 in preference to 'lib<basename>.dll' if --dll-search-prefix
2725 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2727 * ldlang.c (section_already_linked): Set kept_section instead of
2730 2000-10-10 Kazu Hirata <kazu@hxi.com>
2732 * deffile.h: Fix formatting.
2733 * lexsup.c: Likewise.
2736 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2738 * pe-dll.c (make_one): Do not generate code thunk for DATA
2740 (process_def_file): deduce DATA flag for auto-export sumbols.
2742 2000-10-09 Kazu Hirata <kazu@hxi.com>
2744 * ld.h: Fix formatting.
2745 * ldcref.c: Likewise.
2746 * ldctor.h: Likewise.
2747 * ldemul.c: Likewise.
2748 * ldemul.h: Likewise.
2749 * ldexp.c: Likewise.
2750 * ldexp.h: Likewise.
2751 * ldfile.c: Likewise.
2752 * ldfile.h: Likewise.
2753 * ldlang.c: Likewise.
2754 * ldlang.h: Likewise.
2755 * ldmain.c: Likewise.
2756 * pe-dll.c: Likewise.
2758 * pe-dll.c: Revert some formatting fixes.
2760 2000-10-08 Kazu Hirata <kazu@hxi.com>
2762 * pe-dll.c: Fix formatting.
2764 2000-10-05 Kazu Hirata <kazu@hxi.com>
2766 * ldlang.c: Fix formatting.
2768 2000-10-03 DJ Delorie <dj@redhat.com>
2770 * pe-dll.c (fill_edata): initialize entire block
2771 (make_one): fill in correct section.
2773 2000-10-03 Kazu Hirata <kazu@hxi.com>
2775 * ldexp.c: Fix formatting.
2777 2000-10-02 DJ Delorie <dj@redhat.com>
2779 * emultempl/pe.em (gld_*_after_open): detect case where there two
2780 import libraries for same dll; rename one to ensure proper link
2783 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2785 (generate_edata): fix typo
2787 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2789 * scripttempl/crisaout.sc (ENTRY): Now __start.
2790 (.text): Add default setting for __start.
2791 Remove CONSTRUCTORS handling.
2792 (/DISCARD/): Add .gnu.warning.*.
2793 * emulparams/crislinux.sh (ENTRY): Now __start.
2794 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2795 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2796 (ENTRY): Now __start.
2797 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2798 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2800 2000-09-29 Kazu Hirata <kazu@hxi.com>
2802 * deffile.h: Fix formatting.
2804 * ldcref.c: Likewise.
2805 * ldctor.c: Likewise.
2806 * ldctor.h: Likewise.
2807 * ldemul.c: Likewise.
2808 * ldemul.h: Likewise.
2809 * ldexp.c: Likewise.
2810 * ldexp.h: Likewise.
2811 * ldfile.c: Likewise.
2812 * ldfile.h: Likewise.
2813 * ldlang.c: Likewise.
2814 * ldlang.h: Likewise.
2815 * lexsup.c: Likewise.
2817 * pe-dll.c: Likewise.
2819 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2821 * pe-dll.c (process_def_file): Uninitialized data wasn't
2822 exported with --export-all-symbols switch.
2824 2000-09-28 DJ Delorie <dj@redhat.com>
2826 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2827 noname work properly.
2829 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2831 * ld.texinfo (HPPA ELF32): New section.
2833 * emultempl/hppaelf.em (group_size): New.
2834 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2835 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2836 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2837 options to prevent abbreviations matching.
2838 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2839 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2841 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2843 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2844 on the m68*-*-elf target. Make it support COFF input objects.
2846 2000-09-21 Kazu Hirata <kazu@hxi.com>
2848 * ldmain.c: Fix formatting.
2849 * ldmisc.c: Likewise.
2850 * ldver.c: Likewise.
2851 * ldwrite.c: Likewise.
2853 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2855 * ldwrite.c (clone_section): Silence gcc warnings.
2857 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2859 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2860 out of memory failure.
2862 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2863 (clone_section): Handle out of memory failures. Rename var to
2864 avoid c++ reserved word.
2866 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2868 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2869 stub_name param to stub_sec_name.
2870 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2872 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2874 * emultempl/m68kelf.em: New file.
2875 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2876 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2877 * Makefile.in: Regenerate.
2879 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2881 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2884 2000-09-13 Nick Clifton <nickc@redhat.com>
2886 * ldmain.c (multiple_definition): Disable relaxation if
2887 multiple symbol definitions are encountered - otherwise the
2888 linker could abort with an assertion failure.
2890 2000-09-10 Nick Clifton <nickc@redhat.com>
2892 * mri.c: Fix formatting.
2894 2000-09-07 H.J. Lu <hjl@gnu.org>
2896 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2897 * configure: Rebuild.
2899 2000-09-07 H.J. Lu <hjl@gnu.org>
2901 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2902 * Makefile.in: Rebuild.
2904 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2906 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2907 broken list handling. Create __start_SECNAME and __stop_SECNAME
2908 when no place-holder. Add some comments. Test both SEC_CODE and
2909 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2910 Handle case where no output section statement created.
2912 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2914 * configure.tgt (sh-*-linux*): Added.
2915 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2916 * Makefile.in: Rebuilt.
2917 * emulparams/shelf_linux.sh: New file.
2918 * emulparams/shlelf_linux.sh: New file.
2920 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2922 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2923 try shuffling sections when the orphan happens to be the place
2924 holder. Keep count of unique section names generated so we speed
2925 the search for a new name.
2927 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2929 * configure: Rebuilt with new libtool.m4.
2931 2000-09-05 Nick Clifton <nickc@redhat.com>
2933 * Makefile.in: Regenerate.
2934 * aclocal.m4: Regenerate.
2935 * configure: Regenerate.
2936 * config.in: Regenerate.
2937 * po/ld.pot: Regenerate.
2939 * ldint.texinfo: Remove CVS revision marker - it foils local
2942 * emultempl/ticoff.em: Remove extraneous comma.
2944 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2946 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2947 to stub section flags.
2948 (hppa_for_each_input_file_wrapper): New.
2949 (hppa_lang_for_each_input_file): New.
2950 (lang_for_each_input_file): Define to call above.
2951 (multi_subspace): New.
2952 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2953 (PARSE_AND_LIST_PROLOGUE): Define.
2954 (PARSE_AND_LIST_LONGOPTS): Define.
2955 (PARSE_AND_LIST_OPTIONS): Define.
2956 (PARSE_AND_LIST_ARGS_CASES): Define.
2957 (hppaelf_finish): Call elf32_hppa_set_gp.
2958 (hppaelf_set_output_arch): Remove.
2959 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2961 * emulparams/hppalinux.sh (ELFSIZE): Define.
2963 (OTHER_READONLY_SECTIONS): Define.
2965 (GENERATE_SHLIB_SCRIPT): Define.
2967 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2968 to const throughout. Change `void *' to `PTR' throughout.
2969 (lang_memory_default): Function is local to file, add `static'.
2971 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2972 (ehppalinux.c): Likewise.
2973 (earmelf.c): Likewise.
2974 (earmelf_linux.c): Likewise.
2975 (earmelf_linux26.c): Likewise.
2976 * Makefile.in: Regenerate.
2978 * ld.h (ld_config_type): Add unique_orphan_sections.
2979 * lexsup.c (OPTION_UNIQUE): Define.
2980 (ld_options): Add "--unique".
2981 (parse_args): Handle it.
2982 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2983 search for an existing output section if unique_orphan_sections is
2984 set. Make use of bfd_get_unique_section_name rather than
2985 duplicating code here.
2986 * ld.texinfo: Describe --unique.
2988 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2989 optional arg to split-by-file.
2990 (parse_args): Handle them.
2991 * ld.texinfo: Update description of these options.
2992 * ldwrite.c (clone_section): Pass in the section name. Replace
2993 local code with bfd_get_unique_section_name.
2994 (split_sections): Tidy code and comments. Use a list traversal
2995 more appropriate to the list construction. Handle cooked section
2996 sizes. Split when split_by_reloc reached rather than exceeded.
2997 Track section size and split when split_by_file reached. Fix
2998 link_order_tail (even though it's not used).
2999 (ldwrite): Modify condition for calling split_sections to suit
3000 changed split_by_reloc and split_by_file.
3001 * ldmain.c (main): Init config.split_by_reloc and
3002 config.split_by_file to -1.
3003 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3004 Change split_by_file to bfd_size_type.
3006 2000-09-02 Nick Clifton <nickc@redhat.com>
3008 * configure.in: Increase version number to 2.10.91.
3009 * NEWS: Mention new ability to support removal of duplicate DWARF2
3011 * configure: Regenerate.
3012 * aclocal.m4: Regenerate.
3013 * config.in: Regenerate.
3015 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3017 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3019 * scripttempl/elf32avr.sc: Ditto.
3020 * scripttempl/elfd10v.sc: Ditto.
3021 * scripttempl/elfd30v.sc: Ditto.
3022 * scripttempl/elfi370.sc: Ditto.
3023 * scripttempl/elfm68hc11.sc: Ditto.
3024 * scripttempl/elfm68hc12.sc: Ditto.
3025 * scripttempl/elfi386beos.sc: Ditto.
3026 * scripttempl/v850.sc: Ditto.
3028 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3030 * acinclude.m4: Include libtool and gettext macros from the
3032 * aclocal.m4, configure: Rebuilt.
3034 2000-08-25 Nick Clifton <nickc@redhat.com>
3036 * ldlang.c (open_output): When choosing the target for a
3037 particular endianness, do nothing if the target is not
3040 2000-08-25 H.J. Lu <hjl@gnu.org>
3042 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3043 check -rpath nor LD_RUN_PATH for cross link.
3044 * ld.texinfo: Document the change.
3046 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3048 * NEWS: Mention support for CRIS.
3050 2000-08-23 H.J. Lu <hjl@gnu.org>
3052 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3053 the current runpath list from bfd_elf_get_runpath_list ()
3056 2000-08-22 H.J. Lu <hjl@gnu.org>
3058 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3059 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3060 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3061 trace_file_tries is non-zero.
3062 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3063 if trace_file_tries is non-zero.
3065 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3068 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3070 * NEWS: Mention i860 support.
3072 2000-08-14 Andreas Schwab <schwab@suse.de>
3074 * scripttempl/elf.sc: Fix last change to use correct comment
3077 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3079 * scripttempl/elf.sc: Add a comment giving the correspondence
3080 between sections, per-datum sections, and linkonce sections. Make
3081 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3084 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3086 * emulparams/elf32_i860.sh: New file.
3087 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3088 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3089 (eelf32_i860.c): New rule.
3090 * Makefile.in: Regenerate.
3092 2000-08-10 Nick Clifton <nickc@cygnus.com>
3094 * emulparams/mipspe.sh (ENTRY): Add definition.
3096 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3098 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3101 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3103 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3104 the final size of .bss section.
3105 * scripttempl/elfm68hc12.sc: Likewise.
3107 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3109 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3110 gld${EMULATION_NAME}_parse_args for consistency. Combine
3111 lastoptind and prevoptind vars, and keep track of last optind.
3112 (gld_${EMULATION_NAME}_list_options): Rename to
3113 gld${EMULATION_NAME}_list_options.
3115 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3117 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3118 (i586-sco-sysv5uw7.1.0).
3120 2000-07-27 H.J. Lu <hjl@gnu.org>
3122 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3123 (PARSE_AND_LIST_PROLOGUE): New.
3124 (PARSE_AND_LIST_LONGOPTS): Likewise.
3125 (PARSE_AND_LIST_OPTIONS): Likewise.
3126 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3127 (PARSE_AND_LIST_EPILOGUE): Likewise.
3129 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3131 * emultempl/armelf.em: Elide functions common to elf32.em,
3132 ie. most of the file.
3133 (arm_elf_after_open): New. Do arm specific things then call
3134 gld${EMULATION_NAME}_after_open.
3135 (arm_elf_before_allocation): New. Call
3136 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3137 (PARSE_AND_LIST_PROLOGUE): Define.
3138 (PARSE_AND_LIST_SHORTOPTS): Define.
3139 (PARSE_AND_LIST_LONGOPTS): Define.
3140 (PARSE_AND_LIST_OPTIONS): Define.
3141 (PARSE_AND_LIST_ARGS_CASES): Define.
3142 (LDEMUL_AFTER_OPEN): Define.
3143 (LDEMUL_BEFORE_ALLOCATION): Define.
3144 (LDEMUL_BEFORE_PARSE): Define.
3145 (LDEMUL_FINISH): Define.
3147 * emultempl/hppaelf.em: Similarly zap most of this file.
3148 (hppaelf_add_stub_section): Prototype.
3149 (hppaelf_layaout_sections_again): Prototype.
3150 (hook_in_stub): Prototype.
3151 (LDEMUL_SET_OUTPUT_ARCH): Define.
3152 (LDEMUL_FINISH): Define.
3153 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3155 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3156 (EXTRA_EM_FILE): New.
3157 * emulparams/armelf_linux.sh: Likewise.
3158 * emulparams/armelf_linux26.sh: Likewise.
3159 * emulparams/hppalinux.sh: Likewise.
3160 * emulparams/hppaelf.sh: Likewise.
3163 * emultempl/elf32.em: Fix formatting.
3164 (EXTRA_EM_FILE): Source it.
3165 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3166 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3167 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3168 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3169 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3170 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3171 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3172 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3173 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3174 allow functions in this file to be overridden.
3175 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3177 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3179 * emultempl/elf32.em: Reorganize file.
3181 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3183 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3184 specific option to fit 64-bit executable in the lower
3185 31-bit address range. This is done by changing start
3186 address of .interp (the very first section of executable)
3187 and then setting EF_ALPHA_32BIT elf header flag.
3189 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3191 * emultempl/m68kcoff.em: New file.
3192 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3193 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3195 * Makefile.in: Regenerate.
3197 2000-07-20 H.J. Lu <hjl@gnu.org>
3199 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3200 and "disable-new-dtags" to stop getopt from treating -d/-e as
3201 abbreviations for these options.
3203 2000-07-20 H.J. Lu <hjl@gnu.org>
3205 * ld.texinfo: Add documentation for --disable-new-dtags and
3208 * ldmain.c (main): Initialize link_info.new_dtags to false.
3210 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3211 --disable-new-dtags and --enable-new-dtags.
3212 (gld_${EMULATION_NAME}_list_options): Likewise.
3214 2000-07-05 Kenneth Block <krblock@computer.org>
3216 * lexsup.c: Add optional style to demangle switch
3217 * ld.texinfo: Document optional style to demangle switch.
3219 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3221 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3223 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3224 Regenerate dependencies.
3225 * Makefile.in: Rebuild.
3226 * configure.tgt (cris-*-*): New target.
3227 * emulparams/crisaout.sh, emulparams/criself.sh,
3228 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3229 * po/POTFILES.in, po/ld.pot: Regenerate.
3231 2000-07-20 H.J. Lu <hjl@gnu.org>
3233 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3234 Print out ignored -z options.
3236 2000-07-19 H.J. Lu <hjl@gnu.org>
3238 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3239 (PARSE_AND_LIST_PROLOGUE): New.
3240 (PARSE_AND_LIST_LONGOPTS): Likewise.
3241 (PARSE_AND_LIST_OPTIONS): Likewise.
3242 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3244 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3246 * lexsup.c (ld_options): Comment out 'z'.
3247 (parse_args): Likewise.
3249 * emultempl/elf32.em: Include "elf/common.h".
3250 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3252 (gld_${EMULATION_NAME}_list_options): Likewise.
3254 * ld.texinfo: Add documentation for the recognized -z options.
3256 2000-07-19 H.J. Lu <hjl@gnu.org>
3258 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3259 bfd_elf_set_dt_needed_soname ().
3261 2000-07-18 DJ Delorie <dj@cygnus.com>
3263 * pe-dll.c (pe_dll_id_target): check object target name also
3265 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3267 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3268 ${INIT_END} if relocating.
3269 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3271 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3273 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3274 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3275 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3276 errors introduced by the old dynamic lib search order.
3278 2000-07-17 DJ Delorie <dj@cygnus.com>
3280 * pe-dll.c (process_def_file): auto-export data items also
3281 (pe_process_import_defs): also see if _imp_ form needed
3283 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3285 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3286 for dll import libraries
3288 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3290 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3291 gcc 2.95.2 and later.
3293 2000-07-11 Kazu Hirata <kazu@hxi.com>
3295 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3298 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3300 * ldemul.h (struct lang_input_statement_struct): Remove forward
3302 (struct search_dirs): Likewise.
3303 * ldfile.h (struct lang_input_statement_struct): Likewise.
3304 Protect file from multiple inclusion.
3305 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3306 declaration from macro to file scope.
3308 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3309 * ldgram.y: Likewise here.
3310 * ldlang.c: And here.
3311 * ldmain.c: And here.
3312 * mpw-elfmips.c: And here.
3313 * mpw-eppcmac.c: And here.
3314 * emultempl/aix.em: And here.
3315 * emultempl/armcoff.em: And here.
3316 * emultempl/armelf.em: And here.
3317 * emultempl/armelf_oabi.em: And here.
3318 * emultempl/beos.em: And here.
3319 * emultempl/elf32.em: And here.
3320 * emultempl/hppaelf.em: And here.
3321 * emultempl/linux.em: And here.
3322 * emultempl/lnk960.em: And here.
3323 * emultempl/pe.em: And here.
3324 * emultempl/sunos.em: And here.
3325 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3326 * mpw-idtmips.c: Ditto.
3327 * emultempl/generic.em: Ditto.
3328 * emultempl/gld960.em: Ditto.
3329 * emultempl/gld960c.em: Ditto.
3330 * emultempl/mipsecoff.em: Ditto.
3331 * emultempl/ticoff.em: Ditto.
3332 * emultempl/vanilla.em: Ditto.
3334 * pe-dll.c: Include ldfile.h
3335 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3337 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3338 arguments to bfd_elf32_size_dynamic_sections call.
3339 (gldelf32ebmip_place_orphan): Add missing arguments to
3340 lang_leave_output_section_statement call.
3342 2000-07-10 H.J. Lu <hjl@gnu.org>
3344 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3346 (strhash): Likewise.
3347 (compute_dll_image_base): Likewise.
3348 (pe_undef_found_sym): Likewise.
3349 (pe_undef_cdecl_match): Likewise.
3350 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3351 argument "arch" with ATTRIBUTE_UNUSED.
3353 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3355 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3357 From Ryan Bradetich <rbradetich@uswest.net>
3358 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3360 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3362 Changes to create multiple linker stubs, positioned immediately
3363 before the section where they are required.
3364 * emultempl/hppaelf.em: Include elf32-hppa.h.
3365 (stub_sec, file_chain): Delete.
3366 (hppaelf_create_output_section_statements): Don't make a stub
3368 (hook_stub_info): New struct.
3369 (hook_in_stub): New function.
3370 (hppaelf_add_stub_section): New function.
3371 (hppaelf_finish): Do nothing for relocateable links. Modify the
3372 call to elf32_hppa_size_stubs. Move code for updating section
3374 (hppaelf_layaout_sections_again): ..to here, a new function.
3376 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3377 broken list handling. Pass in a pointer to the list.
3378 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3380 (hppaelf_before_parse): Prototype.
3381 (hppaelf_set_output_arch): Prototype.
3382 (hppaelf_create_output_section_statements): Prototype.
3383 (hppaelf_delete_padding_statements): Prototype.
3384 (hppaelf_finish): Prototype.
3387 * emultempl/hppaelf.em: Include ctype.h.
3388 (struct orphan_save): New.
3389 (gld${EMULATION_NAME}_place_orphan): New.
3390 (output_rel_find): New.
3391 (hppaelf_get_script): Update from elf32.em.
3392 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3393 Change emulation_name field to "${EMULATION_NAME}". Add
3394 gld${EMULATION_NAME}_place_orphan.
3396 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3397 ehppalinux.o, sort it. Regenerate dependencies.
3398 (ehppalinux.c): Depend on hppaelf.em
3399 * Makefile.in: Regenerate.
3401 * configure.tgt: targ_emul=hppalinux for hppa*linux
3403 * emulparams/hppalinux.sh: New.
3404 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3406 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3408 * lexsup.c (parse_args): Copy section name.
3410 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3412 * emultempl/pe.em: institute the following search order for
3413 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3414 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3415 static lib (libfoo.a) if none of the above are found.
3417 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3419 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3420 (longopts): New --{enable,disable}-auto-image-base options.
3421 (gld_${EMULATION_NAME}_list_options): Document.
3422 (gld_${EMULATION_NAME}_parse): Handle.
3423 (strhash): New static function.
3424 (compute_dll_image_base): New static function.
3425 (gld_${EMULATION_NAME}_set_symbols): Use.
3427 2000-07-05 DJ Delorie <dj@redhat.com>
3431 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3433 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3434 * emulparams/elf32btsmip.sh: New file.
3435 * Makefile.am: Add traditional mips target.
3436 * Makefile.in: Rebuild.
3438 2000-07-01 H.J. Lu <hjl@gnu.org>
3440 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3441 automake to use YLWRAP.
3442 * Makefile.in: Rebuild.
3444 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3446 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3447 (CLEANFILES): Add DEPA.
3448 * Makefile.in: Regenerate.
3450 2000-06-30 Timothy Wall <twall@ppc>
3452 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3453 the page in the upper octet of the address.
3455 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3457 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3459 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3461 * NEWS: arm-elf does --gc-sections too.
3463 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3465 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3467 * Makefile.in: Regenerate.
3469 2000-06-21 H.J. Lu <hjl@gnu.org>
3471 * Makefile.am: Rebuild dependency.
3472 * Makefile.in: Rebuild.
3474 2000-06-20 H.J. Lu <hjl@gnu.org>
3476 * Makefile.am: Rebuild dependency.
3477 * Makefile.in: Rebuild.
3479 2000-06-20 Timothy Wall <twall@cygnus.com>
3481 * scripttempl/tic54xcoff.sc: New.
3482 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3483 * gen-doc.texi: Add flag for TI COFF.
3484 * ld.texinfo: Add documentation for TI COFF handling switches.
3485 * emultempl/ticoff.em: New. TI COFF handling.
3486 * configure.tgt: Add tic54x target.
3487 * Makefile.am: Add tic54x target.
3488 * Makefile.in: Ditto.
3490 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3492 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3493 checking for backslashes.
3495 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3497 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3499 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3501 * NEWS: Update list of targets supporting --gc-sections.
3503 * scripttempl/elf.sc: KEEP .eh_frame contents.
3504 * scripttempl/elfd30v.sc: Same here.
3506 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3508 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3510 * Makefile.in: Rebuild.
3511 * configure.tgt: Recognize m68hc12 and m68hc11.
3512 * scripttempl/elfm68hc12.sc: New file.
3513 * emulparams/m68hc12elfb: New emulation.
3514 * emulparams/m68hc12elf: New emulation.
3515 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3516 (includes a memory.x script to define the ROM and RAM banks).
3517 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3518 New configuration files for support of Motorola 68hc11
3520 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3522 * ldmain.c (main): Only change SEC_READONLY for final link.
3524 2000-06-13 H.J. Lu <hjl@gnu.org>
3526 * configure: Regenerate.
3528 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3530 * configure.in (VERSION): Update to show this is the CVS mainline.
3532 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3534 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3535 input objects to be ECOFF.
3536 (check_sections): einfo takes %B, not %P, to print a BFD name.
3538 2000-06-05 Michael Matz <matz@ifh.de>
3540 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3543 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3545 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3547 * emulparams/avr1200.sh (STACK): Define as 0.
3548 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3549 * emulparams/avr4433.sh (STACK): Likewise.
3550 * emulparams/avr44x4.sh (STACK): Likewise.
3551 * emulparams/avr85xx.sh (STACK): Likewise.
3552 * emulparams/avrmega103.sh (STACK): Likewise.
3553 * emulparams/avrmega161.sh (STACK): Likewise.
3554 * emulparams/avrmega603.sh (STACK): Likewise.
3555 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3556 (__stack): Define from ${STACK} for main().
3558 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3560 * Makefile.am: Update dependencies with "make dep-am"
3561 * Makefile.in: Regenerate.
3563 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3565 * ldmain.c: Include filenames.h.
3566 (set_scripts_dir): Support backslashes in program name.
3568 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3570 * ldmain.c (main): When deciding if ".text" section should be
3571 read-only, don't forget to reset SEC_READONLY because it
3572 could be already set.
3574 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3576 * ld.1: Add documentation for new command line option:
3577 --section-start <sectionname>=<sectionorg>
3578 This is a generic version of -Ttext etc. which accepts
3579 any section name as a parameter instead of just text/data/
3581 * ld.texinfo: More docs.
3583 * lexsup.c: (parse_args): Recognize new command line option.
3584 (ld_options): Add new option.
3586 2000-05-18 H.J. Lu <hjl@gnu.org>
3588 * lexsup.c (parse_args): `i' == `r', not `q'.
3590 2000-05-18 Jeffrey A Law (law@cygnus.com)
3592 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3594 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3595 Rick Gorton <gorton@scrugs.lkg.dec.com>
3597 Add support for '-q' == '--emit-relocs' switch.
3598 * ldmain.c (main): Default to false.
3599 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3600 * NEWS: Describe the emitrelocations switch.
3601 * ld.texinfo: Describe the emitrelocations switch.
3603 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3605 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3606 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3607 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3610 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3612 * lexsup.c (parse_args): Update the year in the copyright notice.
3614 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3616 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3617 Replace defines with those from intl/libgettext.h to quieten gcc
3620 2000-05-10 H.J. Lu <hjl@gnu.org>
3622 * ldlang.c (open_input_bfds): Don't load the same file within
3623 a group again if the whole archive has been loaded already.
3625 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3627 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3628 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3631 2000-05-01 Jim Wilson <wilson@cygnus.com>
3633 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3635 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3636 host "ia64-*-linux-gnu*".
3638 2000-04-29 Andreas Jaeger <aj@suse.de>
3640 * ld.h: Correctly check GCC version.
3642 2000-04-25 Jeffrey A Law (law@cygnus.com)
3644 * Makefile.am: Add PA64 support. Add missing dependencies for
3646 * Makefile.in: Rebuilt.
3647 * configure.tgt: Add PA64 support (currently disabled).
3649 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3651 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3652 (output_rel_find): New function.
3653 (hold_section, hold_use): Delete.
3654 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3655 hold_interp): Make local to place_orphan.
3656 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3657 rather than place_section to find possible previous use of orphan.
3658 Similarly find the place-holder output sections. Use returned
3659 value from lang_enter_output_section_statement rather than calling
3660 lang_output_section_statement_lookup.
3661 * emultempl/armelf.em: Same here.
3662 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3664 * ldlang.c (lang_enter_output_section_statement): Return output
3666 * ldlang.h (lang_enter_output_section_statement): Change
3669 * ldlang.h (lang_output_section_statement): Export it.
3670 * ldlang.c (lang_output_section_statement): Ditto.
3672 2000-04-24 Nick Clifton <nickc@cygnus.com>
3674 * ld.texinfo (Output Section Data): Add note that section data
3675 commands cannot appear outside of section directives.
3677 2000-04-2 Matthew Green <mrg@cygnus.com>
3679 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3681 2000-04-21 Richard Henderson <rth@cygnus.com>
3682 David Mosberger <davidm@hpl.hp.com>
3684 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3685 (eelf64_ia64.c): New rule.
3686 * Makefile.in: Rebuild.
3687 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3688 * emulparams/elf64_ia64.sh: New file.
3690 2000-04-21 Richard Henderson <rth@cygnus.com>
3692 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3694 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3696 * dep-in.sed: Match space at start of file name, not at end.
3698 2000-04-18 H.J. Lu <hjl@gnu.org>
3700 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3701 lang_leave_output_section_statement () after calling
3702 lang_enter_output_section_statement ().
3703 * emultempl/armelf.em: Likewise.
3705 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3707 * emultempl/elf32.em (struct orphan_save): Add section field.
3708 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3709 better order, and place first orphan section as we did before the
3710 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3711 Don't call make_bfd_section here, let wild_doit do the job for us.
3712 Don't build a statement list when we'll only throw it away.
3713 * emultempl/armelf.em: Ditto.
3714 * emultempl/pe.em: Similarly.
3716 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3718 * scripttempl/elfppc.sc: Remove.
3719 * emulparams/elf32ppc.sh: Use elf.sc.
3720 * emulparams/elf32lppc.sh: Use elf.sc.
3721 * emulparams/elf32ppclinux.sh: Use elf.sc.
3722 * emulparams/elf32ppcsim.sh: New file.
3723 * emulparams/elf32lppcsim.sh: New file.
3724 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3725 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3726 * Makefile.in: Regenerate.
3727 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3729 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3731 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3732 ~SEC_ALLOC sections too. Init start address of debug sections.
3733 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3734 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3735 Also set all relocateable section start addresses.
3737 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3739 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3740 Add new BSS_PLT variable for when .plt need not be contained in
3741 the file. Move _etext so that it is also after .fini, and provide
3742 both etext and _etext with a leading underscore. Mark the start
3745 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3747 * emultempl/elf32.em (struct orphan_save): New.
3748 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3749 hold_interp): Make them struct orphan_save.
3750 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3751 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3752 the end of the relevant section list. Also add associated section
3753 statements to the end of any previous orphan statements.
3754 * emultempl/armelf.em: Similarly.
3755 * emultempl/pe.em: Similarly.
3757 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3759 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3761 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3763 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3764 --enable-build-warnings option.
3765 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3766 * Makefile.in, configure: Re-generate.
3768 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3770 * po/ld.pot: Regenerate.
3772 * lexsup.c (help): Restore translated part of bug string.
3774 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3775 (DEP): Quote when passing vars to sub-make. Add warning message
3777 (DEP1): Rewrite for "gcc -MM".
3778 (CLEANFILES): Add DEP2.
3779 Update dependencies.
3780 * Makefile.in: Regenerate.
3782 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3784 * ld.h: #include "bin-bugs.h"
3785 * lexsup.c (help): Use REPORT_BUGS_TO.
3787 2000-03-27 Denis Chertykov <denisc@overta.ru>
3789 * configure.tgt (avr-*-*): New target support.
3790 * Makefile.am: Likewise.
3791 * scripttempl/elf32avr.sc: New script file.
3792 * emulparams/avr1200.sh: New file.
3793 * emulparams/avr23xx.sh: New file.
3794 * emulparams/avr4433.sh New file.
3795 * emulparams/avr44x4.sh New file.
3796 * emulparams/avr85xx.sh New file.
3797 * emulparams/avrmega103.sh New file.
3798 * emulparams/avrmega161.sh New file.
3799 * emulparams/avrmega603.sh New file.
3800 * Makefile.in: Regenerate.
3802 2000-03-09 Andreas Jaeger <aj@suse.de>
3804 * Makefile.am (check-DEJAGNU): Also unset LANG.
3805 * Makefile.in: Rebuild.
3807 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3809 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3812 2000-03-02 H.J. Lu <hjl@gnu.org>
3814 * emulparams/elf32mcore.sh: Include "getopt.h".
3816 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3818 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3820 2000-03-01 H.J. Lu <hjl@gnu.org>
3822 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3823 * emulparams/shpe.sh: Likewise.
3825 2000-03-01 Nick Clifton <nickc@cygnus.com>
3827 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3828 to unused parameters.
3830 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3831 functions only used by DLL code.
3832 (_place_orphan): Initialise 'dollar'.
3834 2000-03-01 H.J. Lu <hjl@gnu.org>
3836 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3837 indicate if the undefined symbol is a fatal error or not.
3838 Don't delete the output file if "fatal" is false.
3840 2000-02-29 H.J. Lu <hjl@gnu.org>
3842 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3843 Set LC_COLLATE and LC_ALL to null and export them. It is for
3844 sort which expects the C locale.
3845 Add $(LIBS) to all $(HOSTING_LIBS).
3846 * Makefile.in: Rebuild.
3848 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3850 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3851 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3852 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3853 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3854 find_potential_libraries.
3856 2000-02-28 Jim Blandy <jimb@redhat.com>
3858 * ldgram.y (exclude_name_list): Don't require a comma to separate
3859 list entries; the lexer considers commas to be valid part of a
3860 filename, so in something like `foo, bar' the comma is considered
3861 part of the first filename, `foo,'.
3862 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3864 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3866 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3867 host "i[3456]86-*-freebsdelf*".
3869 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3871 * scripttempl/i386go32.sc: Move misplaced semicolons.
3873 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3875 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3876 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3877 (eelf64hppa.c, ehppaelf.c): Remove targets.
3878 * Makefile.in: Rebuild.
3880 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3882 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3883 GNU/Linux/sparc, but keep the default as 32.
3885 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3886 it default if sparcv9 or sparc64.
3888 2000-02-24 Nick Clifton <nickc@cygnus.com>
3890 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3891 * Makefile.in: Regenerate.
3892 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3894 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3895 find_potential_libraries.
3896 * ldemul.c (ldemul_find_potential_libraries): New function.
3898 * ldfile.c (ldfile_open_file_search): Allow function to be
3900 (ldfile_open_file): Call ldemul_find_potential_libraries.
3901 * ldfile.h: Add prototype for ldfile_open_file_search.
3903 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3905 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3906 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3908 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3909 (gld_X_find_potential_libraries): New function. Search for
3910 libraries called "*.lib".
3912 * scripttempl/pe.sc: Add .pdata section.
3914 2000-02-23 Richard Henderson <rth@cygnus.com>
3916 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3917 Add and use memory regions.
3919 2000-02-23 Linas Vepstas (linas@linas.org)
3921 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3923 * Makefile.am: Add support for Linux/IBM 370.
3924 * configure.tgt: Likewise.
3926 * Makefile.in: Regenerate.
3928 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3930 * ldlang.c (print_input_section, print_data_statement,
3931 print_reloc_statement, print_padding_statement, insert_pad,
3932 size_input_section, lang_check_section_addresses,
3933 lang_size_sections, lang_do_assignments, lang_set_startof,
3934 lang_one_common): Change `opb' to unsigned.
3935 (lang_do_assignments): Also change `size' to unsigned.
3937 2000-02-16 Richard Henderson <rth@cygnus.com>
3939 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3941 2000-02-16 Timothy Wall <twall@cygnus.com>
3943 * mri.c (mri_draw_tree): Add default LMA region argument to call
3944 to lang_leave_output_section_statement.
3945 * ldlang.h: Update prototypes with LMA region arguments.
3946 * ldlang.c (lang_size_sections): Encapsulate region bounds
3947 checking in os_check_region call.
3948 (os_check_region): New function.
3949 (lang_output_section_statement_lookup): Initialize lma_region.
3950 (lang_leave_output_section_statement): Add LMA region argument.
3951 (lang_leave_overlay): Ditto.
3952 * ldgram.y: Handle LMA region syntax.
3953 * ld.texinfo (Output Section Description): Describe LMA region usage.
3954 * emultempl/armelf.em (gld$place_orphan): Add default value for
3955 lma region in call to lang_leave_output_section_statement.
3956 * emultempl/elf32.em (gld$place_orphan): Add default value for
3957 lma region in call to lang_leave_output_section_statement.
3958 * emultempl/pe.em (gld$place_orphan): Add default value for
3959 lma region in call to lang_leave_output_section_statement.
3962 2000-02-04 Timothy Wall <twall@redhat.com>
3964 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3965 octets when calculating section end addresses.
3967 2000-02-04 Timothy Wall <twall@redhat.com>
3969 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3971 2000-02-03 Timothy Wall <twall@redhat.com>
3973 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3975 * ldlang.c (print_input_section, print_data_statement,
3976 print_reloc_statement, print_padding_statement): Print target
3977 address values and section sizes as bytes, not octets.
3978 (insert_pad) Calculate padding size in octets, and adjust "dot"
3980 (size_input_section) Always adjust "dot" by bytes, not octets.
3981 (lang_check_section_addresses, lang_do_assignments) Adjust
3982 "dot" by bytes, not octets. Use the larger of the directive size
3983 or octets_per_byte for the number of octets actually allocated in
3985 (lang_set_startof) Make sure STARTOF returns a target address.
3986 (lang_one_common) Record size changes in octets.
3987 (lang_abs_symbol_at_end_of) Section end symbol's value is
3988 recorded in target bytes.
3989 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3990 to be clear about behavior when an octet is smaller than one byte.
3992 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3994 * ldcref.c (output_cref): Don't pass message strings to printf
3998 * ldmisc.c (vfinfo): Same here.
4001 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4003 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4004 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4005 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4006 Add missing NULL initialisers, and comments.
4008 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4010 2000-01-21 Nick Clifton <nickc@cygnus.com>
4012 * ldlang.c (lang_size_sections): Fix typo in comment.
4014 2000-01-18 H.J. Lu <hjl@gnu.org>
4016 * ldlang.c (lang_size_sections): Also update the current
4017 address of a region if the SEC_NEVER_LOAD bit is not set.
4019 2000-01-10 Philip Blundell <pb@futuretv.com>
4021 * configure.tgt (arm*-*-conix*): New target.
4023 2000-01-07 Nick Clifton <nickc@cygnus.com>
4025 * ld.texinfo (Options): Remind users to preceed linker command
4026 line switches with -Wl, (or whatever is appropriate) if it is
4027 being invoked by a comnpiler driver program.
4028 Fix description of the behaviour of the -n command line switch.
4030 2000-01-05 Catherine Moore <clm@cygnus.com>
4032 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4034 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4035 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4036 (exclude_name_list): New.
4037 ldlang.c (walk_wild_section): Support list of excluded files.
4038 (print_wild_statement): Likewise.
4039 (lang_add_wild): Likewise.
4040 * ldlang.h (lang_wild_statement_type): Likewise.
4041 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4043 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4045 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4046 (process_def_file): Use.
4047 (pe_dll_compat_implib): New variable.
4050 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4051 pe_dll_compat_implib.
4053 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4054 compat-implib options.
4055 (gld_${EMULATION_NAME}_list_options): List new options.
4056 (gld_${EMULATION_NAME}_parse_args): Handle.
4058 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4061 * deffilep.y (opt_name): Allow "." in name.
4063 For older changes see ChangeLog-9899
4069 version-control: never