1 2001-04-27 Sean McNeil <sean@mcneil.com>
3 * configure.tgt: Add arm-vxworks target.
4 * scripttempl/armcoff.sc: Support .text or .data as a section name
8 2001-04-13 J.T. Conklin <jtc@redback.com>
10 * ld.texinfo: Document --fatal-warnings.
13 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
14 warnings have been turned into errors.
15 * lexsup.c (OPTION_WARN_FATAL): Define.
16 (ld_options): Entry for --fatal-warnings.
17 (parse_args): Handle OPTION_WARN_FATAL.
18 * ld.h (ld_config_type): Add fatal_warnings field.
20 2001-04-13 Jakub Jelinek <jakub@redhat.com>
22 * ldmain.c (main): Default to discard_sec_merge.
23 * lexsup.c (OPTION_DISCARD_NONE): Define.
24 (ld_options): Add --discard-none.
25 (parse_args): Handle OPTION_DISCARD_NONE.
26 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
27 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
28 all its input sections match.
30 2001-04-05 Steven J. Hill <sjhill@cotw.com>
32 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
33 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
34 (eelf32ltsmip.c): New target.
35 (eelf64btsmip.c): Likewise.
36 (eelf64ltsmip.c): Likewise.
37 * Makefile.in: Regenerated.
39 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
41 (mips*-*-linux-gnu*): Likewise.
43 * emulparams/elf32ltsmip.sh: New. Traditional little endian
45 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
47 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
50 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
52 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
53 correct value of __Stext here.
54 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
57 * emulparams/crislinux.sh: Remove FIXME.
59 2001-04-02 Alan Modra <alan@linuxcare.com.au>
61 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
62 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
64 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
66 * configure.tgt (cris-*-*): Change default emulation to criself.
67 (cris-*-*aout*): New rule.
69 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
71 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
72 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
74 2001-03-26 Andreas Jaeger <aj@suse.de>
76 * ld.texinfo (Overview): Fix syntax in texi code.
78 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
80 * ld.texinfo: Put @c man indications to generate the ld man page.
81 When generating man, define all the variables. Define SEEALSO
82 and SYNOPSIS. Re-organize some lines to avoid the cross references.
83 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
84 (ld.1): Generate from ld.texinfo.
85 * Makefile.in: Regenerate.
87 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
89 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
90 and '-fdata-sections'. Set the VMA of STABS sections to zero.
92 2001-03-17 Ulrich Drepper <drepper@redhat.com>
94 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
95 is an absolute path look only for this file and not along the path.
97 2001-03-17 Ulrich Drepper <drepper@redhat.com>
99 * emultempl/elf32.em (OPTION_GROUP): New macro.
100 Add new option Bgroup to longopts.
101 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
102 (gld*_list_options): Add -Bgroup and -z defs.
103 * ld.1: Document -Bgroup and -z defs.
104 * ld.texinfo: Likewise.
106 2001-03-07 Michael Meissner <meissner@redhat.com>
108 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
109 with sections created by -fdata-sections.
110 (.dynbss,.bss): Ditto.
112 2001-03-05 Alan Modra <alan@linuxcare.com.au>
114 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
115 after_allocation_default, not gld..._before_allocation.
117 2001-02-28 Matt Hiller <hiller@redhat.com>
119 * testsuite/ld-scripts/crossref.exp: Initialize flags to
120 [big_or_little_endian].
121 * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
123 * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
125 (is_endian_output_format): New function.
126 (default_ld_link): Set flags to [big_or_little_endian] only if ld
127 is being invoked such that the output format being used is of
129 (default_ld_simple_link): Ditto.
131 2001-02-27 Alan Modra <alan@linuxcare.com.au>
133 * configure.in (BFD_VERSION): New.
134 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
135 * configure: Regenerate.
136 * Makefile.am: Run "make dep-am"
137 * Makefile.in: Regenerate.
139 2001-02-26 Timothy Wall <twall@cygnus.com>
141 * emulparams/elf64_aix.sh: Add additional read-only sections;
142 uncomment lines which are now required.
144 2001-02-26 H.J. Lu <hjl@gnu.org>
146 * ldlang.c (open_input_bfds): Set the bfd error handler so
147 that problems can be caught whilst loading symbols.
148 (record_bfd_errors): New function: Report BFD errors and mark
149 the executable output as being invalid.
151 2001-02-22 Timothy Wall <twall@cygnus.com>
153 * configure.host: Add configuration for ia64-*-aix*.
154 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
155 Add dependencies for eelf64_aix.c.
156 * Makefile.in: Regenerate.
157 * configure.tgt: Add ia64-*-aix* mapping.
158 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
159 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
162 2001-02-20 H.J. Lu <hjl@gnu.org>
164 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
165 false if we found the file.
167 2001-02-18 David O'Brien <obrien@FreeBSD.org>
169 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
170 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
172 2001-02-18 lars brinkhoff <lars@nocrew.org>
174 * Makefile.am: Add PDP-11 target.
175 * configure.tgt: Likewise.
176 * emulparams/pdp11.sh: New file.
178 2001-02-17 David O'Brien <obrien@FreeBSD.org>
180 * configure.host: Add a generic FreeBSD configuration entry such that
181 all [modern] FreeBSD systems on all platforms will look the same.
183 2001-02-14 H.J. Lu <hjl@gnu.org>
185 * configure.tgt: Remove mention of earmelf_linux26.
187 2001-02-13 Richard Henderson <rth@redhat.com>
189 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
191 2001-02-13 H.J. Lu <hjl@gnu.org>
193 * ldexp.h (node_type): Add etree_provided.
194 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
195 type to etree_provided if defined by PROVIDE. Allow updating
197 (exp_print_tree): Handle etree_provided.
198 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
201 2001-02-09 David Mosberger <davidm@hpl.hp.com>
203 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
204 .IA_64.unwind.* pattern to unwind table section and
205 .IA_64.unwind_info* pattern to unwind info section.
207 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
209 * Makefile.am: Add linux target for S/390.
210 * Makefile.in: Likewise.
211 * configure.host: Likewise.
212 * configure.tgt: Likewise.
213 * emulparams/elf64_s390.sh: New file.
214 * emulparams/elf_s390.sh: New file.
216 2001-02-09 Jakub Jelinek <jakub@redhat.com>
218 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
220 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
222 2001-02-06 Philip Blundell <philb@gnu.org>
224 * Makefile.am: Remove mention of earmelf_linux26.
225 * Makefile.in: Regenerate.
227 2001-02-04 Philip Blundell <philb@gnu.org>
229 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
230 * emulparams/armelf_linux26.sh: Delete.
231 * configure.tgt: Remove mention of armelf_linux26 emulation.
233 2001-02-01 Nick Clifton <nickc@redhat.com>
235 * ld.1: Replace occurances of -oformat with --oformat.
237 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
239 * ldlang.c (lang_leave_overlay): Don't set lma_region when
240 load_base is specified.
242 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
244 * emultempl/elf32.em: Correct spelling in comments and listed
247 2001-01-23 Alan Modra <alan@linuxcare.com.au>
249 * ldlang.c (lang_leave_overlay): Only set lma_region from the
250 default for the first section of a group of overlay sections.
252 2001-01-22 Alan Modra <alan@linuxcare.com.au>
254 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
255 * Makefile.in: Regenerate.
256 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
257 Check for null tool_dir.
259 2001-01-16 Jim Wilson <wilson@redhat.com>
261 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
262 and IA_64.unwind.info.
264 2001-01-16 H.J. Lu <hjl@gnu.org>
266 * ldlang.c (lang_check): Merge the private data only if the
267 input file has contents.
269 2001-01-14 Alan Modra <alan@linuxcare.com.au>
271 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
273 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
274 enabling search for libmilli. On a relocatable link, make .text
276 (LDEMUL_AFTER_PARSE): Define.
277 (hppaelf_finish): Correct spelling of relocatable in comments.
279 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
280 rummage through the script for sections on the unique list.
281 Correct length of strncmp for ".note".
282 (gld${EMULATION_NAME}_check_needed): Rearrange function.
284 * ldlang.c (unique_section_list): New var.
285 (unique_section_p): New function.
286 (walk_wild_section): Don't match sections on unique_section_list.
287 (lang_add_unique): New function.
288 Correct spelling of relocatable in comments.
290 * ldlang.h (struct unique_sections): Declare.
291 (unique_section_list): Declare.
292 (unique_section_p): Declare.
293 (lang_add_unique): Declare.
295 * lexsup.c (ld_options): Allow --unique to take an optional arg.
296 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
298 * ld.texinfo (--unique): Update.
300 2001-01-13 Nick Clifton <nickc@redhat.com>
302 * lexsup.c (parse_args): Remove spurious white space.
304 2001-01-12 Nick Clifton <nickc@redhat.com>
306 * lexsup.c (parse_args): Update copyright date.
308 2001-01-12 Philip Blundell <pb@futuretv.com>
310 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
312 2001-01-10 Kazu Hirata <kazu@hxi.com>
314 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
315 * scripttempl/h8300h.sc: Fix formatting.
316 * scripttempl/h8300s.sc: Likewise.
317 * scripttempl/h8500.sc: Likewise.
318 * scripttempl/h8500b.sc: Likewise.
319 * scripttempl/h8500c.sc: Likewise.
320 * scripttempl/h8500m.sc: Likewise.
321 * scripttempl/h8500s.sc: Likewise.
323 2000-01-07 David O'Brien <obrien@BSDi.com>
325 * emultempl/elf32.em: Only perform Linux ld hints processing when
328 2001-01-07 Philip Blundell <philb@gnu.org>
330 * ld.texinfo (Bug Reporting): Update email address for reports.
332 2000-12-31 Nick Clifton <nickc@redhat.com>
334 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
335 options by checking for a return value of '?' not -1.
337 2000-12-28 Nick Clifton <nickc@redhat.com>
339 * lexsup.c (struct ld_option): Add new enum value:
341 (ld_options[]): Change -omagic, -output and -oformat options
342 to be EXACTLY_TWO_DASHES.
343 (OUTPUT_COUNT): Use ARRAY_SIZE.
344 (parse_args): Change parameter 'argc' to unsigned.
345 Place EXACTLY_TWO_DASHES options into new really_longopts
347 If getopt_long_only fails, try calling getopt_long using the
348 really_longopts array.
349 (help): Print a double dash for both EXACTLY_TWO_DASHES and
352 * ldlex.h: Fix prototype of parse_args.
354 * ld.texinfo: Document that long options starting with 'o'
355 must be preceeded by two dashes. Change example of a single
356 dashed long option from -oformat to -trace-symbol.
358 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
360 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
361 (longopts[]): New --no-default-excludes option.
362 (gld_${EMULATION_NAME}_list_options): Document.
363 (gld_${EMULATION_NAME}_parse_args): Handle.
365 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
367 * ldlang.c (new_stat): Revert the last beautification with "innocent"
368 whitespace, it breaks the K&R C preprocessor.
370 2000-12-11 DJ Delorie <dj@redhat.com>
372 * ld.texinfo: Add notes about --whole-archive and gcc.
374 2000-11-18 Fred Fish <fnf@be.com>
376 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
377 (ld_options): Entry for --allow-shlib-undefined.
378 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
379 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
381 * ld.texinfo: Document new command line switch.
383 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
385 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
386 .fixup is actually read/write.
387 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
388 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
389 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
391 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
393 * NEWS: Add note about x86_64 architecture.
395 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
397 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
398 Set DWARF2 sections to a VMA of zero.
400 2000-12-01 Joel Sherrill <joel@OARcorp.com>
402 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
404 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
405 (sparc*-*-rtems*): Switched from a.out to ELF.
407 2000-11-30 Jan Hubicka <jh@suse.cz>
409 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
410 (eelf_x86_64.c): New.
411 * Makefile.in: Regenerate.
412 * configure.tgt: Add support for x86_64-*-linux-gnu*.
413 * emulparams/elf_x86_64.sh: New.
415 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
417 * emulparams/crislinux.sh (ENTRY): Change back to _start.
418 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
420 * scripttempl/crisaout.sc: Change all RELOCATING not related to
421 merging non-a.out sections into CONSTRUCTING.
423 2000-11-28 Nick Clifton <nickc@redhat.com>
425 * ld.1 (COPYING): Mention that the GNU Free Documentation
426 License is present in the sources, but not the output, and
427 also available from the GNU website.
428 (GNU Free Documentation License): Comment out this section.
430 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
432 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
435 2000-11-25 David O'Brien <obrien@FreeBSD.org>
437 * ld.1: Remove old date so it does not give the impression the manpage
440 2000-11-24 Nick Clifton <nickc@redhat.com>
442 * configure.tgt (xscale-coff): Add target.
443 (xscale-elf): Add target.
445 2000-11-24 Fred Fish <fnf@be.com>
447 * ldmain.c (main): Remove redundant init of config.make_executable
450 2000-11-15 Richard Henderson <rth@redhat.com>
452 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
454 2000-11-14 Kazu Hirata <kazu@hxi.com>
456 * scripttempl/h8300.sc: Fix formatting.
457 * scripttempl/h8300h.sc: Likewise.
458 * scripttempl/h8300s.sc: Likewise.
460 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
462 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
464 2000-11-09 Philip Blundell <pb@futuretv.com>
466 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
467 around orphan sections whose names can be represented in C.
469 2000-11-07 Jim Wilson <wilson@redhat.com>
471 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
472 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
474 2000-11-06 Nick Clifton <nickc@redhat.com>
476 * ld.texinfo: Add GNU Free Documentation License.
477 * ldint.texinfo: Add GNU Free Documentation License.
478 * ld.1: Add GNU Free Documentation License.
480 2000-11-05 Alan Modra <alan@linuxcare.com.au>
482 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
483 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
485 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
486 Move 2000-11-02 Makefile.in changes to this file.
487 * Makefile.in: Regenerate.
489 2000-11-03 Nick Clifton <nickc@redhat.com>
491 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
492 constructors and destructors.
493 * scripttempl/h8300h.sc: Ditto.
494 * scripttempl/h8300s.sc: Ditto.
495 * scripttempl/h8500.sc: Ditto.
496 * scripttempl/h8500b.sc: Ditto.
497 * scripttempl/h8500c.sc: Ditto.
498 * scripttempl/h8500m.sc: Ditto.
499 * scripttempl/h8500s.sc: Ditto.
500 * scripttempl/v850.sc: Ditto.
501 * scripttempl/w65.sc: Ditto.
502 * scripttempl/z8000.sc: Ditto.
504 2000-11-02 Per Lundberg <plundis@chaosdev.org>
506 * Makefile.in (e_i386_chaos.c): New rule.
507 (ALL_EMULATIONS): Added e_i386_chaos.o.
508 * emulparams/elf_i386_chaos.sh: New file.
509 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
511 2000-10-20 Jakub Jelinek <jakub@redhat.com>
513 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
514 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
515 Fix sed invocation, so that it coped with '/' in Solaris 64bit
517 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
519 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
521 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
522 for consecutive sections.
524 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
526 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
528 * ld.texinfo: Added notes about this new option.
530 2000-10-16 Nick Clifton <nickc@redhat.com>
532 * emultempl/pe.em (_after_open): Add tests of return values from
533 bfd functions. Emit appropriate error messages if necessary.
535 2000-10-13 Nick Clifton <nickc@redhat.com>
537 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
538 local variables - they are not used, but leave in the call to
539 bfd_canonicalize_symtab.
540 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
541 pe_dll_search_prefix.
543 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
545 * emultempl/pe.em (pe_dll_search_prefix): New variable,
546 (longopts): New --dll-search-prefix option.
547 (gld_${EMULATION_NAME}_list_options): Document.
548 (gld_${EMULATION_NAME}_parse_args): Handle.
549 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
550 dynamically, search for a dll named '<prefix><basename>.dll'
551 in preference to 'lib<basename>.dll' if --dll-search-prefix
554 2000-10-12 Alan Modra <alan@linuxcare.com.au>
556 * ldlang.c (section_already_linked): Set kept_section instead of
559 2000-10-10 Kazu Hirata <kazu@hxi.com>
561 * deffile.h: Fix formatting.
562 * lexsup.c: Likewise.
565 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
567 * pe-dll.c (make_one): Do not generate code thunk for DATA
569 (process_def_file): deduce DATA flag for auto-export sumbols.
571 2000-10-09 Kazu Hirata <kazu@hxi.com>
573 * ld.h: Fix formatting.
574 * ldcref.c: Likewise.
575 * ldctor.h: Likewise.
576 * ldemul.c: Likewise.
577 * ldemul.h: Likewise.
580 * ldfile.c: Likewise.
581 * ldfile.h: Likewise.
582 * ldlang.c: Likewise.
583 * ldlang.h: Likewise.
584 * ldmain.c: Likewise.
585 * pe-dll.c: Likewise.
587 * pe-dll.c: Revert some formatting fixes.
589 2000-10-08 Kazu Hirata <kazu@hxi.com>
591 * pe-dll.c: Fix formatting.
593 2000-10-05 Kazu Hirata <kazu@hxi.com>
595 * ldlang.c: Fix formatting.
597 2000-10-03 DJ Delorie <dj@redhat.com>
599 * pe-dll.c (fill_edata): initialize entire block
600 (make_one): fill in correct section.
602 2000-10-03 Kazu Hirata <kazu@hxi.com>
604 * ldexp.c: Fix formatting.
606 2000-10-02 DJ Delorie <dj@redhat.com>
608 * emultempl/pe.em (gld_*_after_open): detect case where there two
609 import libraries for same dll; rename one to ensure proper link
612 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
614 (generate_edata): fix typo
616 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
618 * scripttempl/crisaout.sc (ENTRY): Now __start.
619 (.text): Add default setting for __start.
620 Remove CONSTRUCTORS handling.
621 (/DISCARD/): Add .gnu.warning.*.
622 * emulparams/crislinux.sh (ENTRY): Now __start.
623 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
624 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
625 (ENTRY): Now __start.
626 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
627 (EXECUTABLE_SYMBOLS): Add default setting for __start.
629 2000-09-29 Kazu Hirata <kazu@hxi.com>
631 * deffile.h: Fix formatting.
633 * ldcref.c: Likewise.
634 * ldctor.c: Likewise.
635 * ldctor.h: Likewise.
636 * ldemul.c: Likewise.
637 * ldemul.h: Likewise.
640 * ldfile.c: Likewise.
641 * ldfile.h: Likewise.
642 * ldlang.c: Likewise.
643 * ldlang.h: Likewise.
644 * lexsup.c: Likewise.
646 * pe-dll.c: Likewise.
648 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
650 * pe-dll.c (process_def_file): Uninitialized data wasn't
651 exported with --export-all-symbols switch.
653 2000-09-28 DJ Delorie <dj@redhat.com>
655 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
656 noname work properly.
658 2000-09-28 Alan Modra <alan@linuxcare.com.au>
660 * ld.texinfo (HPPA ELF32): New section.
662 * emultempl/hppaelf.em (group_size): New.
663 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
664 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
665 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
666 options to prevent abbreviations matching.
667 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
668 (PARSE_AND_LIST_ARGS_CASES): Handle it.
670 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
672 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
673 on the m68*-*-elf target. Make it support COFF input objects.
675 2000-09-21 Kazu Hirata <kazu@hxi.com>
677 * ldmain.c: Fix formatting.
678 * ldmisc.c: Likewise.
680 * ldwrite.c: Likewise.
682 2000-09-21 Alan Modra <alan@linuxcare.com.au>
684 * ldwrite.c (clone_section): Silence gcc warnings.
686 2000-09-20 Alan Modra <alan@linuxcare.com.au>
688 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
689 out of memory failure.
691 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
692 (clone_section): Handle out of memory failures. Rename var to
693 avoid c++ reserved word.
695 2000-09-18 Alan Modra <alan@linuxcare.com.au>
697 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
698 stub_name param to stub_sec_name.
699 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
701 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
703 * emultempl/m68kelf.em: New file.
704 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
705 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
706 * Makefile.in: Regenerate.
708 2000-09-15 Alan Modra <alan@linuxcare.com.au>
710 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
713 2000-09-13 Nick Clifton <nickc@redhat.com>
715 * ldmain.c (multiple_definition): Disable relaxation if
716 multiple symbol definitions are encountered - otherwise the
717 linker could abort with an assertion failure.
719 2000-09-10 Nick Clifton <nickc@redhat.com>
721 * mri.c: Fix formatting.
723 2000-09-07 H.J. Lu <hjl@gnu.org>
725 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
726 * configure: Rebuild.
728 2000-09-07 H.J. Lu <hjl@gnu.org>
730 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
731 * Makefile.in: Rebuild.
733 2000-09-07 Alan Modra <alan@linuxcare.com.au>
735 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
736 broken list handling. Create __start_SECNAME and __stop_SECNAME
737 when no place-holder. Add some comments. Test both SEC_CODE and
738 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
739 Handle case where no output section statement created.
741 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
743 * configure.tgt (sh-*-linux*): Added.
744 * Makefile.am: Added eshelf_linux and eshlelf_linux.
745 * Makefile.in: Rebuilt.
746 * emulparams/shelf_linux.sh: New file.
747 * emulparams/shlelf_linux.sh: New file.
749 2000-09-06 Alan Modra <alan@linuxcare.com.au>
751 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
752 try shuffling sections when the orphan happens to be the place
753 holder. Keep count of unique section names generated so we speed
754 the search for a new name.
756 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
758 * configure: Rebuilt with new libtool.m4.
760 2000-09-05 Nick Clifton <nickc@redhat.com>
762 * Makefile.in: Regenerate.
763 * aclocal.m4: Regenerate.
764 * configure: Regenerate.
765 * config.in: Regenerate.
766 * po/ld.pot: Regenerate.
768 * ldint.texinfo: Remove CVS revision marker - it foils local
771 * emultempl/ticoff.em: Remove extraneous comma.
773 2000-09-05 Alan Modra <alan@linuxcare.com.au>
775 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
776 to stub section flags.
777 (hppa_for_each_input_file_wrapper): New.
778 (hppa_lang_for_each_input_file): New.
779 (lang_for_each_input_file): Define to call above.
780 (multi_subspace): New.
781 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
782 (PARSE_AND_LIST_PROLOGUE): Define.
783 (PARSE_AND_LIST_LONGOPTS): Define.
784 (PARSE_AND_LIST_OPTIONS): Define.
785 (PARSE_AND_LIST_ARGS_CASES): Define.
786 (hppaelf_finish): Call elf32_hppa_set_gp.
787 (hppaelf_set_output_arch): Remove.
788 (LDEMUL_SET_OUTPUT_ARCH): Remove.
790 * emulparams/hppalinux.sh (ELFSIZE): Define.
792 (OTHER_READONLY_SECTIONS): Define.
794 (GENERATE_SHLIB_SCRIPT): Define.
796 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
797 to const throughout. Change `void *' to `PTR' throughout.
798 (lang_memory_default): Function is local to file, add `static'.
800 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
801 (ehppalinux.c): Likewise.
802 (earmelf.c): Likewise.
803 (earmelf_linux.c): Likewise.
804 (earmelf_linux26.c): Likewise.
805 * Makefile.in: Regenerate.
807 * ld.h (ld_config_type): Add unique_orphan_sections.
808 * lexsup.c (OPTION_UNIQUE): Define.
809 (ld_options): Add "--unique".
810 (parse_args): Handle it.
811 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
812 search for an existing output section if unique_orphan_sections is
813 set. Make use of bfd_get_unique_section_name rather than
814 duplicating code here.
815 * ld.texinfo: Describe --unique.
817 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
818 optional arg to split-by-file.
819 (parse_args): Handle them.
820 * ld.texinfo: Update description of these options.
821 * ldwrite.c (clone_section): Pass in the section name. Replace
822 local code with bfd_get_unique_section_name.
823 (split_sections): Tidy code and comments. Use a list traversal
824 more appropriate to the list construction. Handle cooked section
825 sizes. Split when split_by_reloc reached rather than exceeded.
826 Track section size and split when split_by_file reached. Fix
827 link_order_tail (even though it's not used).
828 (ldwrite): Modify condition for calling split_sections to suit
829 changed split_by_reloc and split_by_file.
830 * ldmain.c (main): Init config.split_by_reloc and
831 config.split_by_file to -1.
832 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
833 Change split_by_file to bfd_size_type.
835 2000-09-02 Nick Clifton <nickc@redhat.com>
837 * configure.in: Increase version number to 2.10.91.
838 * NEWS: Mention new ability to support removal of duplicate DWARF2
840 * configure: Regenerate.
841 * aclocal.m4: Regenerate.
842 * config.in: Regenerate.
844 2000-09-02 Daniel Berlin <dberlin@redhat.com>
846 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
848 * scripttempl/elf32avr.sc: Ditto.
849 * scripttempl/elfd10v.sc: Ditto.
850 * scripttempl/elfd30v.sc: Ditto.
851 * scripttempl/elfi370.sc: Ditto.
852 * scripttempl/elfm68hc11.sc: Ditto.
853 * scripttempl/elfm68hc12.sc: Ditto.
854 * scripttempl/elfi386beos.sc: Ditto.
855 * scripttempl/v850.sc: Ditto.
857 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
859 * acinclude.m4: Include libtool and gettext macros from the
861 * aclocal.m4, configure: Rebuilt.
863 2000-08-25 Nick Clifton <nickc@redhat.com>
865 * ldlang.c (open_output): When choosing the target for a
866 particular endianness, do nothing if the target is not
869 2000-08-25 H.J. Lu <hjl@gnu.org>
871 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
872 check -rpath nor LD_RUN_PATH for cross link.
873 * ld.texinfo: Document the change.
875 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
877 * NEWS: Mention support for CRIS.
879 2000-08-23 H.J. Lu <hjl@gnu.org>
881 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
882 the current runpath list from bfd_elf_get_runpath_list ()
885 2000-08-22 H.J. Lu <hjl@gnu.org>
887 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
888 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
889 LD_LIBRARY_PATH for native linker. Display the needed DSO if
890 trace_file_tries is non-zero.
891 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
892 if trace_file_tries is non-zero.
894 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
897 2000-08-14 Jason Eckhardt <jle@cygnus.com>
899 * NEWS: Mention i860 support.
901 2000-08-14 Andreas Schwab <schwab@suse.de>
903 * scripttempl/elf.sc: Fix last change to use correct comment
906 2000-08-10 Geoff Keating <geoffk@cygnus.com>
908 * scripttempl/elf.sc: Add a comment giving the correspondence
909 between sections, per-datum sections, and linkonce sections. Make
910 the comment true even for .bss, .sdata, .sdata2, .sbss, and
913 2000-08-10 Jason Eckhardt <jle@cygnus.com>
915 * emulparams/elf32_i860.sh: New file.
916 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
917 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
918 (eelf32_i860.c): New rule.
919 * Makefile.in: Regenerate.
921 2000-08-10 Nick Clifton <nickc@cygnus.com>
923 * emulparams/mipspe.sh (ENTRY): Add definition.
925 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
927 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
930 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
932 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
933 the final size of .bss section.
934 * scripttempl/elfm68hc12.sc: Likewise.
936 2000-08-04 Alan Modra <alan@linuxcare.com.au>
938 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
939 gld${EMULATION_NAME}_parse_args for consistency. Combine
940 lastoptind and prevoptind vars, and keep track of last optind.
941 (gld_${EMULATION_NAME}_list_options): Rename to
942 gld${EMULATION_NAME}_list_options.
944 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
946 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
947 (i586-sco-sysv5uw7.1.0).
949 2000-07-27 H.J. Lu <hjl@gnu.org>
951 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
952 (PARSE_AND_LIST_PROLOGUE): New.
953 (PARSE_AND_LIST_LONGOPTS): Likewise.
954 (PARSE_AND_LIST_OPTIONS): Likewise.
955 (PARSE_AND_LIST_ARGS_CASES): Likewise.
956 (PARSE_AND_LIST_EPILOGUE): Likewise.
958 2000-07-28 Alan Modra <alan@linuxcare.com.au>
960 * emultempl/armelf.em: Elide functions common to elf32.em,
961 ie. most of the file.
962 (arm_elf_after_open): New. Do arm specific things then call
963 gld${EMULATION_NAME}_after_open.
964 (arm_elf_before_allocation): New. Call
965 gld${EMULATION_NAME}_before_allocation then do arm specifics.
966 (PARSE_AND_LIST_PROLOGUE): Define.
967 (PARSE_AND_LIST_SHORTOPTS): Define.
968 (PARSE_AND_LIST_LONGOPTS): Define.
969 (PARSE_AND_LIST_OPTIONS): Define.
970 (PARSE_AND_LIST_ARGS_CASES): Define.
971 (LDEMUL_AFTER_OPEN): Define.
972 (LDEMUL_BEFORE_ALLOCATION): Define.
973 (LDEMUL_BEFORE_PARSE): Define.
974 (LDEMUL_FINISH): Define.
976 * emultempl/hppaelf.em: Similarly zap most of this file.
977 (hppaelf_add_stub_section): Prototype.
978 (hppaelf_layaout_sections_again): Prototype.
979 (hook_in_stub): Prototype.
980 (LDEMUL_SET_OUTPUT_ARCH): Define.
981 (LDEMUL_FINISH): Define.
982 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
984 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
985 (EXTRA_EM_FILE): New.
986 * emulparams/armelf_linux.sh: Likewise.
987 * emulparams/armelf_linux26.sh: Likewise.
988 * emulparams/hppalinux.sh: Likewise.
989 * emulparams/hppaelf.sh: Likewise.
992 * emultempl/elf32.em: Fix formatting.
993 (EXTRA_EM_FILE): Source it.
994 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
995 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
996 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
997 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
998 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
999 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1000 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1001 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1002 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1003 allow functions in this file to be overridden.
1004 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1006 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1008 * emultempl/elf32.em: Reorganize file.
1010 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
1012 * emulparams/elf64alpha.sh: Implement "-taso" emulation
1013 specific option to fit 64-bit executable in the lower
1014 31-bit address range. This is done by changing start
1015 address of .interp (the very first section of executable)
1016 and then setting EF_ALPHA_32BIT elf header flag.
1018 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1020 * emultempl/m68kcoff.em: New file.
1021 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1022 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1024 * Makefile.in: Regenerate.
1026 2000-07-20 H.J. Lu <hjl@gnu.org>
1028 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1029 and "disable-new-dtags" to stop getopt from treating -d/-e as
1030 abbreviations for these options.
1032 2000-07-20 H.J. Lu <hjl@gnu.org>
1034 * ld.texinfo: Add documentation for --disable-new-dtags and
1037 * ldmain.c (main): Initialize link_info.new_dtags to false.
1039 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1040 --disable-new-dtags and --enable-new-dtags.
1041 (gld_${EMULATION_NAME}_list_options): Likewise.
1043 2000-07-05 Kenneth Block <krblock@computer.org>
1045 * lexsup.c: Add optional style to demangle switch
1046 * ld.texinfo: Document optional style to demangle switch.
1048 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1050 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1052 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1053 Regenerate dependencies.
1054 * Makefile.in: Rebuild.
1055 * configure.tgt (cris-*-*): New target.
1056 * emulparams/crisaout.sh, emulparams/criself.sh,
1057 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1058 * po/POTFILES.in, po/ld.pot: Regenerate.
1060 2000-07-20 H.J. Lu <hjl@gnu.org>
1062 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1063 Print out ignored -z options.
1065 2000-07-19 H.J. Lu <hjl@gnu.org>
1067 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1068 (PARSE_AND_LIST_PROLOGUE): New.
1069 (PARSE_AND_LIST_LONGOPTS): Likewise.
1070 (PARSE_AND_LIST_OPTIONS): Likewise.
1071 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1073 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1075 * lexsup.c (ld_options): Comment out 'z'.
1076 (parse_args): Likewise.
1078 * emultempl/elf32.em: Include "elf/common.h".
1079 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1081 (gld_${EMULATION_NAME}_list_options): Likewise.
1083 * ld.texinfo: Add documentation for the recognized -z options.
1085 2000-07-19 H.J. Lu <hjl@gnu.org>
1087 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1088 bfd_elf_set_dt_needed_soname ().
1090 2000-07-18 DJ Delorie <dj@cygnus.com>
1092 * pe-dll.c (pe_dll_id_target): check object target name also
1094 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
1096 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1097 ${INIT_END} if relocating.
1098 (.fini): Likewise ${FINI_START} and ${FINI_END}.
1100 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
1102 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1103 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1104 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1105 errors introduced by the old dynamic lib search order.
1107 2000-07-17 DJ Delorie <dj@cygnus.com>
1109 * pe-dll.c (process_def_file): auto-export data items also
1110 (pe_process_import_defs): also see if _imp_ form needed
1112 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1114 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1115 for dll import libraries
1117 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
1119 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1120 gcc 2.95.2 and later.
1122 2000-07-11 Kazu Hirata <kazu@hxi.com>
1124 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1127 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1129 * ldemul.h (struct lang_input_statement_struct): Remove forward
1131 (struct search_dirs): Likewise.
1132 * ldfile.h (struct lang_input_statement_struct): Likewise.
1133 Protect file from multiple inclusion.
1134 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1135 declaration from macro to file scope.
1137 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1138 * ldgram.y: Likewise here.
1139 * ldlang.c: And here.
1140 * ldmain.c: And here.
1141 * mpw-elfmips.c: And here.
1142 * mpw-eppcmac.c: And here.
1143 * emultempl/aix.em: And here.
1144 * emultempl/armcoff.em: And here.
1145 * emultempl/armelf.em: And here.
1146 * emultempl/armelf_oabi.em: And here.
1147 * emultempl/beos.em: And here.
1148 * emultempl/elf32.em: And here.
1149 * emultempl/hppaelf.em: And here.
1150 * emultempl/linux.em: And here.
1151 * emultempl/lnk960.em: And here.
1152 * emultempl/pe.em: And here.
1153 * emultempl/sunos.em: And here.
1154 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1155 * mpw-idtmips.c: Ditto.
1156 * emultempl/generic.em: Ditto.
1157 * emultempl/gld960.em: Ditto.
1158 * emultempl/gld960c.em: Ditto.
1159 * emultempl/mipsecoff.em: Ditto.
1160 * emultempl/ticoff.em: Ditto.
1161 * emultempl/vanilla.em: Ditto.
1163 * pe-dll.c: Include ldfile.h
1164 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1166 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1167 arguments to bfd_elf32_size_dynamic_sections call.
1168 (gldelf32ebmip_place_orphan): Add missing arguments to
1169 lang_leave_output_section_statement call.
1171 2000-07-10 H.J. Lu <hjl@gnu.org>
1173 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1175 (strhash): Likewise.
1176 (compute_dll_image_base): Likewise.
1177 (pe_undef_found_sym): Likewise.
1178 (pe_undef_cdecl_match): Likewise.
1179 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1180 argument "arch" with ATTRIBUTE_UNUSED.
1182 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1184 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1186 From Ryan Bradetich <rbradetich@uswest.net>
1187 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1189 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1191 Changes to create multiple linker stubs, positioned immediately
1192 before the section where they are required.
1193 * emultempl/hppaelf.em: Include elf32-hppa.h.
1194 (stub_sec, file_chain): Delete.
1195 (hppaelf_create_output_section_statements): Don't make a stub
1197 (hook_stub_info): New struct.
1198 (hook_in_stub): New function.
1199 (hppaelf_add_stub_section): New function.
1200 (hppaelf_finish): Do nothing for relocateable links. Modify the
1201 call to elf32_hppa_size_stubs. Move code for updating section
1203 (hppaelf_layaout_sections_again): ..to here, a new function.
1205 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1206 broken list handling. Pass in a pointer to the list.
1207 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1209 (hppaelf_before_parse): Prototype.
1210 (hppaelf_set_output_arch): Prototype.
1211 (hppaelf_create_output_section_statements): Prototype.
1212 (hppaelf_delete_padding_statements): Prototype.
1213 (hppaelf_finish): Prototype.
1216 * emultempl/hppaelf.em: Include ctype.h.
1217 (struct orphan_save): New.
1218 (gld${EMULATION_NAME}_place_orphan): New.
1219 (output_rel_find): New.
1220 (hppaelf_get_script): Update from elf32.em.
1221 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1222 Change emulation_name field to "${EMULATION_NAME}". Add
1223 gld${EMULATION_NAME}_place_orphan.
1225 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
1226 ehppalinux.o, sort it. Regenerate dependencies.
1227 (ehppalinux.c): Depend on hppaelf.em
1228 * Makefile.in: Regenerate.
1230 * configure.tgt: targ_emul=hppalinux for hppa*linux
1232 * emulparams/hppalinux.sh: New.
1233 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1235 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1237 * lexsup.c (parse_args): Copy section name.
1239 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
1241 * emultempl/pe.em: institute the following search order for
1242 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1243 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
1244 static lib (libfoo.a) if none of the above are found.
1246 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
1248 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1249 (longopts): New --{enable,disable}-auto-image-base options.
1250 (gld_${EMULATION_NAME}_list_options): Document.
1251 (gld_${EMULATION_NAME}_parse): Handle.
1252 (strhash): New static function.
1253 (compute_dll_image_base): New static function.
1254 (gld_${EMULATION_NAME}_set_symbols): Use.
1256 2000-07-05 DJ Delorie <dj@redhat.com>
1260 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1262 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1263 * emulparams/elf32btsmip.sh: New file.
1264 * Makefile.am: Add traditional mips target.
1265 * Makefile.in: Rebuild.
1267 2000-07-01 H.J. Lu <hjl@gnu.org>
1269 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1270 automake to use YLWRAP.
1271 * Makefile.in: Rebuild.
1273 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1275 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1276 (CLEANFILES): Add DEPA.
1277 * Makefile.in: Regenerate.
1279 2000-06-30 Timothy Wall <twall@ppc>
1281 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1282 the page in the upper octet of the address.
1284 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1286 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1288 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1290 * NEWS: arm-elf does --gc-sections too.
1292 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1294 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1296 * Makefile.in: Regenerate.
1298 2000-06-21 H.J. Lu <hjl@gnu.org>
1300 * Makefile.am: Rebuild dependency.
1301 * Makefile.in: Rebuild.
1303 2000-06-20 H.J. Lu <hjl@gnu.org>
1305 * Makefile.am: Rebuild dependency.
1306 * Makefile.in: Rebuild.
1308 2000-06-20 Timothy Wall <twall@cygnus.com>
1310 * scripttempl/tic54xcoff.sc: New.
1311 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1312 * gen-doc.texi: Add flag for TI COFF.
1313 * ld.texinfo: Add documentation for TI COFF handling switches.
1314 * emultempl/ticoff.em: New. TI COFF handling.
1315 * configure.tgt: Add tic54x target.
1316 * Makefile.am: Add tic54x target.
1317 * Makefile.in: Ditto.
1319 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1321 * ldmain.c (set_scripts_dir): Correct pointer comparison when
1322 checking for backslashes.
1324 2000-06-19 Alan Modra <alan@linuxcare.com.au>
1326 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1328 2000-06-18 Alan Modra <alan@linuxcare.com.au>
1330 * NEWS: Update list of targets supporting --gc-sections.
1332 * scripttempl/elf.sc: KEEP .eh_frame contents.
1333 * scripttempl/elfd30v.sc: Same here.
1335 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1337 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1339 * Makefile.in: Rebuild.
1340 * configure.tgt: Recognize m68hc12 and m68hc11.
1341 * scripttempl/elfm68hc12.sc: New file.
1342 * emulparams/m68hc12elfb: New emulation.
1343 * emulparams/m68hc12elf: New emulation.
1344 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
1345 (includes a memory.x script to define the ROM and RAM banks).
1346 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1347 New configuration files for support of Motorola 68hc11
1349 2000-06-15 Alan Modra <alan@linuxcare.com.au>
1351 * ldmain.c (main): Only change SEC_READONLY for final link.
1353 2000-06-13 H.J. Lu <hjl@gnu.org>
1355 * configure: Regenerate.
1357 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1359 * configure.in (VERSION): Update to show this is the CVS mainline.
1361 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1363 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1364 input objects to be ECOFF.
1365 (check_sections): einfo takes %B, not %P, to print a BFD name.
1367 2000-06-05 Michael Matz <matz@ifh.de>
1369 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1372 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1374 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
1376 * emulparams/avr1200.sh (STACK): Define as 0.
1377 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1378 * emulparams/avr4433.sh (STACK): Likewise.
1379 * emulparams/avr44x4.sh (STACK): Likewise.
1380 * emulparams/avr85xx.sh (STACK): Likewise.
1381 * emulparams/avrmega103.sh (STACK): Likewise.
1382 * emulparams/avrmega161.sh (STACK): Likewise.
1383 * emulparams/avrmega603.sh (STACK): Likewise.
1384 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1385 (__stack): Define from ${STACK} for main().
1387 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1389 * Makefile.am: Update dependencies with "make dep-am"
1390 * Makefile.in: Regenerate.
1392 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1394 * ldmain.c: Include filenames.h.
1395 (set_scripts_dir): Support backslashes in program name.
1397 2000-05-22 Igor Shevlyakov <igor@windriver.com>
1399 * ldmain.c (main): When deciding if ".text" section should be
1400 read-only, don't forget to reset SEC_READONLY because it
1401 could be already set.
1403 2000-05-22 Thomas de Lellis <tdel@windriver.com>
1405 * ld.1: Add documentation for new command line option:
1406 --section-start <sectionname>=<sectionorg>
1407 This is a generic version of -Ttext etc. which accepts
1408 any section name as a parameter instead of just text/data/
1410 * ld.texinfo: More docs.
1412 * lexsup.c: (parse_args): Recognize new command line option.
1413 (ld_options): Add new option.
1415 2000-05-18 H.J. Lu <hjl@gnu.org>
1417 * lexsup.c (parse_args): `i' == `r', not `q'.
1419 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
1421 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1423 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1424 Rick Gorton <gorton@scrugs.lkg.dec.com>
1426 Add support for '-q' == '--emit-relocs' switch.
1427 * ldmain.c (main): Default to false.
1428 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1429 * NEWS: Describe the emitrelocations switch.
1430 * ld.texinfo: Describe the emitrelocations switch.
1432 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1434 * emultempl/pe.em (_open_dynamic_archive): New function: Search
1435 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1436 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1439 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1441 * lexsup.c (parse_args): Update the year in the copyright notice.
1443 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1445 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1446 Replace defines with those from intl/libgettext.h to quieten gcc
1449 2000-05-10 H.J. Lu <hjl@gnu.org>
1451 * ldlang.c (open_input_bfds): Don't load the same file within
1452 a group again if the whole archive has been loaded already.
1454 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1456 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1457 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1460 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1462 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1464 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1465 host "ia64-*-linux-gnu*".
1467 2000-04-29 Andreas Jaeger <aj@suse.de>
1469 * ld.h: Correctly check GCC version.
1471 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1473 * Makefile.am: Add PA64 support. Add missing dependencies for
1475 * Makefile.in: Rebuilt.
1476 * configure.tgt: Add PA64 support (currently disabled).
1478 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1480 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1481 (output_rel_find): New function.
1482 (hold_section, hold_use): Delete.
1483 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1484 hold_interp): Make local to place_orphan.
1485 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1486 rather than place_section to find possible previous use of orphan.
1487 Similarly find the place-holder output sections. Use returned
1488 value from lang_enter_output_section_statement rather than calling
1489 lang_output_section_statement_lookup.
1490 * emultempl/armelf.em: Same here.
1491 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1493 * ldlang.c (lang_enter_output_section_statement): Return output
1495 * ldlang.h (lang_enter_output_section_statement): Change
1498 * ldlang.h (lang_output_section_statement): Export it.
1499 * ldlang.c (lang_output_section_statement): Ditto.
1501 2000-04-24 Nick Clifton <nickc@cygnus.com>
1503 * ld.texinfo (Output Section Data): Add note that section data
1504 commands cannot appear outside of section directives.
1506 2000-04-2 Matthew Green <mrg@cygnus.com>
1508 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1510 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1511 David Mosberger <davidm@hpl.hp.com>
1513 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1514 (eelf64_ia64.c): New rule.
1515 * Makefile.in: Rebuild.
1516 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1517 * emulparams/elf64_ia64.sh: New file.
1519 2000-04-21 Richard Henderson <rth@cygnus.com>
1521 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1523 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1525 * dep-in.sed: Match space at start of file name, not at end.
1527 2000-04-18 H.J. Lu <hjl@gnu.org>
1529 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1530 lang_leave_output_section_statement () after calling
1531 lang_enter_output_section_statement ().
1532 * emultempl/armelf.em: Likewise.
1534 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1536 * emultempl/elf32.em (struct orphan_save): Add section field.
1537 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1538 better order, and place first orphan section as we did before the
1539 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1540 Don't call make_bfd_section here, let wild_doit do the job for us.
1541 Don't build a statement list when we'll only throw it away.
1542 * emultempl/armelf.em: Ditto.
1543 * emultempl/pe.em: Similarly.
1545 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1547 * scripttempl/elfppc.sc: Remove.
1548 * emulparams/elf32ppc.sh: Use elf.sc.
1549 * emulparams/elf32lppc.sh: Use elf.sc.
1550 * emulparams/elf32ppclinux.sh: Use elf.sc.
1551 * emulparams/elf32ppcsim.sh: New file.
1552 * emulparams/elf32lppcsim.sh: New file.
1553 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1554 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1555 * Makefile.in: Regenerate.
1556 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1558 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1560 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1561 ~SEC_ALLOC sections too. Init start address of debug sections.
1562 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1563 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1564 Also set all relocateable section start addresses.
1566 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1568 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1569 Add new BSS_PLT variable for when .plt need not be contained in
1570 the file. Move _etext so that it is also after .fini, and provide
1571 both etext and _etext with a leading underscore. Mark the start
1574 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1576 * emultempl/elf32.em (struct orphan_save): New.
1577 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1578 hold_interp): Make them struct orphan_save.
1579 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1580 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1581 the end of the relevant section list. Also add associated section
1582 statements to the end of any previous orphan statements.
1583 * emultempl/armelf.em: Similarly.
1584 * emultempl/pe.em: Similarly.
1586 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1588 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1590 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1592 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1593 --enable-build-warnings option.
1594 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1595 * Makefile.in, configure: Re-generate.
1597 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1599 * po/ld.pot: Regenerate.
1601 * lexsup.c (help): Restore translated part of bug string.
1603 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1604 (DEP): Quote when passing vars to sub-make. Add warning message
1606 (DEP1): Rewrite for "gcc -MM".
1607 (CLEANFILES): Add DEP2.
1608 Update dependencies.
1609 * Makefile.in: Regenerate.
1611 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1613 * ld.h: #include "bin-bugs.h"
1614 * lexsup.c (help): Use REPORT_BUGS_TO.
1616 2000-03-27 Denis Chertykov <denisc@overta.ru>
1618 * configure.tgt (avr-*-*): New target support.
1619 * Makefile.am: Likewise.
1620 * scripttempl/elf32avr.sc: New script file.
1621 * emulparams/avr1200.sh: New file.
1622 * emulparams/avr23xx.sh: New file.
1623 * emulparams/avr4433.sh New file.
1624 * emulparams/avr44x4.sh New file.
1625 * emulparams/avr85xx.sh New file.
1626 * emulparams/avrmega103.sh New file.
1627 * emulparams/avrmega161.sh New file.
1628 * emulparams/avrmega603.sh New file.
1629 * Makefile.in: Regenerate.
1631 2000-03-09 Andreas Jaeger <aj@suse.de>
1633 * Makefile.am (check-DEJAGNU): Also unset LANG.
1634 * Makefile.in: Rebuild.
1636 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1638 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1641 2000-03-02 H.J. Lu <hjl@gnu.org>
1643 * emulparams/elf32mcore.sh: Include "getopt.h".
1645 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1647 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1649 2000-03-01 H.J. Lu <hjl@gnu.org>
1651 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1652 * emulparams/shpe.sh: Likewise.
1654 2000-03-01 Nick Clifton <nickc@cygnus.com>
1656 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1657 to unused parameters.
1659 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1660 functions only used by DLL code.
1661 (_place_orphan): Initialise 'dollar'.
1663 2000-03-01 H.J. Lu <hjl@gnu.org>
1665 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1666 indicate if the undefined symbol is a fatal error or not.
1667 Don't delete the output file if "fatal" is false.
1669 2000-02-29 H.J. Lu <hjl@gnu.org>
1671 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1672 Set LC_COLLATE and LC_ALL to null and export them. It is for
1673 sort which expects the C locale.
1674 Add $(LIBS) to all $(HOSTING_LIBS).
1675 * Makefile.in: Rebuild.
1677 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1679 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1680 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1681 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1682 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1683 find_potential_libraries.
1685 2000-02-28 Jim Blandy <jimb@redhat.com>
1687 * ldgram.y (exclude_name_list): Don't require a comma to separate
1688 list entries; the lexer considers commas to be valid part of a
1689 filename, so in something like `foo, bar' the comma is considered
1690 part of the first filename, `foo,'.
1691 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1693 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1695 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1696 host "i[3456]86-*-freebsdelf*".
1698 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1700 * scripttempl/i386go32.sc: Move misplaced semicolons.
1702 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1704 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1705 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1706 (eelf64hppa.c, ehppaelf.c): Remove targets.
1707 * Makefile.in: Rebuild.
1709 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1711 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1712 GNU/Linux/sparc, but keep the default as 32.
1714 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
1715 it default if sparcv9 or sparc64.
1717 2000-02-24 Nick Clifton <nickc@cygnus.com>
1719 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1720 * Makefile.in: Regenerate.
1721 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1723 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1724 find_potential_libraries.
1725 * ldemul.c (ldemul_find_potential_libraries): New function.
1727 * ldfile.c (ldfile_open_file_search): Allow function to be
1729 (ldfile_open_file): Call ldemul_find_potential_libraries.
1730 * ldfile.h: Add prototype for ldfile_open_file_search.
1732 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1734 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1735 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1737 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1738 (gld_X_find_potential_libraries): New function. Search for
1739 libraries called "*.lib".
1741 * scripttempl/pe.sc: Add .pdata section.
1743 2000-02-23 Richard Henderson <rth@cygnus.com>
1745 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1746 Add and use memory regions.
1748 2000-02-23 Linas Vepstas (linas@linas.org)
1750 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1752 * Makefile.am: Add support for Linux/IBM 370.
1753 * configure.tgt: Likewise.
1755 * Makefile.in: Regenerate.
1757 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1759 * ldlang.c (print_input_section, print_data_statement,
1760 print_reloc_statement, print_padding_statement, insert_pad,
1761 size_input_section, lang_check_section_addresses,
1762 lang_size_sections, lang_do_assignments, lang_set_startof,
1763 lang_one_common): Change `opb' to unsigned.
1764 (lang_do_assignments): Also change `size' to unsigned.
1766 2000-02-16 Richard Henderson <rth@cygnus.com>
1768 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1770 2000-02-16 Timothy Wall <twall@cygnus.com>
1772 * mri.c (mri_draw_tree): Add default LMA region argument to call
1773 to lang_leave_output_section_statement.
1774 * ldlang.h: Update prototypes with LMA region arguments.
1775 * ldlang.c (lang_size_sections): Encapsulate region bounds
1776 checking in os_check_region call.
1777 (os_check_region): New function.
1778 (lang_output_section_statement_lookup): Initialize lma_region.
1779 (lang_leave_output_section_statement): Add LMA region argument.
1780 (lang_leave_overlay): Ditto.
1781 * ldgram.y: Handle LMA region syntax.
1782 * ld.texinfo (Output Section Description): Describe LMA region usage.
1783 * emultempl/armelf.em (gld$place_orphan): Add default value for
1784 lma region in call to lang_leave_output_section_statement.
1785 * emultempl/elf32.em (gld$place_orphan): Add default value for
1786 lma region in call to lang_leave_output_section_statement.
1787 * emultempl/pe.em (gld$place_orphan): Add default value for
1788 lma region in call to lang_leave_output_section_statement.
1791 2000-02-04 Timothy Wall <twall@redhat.com>
1793 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1794 octets when calculating section end addresses.
1796 2000-02-04 Timothy Wall <twall@redhat.com>
1798 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1800 2000-02-03 Timothy Wall <twall@redhat.com>
1802 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1804 * ldlang.c (print_input_section, print_data_statement,
1805 print_reloc_statement, print_padding_statement): Print target
1806 address values and section sizes as bytes, not octets.
1807 (insert_pad) Calculate padding size in octets, and adjust "dot"
1809 (size_input_section) Always adjust "dot" by bytes, not octets.
1810 (lang_check_section_addresses, lang_do_assignments) Adjust
1811 "dot" by bytes, not octets. Use the larger of the directive size
1812 or octets_per_byte for the number of octets actually allocated in
1814 (lang_set_startof) Make sure STARTOF returns a target address.
1815 (lang_one_common) Record size changes in octets.
1816 (lang_abs_symbol_at_end_of) Section end symbol's value is
1817 recorded in target bytes.
1818 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
1819 to be clear about behavior when an octet is smaller than one byte.
1821 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1823 * ldcref.c (output_cref): Don't pass message strings to printf
1827 * ldmisc.c (vfinfo): Same here.
1830 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1832 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1833 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1834 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1835 Add missing NULL initialisers, and comments.
1837 * testsuite/ld-srec/sr3.cc (__rethrow): New.
1839 2000-01-21 Nick Clifton <nickc@cygnus.com>
1841 * ldlang.c (lang_size_sections): Fix typo in comment.
1843 2000-01-18 H.J. Lu <hjl@gnu.org>
1845 * ldlang.c (lang_size_sections): Also update the current
1846 address of a region if the SEC_NEVER_LOAD bit is not set.
1848 2000-01-10 Philip Blundell <pb@futuretv.com>
1850 * configure.tgt (arm*-*-conix*): New target.
1852 2000-01-07 Nick Clifton <nickc@cygnus.com>
1854 * ld.texinfo (Options): Remind users to preceed linker command
1855 line switches with -Wl, (or whatever is appropriate) if it is
1856 being invoked by a comnpiler driver program.
1857 Fix description of the behaviour of the -n command line switch.
1859 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
1861 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
1863 * ld.texinfo (EXCLUDE_FILE): Update documentation.
1864 * ldgram.y (wildcard_spec): Support a list of excluded_files.
1865 (exclude_name_list): New.
1866 ldlang.c (walk_wild_section): Support list of excluded files.
1867 (print_wild_statement): Likewise.
1868 (lang_add_wild): Likewise.
1869 * ldlang.h (lang_wild_statement_type): Likewise.
1870 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
1872 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1874 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
1875 (process_def_file): Use.
1876 (pe_dll_compat_implib): New variable.
1879 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
1880 pe_dll_compat_implib.
1882 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
1883 compat-implib options.
1884 (gld_${EMULATION_NAME}_list_options): List new options.
1885 (gld_${EMULATION_NAME}_parse_args): Handle.
1887 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
1890 * deffilep.y (opt_name): Allow "." in name.
1892 For older changes see ChangeLog-9899
1898 version-control: never