1 2002-04-30 Tom Rix <trix@redhat.com>
3 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
4 -blibpath, -bnolibpath support.
6 2002-04-30 Mark Mitchell <mark@codesourcery.com>
8 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
9 (eelf32ppcwindiss.c): New target.
10 * Makefile.in: Regenerated.
11 * configure.tgt: Add support for powerpc-*-windiss.
12 * emulparams/elf32ppcwindiss.sh: New file.
14 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
16 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
17 * ldexp.c (exp_print_token): Add "infix_p" argument.
18 (exp_print_tree): Update accordingly.
20 2002-04-28 Alan Modra <amodra@bigpond.net.au>
22 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
23 * Makefile.in: Regenerate.
24 * mpw-elfmips.c: Delete.
25 * mpw-eppcmac.c: Delete.
27 * mpw-idtmips.c: Delete.
29 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
31 * emulparams/shelf32.sh (MACHINE): Now sh5.
33 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
35 * ldgram.y: Fix syntax warning.
37 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
39 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
40 to prevent "-n" from being taken as an abbreviation for
41 "--no-pipeline-knowledge".
43 2002-04-08 Alan Modra <amodra@bigpond.net.au>
45 * ldlang.c (lang_size_sections_1): Don't complain about
46 SEC_NEVER_LOAD sections having no memory region specified.
48 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
50 2002-04-07 matthew green <mrg@redhat.com>
52 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
54 2002-04-04 Alan Modra <amodra@bigpond.net.au>
56 * dep-in.sed: Cope with absolute paths.
57 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
59 * Makefile.in: Regenerate.
61 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
63 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
65 2002-04-03 Jakub Jelinek <jakub@redhat.com>
67 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
68 is smaller than maximum, round dot up to common page boundary.
70 2002-03-28 Alan Modra <amodra@bigpond.net.au>
72 * configure.host: Set up for generic hosts first, then tweak as
73 necessary in more specific targets.
74 (HOSTING_LIBS): Include libgcc_eh.a if found.
76 2002-03-23 Andreas Jaeger <aj@suse.de>
78 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
80 2002-03-21 Alan Modra <amodra@bigpond.net.au>
82 * Makefile.am: Run "make dep-am".
83 * Makefile.in: Regenerate.
85 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
87 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
89 2002-03-20 Alan Modra <amodra@bigpond.net.au>
91 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
92 add the symbol to the linker hash table immediately.
93 (lang_place_undefineds): Split symbol creation out..
94 (insert_undefined): ..to here.
96 2002-03-18 David O'Brien <obrien@FreeBSD.org>
98 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
99 the contents of the buffer returned from basename function will are
100 getting overwritten while still being used.
102 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
103 Andreas Jaeger <aj@suse.de>
104 Andreas Schwab <schwab@suse.de>
106 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
107 * elf_x86_64.sh (ARCH): Set to i386:x86-64
108 set libraries to default to lib64 paths.
110 2002-03-18 Tom Rix <trix@redhat.com>
112 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
113 * configure.tgt : Same.
114 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
115 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
116 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
117 emulation parameters for better -b32, -b64 support.
118 * emulparms/aixrs6.sh : Same.
119 * emulparms/ppcmacos.sh : Same.
120 * emultempl/aix.em (choose_target) : Use new emulation parameters
121 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
122 * Makefile.in : Regenerate.
124 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
126 * po/fr.po: Updated version.
128 2002-03-18 Alan Modra <amodra@bigpond.net.au>
130 * ldmain.c (main): Move .text readonly flag fudges from here..
131 * ldlang.c (lang_process): ..to here.
133 2002-03-14 Alan Modra <amodra@bigpond.net.au>
135 * ldlang.c (lang_check): Remove the word size check added in last
136 change. Treat emitrelocations case as for relocatable links.
138 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
140 * po/fr.po: Updated version.
142 2002-03-13 Alan Modra <amodra@bigpond.net.au>
144 * ldlang.c (lang_check): Do relocatable link checks first, so that
145 warn_mismatch can't override. Check compatible and word size too.
147 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
149 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
151 2002-03-05 Jakub Jelinek <jakub@redhat.com>
153 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
156 2002-03-04 H.J. Lu <hjl@gnu.org>
158 * scripttempl/elf.sc: Put .preinit_array, .init_array and
159 .fini_array in the data segment.
161 2002-03-04 Alan Modra <amodra@bigpond.net.au>
163 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
165 2002-03-01 David Mosberger <davidm@hpl.hp.com>
167 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
168 .init_array, and .fini_array.
170 2002-02-20 Andreas Schwab <schwab@suse.de>
172 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
173 .IA64_unwind* in a relocatable link.
175 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
177 * NEWS: Mark 2.12 branch.
179 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
181 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
182 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
184 2002-02-18 Tom Rix <trix@redhat.com>
186 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
187 (gld*_before_allocation): Same.
188 (gld*_create_output_section_statements): Generate
189 __rtinit if run time linking. Add librtl.a to the link.
190 (gld*_read_file): Clean.
192 2002-02-18 Alan Modra <amodra@bigpond.net.au>
194 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
196 2002-02-18 David O'Brien <obrien@FreeBSD.org>
198 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
199 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
200 and eelf64alpha_fbsd.
201 * Makefile.in: Regenerate.
202 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
203 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
204 use a FreeBSD-specific emulation rather than the psABI one.
205 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
206 for all FreeBSD ELF systems.
207 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
209 * emulparams/elf32ppc_fbsd.sh: Likewise.
210 * emulparams/elf64_ia64_fbsd.sh: Likewise.
211 * emulparams/elf64_sparc_fbsd.sh: Likewise.
212 * emulparams/elf64alpha_fbsd.sh: Likewise.
213 * emulparams/elf_i386_fbsd.sh: Likewise.
214 * emulparams/elf_x86_64_fbsd.sh: Likewise.
216 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
218 * po/tr.po: Updated version.
220 2002-02-18 Alan Modra <amodra@bigpond.net.au>
222 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
225 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
227 * emultempl/mmo.em (mmo_after_open): Don't call
228 _bfd_mmix_check_all_relocs when producing ELF output.
230 2002-02-15 Richard Henderson <rth@redhat.com>
232 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
233 definition. Emit a unop+nop pair.
235 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
237 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
238 for presence of .MMIX.reg_contents.linker_allocated before early
241 * NEWS: Mention support for MMIX.
243 2002-02-15 Alan Modra <amodra@bigpond.net.au>
245 Support arbitrary length fill patterns.
246 * ld.texinfo (Output Section Fill): Describe fill expressions.
247 (FILL): Refer to the above.
248 * ldexp.h (etree_value_type): Add "str" field.
249 (union etree_union): Add "str" to "value" struct.
250 (exp_bigintop): Declare.
251 (exp_get_fill): Declare.
252 * ldexp.c: Include "safe-ctype.h".
253 (exp_intop): Set value.str to NULL.
254 (exp_bigintop): New function.
255 (new_rel): Pass in "str", and set new.str from it.
256 (new_rel_from_section): Set new.str to NULL.
257 (fold_name): Adjust calls to new_rel.
258 (exp_fold_tree): Likewise.
259 (exp_get_fill): New function.
260 * ldgram.y (struct big_int bigint, fill_type *fill): New.
261 (INT): Returns a "bigint". Adjust all code handling INTs.
262 (fill_opt): Returns a "fill".
263 (fill_exp): Split out of fill_opt, use for FILL.
264 * ldlang.h (struct _fill_type): New.
265 (fill_type): Move typedef to ldexp.h.
266 (lang_output_section_statement_type): "fill" is now a pointer.
267 (lang_fill_statement_type): Likewise.
268 (lang_padding_statement_type): Likewise.
269 (lang_add_fill): Now takes a "fill_type *" param.
270 (lang_leave_output_section_statement): Likewise.
271 (lang_do_assignments): Likewise.
272 (lang_size_sections): Likewise.
273 (lang_leave_overlay_section): Likewise.
274 (lang_leave_overlay): Likewise.
275 * ldlang.c: Include ldgram.h after ldexp.h.
276 (lang_output_section_statement_lookup): Adjust for fill_type change.
277 (print_fill_statement): Likewise.
278 (print_padding_statement): Likewise.
279 (insert_pad): Now takes a "fill_type *" arg.
280 (size_input_section): Likewise.
281 (lang_size_sections_1): Likewise.
282 (lang_size_sections): Likewise.
283 (lang_do_assignments): Likewise.
284 (lang_add_fill): Likewise.
285 (lang_leave_output_section_statement): Likewise.
286 (lang_leave_overlay_section): Likewise.
287 (lang_leave_overlay): Likewise.
288 Adjust all callers of the above function.
289 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
290 starting with "0X" as well as "0x". Return bigint.str for hex
291 numbers starting with "0x" or "0X", zero bigint.str otherwise.
292 Always use base 16 for numbers starting with "$".
293 * ldmain.c: Include ldgram.h after ldexp.h.
294 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
295 of bfd_fill_link_order.
296 * pe-dll.c: Adjust lang_do_assignments calls.
297 * emultempl/elf32.em: Likewise.
298 * emultempl/hppaelf.em: Likewise.
299 * emultempl/ppc64elf.em: Likewise.
300 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
301 lang_add_assignment call.
302 * emultempl/pe.em: Likewise.
304 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
306 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
307 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
308 the pattern in question is not a regexp.
309 * ldlang.c: Likewise.
310 * ldlang.h: Likewise.
311 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
313 2002-02-12 Jakub Jelinek <jakub@redhat.com>
315 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
316 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
317 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
318 * ldexp.c (exp_data_seg): New variable.
319 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
320 (fold_binary): Handle DATA_SEGMENT_ALIGN.
321 (exp_fold_tree): Handle DATA_SEGMENT_END.
322 Pass allocation_done when recursing instead of hardcoding
323 lang_allocating_phase_enum.
324 * ldexp.h (exp_data_seg): New.
325 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
326 (lang_size_sections): New.
327 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
328 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
329 if COMMONPAGESIZE is defined.
330 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
331 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
332 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
333 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
334 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
337 2002-02-11 Alan Modra <amodra@bigpond.net.au>
339 * Makefile.in: Regenerate.
341 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
343 * lexsup.c: Remove strtoul declaration.
345 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
347 * ldmain.c: Add prototype for main ().
348 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
349 * emultempl/lnk960.em (lnk960_choose_target): Function should
352 2002-02-10 Alan Modra <amodra@bigpond.net.au>
354 * ldlang.c (entry_section): New initialised variable.
355 (lang_finish): Use it.
356 * ldlang.h (entry_section): Declare.
357 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
358 entry_section to ".opd".
360 2002-02-09 Chris Demetriou <cgd@broadcom.com>
362 * ld.texinfo (Options): Add back in -nostdlib documentation,
363 which had been inadvertently removed.
365 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
367 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
368 register section vma to a sane value after emitting error. Make
369 fatal conditions cause program exit when emitting message.
371 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
373 * configure.tgt: Add or32-*-rtems target.
375 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
378 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
379 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
380 in OTHER_RELOCATABLE_SECTIONS.
381 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
382 * emulparams/shelf32.sh (STACK_ADDR): Define.
383 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
384 (OTHER_SECTIONS): this. Removed stack settings.
385 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
386 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
387 2001-03-12 DJ Delorie <dj@redhat.com>
388 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
389 relaxing if any shmedia or mixed sections are found.
390 2001-03-07 DJ Delorie <dj@redhat.com>
391 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
392 einfo. Gracefully decline to output to non-elf formats.
393 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
394 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
395 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
396 * emulparams/shelf32.sh: Ditto.
397 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
398 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
400 2001-01-10 Ben Elliston <bje@redhat.com>
401 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
402 non-portable shell constructs. From Hans-Peter Nilsson.
403 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
404 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
405 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
406 dependencies to the shell script include chain.
407 * Makefile.in: Regenerate.
408 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
409 * emultempl/sh64elf.em: Update and tweak comments.
410 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
411 make a .cranges section SEC_IN_MEMORY.
412 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
413 * emultempl/sh64elf.em
414 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
415 .cranges section found to be necessary; continue and set stored
416 section contents flags for sections with non-mixed contents.
417 Use a struct sh64_section_data container and sh64_elf_section_data
418 to store contents-type flags.
419 Remove unused update of "isec".
420 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
421 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
422 access contents-type flags. Assert that the associated container
423 is initialized. Use that container, not elf_gp_size, to hold size
424 of linker-generated cranges contents.
425 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
426 * emultempl/sh64elf.em
427 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
428 there's already a .cranges section. When section flag difference
429 is found, don't NULL-check cranges a second time. Tweak comments.
430 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
431 merging, not max size, as size of ld-generated .cranges contents.
432 Don't set ELF section flags in output section. When checking for
433 needed .cranges descriptors, don't use a variable; compare
434 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
436 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
437 * emultempl/sh64elf.em: New file.
438 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
439 * Makefile.in: Regenerate.
440 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
441 (OTHER_RELOCATING_SECTIONS): Ditto.
442 (EXTRA_EM_FILE): New, set to sh64elf if not set.
443 * emulparams/shlelf32.sh: Stub out all settings except
444 OUTPUT_FORMAT. Source shelf32.sh.
445 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
446 OTHER_RELOCATING_SECTIONS.
447 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
448 * emulparams/shlelf64.sh: Stub out all settings except
449 OUTPUT_FORMAT. Source shelf64.sh.
450 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
451 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
453 (DATA_START_SYMBOLS): Define, provide ___data.
454 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
455 for consecutive .data section.
456 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
457 section after .data section.
458 * emulparams/shlelf64.sh: Ditto.
459 * emulparams/shelf32.sh: Ditto.
460 (ALIGNMENT): Define to 8.
461 * emulparams/shelf32.sh: Ditto.
462 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
463 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
464 built-in linker scripts.
465 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
466 * emulparams/shlelf64.sh: New.
467 * emulparams/shelf64.sh: New.
468 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
470 * Makefile.am: Add support for shlelf64 and shelf64.
471 * Makefile.in: Regenerate.
472 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
473 * configure.tgt (sh64-*-elf*): Add shelf as default.
474 Add shlelf to targ_extra_emuls.
475 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
476 * emulparams/shelf32.sh: New file.
477 * emulparams/shlelf32.sh: New file.
478 * Makefile.am: Add support for shlelf32 and shelf32.
479 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
480 * Makefile.in: Regenerate.
482 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
484 * ldlang.c (lang_reset_memory_regions): Rename from
485 reset_memory_regions. Change all callers. Make public.
486 * ldlang.h (lang_reset_memory_regions): Prototype.
487 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
488 lang_reset_memory_regions before lang_size_sections.
489 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
490 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
492 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
494 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
495 arithmetic when checking for too many global registers.
497 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
499 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
500 (ehppanbsd.c): New rule.
501 * Makefile.in: Regenerate.
502 * configure.tgt (hppa*-*-netbsd*): New target.
503 * emulparams/hppalinux.sh: Add comment to check other files
504 that source this file it is modified, and list which
506 * emulparams/hppanbsd.sh: New file.
508 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
510 * scripttempl/xstormy16.sc: Don't allocate extra space for the
513 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
515 Support on-demand global register allocation from
516 R_MMIX_BASE_PLUS_OFFSET relocs.
517 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
518 mmix_set_reg_section_vma. Call
519 _bfd_mmix_finalize_linker_allocated_gregs.
520 (mmix_before_allocation): New function.
521 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
522 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
523 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
524 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
525 before .MMIX.reg_contents.
526 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
527 (mmo_after_open): New function.
528 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
529 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
530 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
532 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
534 * emulparams/or32.sh: New file.
535 * emulparams/or32elf.sh: New file.
536 * scripttempl/or32.sc: New file.
537 * configure.tgt : Add support for or32.
538 * configure: Regenerate
539 * Makefile.am: Add support for or32.
540 * Makefile.in: Regenerate.
541 * NEWS: Mention support for or32.
542 * po/ld.pot: Regenerate.
544 2002-01-29 Chris Demetriou <cgd@broadcom.com>
545 Mitch Lichtenberg <mpl@broadcom.com>
547 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
548 * emultempl/mipself.em: New file to handle MIPS ELF embedded
549 reloc creation (ld --embedded-relocs).
551 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
553 * configure: Regenerated.
555 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
557 * Makefile.am (install): Depend on install-info.
558 * Makefile.in: Regenerate.
560 2002-01-26 Christian Rose <menthos@menthos.com>
562 * ldmain.c (main): Use full sentences to ease translation.
564 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
566 * po/fr.po: Updated version.
568 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
570 * po/es.po: Updated version.
572 2002-01-25 Andreas Jaeger <aj@suse.de>
574 * ldlex.l (yy_input): Correct error check.
576 2002-01-25 Alan Modra <amodra@bigpond.net.au>
578 * ldmisc.c (demangle): Put back dots when string not demangled.
580 2002-01-22 Richard Henderson <rth@redhat.com>
582 * emulparams/elf64alpha.sh (NOP): Use unop.
584 2002-01-21 Andreas Jaeger <aj@suse.de>
586 * ldlex.l: Use fread instead of read.
588 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
590 * configure.tgt (ia64-*-netbsd*): New target.
592 2002-01-21 H.J. Lu <hjl@gnu.org>
594 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
596 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
598 2002-01-18 Andreas Jaeger <aj@suse.de>
600 * ldver.c (ldversion): Update year.
602 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
604 * po/ld.pot: Regenerate.
606 2002-01-16 Alan Modra <amodra@bigpond.net.au>
608 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
609 * Makefile.in: Regenerate.
610 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
611 * emultempl/ppc64elf.em: New file.
613 2002-01-15 DJ Delorie <dj@redhat.com>
615 * scripttempl/pe.sc: Add support for constructor priorities.
617 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
619 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
620 * emulparams/avr23xx.sh: Likewise.
621 * emulparams/avr4433.sh: Likewise.
622 * emulparams/avr44x4.sh: Likewise.
623 * emulparams/avr85xx.sh: Likewise.
624 * emulparams/avrmega103.sh: Likewise.
625 * emulparams/avrmega161.sh: Likewise.
626 * emulparams/avrmega603.sh: Likewise.
627 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
629 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
631 * ldlang.c (walk_wild_section): Exclude object file if enclosing
634 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
636 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
637 (eshelf_nbsd.c): New rule.
638 (eshlelf_nbsd.c): New rule.
639 * Makefile.in: Regenerate.
640 * configure.tgt (sh*le-*-netbsdelf*): New target.
641 (sh*-*-netbsdelf*): New target.
642 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
643 * ld/emulparams/shelf_nbsd.sh: New emulation.
644 * ld/emulparams/shlelf_nbsd.sh: New emulation.
646 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
648 * po/es.po: New file: Spanish translation.
649 * configure.in (ALL_LINGUAS): Add es.
650 * configure: Regenerate.
652 2002-01-06 John Marshall <jmarshall@acm.org>
654 * ld.texinfo: Note that --emit-relocs is currently only
657 2002-01-05 Alan Modra <amodra@bigpond.net.au>
659 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
660 of bfd_section_list_remove and bfd_section_list_insert macros.
661 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
662 * emultempl/mmo.em (mmo_place_orphan): Likewise.
664 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
666 * configure.tgt (x86_64-*-netbsd*): New target.
668 2001-12-21 Tom Rix <trix@redhat.com>
670 (gld*_create_output_section_statements): New function.
671 For -binitfini support.
672 * emultempl/aix.em (gld*_before_parse): Fix comment.
673 * emultempl/aix.em (gld*_parse_args): Fix comment.
675 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
677 * configure.tgt (mips*-dec-netbsd*): Delete alias for
679 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
681 * configure.tgt (arm-*-netbsdelf*): Add target.
682 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
683 * emulparams/armelf_nbsd.sh: Added.
684 * Makefile.am: Add rules for earmelf_nbsd.
685 * Makefile.in: Regenerate.
687 2001-12-19 Andreas Jaeger <aj@suse.de>,
688 Susanne Oberhauser <froh@suse.de>
690 * configure.host: Add rules for x86_64-*linux-gnu. Change
691 s390x-linux entry to use gcc to report configuration, replace gcc
692 with $CC in s390-linux
694 2001-12-19 Andreas Jaeger <aj@suse.de>
696 * ld.texinfo (VERSION): Fix markup.
698 2001-12-18 matthew green <mrg@eterna.com.au>
700 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
701 (m68kelfnbsd.c): New rule.
702 * Makefile.in: Regenerate.
703 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
704 (m68*-*-netbsd*4k*): .. this.
705 (m68*-*-netbsdelf*): New target.
706 (m68*-*-netbsd*): Also include ELF support.
707 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
708 * emulparams/m68kelfnbsd.sh: New emulation.
710 2001-12-18 Jakub Jelinek <jakub@redhat.com>
712 * ldgram.y (vers_node): Support anonymous version tags.
713 * ldlang.c (lang_register_vers_node): Ensure anonymous version
714 tag is not defined together with non-anonymous versions.
715 * ld.texinfo: Document it.
717 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
719 * po/tr.po: New file: Turkish translation.
720 * configure.in (ALL_LINGUAS): Add tr.
721 * configure: Regenerate.
723 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
725 * Makefile.am: Add rules for eelf64alpha_nbsd.
726 * Makefile.in: Regenerate.
727 * configure.tgt (alpha*-*-netbsd*): Set
728 targ_emul to elf64alpha_nbsd.
729 * emulparams/elf64alpha_nbsd.sh: Added.
731 2001-12-17 Alan Modra <amodra@bigpond.net.au>
733 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
734 section_tail when fiddling with section list.
735 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
736 broken into separate strings to make translation easier.
737 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
738 fiddling with section list.
739 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
741 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
743 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
745 2001-12-15 Alan Modra <amodra@bigpond.net.au>
747 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
749 2001-12-13 Jakub Jelinek <jakub@redhat.com>
751 * emultempl/elf32.em (finish): Supply output_bfd
752 to bfd_elf*_discard_info.
753 (OPTION_EH_FRAME_HDR): Define.
754 (longopts): Add --eh-frame-hdr.
755 (parse_args): Handle it.
756 (list_options): Add --eh-frame-hdr to help.
757 * emultempl/hppaelf.em (finish): Supply output_bfd
758 to bfd_elf*_discard_info.
759 * scripttempl/elf.sc (.eh_frame_hdr): Add.
761 2001-12-13 Alan Modra <amodra@bigpond.net.au>
763 * lexsup.c (parse_args): Don't pass shortopts to second call to
764 getopt functions. Restore optind rather than decrementing before
765 second call. Remove errind as it now duplicates last_optind.
767 2001-12-11 Christopher Faylor <cgf@redhat.com>
769 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
771 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
772 Richard Henderson <rth@redhat.com>
774 * Makefile.am: Add support for xstormy16.
775 * configure.tgt: Add support for xstormy16.
776 * Makefile.in: Regenerate.
777 * emulparams/elf32xstormy16.sh: New file.
778 * scripttempl/xstormy16.sc: New file.
780 2001-10-01 Christopher Faylor <cgf@cygnus.com>
782 * Makefile.in (LIB_PATH): Make configurable.
783 (GENSCRIPTS): Set LIB_PATH in environment.
784 * configure.in: Substitute LIB_PATH.
785 * configure: Regenerate.
786 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
787 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
789 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
791 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
792 describing the -N option so that it is easier to translate into
795 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
797 * emultempl/pe.em (..._list_options): Replace multiple fprintf
798 statements describing a single option with a single, newline
799 escaped fprintf. This allows better translation into other
802 * ldmain.c (add_archive_element): Combine multiple strings
803 into a single string to permit better translation into other
806 2001-12-05 Tom Rix <trix@redhat.com>
808 * Makefile.am: Remove eaixppc64.
809 * Makefile.in: Regenerate.
811 2001-12-04 Tom Rix <trix@redhat.com>
813 * emultempl/aix.em (choose_target): Change default target to
814 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
816 (gld*_read_file): Fix typo.
817 (change_symbol_mode): Add prototype.
820 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
821 * emulparams/aixrs6.sh : Same.
822 * emulparams/ppcmacos.sh : Same.
823 * emulparams/aixppc64.sh : Delete file.
824 * emultempl/aix.em : Formatting changes.
826 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
828 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
829 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
831 (OTHER_END_SYMBOLS): Fix formatting.
832 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
833 (OTHER_END_SYMBOLS): Fix formatting.
835 2001-12-04 Alan Modra <amodra@bigpond.net.au>
837 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
839 2001-12-02 Tom Rix <trix@redhat.com>
841 * configure.tgt : Remove eaixppc64 emulations.
842 * Makefile.in : Remove eaixppc64.c
843 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
844 (ldemul_default_target): Same.
845 * emultempl/gld960.em (gld960_choose_target): Same.
846 * emultempl/gld960c.em (gld960_choose_target): Same.
847 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
848 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
849 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
850 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
851 * emultempl/aix.em (choose_target): New function. Handle emulation of
854 2001-11-27 H.J. Lu <hjl@gnu.org>
856 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
857 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
858 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
859 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
860 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
861 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
862 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
863 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
865 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
868 (REL_SDATA): Likewise.
869 (REL_SBSS): Likewise.
870 (REL_SDATA2): Likewise.
871 (REL_SBSS2): Likewise.
872 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
875 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
877 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
879 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
881 2001-11-22 H.J. Lu <hjl@gnu.org>
883 * Makefile.in: Regenerated with automake based on automake
886 2001-11-22 Alan Modra <amodra@bigpond.net.au>
888 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
889 (config.status): Delete rule.
890 Add extra dependencies to cover sourced emulparams files.
891 * Makefile.in: Regenerate.
893 * scripttempl/elf.sc: Order <section>, <section>.* and
894 corresponding linkonce sections as seen in input files.
895 Formatting fixes. Zero vma of all sections if not relocating.
896 (STACK): Define and insert if STACK_ADDR defined.
897 (OTHER_RELOCATING_SECTIONS): Delete.
898 (OTHER_END_SYMBOLS): Define.
899 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
900 (OTHER_READWRITE_SECTIONS): Likewise.
901 (OTHER_GOT_SECTIONS): Likewise.
902 (OTHER_SDATA_SECTIONS): Likewise.
903 (OTHER_BSS_SECTIONS): Likewise.
904 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
905 (OTHER_READWRITE_SECTIONS): Likewise.
906 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
907 (OTHER_READWRITE_SECTIONS): Likewise
909 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
910 (STACK_ADDR): Define.
911 * emulparams/armelf_oabi.sh: As for armelf.sh.
912 * emulparams/elf32mcore.sh: As for armelf.sh.
913 * emulparams/h8300elf.sh: As for armelf.sh.
914 * emulparams/mn10200.sh: As for armelf.sh.
915 * emulparams/shelf.sh: As for armelf.sh.
917 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
918 (OTHER_END_SYMBOLS): Define.
919 * emulparams/m32relf.sh: As for elf32fr30.sh.
920 * emulparams/h8300helf.sh: As for elf32fr30.sh.
921 * emulparams/h8300self.sh: As for elf32fr30.sh.
923 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
924 defines with RELOCATING test.
925 (OTHER_SDATA_SECTIONS): Likewise.
926 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
927 (OTHER_END_SYMBOLS): ..this.
928 * emulparams/crislinux.sh: As for criself.sh.
930 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
932 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
933 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
934 normal and linkonce sections as seen in input files.
935 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
936 (TEXT_DYNAMIC): Likewise.
937 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
938 (OTHER_SDATA_SECTIONS): Likewise.
939 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
940 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
941 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
942 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
943 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
944 (OTHER_PLT_RELOC_SECTIONS): Likewise.
945 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
946 sections as seen in input files.
947 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
948 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
950 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
951 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
952 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
953 (OTHER_SECTIONS): Instead, use this..
954 (OTHER_END_SYMBOLS): ..and this.
956 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
957 * emulparams/elf32bsmip.sh: Likewise.
958 * emulparams/elf32btsmip.sh: Likewise.
959 * emulparams/elf32ebmip.sh: Likewise.
960 * emulparams/elf32lmip.sh: Likewise.
961 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
962 * emulparams/elf32lsmip.sh: Likewise.
963 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
964 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
965 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
966 * emulparams/elf64btsmip.sh: Likewise.
967 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
968 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
969 * emulparams/elf32ppclinux.sh: Likewise.
970 * emulparams/elf32ppcsim.sh: Likewise.
971 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
972 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
973 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
974 * emulparams/h8300self.sh: Likewise.
975 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
976 * emulparams/sh.sh: Comment.
977 * emulparams/shl.sh: Source sh.sh, remove duplicates.
978 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
979 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
981 2001-11-21 David Heine <dlheine@tensilica.com>
982 Alan Modra <amodra@bigpond.net.au>
984 * ldlang.c (map_input_to_output_sections): Replace "break"
985 accidentally removed with 2001-08-03 change.
986 (lang_gc_sections_1): Likewise.
988 2001-11-21 Alan Modra <amodra@bigpond.net.au>
990 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
992 2001-11-20 Angela Marie Thomas <angela@redhat.com>
994 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
995 of false when calling lang_size_sections.
996 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
998 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1000 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1001 function when LDEMUL_FINISH isn't set to the same name. Don't
1002 call ${LDEMUL_FINISH}.
1003 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1004 * emultempl/armelf.em (arm_elf_finish): Call
1005 gld${EMULATION_NAME}_finish.
1006 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1007 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1008 hppaelf_layout_sections_again if necessary.
1009 (need_laying_out): New var.
1010 (hppaelf_layaout_sections_again): Rename to
1011 hppaelf_layout_sections_again. Clear need_laying_out.
1012 (PARSE_AND_LIST_OPTIONS): Format text.
1014 2001-11-14 H.J. Lu <hjl@gnu.org>
1016 * emultempl/armelf.em (arm_elf_finish): Renamed from
1017 gld${EMULATION_NAME}_finish.
1018 (LDEMUL_FINISH): Set to arm_elf_finish.
1020 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1022 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1023 (struct ld_emulation_xfer_struct): Use it.
1025 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1027 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1028 additional symbols referenced by newer crt0.o files from HP.
1030 2001-11-12 Anthony Green <green@redhat.com>
1032 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1034 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1036 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1037 * Makefile.in: Regenerate.
1039 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1041 * ld.texinfo: Use @command for commands, @option for options.
1042 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1044 * Makefile.in: Rebuild.
1046 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1048 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1049 Add support for targets.
1051 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1053 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1054 * configure: Regernate.
1055 * po/fr.po: New file.
1056 * po/sv.po: New file.
1058 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1060 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1061 as little endian default and to support big endian.
1063 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1065 * ld.texinfo (Options): Document new option, -nostdlib.
1066 * lexsup.c (OPTION_NOSTDLIB): New definition.
1067 (ld_options): Add entry for "nostdlib".
1068 (parse_args): Handle OPTIONS_NOSTDLIB.
1069 * ldfile.c (ldfile_add_library_path): Don't add directories
1070 to the search path if they weren't specified on the command line
1071 and -nostdlib was specified.
1072 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1074 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1076 * lexsup.c (parse_args): Prevent infinite parsing loop when
1077 "-rpath.a" is specified on the command line.
1078 Replace calls to fprintf with calls to einfo.
1080 2001-10-31 John Marshall <jmarshall@acm.org>
1082 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1083 appear only once across all the linker scripts involved in a link
1084 invocation no longer applies. Make the documentation reflect
1087 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1089 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1091 (sh-*-linux*): Added targ_extra_libpath.
1093 2001-10-31 David Heine <dlheine@tensilica.com>
1095 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1096 for padding statements.
1098 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1100 * configure.tgt (mmix-*-*): New target.
1101 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1102 Add dependencies to match.
1103 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1104 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1105 scripttempl/mmo.sc: New files.
1106 * gen-doc.texi: @set MMIX.
1107 * ld.texinfo: Ditto.
1108 [MMIX] Add MMIX node.
1109 * Makefile.in: Regenerate.
1111 2001-10-29 Kazu Hirata <kazu@hxi.com>
1113 * ldlang.c: Fix a comment typo.
1115 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1117 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1118 entries, and match *-*-linux*.
1120 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1122 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1123 with ldlex_script, ldlex_popstate.
1124 (ifile_p1): Likewise.
1125 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1127 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1128 to 1. Don't BEGIN(SCRIPT).
1129 (lex_redirect): Similarly.
1130 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1132 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1134 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1135 __EH_FRAME_END__ and accept eh frames into data section.
1136 Add ctor and dtor sections.
1138 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1140 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1141 (auto-export): Fix indentation.
1143 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1145 * pe-dll.c (autofilter_objectlist): Add startup objects
1147 (auto-export): Constify char * p.
1148 Extract file basename and use strcmp rather than ststr
1151 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1153 * ldmain.c (get_emulation): Improve comment about the handling
1156 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1158 * po/POTFILES.in: Regenerate.
1160 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1162 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1163 -z nocopyreloc and -z nocombreloc usage strings.
1165 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1167 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1170 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1172 * scripttempl/armaout.sc: Place .bss section after end of aligned
1173 data section to match behaviour of aout code in constructrion of
1176 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1178 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1179 startup files for mingw32 dlls to list.
1181 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1183 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1185 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1187 * configure.tgt (targ): Add arm9e-*-elf.
1189 2001-10-05 H.J. Lu <hjl@gnu.org>
1191 * genscripts.sh: Fix a typo in the last change.
1193 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1195 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1196 -z nocombreloc in usage.
1198 2001-10-03 Jim Blandy <jimb@redhat.com>
1200 * genscripts.sh: Include a comment at the top of each generated
1201 script, explaining its purpose.
1203 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1205 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1206 * NEWS: Mention -z nocopyreloc.
1207 * ld.texinfo (Options): Describe nocopyreloc.
1209 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1211 * configure: Regenerate.
1213 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1215 * ldver.h (ld_program_version): Remove declaration.
1216 * lexsup.c (parse_args): Move printing of copyright message..
1217 * ldver.c (ldversion): .. to here.
1218 Use BFD_VERSION_STRING in place of BFD_VERSION.
1219 (ld_program_version): Remove.
1220 * Makefile.am (Makefile): Depend on bfd/configure.in.
1222 * Makefile.in: Regenerate.
1224 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1226 * Makefile.am: Update dependencies with "make dep-am".
1227 * Makefile.in: Regenerate.
1229 2001-09-29 John Reiser <jreiser@BitWagon.com>
1231 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1232 * lexsup.c: Add --no-define-common commandline option.
1233 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1234 * ldlex.l: Likewise.
1235 * ld.h: Add command_line.inhibit_common_definition.
1236 * ldmain.c (main): Initialize.
1237 * ld.texinfo: Document.
1239 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1241 * ldmisc.c (USE_STDARG): Remove.
1242 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1247 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1248 declarations. Update copyright.
1250 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1252 * pe-dll.c: Remove obsoleted declaration of
1253 pe_get_data_import_dll_name.
1254 (pe_create_import_fixup): Fix thinko.
1256 * ld.texinfo(enable-auto-import): Clarify the explanation.
1258 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1260 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1261 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1262 DLL_SUPPORT controlled code.
1264 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1266 * emultempl/pe.em(pe_data_import_dll): Make static.
1267 (pe_get_data_import_dll_name): New accessor function.
1268 * pe-dll.c(pe_create_import_fixup): call
1269 pe_get_data_import_dll_name() from pe.em, instead of
1270 directly accessing pe_data_import_dll variable from pe.em.
1272 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1274 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1275 (def_file_add_directive): Use ISSPACE instead of isspace.
1276 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1277 isdigit/isxdigit/isalpha/isalnum.
1278 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1279 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1280 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1281 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1283 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1284 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1286 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1287 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1288 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1289 (ctor_prio): Use ISDIGIT instead of isdigit.
1290 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1291 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1292 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1294 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1295 (stricpy): Use TOLOWER instead of isupper/tolower.
1296 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1297 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1298 (lex_warn_invalid): Use ISPRINT instead of isprint.
1299 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1300 (main): For gettext, also set the LC_CTYPE locate facet.
1301 (add_keepsyms_file): Use ISSPACE instead of isspace.
1302 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1303 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1304 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1305 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1306 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1307 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1308 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1309 (quoteput): Use ISSPACE instead of isspace.
1310 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1313 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1315 * deffilep.y (def_stash_module): Constify "name" param.
1317 * pe-dll.c: Replace CONST with const throughout.
1318 (quick_symbol): Constify "n1", "n2", "n3" params.
1319 (make_singleton_name_thunk): Constify "import" param. Make
1320 "buffer_len" a size_t.
1321 (make_import_fixup_entry): Constify "name", "fixup_name",
1322 "dll_symname" params.
1323 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1324 (pe_get32): Likewise.
1325 (pe_implied_import_dll): Likewise.
1327 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1328 (sort_by_section_name): Likewise.
1330 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1331 (make_import_fixup): Cast printf arg, rel->address to long rather
1333 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1335 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1337 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1338 defines BufferSize. Increase buffer size by one.
1340 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1342 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1344 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1346 * configure.tgt: Add arm-openbsd target.
1348 2001-09-12 H.J. Lu <hjl@gnu.org>
1350 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1352 (ALL_64_EMULATIONS): Here.
1353 * Makefile.in: Regenerated.
1355 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1357 * emultempl/pe.em(make_import_fixup): change signature to
1358 take asection as well as arelec; we need this for proper
1359 error reporting. Only call pe_create_import_fixup() if
1360 there is no attempt to add a constant addend to the reloc;
1361 otherwise, report error condition.
1362 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1363 since final argument is a pointer to make_import_fixup().
1364 Change call to cb() to match make_import_fixup() signature.
1365 (make_import_fixup_mark): make buffer_len unsigned.
1366 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1368 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1370 * ld.texinfo: add verbose documentation for auto-import
1371 direct-addressing workaround, to compliment the terse
1374 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1376 * scripttempl/v850.sc: Add gcc_except_table sections.
1378 2001-09-11 Jeffrey A Law (law@cygnus.com)
1380 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1381 * emulparams/h8300self.sh: Similarly.
1383 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1385 * ld.texinfo (Options, --stack): Correct default value for stack
1388 2001-09-05 Tom Rix <trix@redhat.com>
1390 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1392 2001-09-03 Andreas Jaeger <aj@suse.de>
1394 * emultempl/beos.em: Declare prototypes for comparions functions,
1397 2001-09-02 Andreas Jaeger <aj@suse.de>
1399 * emultempl/aix.em: Add missing prototype.
1400 * emultempl/lnk960.em: Likewise.
1401 * emultempl/vanilla.em: Likewise.
1402 * emultempl/armcoff.em: Likewise.
1403 * emultempl/armelf_oabi.em: Likewise.
1404 * emultempl/beos.em: Likewise.
1405 * emultempl/gld960c.em: Likewise.
1406 * emultempl/gld960.em: Likewise.
1408 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1409 for prototype declaration.
1411 2001-08-31 Eric Christopher <echristo@redhat.com>
1412 Jason Eckhardt <jle@redhat.com>
1414 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1416 2001-08-31 Andreas Jaeger <aj@suse.de>
1418 * emultempl/pe.em: Add missing prototypes.
1419 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1420 pe_find_data_imports.
1421 (pr_sym): Add unused attribute.
1423 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1425 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1426 default from coff to elf.
1428 2001-08-29 Jeff Law <law@redhat.com>
1430 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1432 * emulparams/h8300self.sh: Similarly.
1434 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1436 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1438 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1439 * configure.tgt (h8300-*-elf*): New case.
1440 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1441 * emulparams/h8300self.sh: New file.
1442 * Makefile.in: Regenerated.
1444 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1446 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1449 2001-08-27 Linus Nordberg <linus@swox.com>
1450 Alan Modra <amodra@bigpond.net.au>
1452 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1453 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1455 * Makefile.in: Regenerate.
1456 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1457 entries to correct alphabetical position.
1458 * emulparams/elf64ppc.sh: New.
1459 * emulparams/elf64lppc.sh: New.
1461 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1463 * ldmain.c (main): Declare BSIZE as static.
1465 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1467 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1468 into .rel.dyn resp. .rela.dyn if combreloc.
1469 (get_script): If .x linker script is equal to .xn, only put it
1470 once into the binary.
1471 Add .xc and .xsc scripts.
1472 (parse_args): Handle -z combreloc and -z nocombreloc.
1473 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1474 For .xc and .xsc scripts put all .rel* or .rela* input sections
1475 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1476 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1478 Strip trailing whitespace from script.
1479 Generate .xc and .xsc scripts if requested.
1480 * ldmain.c (main): Initialize link_info.combreloc and
1481 link_info.spare_dynamic_tags.
1482 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1483 (ld_options): Add --spare-dynamic-tags option.
1484 (parse_args): Likewise.
1485 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1486 * ldint.texinfo: Document .xc and .xsc linker scripts.
1487 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1489 2001-08-22 H.J. Lu <hjl@gnu.org>
1491 * emulparams/elf32fr30.sh: Add a newline.
1493 2001-08-21 Andreas Jaeger <aj@suse.de>
1495 * deffilep.y: Add missing prototypes.
1496 * pe-dll.c: Likewise.
1498 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1500 * ldlang.c (insert_pad): Fix typos in last patch.
1502 * ldlang.c: When traversing lang_statement_union_type lists,
1503 consistently use "header.next" rather than "next".
1504 * mpw-eppcmac.c: Likewise.
1505 * emultempl/beos.em: Likewise.
1506 * emultempl/hppaelf.em: Likewise.
1507 * emultempl/pe.em: Likewise.
1508 * ldlang.h (union lang_statement_union): Remove "next" field.
1510 * ldlang.c (insert_pad): Use offsetof macro.
1511 (lang_size_sections): Always neuter padding statements.
1512 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1514 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1515 passed to lang_size_sections.
1516 (pe_exe_fill_sections): Likewise.
1517 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1518 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1520 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1522 * emultempl/aix.em: Formatting fixes.
1524 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1526 * ldlang.c (insert_pad): Make use of an existing pad statement if
1527 available. Move code calculating alignment, adjusting section
1528 alignment power, and adjusting dot to ..
1529 (size_input_section): .. here. Remove unused relax param.
1530 (lang_size_sections): Change boolean `relax' param to boolean *.
1531 Adjust call to size_input_section. Make use of insert_pad to
1532 place pad after the assignment statement. If relaxing, zap
1534 (reset_memory_regions): Reset output_bfd section sizes too.
1535 (relax_again): Move to..
1536 (lang_process): ..here. Adjust call to lang_size_sections, and
1537 remove duplicated code.
1538 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1540 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1542 * ld.texinfo: Document that fill values now use the four least
1544 * emulparams/elf32fr30.sh (NOP): Update.
1545 * emulparams/elf32mcore.sh: Likewise.
1546 * emulparams/elf64_s390.sh: Likewise.
1547 * emulparams/elf_i386.sh: Likewise.
1548 * emulparams/elf_i386_be.sh: Likewise.
1549 * emulparams/elf_i386_chaos.sh: Likewise.
1550 * emulparams/elf_i386_ldso.sh: Likewise.
1551 * emulparams/elf_s390.sh: Likewise.
1552 * emulparams/elf_x86_64.sh: Likewise.
1553 * emulparams/i386moss.sh: Likewise.
1554 * emulparams/i386nw.sh: Likewise.
1555 * emulparams/m68kelf.sh: Likewise.
1556 * scripttempl/elf.sc: Update NOP comment.
1557 * scripttempl/elfi370.sc: Likewise.
1558 * scripttempl/elfm68hc11.sc: Likewise.
1559 * scripttempl/elfm68hc12.sc: Likewise.
1560 * scripttempl/nw.sc: Likewise.
1562 2001-08-15 Tom Rix <trix@redhat.com>
1564 * ldgram.y (saved_script_handle): Initialize to NULL.
1565 * ldmain.c (main): Change check on saved_script_handle.
1567 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1569 * emultempl/elf32.em: Formatting fixes.
1570 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1571 looking at sec->owner.
1572 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1573 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1574 unused code, and reorganize orphan section placement code.
1576 * ldlang.c (wild_doit): Rename to lang_add_section.
1577 * ldlang.h: Here too.
1578 * mpw-elfmips.c: And here.
1579 * emultempl/beos.em: And here.
1580 * emultempl/elf32.em: And here.
1581 * emultempl/hppaelf.em: And here.
1582 * emultempl/pe.em: And here.
1584 2001-08-13 Richard Henderson <rth@redhat.com>
1586 * emultempl/needrelax.em: New file.
1587 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1588 * Makefile.am (eelf64_ia64.c): Depend on it.
1589 * Makefile.in: Rebuild.
1591 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1593 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1594 output_section is set non-NULL.
1596 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1597 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1598 needlessly create an output_section_statement. Treat a correctly
1599 named output_section_statement with NULL bfd_section as compatible.
1601 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1603 * emultempl/generic.em: Support EXTRA_EM_FILE.
1604 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1605 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1606 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1607 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1608 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1609 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1610 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1611 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1612 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1613 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1615 2001-08-12 Richard Henderson <rth@redhat.com>
1617 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1618 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1619 scripttempl/v850.sc: Keep .jcr data.
1621 2001-08-12 H.J. Lu <hjl@gnu.org>
1622 Andrew Haley <aph@cambridge.redhat.com>
1623 Nick Clifton <nickc@redhat.com>
1625 * ldgram.y (had_script): Change name to saved_script_handle.
1626 Change type to file handle.
1627 * ld.h (had_script): Rename and retype.
1628 * ldfile.c (ldfile_open_command_file): Save the file handle
1629 used in saved_script_handle.
1630 * lexsup.c (parse_args): Do not allow -c option to alter
1631 saved_script_handle.
1632 * ldmain.c (main): Print out the linker script used if
1633 --verbose is given. Check saved_script_handle to obtain the
1634 external linker script used, or if NULL, dump the builtin
1636 * ld.texinfo: Document that --verbose now dumps the linker
1637 script used, regardless of whether it was an internal or an
1640 2001-08-10 Andreas Jaeger <aj@suse.de>
1642 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1644 * configure: Regenerate.
1646 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1648 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1650 * scripttempl/elf.sc: Move non-text .dynamic section before
1651 .plt/.got/.sdata* group.
1652 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1653 (OTHER_SDATA_SECTIONS): Add.
1654 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1656 * emulparams/crislinux.sh: Likewise.
1657 * emulparams/elf32b4300.sh: Likewise.
1658 * emulparams/elf32bmip.sh: Likewise.
1659 * emulparams/elf32bmipn32.sh: Likewise.
1660 * emulparams/elf32bsmip.sh: Likewise.
1661 * emulparams/elf32btsmip.sh: Likewise.
1662 * emulparams/elf32ebmip.sh: Likewise.
1663 * emulparams/elf32elmip.sh: Likewise.
1664 * emulparams/elf32l4300.sh: Likewise.
1665 * emulparams/elf32lmip.sh: Likewise.
1666 * emulparams/elf32lsmip.sh: Likewise.
1667 * emulparams/elf32ltsmip.sh: Likewise.
1668 * emulparams/elf64bmip.sh: Likewise.
1669 * emulparams/elf64btsmip.sh: Likewise.
1670 * emulparams/elf64ltsmip.sh: Likewise.
1672 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1674 * genscripts.sh: Source the emulparams script before each output
1675 script is generated so that variables like `RELOCATING' may affect
1676 variables defined in the emulparams script.
1678 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1680 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1683 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1684 ie. iterate over wild_statement.section_list.
1685 (gld${EMULATION_NAME}_place_orphan): Likewise.
1687 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1689 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1690 .fini[0-4] sections used by _exit
1691 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1692 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1693 * scripttempl/elfm68hc11.sc: Likewise.
1695 2001-08-03 H.J. Lu <hjl@gnu.org>
1697 * emultempl/beos.em (init): Add the missing initialization.
1699 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1701 * ld.texinfo (Input Section Basics): Clarify ordering of output
1703 * ldlang.c (callback_t): Add wildcard_list param.
1704 (walk_wild_section): Remove "section" param. Rewrite for
1705 lang_wild_statement_type change. Remove unique_section_p test.
1706 (walk_wild_file): Remove "section" param.
1707 (walk_wild): Remove "section" and "file" params.
1708 (lang_gc_wild): Likewise.
1709 (wild): Likewise. Modify for lang_wild_statement_type change.
1710 (wild_sort): Likewise. Add "sec" param.
1711 (gc_section_callback): Likewise.
1712 (output_section_callback): Likewise. Do unique_section_p test.
1713 (map_input_to_output_sections): Modify call to wild.
1714 (lang_gc_sections_1): Likewise.
1715 (print_wild_statement): Modify for lang_wild_statement_type
1717 (lang_add_wild): Replace filename, filenames_sorted param with
1718 filespec. Replace section_name, sections_sorted,
1719 exclude_filename_list with section_list.
1720 * ldlang.h (lang_add_wild): Here too.
1721 (lang_wild_statement_type): Replace section_name, sections_sorted,
1722 and exclude_filename_list with section_list.
1723 * ldgram.y (current_file): Delete.
1724 (%union): Add wildcard_list.
1725 (file_NAME_list): Set type to wildcard_list. Build a linked list
1726 rather than calling lang_add_wild for each entry.
1727 (input_section_spec_no_keep): Call lang_add_wild here instead.
1728 * ld.h (struct wildcard_list): Declare.
1729 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
1731 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1733 * ldmain.c (main): initialize link_info.pei386_auto_import
1734 * pe-dll.c: new tables for auto-export filtering
1735 (auto_export): change API, pass abfd for contextual filtering.
1736 Loop thru tables of excluded symbols instead of comparing
1739 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1741 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
1742 static variable current_sec (static struct sec *). Add
1743 forward declaration for add_bfd_to_link.
1744 (process_def_file): Don't export undefined symbols. Do not
1745 export symbols starting with "_imp__". Call auto_export()
1747 (pe_walk_relocs_of_symbol): New function.
1748 (generate_reloc): add optional extra debugging
1749 (pe_dll_generate_def_file): eliminate extraneous initial blank
1751 (make_one): enlarge symtab to make room for __nm__ symbols
1752 (DATA auto-import support).
1753 (make_singleton_name_thunk): New function.
1754 (make_import_fixup_mark): New function.
1755 (make_import_fixup_entry): New function.
1756 (pe_create_import_fixup): New function.
1757 (add_bfd_to_link): Specify that 'name' argument is a CONST
1759 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1760 declare new functions pe_walk_relocs_of_symbol and
1761 pe_create_import_fixup.
1762 * emultempl/pe.em: add new options --enable-auto-import,
1763 --disable-auto-import, and --enable-extra-pe-debug.
1764 (make_import_fixup): New function.
1765 (pe_find_data_imports): New function.
1766 (pr_sym): New function.
1767 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1768 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1771 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1773 * ld.texinfo: add additional documentation for
1774 --export-all-symbols. Document --out-implib,
1775 --enable-auto-image-base, --disable-auto-image-base,
1776 --dll-search-prefix, --enable-auto-import, and
1777 --disable-auto-import.
1778 * ldint.texinfo: Add detailed documentation on auto-import
1781 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1783 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1786 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1788 * Makefile.am: Update dependencies with "make dep-am".
1789 * Makefile.in: Regenerate
1791 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1793 * ldcref.c (check_section_sym_xref): New function.
1794 (check_nocrossrefs): Call it.
1795 (check_nocrossref): Interate over h->refs here instead of..
1796 (check_refs): ..here. Pass in the symbol name, section, and bfd
1797 rather than hash_entry pointers.
1798 (struct check_refs_info): Keep symbol name rather than hash entry.
1800 (check_reloc_refs): Tweak for above changes in check_refs_info.
1801 Only report references to section syms when symname is NULL to
1802 prevent duplicate messages for the same reloc.
1804 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1806 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1807 available. Do not print NULL trees.
1808 (exp_print_token): Print unknown tokens with values > 126 as
1809 decimal values not ASCII characters.
1811 * ldlang.c (lang_leave_overlay): If a region is specified assign
1812 it to all sections inside the overlay unless they have been
1813 assigned to the own, non-default, memory region.
1815 * README: Add header for consistency with other README files.
1817 2001-07-14 H.J. Lu <hjl@gnu.org>
1819 * emultempl/elf32.em (output_prev_sec_find): Never return
1820 bfd_abs_section_ptr, bfd_com_section_ptr nor
1821 bfd_und_section_ptr.
1823 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1825 * Makefile.am (em32relf.c): Change dependency from generic.em to
1827 * Makefile.in: Regenerate.
1829 2001-07-14 matthew green <mrg@eterna.com.au>
1831 * configure.tgt (i386-*-netbsdelf*): New target.
1832 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1834 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1836 * emultempl/elf32.em (output_prev_sec_find): New.
1837 (place_orphan): Use it.
1839 2001-07-11 H.J. Lu <hjl@gnu.org>
1841 * ldmain.c (main): Fix typos in the last change.
1843 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1845 * ldmain.c (main): Disallow -F and -f without -shared.
1847 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1849 * emultempl/pe.em (after_open): Check for the output_bfd not
1850 having any coff_data structure allocated to it.
1852 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1854 * emultempl/elf32.em: Do not assuming that contents of the buffer
1855 returned from basename function will remain unchanged accross other
1858 2001-07-03 H.J. Lu <hjl@gnu.org>
1860 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1861 2001-07-03. It creates dynamic entries even for static binaries.
1863 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1865 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1866 (DYNAMIC): Use it to reserve few dynamic entries for
1869 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1871 * emulparams/hppa64linux.sh: New file.
1872 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1873 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1874 (ehppa64linux.c): Add rule to make it.
1876 * Makefile.in: Regenerate.
1878 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1880 * ld.texinfo (Options, -r): Mention restrictions when using
1881 different object formats.
1883 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1885 * ldlang.c (lang_check): Emit fatal error if relocatable link
1886 between different object flavours with relocations in input.
1888 2001-06-19 H.J. Lu <hjl@gnu.org>
1890 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1891 (--version-script): Mention the language support.
1893 2001-06-19 H.J. Lu <hjl@gnu.org>
1895 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1897 2001-06-18 H.J. Lu <hjl@gnu.org>
1899 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1900 (diststuff): Add $(MANS).
1901 * Makefile.in: Regenerated.
1905 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1907 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1908 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1909 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1910 * ld.h (args_type): Remove member export_dynamic. All users
1911 changed to use struct bfd_link_info member.
1913 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1914 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1915 * Makefile.in: Regenerate.
1917 2001-06-18 H.J. Lu <hjl@gnu.org>
1919 * ldlang.c (init_os): Add the newline to the einfo call.
1920 (lang_check): Likewise.
1921 (lang_do_version_exports_section): Likewise.
1923 2001-06-15 H.J. Lu <hjl@gnu.org>
1925 * lexsup.c (parse_args); Save optind to report unrecognized
1928 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1930 * ldlang.c (lang_check): Emit fatal error if relocatable link
1931 between different object flavours.
1933 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1934 Set new link_info member export_dynamic.
1935 * ldmain.c (main): Initialize new link_info member export_dynamic.
1937 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1939 * ldlang.c (walk_wild): Only call walk_wild_file if
1940 lookup_name returns something.
1941 (lookup_name): If load_symbols fails, return NULL.
1942 (load_symbols): Change to a boolean function.
1943 (open_input_bfds): If load_symbols fails then do not make the
1946 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1948 * ldlang.c (record_bfd_errors): Remove.
1950 * emultempl/aix.em: Fix copyright dates.
1952 2001-06-07 Andreas Jaeger <aj@suse.de>
1954 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1955 (TEXT_START_ADDR): Likewise.
1957 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1959 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1961 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1963 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1965 2001-05-31 H.J. Lu <hjl@gnu.org>
1967 * ldlang.c (open_input_bfds): Don't change the bfd error
1968 handler whilst loading symbols.
1970 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1972 * configure.tgt: Remove i370-mvs architecture, it is not currently
1975 2001-05-25 H.J. Lu <hjl@gnu.org>
1977 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1978 like emulparams/aixppc.sh.
1980 2001-05-25 H.J. Lu <hjl@gnu.org>
1982 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1983 setting of output_filename after bfd_scan_arch.
1984 * emultempl/pe.em: Likewise.
1986 2001-05-25 H.J. Lu <hjl@gnu.org>
1988 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1989 like emulparams/aixppc.sh.
1991 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1992 instead of ${srcdir}/emultempl/stringify.sed.
1994 2001-05-25 Timothy Wall <twall@oculustech.com>
1996 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1999 2001-05-25 Alan Modra <amodra@one.net.au>
2001 * configure.host: Replace linuxoldld with linux*oldld.
2002 * configure.tgt: Likewise.
2004 2001-05-24 H.J. Lu <hjl@gnu.org>
2006 * emultempl/stringify.sed: Removed again.
2008 2001-05-24 H.J. Lu <hjl@gnu.org>
2010 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2011 (gld${EMULATION_NAME}_before_parse): Initialize
2012 ldfile_output_architecture, ldfile_output_machine and
2013 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2014 * emultempl/beos.em: Likewise.
2015 * emultempl/elf32.em: Likewise.
2016 * emultempl/linux.em: Likewise.
2017 * emultempl/mipsecoff.em: Likewise.
2018 * emultempl/pe.em: Likewise.
2019 * emultempl/sunos.em: Likewise.
2021 2001-05-24 Tom Rix <trix@redhat.com>
2023 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2024 udate import file format.
2025 (change_symbol_mode) New, same
2026 (is_syscall) New, same
2027 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2028 * emulparams/aixppc64.sh : same
2029 * emulparams/aixrs6.sh : same
2030 * emulparams/ppcmacos.sh : same
2031 * emultempl/aix.em : use strtoull to parse options
2032 * Makefile.am : add eaixppc64 emulation for xcoff64
2033 * Makefile.in : same
2034 * configure.tgt : same
2036 * scripttempl/aix.sc : default text section offset to 0x10000000
2037 default data section offset to 0x20000000
2038 add .sv3264 and .sv64 pseudo sections
2039 loader and debug sections use the currect section offset.
2041 * emultempl/aix.em : Add xcoff64 support
2042 Add -binitfini support
2043 (gld${EMULATION_NAME}_before_parse) -binitfini
2044 (gld${EMULATION_NAME}_parse_args) same
2045 (gld${EMULATION_NAME}_before_allocation) format change for special
2048 * emulparams/aixppc64.sh : New file for xcoff64 support
2050 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2052 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2053 variable to avoid non-portable shell construct.
2055 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2057 * ldmain.c (get_emulation): Add -mips5 command line argument.
2059 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2061 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2062 (ELF_INTERPRETER_NAME): Define it.
2063 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2065 * configure.tgt (targ_emul, targ_extra_emuls)
2066 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2067 as primary, elf_i386 as extra.
2068 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2069 (eelf_i386_ldso.c): New rule.
2070 * Makefile.in: Rebuilt.
2072 2001-05-22 Nick Clifton <nickc@redhat.com>
2074 * lexsup.c (ld_options): Allow -I to be an alias for
2075 --dynamic-linker. This is for Solaris compatability.
2076 * ld.texinfo: Document that -I can be used.
2079 2001-05-16 Alan Modra <amodra@one.net.au>
2081 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2082 whether an input section is the first one assigned to an output
2084 Assorted formatting fixes.
2086 2001-05-14 DJ Delorie <dj@delorie.com>
2088 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2089 * Makefile.in: Ditto.
2091 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2093 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2094 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2096 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2098 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2100 * ldlang.c (lang_process): Call bfd_merge_sections.
2102 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2104 * ldgram.y: Fix typo.
2106 2001-05-03 H.J. Lu <hjl@gnu.org>
2108 * emultempl/elf32.em: Include "libiberty.h".
2109 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2110 basename of the bfd filename.
2111 (gld${EMULATION_NAME}_stat_needed): Likewise.
2112 (gld${EMULATION_NAME}_try_needed): Likewise.
2113 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2115 2001-05-02 H.J. Lu <hjl@gnu.org>
2117 * emultempl/pe.em: Include <ctype.h>.
2119 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2121 * emulparams/elf32openrisc.sh: New file.
2123 * Makefile.am: Add OpenRISC target.
2124 * Makefile.in: Regenerated.
2126 * configure.tgt: Add openrisc-*-* mapping.
2128 2001-05-02 Nick Clifton <nickc@redhat.com>
2130 * emultempl/aix.em: Replace buystring with xstrdup.
2131 * emultempl/beos.em: Replace buystring with xstrdup.
2133 2001-05-02 H.J. Lu <hjl@gnu.org>
2135 * ldfile.c: Include "libiberty.h".
2136 * ldlex.l: Likewise.
2138 * ldmisc.c (buystring): Removed.
2139 * ldmisc.h: Likewise.
2141 * ldfile.c: Replace buystring with xstrdup.
2142 * ldlang.c: Likewise.
2143 * ldlex.l: Likewise.
2144 * ldmain.c: Likewise.
2145 * ldmisc.c: Likewise.
2146 * lexsup.c: Likewise.
2147 * mpw-eppcmac.c: Likewise.
2149 2001-04-30 Andreas Jaeger <aj@suse.de>
2151 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2153 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2155 * ldlang.c (load_symbols): Give emulation a chance
2156 to process unrecognized file before fatal error is
2157 reported, not after.
2159 2001-04-27 Sean McNeil <sean@mcneil.com>
2161 * configure.tgt: Add arm-vxworks target.
2162 * scripttempl/armcoff.sc: Support .text or .data as a section name
2166 2001-04-13 J.T. Conklin <jtc@redback.com>
2168 * ld.texinfo: Document --fatal-warnings.
2171 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2172 warnings have been turned into errors.
2173 * lexsup.c (OPTION_WARN_FATAL): Define.
2174 (ld_options): Entry for --fatal-warnings.
2175 (parse_args): Handle OPTION_WARN_FATAL.
2176 * ld.h (ld_config_type): Add fatal_warnings field.
2178 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2180 * ldmain.c (main): Default to discard_sec_merge.
2181 * lexsup.c (OPTION_DISCARD_NONE): Define.
2182 (ld_options): Add --discard-none.
2183 (parse_args): Handle OPTION_DISCARD_NONE.
2184 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2185 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2186 all its input sections match.
2188 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2190 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2191 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2192 (eelf32ltsmip.c): New target.
2193 (eelf64btsmip.c): Likewise.
2194 (eelf64ltsmip.c): Likewise.
2195 * Makefile.in: Regenerated.
2197 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2199 (mips*-*-linux-gnu*): Likewise.
2201 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2203 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2205 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2208 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2210 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2211 correct value of __Stext here.
2212 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2215 * emulparams/crislinux.sh: Remove FIXME.
2217 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2219 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2220 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2222 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2224 * configure.tgt (cris-*-*): Change default emulation to criself.
2225 (cris-*-*aout*): New rule.
2227 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2229 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2230 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2232 2001-03-26 Andreas Jaeger <aj@suse.de>
2234 * ld.texinfo (Overview): Fix syntax in texi code.
2236 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2238 * ld.texinfo: Put @c man indications to generate the ld man page.
2239 When generating man, define all the variables. Define SEEALSO
2240 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2241 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2242 (ld.1): Generate from ld.texinfo.
2243 * Makefile.in: Regenerate.
2245 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2247 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2248 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2250 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2252 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2253 is an absolute path look only for this file and not along the path.
2255 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2257 * emultempl/elf32.em (OPTION_GROUP): New macro.
2258 Add new option Bgroup to longopts.
2259 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2260 (gld*_list_options): Add -Bgroup and -z defs.
2261 * ld.1: Document -Bgroup and -z defs.
2262 * ld.texinfo: Likewise.
2264 2001-03-07 Michael Meissner <meissner@redhat.com>
2266 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2267 with sections created by -fdata-sections.
2268 (.dynbss,.bss): Ditto.
2270 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2272 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2273 after_allocation_default, not gld..._before_allocation.
2275 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2277 * configure.in (BFD_VERSION): New.
2278 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2279 * configure: Regenerate.
2280 * Makefile.am: Run "make dep-am"
2281 * Makefile.in: Regenerate.
2283 2001-02-26 Timothy Wall <twall@cygnus.com>
2285 * emulparams/elf64_aix.sh: Add additional read-only sections;
2286 uncomment lines which are now required.
2288 2001-02-26 H.J. Lu <hjl@gnu.org>
2290 * ldlang.c (open_input_bfds): Set the bfd error handler so
2291 that problems can be caught whilst loading symbols.
2292 (record_bfd_errors): New function: Report BFD errors and mark
2293 the executable output as being invalid.
2295 2001-02-22 Timothy Wall <twall@cygnus.com>
2297 * configure.host: Add configuration for ia64-*-aix*.
2298 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2299 Add dependencies for eelf64_aix.c.
2300 * Makefile.in: Regenerate.
2301 * configure.tgt: Add ia64-*-aix* mapping.
2302 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2303 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2306 2001-02-20 H.J. Lu <hjl@gnu.org>
2308 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2309 false if we found the file.
2311 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2313 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2314 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2316 2001-02-18 lars brinkhoff <lars@nocrew.org>
2318 * Makefile.am: Add PDP-11 target.
2319 * configure.tgt: Likewise.
2320 * emulparams/pdp11.sh: New file.
2322 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2324 * configure.host: Add a generic FreeBSD configuration entry such that
2325 all [modern] FreeBSD systems on all platforms will look the same.
2327 2001-02-14 H.J. Lu <hjl@gnu.org>
2329 * configure.tgt: Remove mention of earmelf_linux26.
2331 2001-02-13 Richard Henderson <rth@redhat.com>
2333 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2335 2001-02-13 H.J. Lu <hjl@gnu.org>
2337 * ldexp.h (node_type): Add etree_provided.
2338 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2339 type to etree_provided if defined by PROVIDE. Allow updating
2341 (exp_print_tree): Handle etree_provided.
2342 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2345 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2347 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2348 .IA_64.unwind.* pattern to unwind table section and
2349 .IA_64.unwind_info* pattern to unwind info section.
2351 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2353 * Makefile.am: Add linux target for S/390.
2354 * Makefile.in: Likewise.
2355 * configure.host: Likewise.
2356 * configure.tgt: Likewise.
2357 * emulparams/elf64_s390.sh: New file.
2358 * emulparams/elf_s390.sh: New file.
2360 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2362 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2364 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2366 2001-02-06 Philip Blundell <philb@gnu.org>
2368 * Makefile.am: Remove mention of earmelf_linux26.
2369 * Makefile.in: Regenerate.
2371 2001-02-04 Philip Blundell <philb@gnu.org>
2373 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2374 * emulparams/armelf_linux26.sh: Delete.
2375 * configure.tgt: Remove mention of armelf_linux26 emulation.
2377 2001-02-01 Nick Clifton <nickc@redhat.com>
2379 * ld.1: Replace occurances of -oformat with --oformat.
2381 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2383 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2384 load_base is specified.
2386 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2388 * emultempl/elf32.em: Correct spelling in comments and listed
2391 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2393 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2394 default for the first section of a group of overlay sections.
2396 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2398 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2399 * Makefile.in: Regenerate.
2400 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2401 Check for null tool_dir.
2403 2001-01-16 Jim Wilson <wilson@redhat.com>
2405 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2406 and IA_64.unwind.info.
2408 2001-01-16 H.J. Lu <hjl@gnu.org>
2410 * ldlang.c (lang_check): Merge the private data only if the
2411 input file has contents.
2413 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2415 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2417 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2418 enabling search for libmilli. On a relocatable link, make .text
2420 (LDEMUL_AFTER_PARSE): Define.
2421 (hppaelf_finish): Correct spelling of relocatable in comments.
2423 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2424 rummage through the script for sections on the unique list.
2425 Correct length of strncmp for ".note".
2426 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2428 * ldlang.c (unique_section_list): New var.
2429 (unique_section_p): New function.
2430 (walk_wild_section): Don't match sections on unique_section_list.
2431 (lang_add_unique): New function.
2432 Correct spelling of relocatable in comments.
2434 * ldlang.h (struct unique_sections): Declare.
2435 (unique_section_list): Declare.
2436 (unique_section_p): Declare.
2437 (lang_add_unique): Declare.
2439 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2440 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2442 * ld.texinfo (--unique): Update.
2444 2001-01-13 Nick Clifton <nickc@redhat.com>
2446 * lexsup.c (parse_args): Remove spurious white space.
2448 2001-01-12 Nick Clifton <nickc@redhat.com>
2450 * lexsup.c (parse_args): Update copyright date.
2452 2001-01-12 Philip Blundell <pb@futuretv.com>
2454 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2456 2001-01-10 Kazu Hirata <kazu@hxi.com>
2458 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2459 * scripttempl/h8300h.sc: Fix formatting.
2460 * scripttempl/h8300s.sc: Likewise.
2461 * scripttempl/h8500.sc: Likewise.
2462 * scripttempl/h8500b.sc: Likewise.
2463 * scripttempl/h8500c.sc: Likewise.
2464 * scripttempl/h8500m.sc: Likewise.
2465 * scripttempl/h8500s.sc: Likewise.
2467 2000-01-07 David O'Brien <obrien@BSDi.com>
2469 * emultempl/elf32.em: Only perform Linux ld hints processing when
2472 2001-01-07 Philip Blundell <philb@gnu.org>
2474 * ld.texinfo (Bug Reporting): Update email address for reports.
2476 2000-12-31 Nick Clifton <nickc@redhat.com>
2478 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2479 options by checking for a return value of '?' not -1.
2481 2000-12-28 Nick Clifton <nickc@redhat.com>
2483 * lexsup.c (struct ld_option): Add new enum value:
2485 (ld_options[]): Change -omagic, -output and -oformat options
2486 to be EXACTLY_TWO_DASHES.
2487 (OUTPUT_COUNT): Use ARRAY_SIZE.
2488 (parse_args): Change parameter 'argc' to unsigned.
2489 Place EXACTLY_TWO_DASHES options into new really_longopts
2491 If getopt_long_only fails, try calling getopt_long using the
2492 really_longopts array.
2493 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2496 * ldlex.h: Fix prototype of parse_args.
2498 * ld.texinfo: Document that long options starting with 'o'
2499 must be preceeded by two dashes. Change example of a single
2500 dashed long option from -oformat to -trace-symbol.
2502 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2504 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2505 (longopts[]): New --no-default-excludes option.
2506 (gld_${EMULATION_NAME}_list_options): Document.
2507 (gld_${EMULATION_NAME}_parse_args): Handle.
2509 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2511 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2512 whitespace, it breaks the K&R C preprocessor.
2514 2000-12-11 DJ Delorie <dj@redhat.com>
2516 * ld.texinfo: Add notes about --whole-archive and gcc.
2518 2000-11-18 Fred Fish <fnf@be.com>
2520 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2521 (ld_options): Entry for --allow-shlib-undefined.
2522 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2523 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2525 * ld.texinfo: Document new command line switch.
2527 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2529 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2530 .fixup is actually read/write.
2531 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2532 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2533 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2535 2000-12-11 Jan Hubicka <jh@suse.cz>
2537 * NEWS: Add note about x86_64 architecture.
2539 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2541 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2542 Set DWARF2 sections to a VMA of zero.
2544 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2546 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2548 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2549 (sparc*-*-rtems*): Switched from a.out to ELF.
2551 2000-11-30 Jan Hubicka <jh@suse.cz>
2553 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2554 (eelf_x86_64.c): New.
2555 * Makefile.in: Regenerate.
2556 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2557 * emulparams/elf_x86_64.sh: New.
2559 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2561 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2562 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2564 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2565 merging non-a.out sections into CONSTRUCTING.
2567 2000-11-28 Nick Clifton <nickc@redhat.com>
2569 * ld.1 (COPYING): Mention that the GNU Free Documentation
2570 License is present in the sources, but not the output, and
2571 also available from the GNU website.
2572 (GNU Free Documentation License): Comment out this section.
2574 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2576 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2579 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2581 * ld.1: Remove old date so it does not give the impression the manpage
2584 2000-11-24 Nick Clifton <nickc@redhat.com>
2586 * configure.tgt (xscale-coff): Add target.
2587 (xscale-elf): Add target.
2589 2000-11-24 Fred Fish <fnf@be.com>
2591 * ldmain.c (main): Remove redundant init of config.make_executable
2594 2000-11-15 Richard Henderson <rth@redhat.com>
2596 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2598 2000-11-14 Kazu Hirata <kazu@hxi.com>
2600 * scripttempl/h8300.sc: Fix formatting.
2601 * scripttempl/h8300h.sc: Likewise.
2602 * scripttempl/h8300s.sc: Likewise.
2604 2000-11-14 Denis Chertykov <denisc@overta.ru>
2606 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2608 2000-11-09 Philip Blundell <pb@futuretv.com>
2610 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2611 around orphan sections whose names can be represented in C.
2613 2000-11-07 Jim Wilson <wilson@redhat.com>
2615 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2616 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2618 2000-11-06 Nick Clifton <nickc@redhat.com>
2620 * ld.texinfo: Add GNU Free Documentation License.
2621 * ldint.texinfo: Add GNU Free Documentation License.
2622 * ld.1: Add GNU Free Documentation License.
2624 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2626 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2627 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2629 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2630 Move 2000-11-02 Makefile.in changes to this file.
2631 * Makefile.in: Regenerate.
2633 2000-11-03 Nick Clifton <nickc@redhat.com>
2635 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2636 constructors and destructors.
2637 * scripttempl/h8300h.sc: Ditto.
2638 * scripttempl/h8300s.sc: Ditto.
2639 * scripttempl/h8500.sc: Ditto.
2640 * scripttempl/h8500b.sc: Ditto.
2641 * scripttempl/h8500c.sc: Ditto.
2642 * scripttempl/h8500m.sc: Ditto.
2643 * scripttempl/h8500s.sc: Ditto.
2644 * scripttempl/v850.sc: Ditto.
2645 * scripttempl/w65.sc: Ditto.
2646 * scripttempl/z8000.sc: Ditto.
2648 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2650 * Makefile.in (e_i386_chaos.c): New rule.
2651 (ALL_EMULATIONS): Added e_i386_chaos.o.
2652 * emulparams/elf_i386_chaos.sh: New file.
2653 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2655 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2657 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2658 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2659 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2660 library path suffix.
2661 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2663 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2665 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2666 for consecutive sections.
2668 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2670 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2672 * ld.texinfo: Added notes about this new option.
2674 2000-10-16 Nick Clifton <nickc@redhat.com>
2676 * emultempl/pe.em (_after_open): Add tests of return values from
2677 bfd functions. Emit appropriate error messages if necessary.
2679 2000-10-13 Nick Clifton <nickc@redhat.com>
2681 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2682 local variables - they are not used, but leave in the call to
2683 bfd_canonicalize_symtab.
2684 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2685 pe_dll_search_prefix.
2687 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2689 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2690 (longopts): New --dll-search-prefix option.
2691 (gld_${EMULATION_NAME}_list_options): Document.
2692 (gld_${EMULATION_NAME}_parse_args): Handle.
2693 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2694 dynamically, search for a dll named '<prefix><basename>.dll'
2695 in preference to 'lib<basename>.dll' if --dll-search-prefix
2698 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2700 * ldlang.c (section_already_linked): Set kept_section instead of
2703 2000-10-10 Kazu Hirata <kazu@hxi.com>
2705 * deffile.h: Fix formatting.
2706 * lexsup.c: Likewise.
2709 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2711 * pe-dll.c (make_one): Do not generate code thunk for DATA
2713 (process_def_file): deduce DATA flag for auto-export sumbols.
2715 2000-10-09 Kazu Hirata <kazu@hxi.com>
2717 * ld.h: Fix formatting.
2718 * ldcref.c: Likewise.
2719 * ldctor.h: Likewise.
2720 * ldemul.c: Likewise.
2721 * ldemul.h: Likewise.
2722 * ldexp.c: Likewise.
2723 * ldexp.h: Likewise.
2724 * ldfile.c: Likewise.
2725 * ldfile.h: Likewise.
2726 * ldlang.c: Likewise.
2727 * ldlang.h: Likewise.
2728 * ldmain.c: Likewise.
2729 * pe-dll.c: Likewise.
2731 * pe-dll.c: Revert some formatting fixes.
2733 2000-10-08 Kazu Hirata <kazu@hxi.com>
2735 * pe-dll.c: Fix formatting.
2737 2000-10-05 Kazu Hirata <kazu@hxi.com>
2739 * ldlang.c: Fix formatting.
2741 2000-10-03 DJ Delorie <dj@redhat.com>
2743 * pe-dll.c (fill_edata): initialize entire block
2744 (make_one): fill in correct section.
2746 2000-10-03 Kazu Hirata <kazu@hxi.com>
2748 * ldexp.c: Fix formatting.
2750 2000-10-02 DJ Delorie <dj@redhat.com>
2752 * emultempl/pe.em (gld_*_after_open): detect case where there two
2753 import libraries for same dll; rename one to ensure proper link
2756 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
2758 (generate_edata): fix typo
2760 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2762 * scripttempl/crisaout.sc (ENTRY): Now __start.
2763 (.text): Add default setting for __start.
2764 Remove CONSTRUCTORS handling.
2765 (/DISCARD/): Add .gnu.warning.*.
2766 * emulparams/crislinux.sh (ENTRY): Now __start.
2767 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2768 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2769 (ENTRY): Now __start.
2770 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2771 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2773 2000-09-29 Kazu Hirata <kazu@hxi.com>
2775 * deffile.h: Fix formatting.
2777 * ldcref.c: Likewise.
2778 * ldctor.c: Likewise.
2779 * ldctor.h: Likewise.
2780 * ldemul.c: Likewise.
2781 * ldemul.h: Likewise.
2782 * ldexp.c: Likewise.
2783 * ldexp.h: Likewise.
2784 * ldfile.c: Likewise.
2785 * ldfile.h: Likewise.
2786 * ldlang.c: Likewise.
2787 * ldlang.h: Likewise.
2788 * lexsup.c: Likewise.
2790 * pe-dll.c: Likewise.
2792 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2794 * pe-dll.c (process_def_file): Uninitialized data wasn't
2795 exported with --export-all-symbols switch.
2797 2000-09-28 DJ Delorie <dj@redhat.com>
2799 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2800 noname work properly.
2802 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2804 * ld.texinfo (HPPA ELF32): New section.
2806 * emultempl/hppaelf.em (group_size): New.
2807 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2808 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2809 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2810 options to prevent abbreviations matching.
2811 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2812 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2814 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2816 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2817 on the m68*-*-elf target. Make it support COFF input objects.
2819 2000-09-21 Kazu Hirata <kazu@hxi.com>
2821 * ldmain.c: Fix formatting.
2822 * ldmisc.c: Likewise.
2823 * ldver.c: Likewise.
2824 * ldwrite.c: Likewise.
2826 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2828 * ldwrite.c (clone_section): Silence gcc warnings.
2830 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2832 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2833 out of memory failure.
2835 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2836 (clone_section): Handle out of memory failures. Rename var to
2837 avoid c++ reserved word.
2839 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2841 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2842 stub_name param to stub_sec_name.
2843 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2845 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2847 * emultempl/m68kelf.em: New file.
2848 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2849 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2850 * Makefile.in: Regenerate.
2852 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2854 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2857 2000-09-13 Nick Clifton <nickc@redhat.com>
2859 * ldmain.c (multiple_definition): Disable relaxation if
2860 multiple symbol definitions are encountered - otherwise the
2861 linker could abort with an assertion failure.
2863 2000-09-10 Nick Clifton <nickc@redhat.com>
2865 * mri.c: Fix formatting.
2867 2000-09-07 H.J. Lu <hjl@gnu.org>
2869 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2870 * configure: Rebuild.
2872 2000-09-07 H.J. Lu <hjl@gnu.org>
2874 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2875 * Makefile.in: Rebuild.
2877 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2879 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2880 broken list handling. Create __start_SECNAME and __stop_SECNAME
2881 when no place-holder. Add some comments. Test both SEC_CODE and
2882 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2883 Handle case where no output section statement created.
2885 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2887 * configure.tgt (sh-*-linux*): Added.
2888 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2889 * Makefile.in: Rebuilt.
2890 * emulparams/shelf_linux.sh: New file.
2891 * emulparams/shlelf_linux.sh: New file.
2893 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2895 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2896 try shuffling sections when the orphan happens to be the place
2897 holder. Keep count of unique section names generated so we speed
2898 the search for a new name.
2900 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2902 * configure: Rebuilt with new libtool.m4.
2904 2000-09-05 Nick Clifton <nickc@redhat.com>
2906 * Makefile.in: Regenerate.
2907 * aclocal.m4: Regenerate.
2908 * configure: Regenerate.
2909 * config.in: Regenerate.
2910 * po/ld.pot: Regenerate.
2912 * ldint.texinfo: Remove CVS revision marker - it foils local
2915 * emultempl/ticoff.em: Remove extraneous comma.
2917 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2919 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2920 to stub section flags.
2921 (hppa_for_each_input_file_wrapper): New.
2922 (hppa_lang_for_each_input_file): New.
2923 (lang_for_each_input_file): Define to call above.
2924 (multi_subspace): New.
2925 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2926 (PARSE_AND_LIST_PROLOGUE): Define.
2927 (PARSE_AND_LIST_LONGOPTS): Define.
2928 (PARSE_AND_LIST_OPTIONS): Define.
2929 (PARSE_AND_LIST_ARGS_CASES): Define.
2930 (hppaelf_finish): Call elf32_hppa_set_gp.
2931 (hppaelf_set_output_arch): Remove.
2932 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2934 * emulparams/hppalinux.sh (ELFSIZE): Define.
2936 (OTHER_READONLY_SECTIONS): Define.
2938 (GENERATE_SHLIB_SCRIPT): Define.
2940 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2941 to const throughout. Change `void *' to `PTR' throughout.
2942 (lang_memory_default): Function is local to file, add `static'.
2944 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2945 (ehppalinux.c): Likewise.
2946 (earmelf.c): Likewise.
2947 (earmelf_linux.c): Likewise.
2948 (earmelf_linux26.c): Likewise.
2949 * Makefile.in: Regenerate.
2951 * ld.h (ld_config_type): Add unique_orphan_sections.
2952 * lexsup.c (OPTION_UNIQUE): Define.
2953 (ld_options): Add "--unique".
2954 (parse_args): Handle it.
2955 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2956 search for an existing output section if unique_orphan_sections is
2957 set. Make use of bfd_get_unique_section_name rather than
2958 duplicating code here.
2959 * ld.texinfo: Describe --unique.
2961 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2962 optional arg to split-by-file.
2963 (parse_args): Handle them.
2964 * ld.texinfo: Update description of these options.
2965 * ldwrite.c (clone_section): Pass in the section name. Replace
2966 local code with bfd_get_unique_section_name.
2967 (split_sections): Tidy code and comments. Use a list traversal
2968 more appropriate to the list construction. Handle cooked section
2969 sizes. Split when split_by_reloc reached rather than exceeded.
2970 Track section size and split when split_by_file reached. Fix
2971 link_order_tail (even though it's not used).
2972 (ldwrite): Modify condition for calling split_sections to suit
2973 changed split_by_reloc and split_by_file.
2974 * ldmain.c (main): Init config.split_by_reloc and
2975 config.split_by_file to -1.
2976 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2977 Change split_by_file to bfd_size_type.
2979 2000-09-02 Nick Clifton <nickc@redhat.com>
2981 * configure.in: Increase version number to 2.10.91.
2982 * NEWS: Mention new ability to support removal of duplicate DWARF2
2984 * configure: Regenerate.
2985 * aclocal.m4: Regenerate.
2986 * config.in: Regenerate.
2988 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2990 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2992 * scripttempl/elf32avr.sc: Ditto.
2993 * scripttempl/elfd10v.sc: Ditto.
2994 * scripttempl/elfd30v.sc: Ditto.
2995 * scripttempl/elfi370.sc: Ditto.
2996 * scripttempl/elfm68hc11.sc: Ditto.
2997 * scripttempl/elfm68hc12.sc: Ditto.
2998 * scripttempl/elfi386beos.sc: Ditto.
2999 * scripttempl/v850.sc: Ditto.
3001 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3003 * acinclude.m4: Include libtool and gettext macros from the
3005 * aclocal.m4, configure: Rebuilt.
3007 2000-08-25 Nick Clifton <nickc@redhat.com>
3009 * ldlang.c (open_output): When choosing the target for a
3010 particular endianness, do nothing if the target is not
3013 2000-08-25 H.J. Lu <hjl@gnu.org>
3015 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3016 check -rpath nor LD_RUN_PATH for cross link.
3017 * ld.texinfo: Document the change.
3019 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3021 * NEWS: Mention support for CRIS.
3023 2000-08-23 H.J. Lu <hjl@gnu.org>
3025 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3026 the current runpath list from bfd_elf_get_runpath_list ()
3029 2000-08-22 H.J. Lu <hjl@gnu.org>
3031 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3032 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3033 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3034 trace_file_tries is non-zero.
3035 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3036 if trace_file_tries is non-zero.
3038 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3041 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3043 * NEWS: Mention i860 support.
3045 2000-08-14 Andreas Schwab <schwab@suse.de>
3047 * scripttempl/elf.sc: Fix last change to use correct comment
3050 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3052 * scripttempl/elf.sc: Add a comment giving the correspondence
3053 between sections, per-datum sections, and linkonce sections. Make
3054 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3057 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3059 * emulparams/elf32_i860.sh: New file.
3060 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3061 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3062 (eelf32_i860.c): New rule.
3063 * Makefile.in: Regenerate.
3065 2000-08-10 Nick Clifton <nickc@cygnus.com>
3067 * emulparams/mipspe.sh (ENTRY): Add definition.
3069 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3071 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3074 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3076 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3077 the final size of .bss section.
3078 * scripttempl/elfm68hc12.sc: Likewise.
3080 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3082 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3083 gld${EMULATION_NAME}_parse_args for consistency. Combine
3084 lastoptind and prevoptind vars, and keep track of last optind.
3085 (gld_${EMULATION_NAME}_list_options): Rename to
3086 gld${EMULATION_NAME}_list_options.
3088 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3090 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3091 (i586-sco-sysv5uw7.1.0).
3093 2000-07-27 H.J. Lu <hjl@gnu.org>
3095 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3096 (PARSE_AND_LIST_PROLOGUE): New.
3097 (PARSE_AND_LIST_LONGOPTS): Likewise.
3098 (PARSE_AND_LIST_OPTIONS): Likewise.
3099 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3100 (PARSE_AND_LIST_EPILOGUE): Likewise.
3102 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3104 * emultempl/armelf.em: Elide functions common to elf32.em,
3105 ie. most of the file.
3106 (arm_elf_after_open): New. Do arm specific things then call
3107 gld${EMULATION_NAME}_after_open.
3108 (arm_elf_before_allocation): New. Call
3109 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3110 (PARSE_AND_LIST_PROLOGUE): Define.
3111 (PARSE_AND_LIST_SHORTOPTS): Define.
3112 (PARSE_AND_LIST_LONGOPTS): Define.
3113 (PARSE_AND_LIST_OPTIONS): Define.
3114 (PARSE_AND_LIST_ARGS_CASES): Define.
3115 (LDEMUL_AFTER_OPEN): Define.
3116 (LDEMUL_BEFORE_ALLOCATION): Define.
3117 (LDEMUL_BEFORE_PARSE): Define.
3118 (LDEMUL_FINISH): Define.
3120 * emultempl/hppaelf.em: Similarly zap most of this file.
3121 (hppaelf_add_stub_section): Prototype.
3122 (hppaelf_layaout_sections_again): Prototype.
3123 (hook_in_stub): Prototype.
3124 (LDEMUL_SET_OUTPUT_ARCH): Define.
3125 (LDEMUL_FINISH): Define.
3126 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3128 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3129 (EXTRA_EM_FILE): New.
3130 * emulparams/armelf_linux.sh: Likewise.
3131 * emulparams/armelf_linux26.sh: Likewise.
3132 * emulparams/hppalinux.sh: Likewise.
3133 * emulparams/hppaelf.sh: Likewise.
3136 * emultempl/elf32.em: Fix formatting.
3137 (EXTRA_EM_FILE): Source it.
3138 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3139 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3140 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3141 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3142 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3143 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3144 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3145 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3146 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3147 allow functions in this file to be overridden.
3148 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3150 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3152 * emultempl/elf32.em: Reorganize file.
3154 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3156 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3157 specific option to fit 64-bit executable in the lower
3158 31-bit address range. This is done by changing start
3159 address of .interp (the very first section of executable)
3160 and then setting EF_ALPHA_32BIT elf header flag.
3162 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3164 * emultempl/m68kcoff.em: New file.
3165 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3166 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3168 * Makefile.in: Regenerate.
3170 2000-07-20 H.J. Lu <hjl@gnu.org>
3172 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3173 and "disable-new-dtags" to stop getopt from treating -d/-e as
3174 abbreviations for these options.
3176 2000-07-20 H.J. Lu <hjl@gnu.org>
3178 * ld.texinfo: Add documentation for --disable-new-dtags and
3181 * ldmain.c (main): Initialize link_info.new_dtags to false.
3183 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3184 --disable-new-dtags and --enable-new-dtags.
3185 (gld_${EMULATION_NAME}_list_options): Likewise.
3187 2000-07-05 Kenneth Block <krblock@computer.org>
3189 * lexsup.c: Add optional style to demangle switch
3190 * ld.texinfo: Document optional style to demangle switch.
3192 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3194 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3196 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3197 Regenerate dependencies.
3198 * Makefile.in: Rebuild.
3199 * configure.tgt (cris-*-*): New target.
3200 * emulparams/crisaout.sh, emulparams/criself.sh,
3201 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3202 * po/POTFILES.in, po/ld.pot: Regenerate.
3204 2000-07-20 H.J. Lu <hjl@gnu.org>
3206 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3207 Print out ignored -z options.
3209 2000-07-19 H.J. Lu <hjl@gnu.org>
3211 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3212 (PARSE_AND_LIST_PROLOGUE): New.
3213 (PARSE_AND_LIST_LONGOPTS): Likewise.
3214 (PARSE_AND_LIST_OPTIONS): Likewise.
3215 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3217 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3219 * lexsup.c (ld_options): Comment out 'z'.
3220 (parse_args): Likewise.
3222 * emultempl/elf32.em: Include "elf/common.h".
3223 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3225 (gld_${EMULATION_NAME}_list_options): Likewise.
3227 * ld.texinfo: Add documentation for the recognized -z options.
3229 2000-07-19 H.J. Lu <hjl@gnu.org>
3231 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3232 bfd_elf_set_dt_needed_soname ().
3234 2000-07-18 DJ Delorie <dj@cygnus.com>
3236 * pe-dll.c (pe_dll_id_target): check object target name also
3238 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3240 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3241 ${INIT_END} if relocating.
3242 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3244 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3246 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3247 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3248 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3249 errors introduced by the old dynamic lib search order.
3251 2000-07-17 DJ Delorie <dj@cygnus.com>
3253 * pe-dll.c (process_def_file): auto-export data items also
3254 (pe_process_import_defs): also see if _imp_ form needed
3256 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3258 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3259 for dll import libraries
3261 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3263 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3264 gcc 2.95.2 and later.
3266 2000-07-11 Kazu Hirata <kazu@hxi.com>
3268 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3271 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3273 * ldemul.h (struct lang_input_statement_struct): Remove forward
3275 (struct search_dirs): Likewise.
3276 * ldfile.h (struct lang_input_statement_struct): Likewise.
3277 Protect file from multiple inclusion.
3278 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3279 declaration from macro to file scope.
3281 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3282 * ldgram.y: Likewise here.
3283 * ldlang.c: And here.
3284 * ldmain.c: And here.
3285 * mpw-elfmips.c: And here.
3286 * mpw-eppcmac.c: And here.
3287 * emultempl/aix.em: And here.
3288 * emultempl/armcoff.em: And here.
3289 * emultempl/armelf.em: And here.
3290 * emultempl/armelf_oabi.em: And here.
3291 * emultempl/beos.em: And here.
3292 * emultempl/elf32.em: And here.
3293 * emultempl/hppaelf.em: And here.
3294 * emultempl/linux.em: And here.
3295 * emultempl/lnk960.em: And here.
3296 * emultempl/pe.em: And here.
3297 * emultempl/sunos.em: And here.
3298 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3299 * mpw-idtmips.c: Ditto.
3300 * emultempl/generic.em: Ditto.
3301 * emultempl/gld960.em: Ditto.
3302 * emultempl/gld960c.em: Ditto.
3303 * emultempl/mipsecoff.em: Ditto.
3304 * emultempl/ticoff.em: Ditto.
3305 * emultempl/vanilla.em: Ditto.
3307 * pe-dll.c: Include ldfile.h
3308 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3310 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3311 arguments to bfd_elf32_size_dynamic_sections call.
3312 (gldelf32ebmip_place_orphan): Add missing arguments to
3313 lang_leave_output_section_statement call.
3315 2000-07-10 H.J. Lu <hjl@gnu.org>
3317 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3319 (strhash): Likewise.
3320 (compute_dll_image_base): Likewise.
3321 (pe_undef_found_sym): Likewise.
3322 (pe_undef_cdecl_match): Likewise.
3323 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3324 argument "arch" with ATTRIBUTE_UNUSED.
3326 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3328 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3330 From Ryan Bradetich <rbradetich@uswest.net>
3331 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3333 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3335 Changes to create multiple linker stubs, positioned immediately
3336 before the section where they are required.
3337 * emultempl/hppaelf.em: Include elf32-hppa.h.
3338 (stub_sec, file_chain): Delete.
3339 (hppaelf_create_output_section_statements): Don't make a stub
3341 (hook_stub_info): New struct.
3342 (hook_in_stub): New function.
3343 (hppaelf_add_stub_section): New function.
3344 (hppaelf_finish): Do nothing for relocateable links. Modify the
3345 call to elf32_hppa_size_stubs. Move code for updating section
3347 (hppaelf_layaout_sections_again): ..to here, a new function.
3349 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3350 broken list handling. Pass in a pointer to the list.
3351 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3353 (hppaelf_before_parse): Prototype.
3354 (hppaelf_set_output_arch): Prototype.
3355 (hppaelf_create_output_section_statements): Prototype.
3356 (hppaelf_delete_padding_statements): Prototype.
3357 (hppaelf_finish): Prototype.
3360 * emultempl/hppaelf.em: Include ctype.h.
3361 (struct orphan_save): New.
3362 (gld${EMULATION_NAME}_place_orphan): New.
3363 (output_rel_find): New.
3364 (hppaelf_get_script): Update from elf32.em.
3365 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3366 Change emulation_name field to "${EMULATION_NAME}". Add
3367 gld${EMULATION_NAME}_place_orphan.
3369 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3370 ehppalinux.o, sort it. Regenerate dependencies.
3371 (ehppalinux.c): Depend on hppaelf.em
3372 * Makefile.in: Regenerate.
3374 * configure.tgt: targ_emul=hppalinux for hppa*linux
3376 * emulparams/hppalinux.sh: New.
3377 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3379 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3381 * lexsup.c (parse_args): Copy section name.
3383 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3385 * emultempl/pe.em: institute the following search order for
3386 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3387 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3388 static lib (libfoo.a) if none of the above are found.
3390 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3392 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3393 (longopts): New --{enable,disable}-auto-image-base options.
3394 (gld_${EMULATION_NAME}_list_options): Document.
3395 (gld_${EMULATION_NAME}_parse): Handle.
3396 (strhash): New static function.
3397 (compute_dll_image_base): New static function.
3398 (gld_${EMULATION_NAME}_set_symbols): Use.
3400 2000-07-05 DJ Delorie <dj@redhat.com>
3404 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3406 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3407 * emulparams/elf32btsmip.sh: New file.
3408 * Makefile.am: Add traditional mips target.
3409 * Makefile.in: Rebuild.
3411 2000-07-01 H.J. Lu <hjl@gnu.org>
3413 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3414 automake to use YLWRAP.
3415 * Makefile.in: Rebuild.
3417 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3419 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3420 (CLEANFILES): Add DEPA.
3421 * Makefile.in: Regenerate.
3423 2000-06-30 Timothy Wall <twall@ppc>
3425 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3426 the page in the upper octet of the address.
3428 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3430 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3432 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3434 * NEWS: arm-elf does --gc-sections too.
3436 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3438 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3440 * Makefile.in: Regenerate.
3442 2000-06-21 H.J. Lu <hjl@gnu.org>
3444 * Makefile.am: Rebuild dependency.
3445 * Makefile.in: Rebuild.
3447 2000-06-20 H.J. Lu <hjl@gnu.org>
3449 * Makefile.am: Rebuild dependency.
3450 * Makefile.in: Rebuild.
3452 2000-06-20 Timothy Wall <twall@cygnus.com>
3454 * scripttempl/tic54xcoff.sc: New.
3455 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3456 * gen-doc.texi: Add flag for TI COFF.
3457 * ld.texinfo: Add documentation for TI COFF handling switches.
3458 * emultempl/ticoff.em: New. TI COFF handling.
3459 * configure.tgt: Add tic54x target.
3460 * Makefile.am: Add tic54x target.
3461 * Makefile.in: Ditto.
3463 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3465 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3466 checking for backslashes.
3468 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3470 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3472 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3474 * NEWS: Update list of targets supporting --gc-sections.
3476 * scripttempl/elf.sc: KEEP .eh_frame contents.
3477 * scripttempl/elfd30v.sc: Same here.
3479 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3481 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3483 * Makefile.in: Rebuild.
3484 * configure.tgt: Recognize m68hc12 and m68hc11.
3485 * scripttempl/elfm68hc12.sc: New file.
3486 * emulparams/m68hc12elfb: New emulation.
3487 * emulparams/m68hc12elf: New emulation.
3488 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3489 (includes a memory.x script to define the ROM and RAM banks).
3490 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3491 New configuration files for support of Motorola 68hc11
3493 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3495 * ldmain.c (main): Only change SEC_READONLY for final link.
3497 2000-06-13 H.J. Lu <hjl@gnu.org>
3499 * configure: Regenerate.
3501 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3503 * configure.in (VERSION): Update to show this is the CVS mainline.
3505 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3507 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3508 input objects to be ECOFF.
3509 (check_sections): einfo takes %B, not %P, to print a BFD name.
3511 2000-06-05 Michael Matz <matz@ifh.de>
3513 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3516 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3518 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3520 * emulparams/avr1200.sh (STACK): Define as 0.
3521 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3522 * emulparams/avr4433.sh (STACK): Likewise.
3523 * emulparams/avr44x4.sh (STACK): Likewise.
3524 * emulparams/avr85xx.sh (STACK): Likewise.
3525 * emulparams/avrmega103.sh (STACK): Likewise.
3526 * emulparams/avrmega161.sh (STACK): Likewise.
3527 * emulparams/avrmega603.sh (STACK): Likewise.
3528 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3529 (__stack): Define from ${STACK} for main().
3531 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3533 * Makefile.am: Update dependencies with "make dep-am"
3534 * Makefile.in: Regenerate.
3536 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3538 * ldmain.c: Include filenames.h.
3539 (set_scripts_dir): Support backslashes in program name.
3541 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3543 * ldmain.c (main): When deciding if ".text" section should be
3544 read-only, don't forget to reset SEC_READONLY because it
3545 could be already set.
3547 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3549 * ld.1: Add documentation for new command line option:
3550 --section-start <sectionname>=<sectionorg>
3551 This is a generic version of -Ttext etc. which accepts
3552 any section name as a parameter instead of just text/data/
3554 * ld.texinfo: More docs.
3556 * lexsup.c: (parse_args): Recognize new command line option.
3557 (ld_options): Add new option.
3559 2000-05-18 H.J. Lu <hjl@gnu.org>
3561 * lexsup.c (parse_args): `i' == `r', not `q'.
3563 2000-05-18 Jeffrey A Law (law@cygnus.com)
3565 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3567 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3568 Rick Gorton <gorton@scrugs.lkg.dec.com>
3570 Add support for '-q' == '--emit-relocs' switch.
3571 * ldmain.c (main): Default to false.
3572 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3573 * NEWS: Describe the emitrelocations switch.
3574 * ld.texinfo: Describe the emitrelocations switch.
3576 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3578 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3579 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3580 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3583 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3585 * lexsup.c (parse_args): Update the year in the copyright notice.
3587 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3589 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3590 Replace defines with those from intl/libgettext.h to quieten gcc
3593 2000-05-10 H.J. Lu <hjl@gnu.org>
3595 * ldlang.c (open_input_bfds): Don't load the same file within
3596 a group again if the whole archive has been loaded already.
3598 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3600 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3601 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3604 2000-05-01 Jim Wilson <wilson@cygnus.com>
3606 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3608 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3609 host "ia64-*-linux-gnu*".
3611 2000-04-29 Andreas Jaeger <aj@suse.de>
3613 * ld.h: Correctly check GCC version.
3615 2000-04-25 Jeffrey A Law (law@cygnus.com)
3617 * Makefile.am: Add PA64 support. Add missing dependencies for
3619 * Makefile.in: Rebuilt.
3620 * configure.tgt: Add PA64 support (currently disabled).
3622 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3624 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3625 (output_rel_find): New function.
3626 (hold_section, hold_use): Delete.
3627 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3628 hold_interp): Make local to place_orphan.
3629 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3630 rather than place_section to find possible previous use of orphan.
3631 Similarly find the place-holder output sections. Use returned
3632 value from lang_enter_output_section_statement rather than calling
3633 lang_output_section_statement_lookup.
3634 * emultempl/armelf.em: Same here.
3635 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3637 * ldlang.c (lang_enter_output_section_statement): Return output
3639 * ldlang.h (lang_enter_output_section_statement): Change
3642 * ldlang.h (lang_output_section_statement): Export it.
3643 * ldlang.c (lang_output_section_statement): Ditto.
3645 2000-04-24 Nick Clifton <nickc@cygnus.com>
3647 * ld.texinfo (Output Section Data): Add note that section data
3648 commands cannot appear outside of section directives.
3650 2000-04-2 Matthew Green <mrg@cygnus.com>
3652 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3654 2000-04-21 Richard Henderson <rth@cygnus.com>
3655 David Mosberger <davidm@hpl.hp.com>
3657 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3658 (eelf64_ia64.c): New rule.
3659 * Makefile.in: Rebuild.
3660 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3661 * emulparams/elf64_ia64.sh: New file.
3663 2000-04-21 Richard Henderson <rth@cygnus.com>
3665 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3667 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3669 * dep-in.sed: Match space at start of file name, not at end.
3671 2000-04-18 H.J. Lu <hjl@gnu.org>
3673 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3674 lang_leave_output_section_statement () after calling
3675 lang_enter_output_section_statement ().
3676 * emultempl/armelf.em: Likewise.
3678 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3680 * emultempl/elf32.em (struct orphan_save): Add section field.
3681 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3682 better order, and place first orphan section as we did before the
3683 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3684 Don't call make_bfd_section here, let wild_doit do the job for us.
3685 Don't build a statement list when we'll only throw it away.
3686 * emultempl/armelf.em: Ditto.
3687 * emultempl/pe.em: Similarly.
3689 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3691 * scripttempl/elfppc.sc: Remove.
3692 * emulparams/elf32ppc.sh: Use elf.sc.
3693 * emulparams/elf32lppc.sh: Use elf.sc.
3694 * emulparams/elf32ppclinux.sh: Use elf.sc.
3695 * emulparams/elf32ppcsim.sh: New file.
3696 * emulparams/elf32lppcsim.sh: New file.
3697 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3698 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3699 * Makefile.in: Regenerate.
3700 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3702 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3704 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3705 ~SEC_ALLOC sections too. Init start address of debug sections.
3706 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3707 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3708 Also set all relocateable section start addresses.
3710 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3712 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3713 Add new BSS_PLT variable for when .plt need not be contained in
3714 the file. Move _etext so that it is also after .fini, and provide
3715 both etext and _etext with a leading underscore. Mark the start
3718 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3720 * emultempl/elf32.em (struct orphan_save): New.
3721 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3722 hold_interp): Make them struct orphan_save.
3723 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
3724 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
3725 the end of the relevant section list. Also add associated section
3726 statements to the end of any previous orphan statements.
3727 * emultempl/armelf.em: Similarly.
3728 * emultempl/pe.em: Similarly.
3730 2000-04-11 Alan Modra <alan@linuxcare.com.au>
3732 * ld.texinfo (Simple Example): Remove extraneous paragraph.
3734 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
3736 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
3737 --enable-build-warnings option.
3738 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
3739 * Makefile.in, configure: Re-generate.
3741 2000-04-04 Alan Modra <alan@linuxcare.com.au>
3743 * po/ld.pot: Regenerate.
3745 * lexsup.c (help): Restore translated part of bug string.
3747 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
3748 (DEP): Quote when passing vars to sub-make. Add warning message
3750 (DEP1): Rewrite for "gcc -MM".
3751 (CLEANFILES): Add DEP2.
3752 Update dependencies.
3753 * Makefile.in: Regenerate.
3755 2000-04-03 Alan Modra <alan@linuxcare.com.au>
3757 * ld.h: #include "bin-bugs.h"
3758 * lexsup.c (help): Use REPORT_BUGS_TO.
3760 2000-03-27 Denis Chertykov <denisc@overta.ru>
3762 * configure.tgt (avr-*-*): New target support.
3763 * Makefile.am: Likewise.
3764 * scripttempl/elf32avr.sc: New script file.
3765 * emulparams/avr1200.sh: New file.
3766 * emulparams/avr23xx.sh: New file.
3767 * emulparams/avr4433.sh New file.
3768 * emulparams/avr44x4.sh New file.
3769 * emulparams/avr85xx.sh New file.
3770 * emulparams/avrmega103.sh New file.
3771 * emulparams/avrmega161.sh New file.
3772 * emulparams/avrmega603.sh New file.
3773 * Makefile.in: Regenerate.
3775 2000-03-09 Andreas Jaeger <aj@suse.de>
3777 * Makefile.am (check-DEJAGNU): Also unset LANG.
3778 * Makefile.in: Rebuild.
3780 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3782 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3785 2000-03-02 H.J. Lu <hjl@gnu.org>
3787 * emulparams/elf32mcore.sh: Include "getopt.h".
3789 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3791 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3793 2000-03-01 H.J. Lu <hjl@gnu.org>
3795 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3796 * emulparams/shpe.sh: Likewise.
3798 2000-03-01 Nick Clifton <nickc@cygnus.com>
3800 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3801 to unused parameters.
3803 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3804 functions only used by DLL code.
3805 (_place_orphan): Initialise 'dollar'.
3807 2000-03-01 H.J. Lu <hjl@gnu.org>
3809 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3810 indicate if the undefined symbol is a fatal error or not.
3811 Don't delete the output file if "fatal" is false.
3813 2000-02-29 H.J. Lu <hjl@gnu.org>
3815 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3816 Set LC_COLLATE and LC_ALL to null and export them. It is for
3817 sort which expects the C locale.
3818 Add $(LIBS) to all $(HOSTING_LIBS).
3819 * Makefile.in: Rebuild.
3821 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3823 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3824 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3825 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3826 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3827 find_potential_libraries.
3829 2000-02-28 Jim Blandy <jimb@redhat.com>
3831 * ldgram.y (exclude_name_list): Don't require a comma to separate
3832 list entries; the lexer considers commas to be valid part of a
3833 filename, so in something like `foo, bar' the comma is considered
3834 part of the first filename, `foo,'.
3835 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3837 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3839 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3840 host "i[3456]86-*-freebsdelf*".
3842 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3844 * scripttempl/i386go32.sc: Move misplaced semicolons.
3846 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3848 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3849 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3850 (eelf64hppa.c, ehppaelf.c): Remove targets.
3851 * Makefile.in: Rebuild.
3853 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3855 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3856 GNU/Linux/sparc, but keep the default as 32.
3858 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3859 it default if sparcv9 or sparc64.
3861 2000-02-24 Nick Clifton <nickc@cygnus.com>
3863 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3864 * Makefile.in: Regenerate.
3865 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3867 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3868 find_potential_libraries.
3869 * ldemul.c (ldemul_find_potential_libraries): New function.
3871 * ldfile.c (ldfile_open_file_search): Allow function to be
3873 (ldfile_open_file): Call ldemul_find_potential_libraries.
3874 * ldfile.h: Add prototype for ldfile_open_file_search.
3876 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3878 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3879 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3881 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3882 (gld_X_find_potential_libraries): New function. Search for
3883 libraries called "*.lib".
3885 * scripttempl/pe.sc: Add .pdata section.
3887 2000-02-23 Richard Henderson <rth@cygnus.com>
3889 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3890 Add and use memory regions.
3892 2000-02-23 Linas Vepstas (linas@linas.org)
3894 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3896 * Makefile.am: Add support for Linux/IBM 370.
3897 * configure.tgt: Likewise.
3899 * Makefile.in: Regenerate.
3901 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3903 * ldlang.c (print_input_section, print_data_statement,
3904 print_reloc_statement, print_padding_statement, insert_pad,
3905 size_input_section, lang_check_section_addresses,
3906 lang_size_sections, lang_do_assignments, lang_set_startof,
3907 lang_one_common): Change `opb' to unsigned.
3908 (lang_do_assignments): Also change `size' to unsigned.
3910 2000-02-16 Richard Henderson <rth@cygnus.com>
3912 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3914 2000-02-16 Timothy Wall <twall@cygnus.com>
3916 * mri.c (mri_draw_tree): Add default LMA region argument to call
3917 to lang_leave_output_section_statement.
3918 * ldlang.h: Update prototypes with LMA region arguments.
3919 * ldlang.c (lang_size_sections): Encapsulate region bounds
3920 checking in os_check_region call.
3921 (os_check_region): New function.
3922 (lang_output_section_statement_lookup): Initialize lma_region.
3923 (lang_leave_output_section_statement): Add LMA region argument.
3924 (lang_leave_overlay): Ditto.
3925 * ldgram.y: Handle LMA region syntax.
3926 * ld.texinfo (Output Section Description): Describe LMA region usage.
3927 * emultempl/armelf.em (gld$place_orphan): Add default value for
3928 lma region in call to lang_leave_output_section_statement.
3929 * emultempl/elf32.em (gld$place_orphan): Add default value for
3930 lma region in call to lang_leave_output_section_statement.
3931 * emultempl/pe.em (gld$place_orphan): Add default value for
3932 lma region in call to lang_leave_output_section_statement.
3935 2000-02-04 Timothy Wall <twall@redhat.com>
3937 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3938 octets when calculating section end addresses.
3940 2000-02-04 Timothy Wall <twall@redhat.com>
3942 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3944 2000-02-03 Timothy Wall <twall@redhat.com>
3946 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3948 * ldlang.c (print_input_section, print_data_statement,
3949 print_reloc_statement, print_padding_statement): Print target
3950 address values and section sizes as bytes, not octets.
3951 (insert_pad) Calculate padding size in octets, and adjust "dot"
3953 (size_input_section) Always adjust "dot" by bytes, not octets.
3954 (lang_check_section_addresses, lang_do_assignments) Adjust
3955 "dot" by bytes, not octets. Use the larger of the directive size
3956 or octets_per_byte for the number of octets actually allocated in
3958 (lang_set_startof) Make sure STARTOF returns a target address.
3959 (lang_one_common) Record size changes in octets.
3960 (lang_abs_symbol_at_end_of) Section end symbol's value is
3961 recorded in target bytes.
3962 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3963 to be clear about behavior when an octet is smaller than one byte.
3965 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3967 * ldcref.c (output_cref): Don't pass message strings to printf
3971 * ldmisc.c (vfinfo): Same here.
3974 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3976 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3977 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3978 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3979 Add missing NULL initialisers, and comments.
3981 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3983 2000-01-21 Nick Clifton <nickc@cygnus.com>
3985 * ldlang.c (lang_size_sections): Fix typo in comment.
3987 2000-01-18 H.J. Lu <hjl@gnu.org>
3989 * ldlang.c (lang_size_sections): Also update the current
3990 address of a region if the SEC_NEVER_LOAD bit is not set.
3992 2000-01-10 Philip Blundell <pb@futuretv.com>
3994 * configure.tgt (arm*-*-conix*): New target.
3996 2000-01-07 Nick Clifton <nickc@cygnus.com>
3998 * ld.texinfo (Options): Remind users to preceed linker command
3999 line switches with -Wl, (or whatever is appropriate) if it is
4000 being invoked by a comnpiler driver program.
4001 Fix description of the behaviour of the -n command line switch.
4003 2000-01-05 Catherine Moore <clm@cygnus.com>
4005 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4007 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4008 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4009 (exclude_name_list): New.
4010 ldlang.c (walk_wild_section): Support list of excluded files.
4011 (print_wild_statement): Likewise.
4012 (lang_add_wild): Likewise.
4013 * ldlang.h (lang_wild_statement_type): Likewise.
4014 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4016 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4018 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4019 (process_def_file): Use.
4020 (pe_dll_compat_implib): New variable.
4023 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4024 pe_dll_compat_implib.
4026 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4027 compat-implib options.
4028 (gld_${EMULATION_NAME}_list_options): List new options.
4029 (gld_${EMULATION_NAME}_parse_args): Handle.
4031 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4034 * deffilep.y (opt_name): Allow "." in name.
4036 For older changes see ChangeLog-9899
4042 version-control: never