1 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
4 enabling search for libmilli. On a relocatable link, make .text
6 (LDEMUL_AFTER_PARSE): Define.
7 (hppaelf_finish): Correct spelling of relocatable in comments.
9 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
10 rummage through the script for sections on the unique list.
11 Correct length of strncmp for ".note".
12 (gld${EMULATION_NAME}_check_needed): Rearrange function.
14 * ldlang.c (unique_section_list): New var.
15 (unique_section_p): New function.
16 (walk_wild_section): Don't match sections on unique_section_list.
17 (lang_add_unique): New function.
18 Correct spelling of relocatable in comments.
20 * ldlang.h (struct unique_sections): Declare.
21 (unique_section_list): Declare.
22 (unique_section_p): Declare.
23 (lang_add_unique): Declare.
25 * lexsup.c (ld_options): Allow --unique to take an optional arg.
26 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
28 * ld.texinfo (--unique): Update.
30 2001-01-13 Nick Clifton <nickc@redhat.com>
32 * lexsup.c (parse_args): Remove spurious white space.
34 2001-01-12 Nick Clifton <nickc@redhat.com>
36 * lexsup.c (parse_args): Update copyright date.
38 2001-01-12 Philip Blundell <pb@futuretv.com>
40 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
42 2001-01-10 Kazu Hirata <kazu@hxi.com>
44 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
45 * scripttempl/h8300h.sc: Fix formatting.
46 * scripttempl/h8300s.sc: Likewise.
47 * scripttempl/h8500.sc: Likewise.
48 * scripttempl/h8500b.sc: Likewise.
49 * scripttempl/h8500c.sc: Likewise.
50 * scripttempl/h8500m.sc: Likewise.
51 * scripttempl/h8500s.sc: Likewise.
53 2000-01-07 David O'Brien <obrien@BSDi.com>
55 * emultempl/elf32.em: Only perform Linux ld hints processing when
58 2001-01-07 Philip Blundell <philb@gnu.org>
60 * ld.texinfo (Bug Reporting): Update email address for reports.
62 2000-12-31 Nick Clifton <nickc@redhat.com>
64 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
65 options by checking for a return value of '?' not -1.
67 2000-12-28 Nick Clifton <nickc@redhat.com>
69 * lexsup.c (struct ld_option): Add new enum value:
71 (ld_options[]): Change -omagic, -output and -oformat options
72 to be EXACTLY_TWO_DASHES.
73 (OUTPUT_COUNT): Use ARRAY_SIZE.
74 (parse_args): Change parameter 'argc' to unsigned.
75 Place EXACTLY_TWO_DASHES options into new really_longopts
77 If getopt_long_only fails, try calling getopt_long using the
78 really_longopts array.
79 (help): Print a double dash for both EXACTLY_TWO_DASHES and
82 * ldlex.h: Fix prototype of parse_args.
84 * ld.texinfo: Document that long options starting with 'o'
85 must be preceeded by two dashes. Change example of a single
86 dashed long option from -oformat to -trace-symbol.
88 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
90 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
91 (longopts[]): New --no-default-excludes option.
92 (gld_${EMULATION_NAME}_list_options): Document.
93 (gld_${EMULATION_NAME}_parse_args): Handle.
95 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
97 * ldlang.c (new_stat): Revert the last beautification with "innocent"
98 whitespace, it breaks the K&R C preprocessor.
100 2000-12-11 DJ Delorie <dj@redhat.com>
102 * ld.texinfo: Add notes about --whole-archive and gcc.
104 2000-11-18 Fred Fish <fnf@be.com>
106 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
107 (ld_options): Entry for --allow-shlib-undefined.
108 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
109 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
111 * ld.texinfo: Document new command line switch.
113 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
115 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
116 .fixup is actually read/write.
117 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
118 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
119 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
121 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
123 * NEWS: Add note about x86_64 architecture.
125 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
127 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
128 Set DWARF2 sections to a VMA of zero.
130 2000-12-01 Joel Sherrill <joel@OARcorp.com>
132 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
134 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
135 (sparc*-*-rtems*): Switched from a.out to ELF.
137 2000-11-30 Jan Hubicka <jh@suse.cz>
139 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
140 (eelf_x86_64.c): New.
141 * Makefile.in: Regenerate.
142 * configure.tgt: Add support for x86_64-*-linux-gnu*.
143 * emulparams/elf_x86_64.sh: New.
145 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
147 * emulparams/crislinux.sh (ENTRY): Change back to _start.
148 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
150 * scripttempl/crisaout.sc: Change all RELOCATING not related to
151 merging non-a.out sections into CONSTRUCTING.
153 2000-11-28 Nick Clifton <nickc@redhat.com>
155 * ld.1 (COPYING): Mention that the GNU Free Documentation
156 License is present in the sources, but not the output, and
157 also available from the GNU website.
158 (GNU Free Documentation License): Comment out this section.
160 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
162 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
165 2000-11-25 David O'Brien <obrien@FreeBSD.org>
167 * ld.1: Remove old date so it does not give the impression the manpage
170 2000-11-24 Nick Clifton <nickc@redhat.com>
172 * configure.tgt (xscale-coff): Add target.
173 (xscale-elf): Add target.
175 2000-11-24 Fred Fish <fnf@be.com>
177 * ldmain.c (main): Remove redundant init of config.make_executable
180 2000-11-15 Richard Henderson <rth@redhat.com>
182 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
184 2000-11-14 Kazu Hirata <kazu@hxi.com>
186 * scripttempl/h8300.sc: Fix formatting.
187 * scripttempl/h8300h.sc: Likewise.
188 * scripttempl/h8300s.sc: Likewise.
190 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
192 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
194 2000-11-09 Philip Blundell <pb@futuretv.com>
196 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
197 around orphan sections whose names can be represented in C.
199 2000-11-07 Jim Wilson <wilson@redhat.com>
201 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
202 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
204 2000-11-06 Nick Clifton <nickc@redhat.com>
206 * ld.texinfo: Add GNU Free Documentation License.
207 * ldint.texinfo: Add GNU Free Documentation License.
208 * ld.1: Add GNU Free Documentation License.
210 2000-11-05 Alan Modra <alan@linuxcare.com.au>
212 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
213 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
215 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
216 Move 2000-11-02 Makefile.in changes to this file.
217 * Makefile.in: Regenerate.
219 2000-11-03 Nick Clifton <nickc@redhat.com>
221 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
222 constructors and destructors.
223 * scripttempl/h8300h.sc: Ditto.
224 * scripttempl/h8300s.sc: Ditto.
225 * scripttempl/h8500.sc: Ditto.
226 * scripttempl/h8500b.sc: Ditto.
227 * scripttempl/h8500c.sc: Ditto.
228 * scripttempl/h8500m.sc: Ditto.
229 * scripttempl/h8500s.sc: Ditto.
230 * scripttempl/v850.sc: Ditto.
231 * scripttempl/w65.sc: Ditto.
232 * scripttempl/z8000.sc: Ditto.
234 2000-11-02 Per Lundberg <plundis@chaosdev.org>
236 * Makefile.in (e_i386_chaos.c): New rule.
237 (ALL_EMULATIONS): Added e_i386_chaos.o.
238 * emulparams/elf_i386_chaos.sh: New file.
239 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
241 2000-10-20 Jakub Jelinek <jakub@redhat.com>
243 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
244 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
245 Fix sed invocation, so that it coped with '/' in Solaris 64bit
247 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
249 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
251 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
252 for consecutive sections.
254 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
256 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
258 * ld.texinfo: Added notes about this new option.
260 2000-10-16 Nick Clifton <nickc@redhat.com>
262 * emultempl/pe.em (_after_open): Add tests of return values from
263 bfd functions. Emit appropriate error messages if necessary.
265 2000-10-13 Nick Clifton <nickc@redhat.com>
267 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
268 local variables - they are not used, but leave in the call to
269 bfd_canonicalize_symtab.
270 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
271 pe_dll_search_prefix.
273 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
275 * emultempl/pe.em (pe_dll_search_prefix): New variable,
276 (longopts): New --dll-search-prefix option.
277 (gld_${EMULATION_NAME}_list_options): Document.
278 (gld_${EMULATION_NAME}_parse_args): Handle.
279 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
280 dynamically, search for a dll named '<prefix><basename>.dll'
281 in preference to 'lib<basename>.dll' if --dll-search-prefix
284 2000-10-12 Alan Modra <alan@linuxcare.com.au>
286 * ldlang.c (section_already_linked): Set kept_section instead of
289 2000-10-10 Kazu Hirata <kazu@hxi.com>
291 * deffile.h: Fix formatting.
292 * lexsup.c: Likewise.
295 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
297 * pe-dll.c (make_one): Do not generate code thunk for DATA
299 (process_def_file): deduce DATA flag for auto-export sumbols.
301 2000-10-09 Kazu Hirata <kazu@hxi.com>
303 * ld.h: Fix formatting.
304 * ldcref.c: Likewise.
305 * ldctor.h: Likewise.
306 * ldemul.c: Likewise.
307 * ldemul.h: Likewise.
310 * ldfile.c: Likewise.
311 * ldfile.h: Likewise.
312 * ldlang.c: Likewise.
313 * ldlang.h: Likewise.
314 * ldmain.c: Likewise.
315 * pe-dll.c: Likewise.
317 * pe-dll.c: Revert some formatting fixes.
319 2000-10-08 Kazu Hirata <kazu@hxi.com>
321 * pe-dll.c: Fix formatting.
323 2000-10-05 Kazu Hirata <kazu@hxi.com>
325 * ldlang.c: Fix formatting.
327 2000-10-03 DJ Delorie <dj@redhat.com>
329 * pe-dll.c (fill_edata): initialize entire block
330 (make_one): fill in correct section.
332 2000-10-03 Kazu Hirata <kazu@hxi.com>
334 * ldexp.c: Fix formatting.
336 2000-10-02 DJ Delorie <dj@redhat.com>
338 * emultempl/pe.em (gld_*_after_open): detect case where there two
339 import libraries for same dll; rename one to ensure proper link
342 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
344 (generate_edata): fix typo
346 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
348 * scripttempl/crisaout.sc (ENTRY): Now __start.
349 (.text): Add default setting for __start.
350 Remove CONSTRUCTORS handling.
351 (/DISCARD/): Add .gnu.warning.*.
352 * emulparams/crislinux.sh (ENTRY): Now __start.
353 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
354 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
355 (ENTRY): Now __start.
356 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
357 (EXECUTABLE_SYMBOLS): Add default setting for __start.
359 2000-09-29 Kazu Hirata <kazu@hxi.com>
361 * deffile.h: Fix formatting.
363 * ldcref.c: Likewise.
364 * ldctor.c: Likewise.
365 * ldctor.h: Likewise.
366 * ldemul.c: Likewise.
367 * ldemul.h: Likewise.
370 * ldfile.c: Likewise.
371 * ldfile.h: Likewise.
372 * ldlang.c: Likewise.
373 * ldlang.h: Likewise.
374 * lexsup.c: Likewise.
376 * pe-dll.c: Likewise.
378 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
380 * pe-dll.c (process_def_file): Uninitialized data wasn't
381 exported with --export-all-symbols switch.
383 2000-09-28 DJ Delorie <dj@redhat.com>
385 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
386 noname work properly.
388 2000-09-28 Alan Modra <alan@linuxcare.com.au>
390 * ld.texinfo (HPPA ELF32): New section.
392 * emultempl/hppaelf.em (group_size): New.
393 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
394 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
395 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
396 options to prevent abbreviations matching.
397 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
398 (PARSE_AND_LIST_ARGS_CASES): Handle it.
400 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
402 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
403 on the m68*-*-elf target. Make it support COFF input objects.
405 2000-09-21 Kazu Hirata <kazu@hxi.com>
407 * ldmain.c: Fix formatting.
408 * ldmisc.c: Likewise.
410 * ldwrite.c: Likewise.
412 2000-09-21 Alan Modra <alan@linuxcare.com.au>
414 * ldwrite.c (clone_section): Silence gcc warnings.
416 2000-09-20 Alan Modra <alan@linuxcare.com.au>
418 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
419 out of memory failure.
421 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
422 (clone_section): Handle out of memory failures. Rename var to
423 avoid c++ reserved word.
425 2000-09-18 Alan Modra <alan@linuxcare.com.au>
427 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
428 stub_name param to stub_sec_name.
429 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
431 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
433 * emultempl/m68kelf.em: New file.
434 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
435 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
436 * Makefile.in: Regenerate.
438 2000-09-15 Alan Modra <alan@linuxcare.com.au>
440 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
443 2000-09-13 Nick Clifton <nickc@redhat.com>
445 * ldmain.c (multiple_definition): Disable relaxation if
446 multiple symbol definitions are encountered - otherwise the
447 linker could abort with an assertion failure.
449 2000-09-10 Nick Clifton <nickc@redhat.com>
451 * mri.c: Fix formatting.
453 2000-09-07 H.J. Lu <hjl@gnu.org>
455 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
456 * configure: Rebuild.
458 2000-09-07 H.J. Lu <hjl@gnu.org>
460 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
461 * Makefile.in: Rebuild.
463 2000-09-07 Alan Modra <alan@linuxcare.com.au>
465 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
466 broken list handling. Create __start_SECNAME and __stop_SECNAME
467 when no place-holder. Add some comments. Test both SEC_CODE and
468 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
469 Handle case where no output section statement created.
471 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
473 * configure.tgt (sh-*-linux*): Added.
474 * Makefile.am: Added eshelf_linux and eshlelf_linux.
475 * Makefile.in: Rebuilt.
476 * emulparams/shelf_linux.sh: New file.
477 * emulparams/shlelf_linux.sh: New file.
479 2000-09-06 Alan Modra <alan@linuxcare.com.au>
481 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
482 try shuffling sections when the orphan happens to be the place
483 holder. Keep count of unique section names generated so we speed
484 the search for a new name.
486 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
488 * configure: Rebuilt with new libtool.m4.
490 2000-09-05 Nick Clifton <nickc@redhat.com>
492 * Makefile.in: Regenerate.
493 * aclocal.m4: Regenerate.
494 * configure: Regenerate.
495 * config.in: Regenerate.
496 * po/ld.pot: Regenerate.
498 * ldint.texinfo: Remove CVS revision marker - it foils local
501 * emultempl/ticoff.em: Remove extraneous comma.
503 2000-09-05 Alan Modra <alan@linuxcare.com.au>
505 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
506 to stub section flags.
507 (hppa_for_each_input_file_wrapper): New.
508 (hppa_lang_for_each_input_file): New.
509 (lang_for_each_input_file): Define to call above.
510 (multi_subspace): New.
511 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
512 (PARSE_AND_LIST_PROLOGUE): Define.
513 (PARSE_AND_LIST_LONGOPTS): Define.
514 (PARSE_AND_LIST_OPTIONS): Define.
515 (PARSE_AND_LIST_ARGS_CASES): Define.
516 (hppaelf_finish): Call elf32_hppa_set_gp.
517 (hppaelf_set_output_arch): Remove.
518 (LDEMUL_SET_OUTPUT_ARCH): Remove.
520 * emulparams/hppalinux.sh (ELFSIZE): Define.
522 (OTHER_READONLY_SECTIONS): Define.
524 (GENERATE_SHLIB_SCRIPT): Define.
526 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
527 to const throughout. Change `void *' to `PTR' throughout.
528 (lang_memory_default): Function is local to file, add `static'.
530 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
531 (ehppalinux.c): Likewise.
532 (earmelf.c): Likewise.
533 (earmelf_linux.c): Likewise.
534 (earmelf_linux26.c): Likewise.
535 * Makefile.in: Regenerate.
537 * ld.h (ld_config_type): Add unique_orphan_sections.
538 * lexsup.c (OPTION_UNIQUE): Define.
539 (ld_options): Add "--unique".
540 (parse_args): Handle it.
541 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
542 search for an existing output section if unique_orphan_sections is
543 set. Make use of bfd_get_unique_section_name rather than
544 duplicating code here.
545 * ld.texinfo: Describe --unique.
547 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
548 optional arg to split-by-file.
549 (parse_args): Handle them.
550 * ld.texinfo: Update description of these options.
551 * ldwrite.c (clone_section): Pass in the section name. Replace
552 local code with bfd_get_unique_section_name.
553 (split_sections): Tidy code and comments. Use a list traversal
554 more appropriate to the list construction. Handle cooked section
555 sizes. Split when split_by_reloc reached rather than exceeded.
556 Track section size and split when split_by_file reached. Fix
557 link_order_tail (even though it's not used).
558 (ldwrite): Modify condition for calling split_sections to suit
559 changed split_by_reloc and split_by_file.
560 * ldmain.c (main): Init config.split_by_reloc and
561 config.split_by_file to -1.
562 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
563 Change split_by_file to bfd_size_type.
565 2000-09-02 Nick Clifton <nickc@redhat.com>
567 * configure.in: Increase version number to 2.10.91.
568 * NEWS: Mention new ability to support removal of duplicate DWARF2
570 * configure: Regenerate.
571 * aclocal.m4: Regenerate.
572 * config.in: Regenerate.
574 2000-09-02 Daniel Berlin <dberlin@redhat.com>
576 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
578 * scripttempl/elf32var.sc: Ditto.
579 * scripttempl/elfd10v.sc: Ditto.
580 * scripttempl/elfd30v.sc: Ditto.
581 * scripttempl/elfi370.sc: Ditto.
582 * scripttempl/elfm68hc11.sc: Ditto.
583 * scripttempl/elfm68hc12.sc: Ditto.
584 * scripttempl/elfi386beos.sc: Ditto.
585 * scripttempl/v850.sc: Ditto.
587 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
589 * acinclude.m4: Include libtool and gettext macros from the
591 * aclocal.m4, configure: Rebuilt.
593 2000-08-25 Nick Clifton <nickc@redhat.com>
595 * ldlang.c (open_output): When choosing the target for a
596 particular endianness, do nothing if the target is not
599 2000-08-25 H.J. Lu <hjl@gnu.org>
601 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
602 check -rpath nor LD_RUN_PATH for cross link.
603 * ld.texinfo: Document the change.
605 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
607 * NEWS: Mention support for CRIS.
609 2000-08-23 H.J. Lu <hjl@gnu.org>
611 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
612 the current runpath list from bfd_elf_get_runpath_list ()
615 2000-08-22 H.J. Lu <hjl@gnu.org>
617 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
618 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
619 LD_LIBRARY_PATH for native linker. Display the needed DSO if
620 trace_file_tries is non-zero.
621 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
622 if trace_file_tries is non-zero.
624 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
627 2000-08-14 Jason Eckhardt <jle@cygnus.com>
629 * NEWS: Mention i860 support.
631 2000-08-14 Andreas Schwab <schwab@suse.de>
633 * scripttempl/elf.sc: Fix last change to use correct comment
636 2000-08-10 Geoff Keating <geoffk@cygnus.com>
638 * scripttempl/elf.sc: Add a comment giving the correspondence
639 between sections, per-datum sections, and linkonce sections. Make
640 the comment true even for .bss, .sdata, .sdata2, .sbss, and
643 2000-08-10 Jason Eckhardt <jle@cygnus.com>
645 * emulparams/elf32_i860.sh: New file.
646 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
647 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
648 (eelf32_i860.c): New rule.
649 * Makefile.in: Regenerate.
651 2000-08-10 Nick Clifton <nickc@cygnus.com>
653 * emulparams/mipspe.sh (ENTRY): Add definition.
655 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
657 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
660 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
662 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
663 the final size of .bss section.
664 * scripttempl/elfm68hc12.sc: Likewise.
666 2000-08-04 Alan Modra <alan@linuxcare.com.au>
668 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
669 gld${EMULATION_NAME}_parse_args for consistency. Combine
670 lastoptind and prevoptind vars, and keep track of last optind.
671 (gld_${EMULATION_NAME}_list_options): Rename to
672 gld${EMULATION_NAME}_list_options.
674 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
676 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
677 (i586-sco-sysv5uw7.1.0).
679 2000-07-27 H.J. Lu <hjl@gnu.org>
681 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
682 (PARSE_AND_LIST_PROLOGUE): New.
683 (PARSE_AND_LIST_LONGOPTS): Likewise.
684 (PARSE_AND_LIST_OPTIONS): Likewise.
685 (PARSE_AND_LIST_ARGS_CASES): Likewise.
686 (PARSE_AND_LIST_EPILOGUE): Likewise.
688 2000-07-28 Alan Modra <alan@linuxcare.com.au>
690 * emultempl/armelf.em: Elide functions common to elf32.em,
691 ie. most of the file.
692 (arm_elf_after_open): New. Do arm specific things then call
693 gld${EMULATION_NAME}_after_open.
694 (arm_elf_before_allocation): New. Call
695 gld${EMULATION_NAME}_before_allocation then do arm specifics.
696 (PARSE_AND_LIST_PROLOGUE): Define.
697 (PARSE_AND_LIST_SHORTOPTS): Define.
698 (PARSE_AND_LIST_LONGOPTS): Define.
699 (PARSE_AND_LIST_OPTIONS): Define.
700 (PARSE_AND_LIST_ARGS_CASES): Define.
701 (LDEMUL_AFTER_OPEN): Define.
702 (LDEMUL_BEFORE_ALLOCATION): Define.
703 (LDEMUL_BEFORE_PARSE): Define.
704 (LDEMUL_FINISH): Define.
706 * emultempl/hppaelf.em: Similarly zap most of this file.
707 (hppaelf_add_stub_section): Prototype.
708 (hppaelf_layaout_sections_again): Prototype.
709 (hook_in_stub): Prototype.
710 (LDEMUL_SET_OUTPUT_ARCH): Define.
711 (LDEMUL_FINISH): Define.
712 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
714 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
715 (EXTRA_EM_FILE): New.
716 * emulparams/armelf_linux.sh: Likewise.
717 * emulparams/armelf_linux26.sh: Likewise.
718 * emulparams/hppalinux.sh: Likewise.
719 * emulparams/hppaelf.sh: Likewise.
722 * emultempl/elf32.em: Fix formatting.
723 (EXTRA_EM_FILE): Source it.
724 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
725 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
726 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
727 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
728 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
729 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
730 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
731 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
732 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
733 allow functions in this file to be overridden.
734 (PARSE_AND_LIST_SHORTOPTS): Handle it.
736 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
738 * emultempl/elf32.em: Reorganize file.
740 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
742 * emulparams/elf64alpha.sh: Implement "-taso" emulation
743 specific option to fit 64-bit executable in the lower
744 31-bit address range. This is done by changing start
745 address of .interp (the very first section of executable)
746 and then setting EF_ALPHA_32BIT elf header flag.
748 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
750 * emultempl/m68kcoff.em: New file.
751 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
752 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
754 * Makefile.in: Regenerate.
756 2000-07-20 H.J. Lu <hjl@gnu.org>
758 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
759 and "disable-new-dtags" to stop getopt from treating -d/-e as
760 abbreviations for these options.
762 2000-07-20 H.J. Lu <hjl@gnu.org>
764 * ld.texinfo: Add documentation for --disable-new-dtags and
767 * ldmain.c (main): Initialize link_info.new_dtags to false.
769 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
770 --disable-new-dtags and --enable-new-dtags.
771 (gld_${EMULATION_NAME}_list_options): Likewise.
773 2000-07-05 Kenneth Block <krblock@computer.org>
775 * ld/lexsup.c: Add optional style to demangle switch
776 * ld/ld.texinfo: Document optional style to demangle switch.
778 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
780 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
782 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
783 Regenerate dependencies.
784 * Makefile.in: Rebuild.
785 * configure.tgt (cris-*-*): New target.
786 * emulparams/crisaout.sh, emulparams/criself.sh,
787 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
788 * po/POTFILES.in, po/ld.pot: Regenerate.
790 2000-07-20 H.J. Lu <hjl@gnu.org>
792 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
793 Print out ignored -z options.
795 2000-07-19 H.J. Lu <hjl@gnu.org>
797 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
798 (PARSE_AND_LIST_PROLOGUE): New.
799 (PARSE_AND_LIST_LONGOPTS): Likewise.
800 (PARSE_AND_LIST_OPTIONS): Likewise.
801 (PARSE_AND_LIST_ARGS_CASES): Likewise.
803 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
805 * lexsup.c (ld_options): Comment out 'z'.
806 (parse_args): Likewise.
808 * emultempl/elf32.em: Include "elf/common.h".
809 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
811 (gld_${EMULATION_NAME}_list_options): Likewise.
813 * ld.texinfo: Add documentation for the recognized -z options.
815 2000-07-19 H.J. Lu <hjl@gnu.org>
817 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
818 bfd_elf_set_dt_needed_soname ().
820 2000-07-18 DJ Delorie <dj@cygnus.com>
822 * pe-dll.c (pe_dll_id_target): check object target name also
824 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
826 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
827 ${INIT_END} if relocating.
828 (.fini): Likewise ${FINI_START} and ${FINI_END}.
830 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
832 * src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
833 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
834 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
835 errors introduced by the old dynamic lib search order.
837 2000-07-17 DJ Delorie <dj@cygnus.com>
839 * pe-dll.c (process_def_file): auto-export data items also
840 (pe_process_import_defs): also see if _imp_ form needed
842 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
844 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
845 for dll import libraries
847 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
849 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
850 gcc 2.95.2 and later.
852 2000-07-11 Kazu Hirata <kazu@hxi.com>
854 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
857 2000-07-10 Alan Modra <alan@linuxcare.com.au>
859 * ldemul.h (struct lang_input_statement_struct): Remove forward
861 (struct search_dirs): Likewise.
862 * ldfile.h (struct lang_input_statement_struct): Likewise.
863 Protect file from multiple inclusion.
864 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
865 declaration from macro to file scope.
867 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
868 * ldgram.y: Likewise here.
869 * ldlang.c: And here.
870 * ldmain.c: And here.
871 * mpw-elfmips.c: And here.
872 * mpw-eppcmac.c: And here.
873 * emultempl/aix.em: And here.
874 * emultempl/armcoff.em: And here.
875 * emultempl/armelf.em: And here.
876 * emultempl/armelf_oabi.em: And here.
877 * emultempl/beos.em: And here.
878 * emultempl/elf32.em: And here.
879 * emultempl/hppaelf.em: And here.
880 * emultempl/linux.em: And here.
881 * emultempl/lnk960.em: And here.
882 * emultempl/pe.em: And here.
883 * emultempl/sunos.em: And here.
884 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
885 * mpw-idtmips.c: Ditto.
886 * emultempl/generic.em: Ditto.
887 * emultempl/gld960.em: Ditto.
888 * emultempl/gld960c.em: Ditto.
889 * emultempl/mipsecoff.em: Ditto.
890 * emultempl/ticoff.em: Ditto.
891 * emultempl/vanilla.em: Ditto.
893 * pe-dll.c: Include ldfile.h
894 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
896 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
897 arguments to bfd_elf32_size_dynamic_sections call.
898 (gldelf32ebmip_place_orphan): Add missing arguments to
899 lang_leave_output_section_statement call.
901 2000-07-10 H.J. Lu <hjl@gnu.org>
903 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
906 (compute_dll_image_base): Likewise.
907 (pe_undef_found_sym): Likewise.
908 (pe_undef_cdecl_match): Likewise.
909 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
910 argument "arch" with ATTRIBUTE_UNUSED.
912 2000-07-10 Alan Modra <alan@linuxcare.com.au>
914 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
916 From Ryan Bradetich <rbradetich@uswest.net>
917 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
919 2000-07-09 Alan Modra <alan@linuxcare.com.au>
921 Changes to create multiple linker stubs, positioned immediately
922 before the section where they are required.
923 * emultempl/hppaelf.em: Include elf32-hppa.h.
924 (stub_sec, file_chain): Delete.
925 (hppaelf_create_output_section_statements): Don't make a stub
927 (hook_stub_info): New struct.
928 (hook_in_stub): New function.
929 (hppaelf_add_stub_section): New function.
930 (hppaelf_finish): Do nothing for relocateable links. Modify the
931 call to elf32_hppa_size_stubs. Move code for updating section
933 (hppaelf_layaout_sections_again): ..to here, a new function.
935 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
936 broken list handling. Pass in a pointer to the list.
937 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
939 (hppaelf_before_parse): Prototype.
940 (hppaelf_set_output_arch): Prototype.
941 (hppaelf_create_output_section_statements): Prototype.
942 (hppaelf_delete_padding_statements): Prototype.
943 (hppaelf_finish): Prototype.
946 * emultempl/hppaelf.em: Include ctype.h.
947 (struct orphan_save): New.
948 (gld${EMULATION_NAME}_place_orphan): New.
949 (output_rel_find): New.
950 (hppaelf_get_script): Update from elf32.em.
951 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
952 Change emulation_name field to "${EMULATION_NAME}". Add
953 gld${EMULATION_NAME}_place_orphan.
955 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
956 ehppalinux.o, sort it. Regenerate dependencies.
957 (ehppalinux.c): Depend on hppaelf.em
958 * Makefile.in: Regenerate.
960 * configure.tgt: targ_emul=hppalinux for hppa*linux
962 * emulparams/hppalinux.sh: New.
963 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
965 2000-07-08 Alan Modra <alan@linuxcare.com.au>
967 * lexsup.c (parse_args): Copy section name.
969 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
971 * emultempl/pe.em: institute the following search order for
972 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
973 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
974 static lib (libfoo.a) if none of the above are found.
976 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
978 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
979 (longopts): New --{enable,disable}-auto-image-base options.
980 (gld_${EMULATION_NAME}_list_options): Document.
981 (gld_${EMULATION_NAME}_parse): Handle.
982 (strhash): New static function.
983 (compute_dll_image_base): New static function.
984 (gld_${EMULATION_NAME}_set_symbols): Use.
986 2000-07-05 DJ Delorie <dj@redhat.com>
990 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
992 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
993 * emulparams/elf32btsmip.sh: New file.
994 * Makefile.am: Add traditional mips target.
995 * Makefile.in: Rebuild.
997 2000-07-01 H.J. Lu <hjl@gnu.org>
999 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1000 automake to use YLWRAP.
1001 * Makefile.in: Rebuild.
1003 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1005 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1006 (CLEANFILES): Add DEPA.
1007 * Makefile.in: Regenerate.
1009 2000-06-30 Timothy Wall <twall@ppc>
1011 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1012 the page in the upper octet of the address.
1014 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1016 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1018 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1020 * NEWS: arm-elf does --gc-sections too.
1022 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1024 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1026 * Makefile.in: Regenerate.
1028 2000-06-21 H.J. Lu <hjl@gnu.org>
1030 * Makefile.am: Rebuild dependency.
1031 * Makefile.in: Rebuild.
1033 2000-06-20 H.J. Lu <hjl@gnu.org>
1035 * Makefile.am: Rebuild dependency.
1036 * Makefile.in: Rebuild.
1038 2000-06-20 Timothy Wall <twall@cygnus.com>
1040 * scripttempl/tic54xcoff.sc: New.
1041 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1042 * gen-doc.texi: Add flag for TI COFF.
1043 * ld.texinfo: Add documentation for TI COFF handling switches.
1044 * emultempl/ticoff.em: New. TI COFF handling.
1045 * configure.tgt: Add tic54x target.
1046 * Makefile.am: Add tic54x target.
1047 * Makefile.in: Ditto.
1049 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1051 * ldmain.c (set_scripts_dir): Correct pointer comparison when
1052 checking for backslashes.
1054 2000-06-19 Alan Modra <alan@linuxcare.com.au>
1056 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1058 2000-06-18 Alan Modra <alan@linuxcare.com.au>
1060 * NEWS: Update list of targets supporting --gc-sections.
1062 * scripttempl/elf.sc: KEEP .eh_frame contents.
1063 * scripttempl/elfd30v.sc: Same here.
1065 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1067 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1069 * Makefile.in: Rebuild.
1070 * configure.tgt: Recognize m68hc12 and m68hc11.
1071 * scripttempl/elfm68hc12.sc: New file.
1072 * emulparams/m68hc12elfb: New emulation.
1073 * emulparams/m68hc12elf: New emulation.
1074 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
1075 (includes a memory.x script to define the ROM and RAM banks).
1076 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1077 New configuration files for support of Motorola 68hc11
1079 2000-06-15 Alan Modra <alan@linuxcare.com.au>
1081 * ldmain.c (main): Only change SEC_READONLY for final link.
1083 2000-06-13 H.J. Lu <hjl@gnu.org>
1085 * configure: Regenerate.
1087 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1089 * configure.in (VERSION): Update to show this is the CVS mainline.
1091 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1093 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1094 input objects to be ECOFF.
1095 (check_sections): einfo takes %B, not %P, to print a BFD name.
1097 2000-06-05 Michael Matz <matz@ifh.de>
1099 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1102 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1104 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
1106 * emulparams/avr1200.sh (STACK): Define as 0.
1107 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1108 * emulparams/avr4433.sh (STACK): Likewise.
1109 * emulparams/avr44x4.sh (STACK): Likewise.
1110 * emulparams/avr85xx.sh (STACK): Likewise.
1111 * emulparams/avrmega103.sh (STACK): Likewise.
1112 * emulparams/avrmega161.sh (STACK): Likewise.
1113 * emulparams/avrmega603.sh (STACK): Likewise.
1114 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1115 (__stack): Define from ${STACK} for main().
1117 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1119 * Makefile.am: Update dependencies with "make dep-am"
1120 * Makefile.in: Regenerate.
1122 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1124 * ldmain.c: Include filenames.h.
1125 (set_scripts_dir): Support backslashes in program name.
1127 2000-05-22 Igor Shevlyakov <igor@windriver.com>
1129 * ldmain.c (main): When deciding if ".text" section should be
1130 read-only, don't forget to reset SEC_READONLY because it
1131 could be already set.
1133 2000-05-22 Thomas de Lellis <tdel@windriver.com>
1135 * ld.1: Add documentation for new command line option:
1136 --section-start <sectionname>=<sectionorg>
1137 This is a generic version of -Ttext etc. which accepts
1138 any section name as a parameter instead of just text/data/
1140 * ld.texinfo: More docs.
1142 * lexsup.c: (parse_args): Recognize new command line option.
1143 (ld_options): Add new option.
1145 2000-05-18 H.J. Lu <hjl@gnu.org>
1147 * lexsup.c (parse_args): `i' == `r', not `q'.
1149 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
1151 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1153 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1154 Rick Gorton <gorton@scrugs.lkg.dec.com>
1156 Add support for '-q' == '--emit-relocs' switch.
1157 * ldmain.c (main): Default to false.
1158 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1159 * NEWS: Describe the emitrelocations switch.
1160 * ld.texinfo: Describe the emitrelocations switch.
1162 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1164 * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search
1165 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1166 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1169 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1171 * lexsup.c (parse_args): Update the year in the copyright notice.
1173 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1175 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1176 Replace defines with those from intl/libgettext.h to quieten gcc
1179 2000-05-10 H.J. Lu <hjl@gnu.org>
1181 * ldlang.c (open_input_bfds): Don't load the same file within
1182 a group again if the whole archive has been loaded already.
1184 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1186 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1187 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1190 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1192 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1194 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1195 host "ia64-*-linux-gnu*".
1197 2000-04-29 Andreas Jaeger <aj@suse.de>
1199 * ld.h: Correctly check GCC version.
1201 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1203 * Makefile.am: Add PA64 support. Add missing dependencies for
1205 * Makefile.in: Rebuilt.
1206 * configure.tgt: Add PA64 support (currently disabled).
1208 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1210 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1211 (output_rel_find): New function.
1212 (hold_section, hold_use): Delete.
1213 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1214 hold_interp): Make local to place_orphan.
1215 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1216 rather than place_section to find possible previous use of orphan.
1217 Similarly find the place-holder output sections. Use returned
1218 value from lang_enter_output_section_statement rather than calling
1219 lang_output_section_statement_lookup.
1220 * emultempl/armelf.em: Same here.
1221 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1223 * ldlang.c (lang_enter_output_section_statement): Return output
1225 * ldlang.h (lang_enter_output_section_statement): Change
1228 * ldlang.h (lang_output_section_statement): Export it.
1229 * ldlang.c (lang_output_section_statement): Ditto.
1231 2000-04-24 Nick Clifton <nickc@cygnus.com>
1233 * ld.texinfo (Output Section Data): Add note that section data
1234 commands cannot appear outside of section directives.
1236 2000-04-2 Matthew Green <mrg@cygnus.com>
1238 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1240 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1241 David Mosberger <davidm@hpl.hp.com>
1243 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1244 (eelf64_ia64.c): New rule.
1245 * Makefile.in: Rebuild.
1246 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1247 * emulparams/elf64_ia64.sh: New file.
1249 2000-04-21 Richard Henderson <rth@cygnus.com>
1251 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1253 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1255 * dep-in.sed: Match space at start of file name, not at end.
1257 2000-04-18 H.J. Lu <hjl@gnu.org>
1259 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1260 lang_leave_output_section_statement () after calling
1261 lang_enter_output_section_statement ().
1262 * emultempl/armelf.em: Likewise.
1264 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1266 * emultempl/elf32.em (struct orphan_save): Add section field.
1267 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1268 better order, and place first orphan section as we did before the
1269 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1270 Don't call make_bfd_section here, let wild_doit do the job for us.
1271 Don't build a statement list when we'll only throw it away.
1272 * emultempl/armelf.em: Ditto.
1273 * emultempl/pe.em: Similarly.
1275 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1277 * scripttempl/elfppc.sc: Remove.
1278 * emulparams/elf32ppc.sh: Use elf.sc.
1279 * emulparams/elf32lppc.sh: Use elf.sc.
1280 * emulparams/elf32ppclinux.sh: Use elf.sc.
1281 * emulparams/elf32ppcsim.sh: New file.
1282 * emulparams/elf32lppcsim.sh: New file.
1283 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1284 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1285 * Makefile.in: Regenerate.
1286 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1288 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1290 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1291 ~SEC_ALLOC sections too. Init start address of debug sections.
1292 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1293 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1294 Also set all relocateable section start addresses.
1296 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1298 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1299 Add new BSS_PLT variable for when .plt need not be contained in
1300 the file. Move _etext so that it is also after .fini, and provide
1301 both etext and _etext with a leading underscore. Mark the start
1304 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1306 * emultempl/elf32.em (struct orphan_save): New.
1307 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1308 hold_interp): Make them struct orphan_save.
1309 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1310 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1311 the end of the relevant section list. Also add associated section
1312 statements to the end of any previous orphan statements.
1313 * emultempl/armelf.em: Similarly.
1314 * emultempl/pe.em: Similarly.
1316 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1318 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1320 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1322 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1323 --enable-build-warnings option.
1324 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1325 * Makefile.in, configure: Re-generate.
1327 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1329 * po/ld.pot: Regenerate.
1331 * lexsup.c (help): Restore translated part of bug string.
1333 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1334 (DEP): Quote when passing vars to sub-make. Add warning message
1336 (DEP1): Rewrite for "gcc -MM".
1337 (CLEANFILES): Add DEP2.
1338 Update dependencies.
1339 * Makefile.in: Regenerate.
1341 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1343 * ld.h: #include "bin-bugs.h"
1344 * lexsup.c (help): Use REPORT_BUGS_TO.
1346 2000-03-27 Denis Chertykov <denisc@overta.ru>
1348 * configure.tgt (avr-*-*): New target support.
1349 * Makefile.am: Likewise.
1350 * scripttempl/elf32avr.sc: New script file.
1351 * emulparams/avr1200.sh: New file.
1352 * emulparams/avr23xx.sh: New file.
1353 * emulparams/avr4433.sh New file.
1354 * emulparams/avr44x4.sh New file.
1355 * emulparams/avr85xx.sh New file.
1356 * emulparams/avrmega103.sh New file.
1357 * emulparams/avrmega161.sh New file.
1358 * emulparams/avrmega603.sh New file.
1359 * Makefile.in: Regenerate.
1361 2000-03-09 Andreas Jaeger <aj@suse.de>
1363 * Makefile.am (check-DEJAGNU): Also unset LANG.
1364 * Makefile.in: Rebuild.
1366 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1368 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1371 2000-03-02 H.J. Lu <hjl@gnu.org>
1373 * emulparams/elf32mcore.sh: Include "getopt.h".
1375 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1377 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1379 2000-03-01 H.J. Lu <hjl@gnu.org>
1381 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1382 * emulparams/shpe.sh: Likewise.
1384 2000-03-01 Nick Clifton <nickc@cygnus.com>
1386 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1387 to unused parameters.
1389 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1390 functions only used by DLL code.
1391 (_place_orphan): Initialise 'dollar'.
1393 2000-03-01 H.J. Lu <hjl@gnu.org>
1395 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1396 indicate if the undefined symbol is a fatal error or not.
1397 Don't delete the output file if "fatal" is false.
1399 2000-02-29 H.J. Lu <hjl@gnu.org>
1401 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1402 Set LC_COLLATE and LC_ALL to null and export them. It is for
1403 sort which expects the C locale.
1404 Add $(LIBS) to all $(HOSTING_LIBS).
1405 * Makefile.in: Rebuild.
1407 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1409 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1410 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1411 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1412 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1413 find_potential_libraries.
1415 2000-02-28 Jim Blandy <jimb@redhat.com>
1417 * ldgram.y (exclude_name_list): Don't require a comma to separate
1418 list entries; the lexer considers commas to be valid part of a
1419 filename, so in something like `foo, bar' the comma is considered
1420 part of the first filename, `foo,'.
1421 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1423 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1425 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1426 host "i[3456]86-*-freebsdelf*".
1428 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1430 * scripttempl/i386go32.sc: Move misplaced semicolons.
1432 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1434 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1435 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1436 (eelf64hppa.c, ehppaelf.c): Remove targets.
1437 * Makefile.in: Rebuild.
1439 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1441 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1442 GNU/Linux/sparc, but keep the default as 32.
1444 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
1445 it default if sparcv9 or sparc64.
1447 2000-02-24 Nick Clifton <nickc@cygnus.com>
1449 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1450 * Makefile.in: Regenerate.
1451 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1453 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1454 find_potential_libraries.
1455 * ldemul.c (ldemul_find_potential_libraries): New function.
1457 * ldfile.c (ldfile_open_file_search): Allow function to be
1459 (ldfile_open_file): Call ldemul_find_potential_libraries.
1460 * ldfile.h: Add prototype for ldfile_open_file_search.
1462 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1464 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1465 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1467 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1468 (gld_X_find_potential_libraries): New function. Search for
1469 libraries called "*.lib".
1471 * scriptempl/pe.sc: Add .pdata section.
1473 2000-02-23 Richard Henderson <rth@cygnus.com>
1475 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1476 Add and use memory regions.
1478 2000-02-23 Linas Vepstas (linas@linas.org)
1480 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1482 * Makefile.am: Add support for Linux/IBM 370.
1483 * configure.tgt: Likewise.
1485 * Makefile.in: Regenerate.
1487 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1489 * ldlang.c (print_input_section, print_data_statement,
1490 print_reloc_statement, print_padding_statement, insert_pad,
1491 size_input_section, lang_check_section_addresses,
1492 lang_size_sections, lang_do_assignments, lang_set_startof,
1493 lang_one_common): Change `opb' to unsigned.
1494 (lang_do_assignments): Also change `size' to unsigned.
1496 2000-02-16 Richard Henderson <rth@cygnus.com>
1498 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1500 2000-02-16 Timothy Wall <twall@cygnus.com>
1502 * mri.c (mri_draw_tree): Add default LMA region argument to call
1503 to lang_leave_output_section_statement.
1504 * ldlang.h: Update prototypes with LMA region arguments.
1505 * ldlang.c (lang_size_sections): Encapsulate region bounds
1506 checking in os_check_region call.
1507 (os_check_region): New function.
1508 (lang_output_section_statement_lookup): Initialize lma_region.
1509 (lang_leave_output_section_statement): Add LMA region argument.
1510 (lang_leave_overlay): Ditto.
1511 * ldgram.y: Handle LMA region syntax.
1512 * ld.texinfo (Output Section Description): Describe LMA region usage.
1513 * emultempl/armelf.em (gld$place_orphan): Add default value for
1514 lma region in call to lang_leave_output_section_statement.
1515 * emultempl/elf32.em (gld$place_orphan): Add default value for
1516 lma region in call to lang_leave_output_section_statement.
1517 * emultempl/pe.em (gld$place_orphan): Add default value for
1518 lma region in call to lang_leave_output_section_statement.
1521 2000-02-04 Timothy Wall <twall@redhat.com>
1523 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1524 octets when calculating section end addresses.
1526 2000-02-04 Timothy Wall <twall@redhat.com>
1528 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1530 2000-02-03 Timothy Wall <twall@redhat.com>
1532 * ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1534 * ld/ldlang.c (print_input_section, print_data_statement,
1535 print_reloc_statement, print_padding_statement): Print target
1536 address values and section sizes as bytes, not octets.
1537 (insert_pad) Calculate padding size in octets, and adjust "dot"
1539 (size_input_section) Always adjust "dot" by bytes, not octets.
1540 (lang_check_section_addresses, lang_do_assignments) Adjust
1541 "dot" by bytes, not octets. Use the larger of the directive size
1542 or octets_per_byte for the number of octets actually allocated in
1544 (lang_set_startof) Make sure STARTOF returns a target address.
1545 (lang_one_common) Record size changes in octets.
1546 (lang_abs_symbol_at_end_of) Section end symbol's value is
1547 recorded in target bytes.
1548 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
1549 to be clear about behavior when an octet is smaller than one byte.
1551 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1553 * ldcref.c (output_cref): Don't pass message strings to printf
1557 * ldmisc.c (vfinfo): Same here.
1560 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1562 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1563 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1564 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1565 Add missing NULL initialisers, and comments.
1567 * testsuite/ld-srec/sr3.cc (__rethrow): New.
1569 2000-01-21 Nick Clifton <nickc@cygnus.com>
1571 * ldlang.c (lang_size_sections): Fix typo in comment.
1573 2000-01-18 H.J. Lu <hjl@gnu.org>
1575 * ldlang.c (lang_size_sections): Also update the current
1576 address of a region if the SEC_NEVER_LOAD bit is not set.
1578 2000-01-10 Philip Blundell <pb@futuretv.com>
1580 * configure.tgt (arm*-*-conix*): New target.
1582 2000-01-07 Nick Clifton <nickc@cygnus.com>
1584 * ld.texinfo (Options): Remind users to preceed linker command
1585 line switches with -Wl, (or whatever is appropriate) if it is
1586 being invoked by a comnpiler driver program.
1587 Fix description of the behaviour of the -n command line switch.
1589 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
1591 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
1593 * ld.texinfo (EXCLUDE_FILE): Update documentation.
1594 * ldgram.y (wildcard_spec): Support a list of excluded_files.
1595 (exclude_name_list): New.
1596 ldlang.c (walk_wild_section): Support list of excluded files.
1597 (print_wild_statement): Likewise.
1598 (lang_add_wild): Likewise.
1599 * ldlang.h (lang_wild_statement_type): Likewise.
1600 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
1602 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1604 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
1605 (process_def_file): Use.
1606 (pe_dll_compat_implib): New variable.
1609 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
1610 pe_dll_compat_implib.
1612 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
1613 compat-implib options.
1614 (gld_${EMULATION_NAME}_list_options): List new options.
1615 (gld_${EMULATION_NAME}_parse_args): Handle.
1617 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
1620 * deffilep.y (opt_name): Allow "." in name.
1622 For older changes see ChangeLog-9899
1628 version-control: never