1 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3 * Makefile.am: Add linux target for S/390.
4 * Makefile.in: Likewise.
5 * configure.host: Likewise.
6 * configure.tgt: Likewise.
7 * emulparams/elf64_s390.sh: New file.
8 * emulparams/elf_s390.sh: New file.
10 2001-02-09 Jakub Jelinek <jakub@redhat.com>
12 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
14 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
16 2001-02-06 Philip Blundell <philb@gnu.org>
18 * Makefile.am: Remove mention of earmelf_linux26.
19 * Makefile.in: Regenerate.
21 2001-02-04 Philip Blundell <philb@gnu.org>
23 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
24 * emulparams/armelf_linux26.sh: Delete.
25 * configure.tgt: Remove mention of armelf_linux26 emulation.
27 2001-02-01 Nick Clifton <nickc@redhat.com>
29 * ld.1: Replace occurances of -oformat with --oformat.
31 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
33 * ldlang.c (lang_leave_overlay): Don't set lma_region when
34 load_base is specified.
36 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
38 * emultempl/elf32.em: Correct spelling in comments and listed
41 2001-01-23 Alan Modra <alan@linuxcare.com.au>
43 * ldlang.c (lang_leave_overlay): Only set lma_region from the
44 default for the first section of a group of overlay sections.
46 2001-01-22 Alan Modra <alan@linuxcare.com.au>
48 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
49 * Makefile.in: Regenerate.
50 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
51 Check for null tool_dir.
53 2001-01-16 Jim Wilson <wilson@redhat.com>
55 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
56 and IA_64.unwind.info.
58 2001-01-16 H.J. Lu <hjl@gnu.org>
60 * ldlang.c (lang_check): Merge the private data only if the
61 input file has contents.
63 2001-01-14 Alan Modra <alan@linuxcare.com.au>
65 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
67 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
68 enabling search for libmilli. On a relocatable link, make .text
70 (LDEMUL_AFTER_PARSE): Define.
71 (hppaelf_finish): Correct spelling of relocatable in comments.
73 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
74 rummage through the script for sections on the unique list.
75 Correct length of strncmp for ".note".
76 (gld${EMULATION_NAME}_check_needed): Rearrange function.
78 * ldlang.c (unique_section_list): New var.
79 (unique_section_p): New function.
80 (walk_wild_section): Don't match sections on unique_section_list.
81 (lang_add_unique): New function.
82 Correct spelling of relocatable in comments.
84 * ldlang.h (struct unique_sections): Declare.
85 (unique_section_list): Declare.
86 (unique_section_p): Declare.
87 (lang_add_unique): Declare.
89 * lexsup.c (ld_options): Allow --unique to take an optional arg.
90 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
92 * ld.texinfo (--unique): Update.
94 2001-01-13 Nick Clifton <nickc@redhat.com>
96 * lexsup.c (parse_args): Remove spurious white space.
98 2001-01-12 Nick Clifton <nickc@redhat.com>
100 * lexsup.c (parse_args): Update copyright date.
102 2001-01-12 Philip Blundell <pb@futuretv.com>
104 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
106 2001-01-10 Kazu Hirata <kazu@hxi.com>
108 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
109 * scripttempl/h8300h.sc: Fix formatting.
110 * scripttempl/h8300s.sc: Likewise.
111 * scripttempl/h8500.sc: Likewise.
112 * scripttempl/h8500b.sc: Likewise.
113 * scripttempl/h8500c.sc: Likewise.
114 * scripttempl/h8500m.sc: Likewise.
115 * scripttempl/h8500s.sc: Likewise.
117 2000-01-07 David O'Brien <obrien@BSDi.com>
119 * emultempl/elf32.em: Only perform Linux ld hints processing when
122 2001-01-07 Philip Blundell <philb@gnu.org>
124 * ld.texinfo (Bug Reporting): Update email address for reports.
126 2000-12-31 Nick Clifton <nickc@redhat.com>
128 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
129 options by checking for a return value of '?' not -1.
131 2000-12-28 Nick Clifton <nickc@redhat.com>
133 * lexsup.c (struct ld_option): Add new enum value:
135 (ld_options[]): Change -omagic, -output and -oformat options
136 to be EXACTLY_TWO_DASHES.
137 (OUTPUT_COUNT): Use ARRAY_SIZE.
138 (parse_args): Change parameter 'argc' to unsigned.
139 Place EXACTLY_TWO_DASHES options into new really_longopts
141 If getopt_long_only fails, try calling getopt_long using the
142 really_longopts array.
143 (help): Print a double dash for both EXACTLY_TWO_DASHES and
146 * ldlex.h: Fix prototype of parse_args.
148 * ld.texinfo: Document that long options starting with 'o'
149 must be preceeded by two dashes. Change example of a single
150 dashed long option from -oformat to -trace-symbol.
152 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
154 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
155 (longopts[]): New --no-default-excludes option.
156 (gld_${EMULATION_NAME}_list_options): Document.
157 (gld_${EMULATION_NAME}_parse_args): Handle.
159 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
161 * ldlang.c (new_stat): Revert the last beautification with "innocent"
162 whitespace, it breaks the K&R C preprocessor.
164 2000-12-11 DJ Delorie <dj@redhat.com>
166 * ld.texinfo: Add notes about --whole-archive and gcc.
168 2000-11-18 Fred Fish <fnf@be.com>
170 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
171 (ld_options): Entry for --allow-shlib-undefined.
172 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
173 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
175 * ld.texinfo: Document new command line switch.
177 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
179 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
180 .fixup is actually read/write.
181 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
182 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
183 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
185 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
187 * NEWS: Add note about x86_64 architecture.
189 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
191 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
192 Set DWARF2 sections to a VMA of zero.
194 2000-12-01 Joel Sherrill <joel@OARcorp.com>
196 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
198 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
199 (sparc*-*-rtems*): Switched from a.out to ELF.
201 2000-11-30 Jan Hubicka <jh@suse.cz>
203 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
204 (eelf_x86_64.c): New.
205 * Makefile.in: Regenerate.
206 * configure.tgt: Add support for x86_64-*-linux-gnu*.
207 * emulparams/elf_x86_64.sh: New.
209 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
211 * emulparams/crislinux.sh (ENTRY): Change back to _start.
212 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
214 * scripttempl/crisaout.sc: Change all RELOCATING not related to
215 merging non-a.out sections into CONSTRUCTING.
217 2000-11-28 Nick Clifton <nickc@redhat.com>
219 * ld.1 (COPYING): Mention that the GNU Free Documentation
220 License is present in the sources, but not the output, and
221 also available from the GNU website.
222 (GNU Free Documentation License): Comment out this section.
224 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
226 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
229 2000-11-25 David O'Brien <obrien@FreeBSD.org>
231 * ld.1: Remove old date so it does not give the impression the manpage
234 2000-11-24 Nick Clifton <nickc@redhat.com>
236 * configure.tgt (xscale-coff): Add target.
237 (xscale-elf): Add target.
239 2000-11-24 Fred Fish <fnf@be.com>
241 * ldmain.c (main): Remove redundant init of config.make_executable
244 2000-11-15 Richard Henderson <rth@redhat.com>
246 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
248 2000-11-14 Kazu Hirata <kazu@hxi.com>
250 * scripttempl/h8300.sc: Fix formatting.
251 * scripttempl/h8300h.sc: Likewise.
252 * scripttempl/h8300s.sc: Likewise.
254 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
256 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
258 2000-11-09 Philip Blundell <pb@futuretv.com>
260 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
261 around orphan sections whose names can be represented in C.
263 2000-11-07 Jim Wilson <wilson@redhat.com>
265 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
266 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
268 2000-11-06 Nick Clifton <nickc@redhat.com>
270 * ld.texinfo: Add GNU Free Documentation License.
271 * ldint.texinfo: Add GNU Free Documentation License.
272 * ld.1: Add GNU Free Documentation License.
274 2000-11-05 Alan Modra <alan@linuxcare.com.au>
276 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
277 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
279 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
280 Move 2000-11-02 Makefile.in changes to this file.
281 * Makefile.in: Regenerate.
283 2000-11-03 Nick Clifton <nickc@redhat.com>
285 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
286 constructors and destructors.
287 * scripttempl/h8300h.sc: Ditto.
288 * scripttempl/h8300s.sc: Ditto.
289 * scripttempl/h8500.sc: Ditto.
290 * scripttempl/h8500b.sc: Ditto.
291 * scripttempl/h8500c.sc: Ditto.
292 * scripttempl/h8500m.sc: Ditto.
293 * scripttempl/h8500s.sc: Ditto.
294 * scripttempl/v850.sc: Ditto.
295 * scripttempl/w65.sc: Ditto.
296 * scripttempl/z8000.sc: Ditto.
298 2000-11-02 Per Lundberg <plundis@chaosdev.org>
300 * Makefile.in (e_i386_chaos.c): New rule.
301 (ALL_EMULATIONS): Added e_i386_chaos.o.
302 * emulparams/elf_i386_chaos.sh: New file.
303 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
305 2000-10-20 Jakub Jelinek <jakub@redhat.com>
307 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
308 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
309 Fix sed invocation, so that it coped with '/' in Solaris 64bit
311 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
313 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
315 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
316 for consecutive sections.
318 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
320 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
322 * ld.texinfo: Added notes about this new option.
324 2000-10-16 Nick Clifton <nickc@redhat.com>
326 * emultempl/pe.em (_after_open): Add tests of return values from
327 bfd functions. Emit appropriate error messages if necessary.
329 2000-10-13 Nick Clifton <nickc@redhat.com>
331 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
332 local variables - they are not used, but leave in the call to
333 bfd_canonicalize_symtab.
334 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
335 pe_dll_search_prefix.
337 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
339 * emultempl/pe.em (pe_dll_search_prefix): New variable,
340 (longopts): New --dll-search-prefix option.
341 (gld_${EMULATION_NAME}_list_options): Document.
342 (gld_${EMULATION_NAME}_parse_args): Handle.
343 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
344 dynamically, search for a dll named '<prefix><basename>.dll'
345 in preference to 'lib<basename>.dll' if --dll-search-prefix
348 2000-10-12 Alan Modra <alan@linuxcare.com.au>
350 * ldlang.c (section_already_linked): Set kept_section instead of
353 2000-10-10 Kazu Hirata <kazu@hxi.com>
355 * deffile.h: Fix formatting.
356 * lexsup.c: Likewise.
359 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
361 * pe-dll.c (make_one): Do not generate code thunk for DATA
363 (process_def_file): deduce DATA flag for auto-export sumbols.
365 2000-10-09 Kazu Hirata <kazu@hxi.com>
367 * ld.h: Fix formatting.
368 * ldcref.c: Likewise.
369 * ldctor.h: Likewise.
370 * ldemul.c: Likewise.
371 * ldemul.h: Likewise.
374 * ldfile.c: Likewise.
375 * ldfile.h: Likewise.
376 * ldlang.c: Likewise.
377 * ldlang.h: Likewise.
378 * ldmain.c: Likewise.
379 * pe-dll.c: Likewise.
381 * pe-dll.c: Revert some formatting fixes.
383 2000-10-08 Kazu Hirata <kazu@hxi.com>
385 * pe-dll.c: Fix formatting.
387 2000-10-05 Kazu Hirata <kazu@hxi.com>
389 * ldlang.c: Fix formatting.
391 2000-10-03 DJ Delorie <dj@redhat.com>
393 * pe-dll.c (fill_edata): initialize entire block
394 (make_one): fill in correct section.
396 2000-10-03 Kazu Hirata <kazu@hxi.com>
398 * ldexp.c: Fix formatting.
400 2000-10-02 DJ Delorie <dj@redhat.com>
402 * emultempl/pe.em (gld_*_after_open): detect case where there two
403 import libraries for same dll; rename one to ensure proper link
406 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
408 (generate_edata): fix typo
410 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
412 * scripttempl/crisaout.sc (ENTRY): Now __start.
413 (.text): Add default setting for __start.
414 Remove CONSTRUCTORS handling.
415 (/DISCARD/): Add .gnu.warning.*.
416 * emulparams/crislinux.sh (ENTRY): Now __start.
417 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
418 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
419 (ENTRY): Now __start.
420 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
421 (EXECUTABLE_SYMBOLS): Add default setting for __start.
423 2000-09-29 Kazu Hirata <kazu@hxi.com>
425 * deffile.h: Fix formatting.
427 * ldcref.c: Likewise.
428 * ldctor.c: Likewise.
429 * ldctor.h: Likewise.
430 * ldemul.c: Likewise.
431 * ldemul.h: Likewise.
434 * ldfile.c: Likewise.
435 * ldfile.h: Likewise.
436 * ldlang.c: Likewise.
437 * ldlang.h: Likewise.
438 * lexsup.c: Likewise.
440 * pe-dll.c: Likewise.
442 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
444 * pe-dll.c (process_def_file): Uninitialized data wasn't
445 exported with --export-all-symbols switch.
447 2000-09-28 DJ Delorie <dj@redhat.com>
449 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
450 noname work properly.
452 2000-09-28 Alan Modra <alan@linuxcare.com.au>
454 * ld.texinfo (HPPA ELF32): New section.
456 * emultempl/hppaelf.em (group_size): New.
457 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
458 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
459 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
460 options to prevent abbreviations matching.
461 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
462 (PARSE_AND_LIST_ARGS_CASES): Handle it.
464 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
466 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
467 on the m68*-*-elf target. Make it support COFF input objects.
469 2000-09-21 Kazu Hirata <kazu@hxi.com>
471 * ldmain.c: Fix formatting.
472 * ldmisc.c: Likewise.
474 * ldwrite.c: Likewise.
476 2000-09-21 Alan Modra <alan@linuxcare.com.au>
478 * ldwrite.c (clone_section): Silence gcc warnings.
480 2000-09-20 Alan Modra <alan@linuxcare.com.au>
482 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
483 out of memory failure.
485 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
486 (clone_section): Handle out of memory failures. Rename var to
487 avoid c++ reserved word.
489 2000-09-18 Alan Modra <alan@linuxcare.com.au>
491 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
492 stub_name param to stub_sec_name.
493 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
495 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
497 * emultempl/m68kelf.em: New file.
498 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
499 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
500 * Makefile.in: Regenerate.
502 2000-09-15 Alan Modra <alan@linuxcare.com.au>
504 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
507 2000-09-13 Nick Clifton <nickc@redhat.com>
509 * ldmain.c (multiple_definition): Disable relaxation if
510 multiple symbol definitions are encountered - otherwise the
511 linker could abort with an assertion failure.
513 2000-09-10 Nick Clifton <nickc@redhat.com>
515 * mri.c: Fix formatting.
517 2000-09-07 H.J. Lu <hjl@gnu.org>
519 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
520 * configure: Rebuild.
522 2000-09-07 H.J. Lu <hjl@gnu.org>
524 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
525 * Makefile.in: Rebuild.
527 2000-09-07 Alan Modra <alan@linuxcare.com.au>
529 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
530 broken list handling. Create __start_SECNAME and __stop_SECNAME
531 when no place-holder. Add some comments. Test both SEC_CODE and
532 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
533 Handle case where no output section statement created.
535 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
537 * configure.tgt (sh-*-linux*): Added.
538 * Makefile.am: Added eshelf_linux and eshlelf_linux.
539 * Makefile.in: Rebuilt.
540 * emulparams/shelf_linux.sh: New file.
541 * emulparams/shlelf_linux.sh: New file.
543 2000-09-06 Alan Modra <alan@linuxcare.com.au>
545 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
546 try shuffling sections when the orphan happens to be the place
547 holder. Keep count of unique section names generated so we speed
548 the search for a new name.
550 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
552 * configure: Rebuilt with new libtool.m4.
554 2000-09-05 Nick Clifton <nickc@redhat.com>
556 * Makefile.in: Regenerate.
557 * aclocal.m4: Regenerate.
558 * configure: Regenerate.
559 * config.in: Regenerate.
560 * po/ld.pot: Regenerate.
562 * ldint.texinfo: Remove CVS revision marker - it foils local
565 * emultempl/ticoff.em: Remove extraneous comma.
567 2000-09-05 Alan Modra <alan@linuxcare.com.au>
569 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
570 to stub section flags.
571 (hppa_for_each_input_file_wrapper): New.
572 (hppa_lang_for_each_input_file): New.
573 (lang_for_each_input_file): Define to call above.
574 (multi_subspace): New.
575 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
576 (PARSE_AND_LIST_PROLOGUE): Define.
577 (PARSE_AND_LIST_LONGOPTS): Define.
578 (PARSE_AND_LIST_OPTIONS): Define.
579 (PARSE_AND_LIST_ARGS_CASES): Define.
580 (hppaelf_finish): Call elf32_hppa_set_gp.
581 (hppaelf_set_output_arch): Remove.
582 (LDEMUL_SET_OUTPUT_ARCH): Remove.
584 * emulparams/hppalinux.sh (ELFSIZE): Define.
586 (OTHER_READONLY_SECTIONS): Define.
588 (GENERATE_SHLIB_SCRIPT): Define.
590 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
591 to const throughout. Change `void *' to `PTR' throughout.
592 (lang_memory_default): Function is local to file, add `static'.
594 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
595 (ehppalinux.c): Likewise.
596 (earmelf.c): Likewise.
597 (earmelf_linux.c): Likewise.
598 (earmelf_linux26.c): Likewise.
599 * Makefile.in: Regenerate.
601 * ld.h (ld_config_type): Add unique_orphan_sections.
602 * lexsup.c (OPTION_UNIQUE): Define.
603 (ld_options): Add "--unique".
604 (parse_args): Handle it.
605 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
606 search for an existing output section if unique_orphan_sections is
607 set. Make use of bfd_get_unique_section_name rather than
608 duplicating code here.
609 * ld.texinfo: Describe --unique.
611 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
612 optional arg to split-by-file.
613 (parse_args): Handle them.
614 * ld.texinfo: Update description of these options.
615 * ldwrite.c (clone_section): Pass in the section name. Replace
616 local code with bfd_get_unique_section_name.
617 (split_sections): Tidy code and comments. Use a list traversal
618 more appropriate to the list construction. Handle cooked section
619 sizes. Split when split_by_reloc reached rather than exceeded.
620 Track section size and split when split_by_file reached. Fix
621 link_order_tail (even though it's not used).
622 (ldwrite): Modify condition for calling split_sections to suit
623 changed split_by_reloc and split_by_file.
624 * ldmain.c (main): Init config.split_by_reloc and
625 config.split_by_file to -1.
626 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
627 Change split_by_file to bfd_size_type.
629 2000-09-02 Nick Clifton <nickc@redhat.com>
631 * configure.in: Increase version number to 2.10.91.
632 * NEWS: Mention new ability to support removal of duplicate DWARF2
634 * configure: Regenerate.
635 * aclocal.m4: Regenerate.
636 * config.in: Regenerate.
638 2000-09-02 Daniel Berlin <dberlin@redhat.com>
640 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
642 * scripttempl/elf32var.sc: Ditto.
643 * scripttempl/elfd10v.sc: Ditto.
644 * scripttempl/elfd30v.sc: Ditto.
645 * scripttempl/elfi370.sc: Ditto.
646 * scripttempl/elfm68hc11.sc: Ditto.
647 * scripttempl/elfm68hc12.sc: Ditto.
648 * scripttempl/elfi386beos.sc: Ditto.
649 * scripttempl/v850.sc: Ditto.
651 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
653 * acinclude.m4: Include libtool and gettext macros from the
655 * aclocal.m4, configure: Rebuilt.
657 2000-08-25 Nick Clifton <nickc@redhat.com>
659 * ldlang.c (open_output): When choosing the target for a
660 particular endianness, do nothing if the target is not
663 2000-08-25 H.J. Lu <hjl@gnu.org>
665 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
666 check -rpath nor LD_RUN_PATH for cross link.
667 * ld.texinfo: Document the change.
669 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
671 * NEWS: Mention support for CRIS.
673 2000-08-23 H.J. Lu <hjl@gnu.org>
675 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
676 the current runpath list from bfd_elf_get_runpath_list ()
679 2000-08-22 H.J. Lu <hjl@gnu.org>
681 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
682 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
683 LD_LIBRARY_PATH for native linker. Display the needed DSO if
684 trace_file_tries is non-zero.
685 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
686 if trace_file_tries is non-zero.
688 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
691 2000-08-14 Jason Eckhardt <jle@cygnus.com>
693 * NEWS: Mention i860 support.
695 2000-08-14 Andreas Schwab <schwab@suse.de>
697 * scripttempl/elf.sc: Fix last change to use correct comment
700 2000-08-10 Geoff Keating <geoffk@cygnus.com>
702 * scripttempl/elf.sc: Add a comment giving the correspondence
703 between sections, per-datum sections, and linkonce sections. Make
704 the comment true even for .bss, .sdata, .sdata2, .sbss, and
707 2000-08-10 Jason Eckhardt <jle@cygnus.com>
709 * emulparams/elf32_i860.sh: New file.
710 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
711 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
712 (eelf32_i860.c): New rule.
713 * Makefile.in: Regenerate.
715 2000-08-10 Nick Clifton <nickc@cygnus.com>
717 * emulparams/mipspe.sh (ENTRY): Add definition.
719 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
721 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
724 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
726 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
727 the final size of .bss section.
728 * scripttempl/elfm68hc12.sc: Likewise.
730 2000-08-04 Alan Modra <alan@linuxcare.com.au>
732 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
733 gld${EMULATION_NAME}_parse_args for consistency. Combine
734 lastoptind and prevoptind vars, and keep track of last optind.
735 (gld_${EMULATION_NAME}_list_options): Rename to
736 gld${EMULATION_NAME}_list_options.
738 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
740 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
741 (i586-sco-sysv5uw7.1.0).
743 2000-07-27 H.J. Lu <hjl@gnu.org>
745 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
746 (PARSE_AND_LIST_PROLOGUE): New.
747 (PARSE_AND_LIST_LONGOPTS): Likewise.
748 (PARSE_AND_LIST_OPTIONS): Likewise.
749 (PARSE_AND_LIST_ARGS_CASES): Likewise.
750 (PARSE_AND_LIST_EPILOGUE): Likewise.
752 2000-07-28 Alan Modra <alan@linuxcare.com.au>
754 * emultempl/armelf.em: Elide functions common to elf32.em,
755 ie. most of the file.
756 (arm_elf_after_open): New. Do arm specific things then call
757 gld${EMULATION_NAME}_after_open.
758 (arm_elf_before_allocation): New. Call
759 gld${EMULATION_NAME}_before_allocation then do arm specifics.
760 (PARSE_AND_LIST_PROLOGUE): Define.
761 (PARSE_AND_LIST_SHORTOPTS): Define.
762 (PARSE_AND_LIST_LONGOPTS): Define.
763 (PARSE_AND_LIST_OPTIONS): Define.
764 (PARSE_AND_LIST_ARGS_CASES): Define.
765 (LDEMUL_AFTER_OPEN): Define.
766 (LDEMUL_BEFORE_ALLOCATION): Define.
767 (LDEMUL_BEFORE_PARSE): Define.
768 (LDEMUL_FINISH): Define.
770 * emultempl/hppaelf.em: Similarly zap most of this file.
771 (hppaelf_add_stub_section): Prototype.
772 (hppaelf_layaout_sections_again): Prototype.
773 (hook_in_stub): Prototype.
774 (LDEMUL_SET_OUTPUT_ARCH): Define.
775 (LDEMUL_FINISH): Define.
776 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
778 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
779 (EXTRA_EM_FILE): New.
780 * emulparams/armelf_linux.sh: Likewise.
781 * emulparams/armelf_linux26.sh: Likewise.
782 * emulparams/hppalinux.sh: Likewise.
783 * emulparams/hppaelf.sh: Likewise.
786 * emultempl/elf32.em: Fix formatting.
787 (EXTRA_EM_FILE): Source it.
788 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
789 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
790 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
791 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
792 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
793 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
794 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
795 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
796 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
797 allow functions in this file to be overridden.
798 (PARSE_AND_LIST_SHORTOPTS): Handle it.
800 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
802 * emultempl/elf32.em: Reorganize file.
804 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
806 * emulparams/elf64alpha.sh: Implement "-taso" emulation
807 specific option to fit 64-bit executable in the lower
808 31-bit address range. This is done by changing start
809 address of .interp (the very first section of executable)
810 and then setting EF_ALPHA_32BIT elf header flag.
812 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
814 * emultempl/m68kcoff.em: New file.
815 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
816 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
818 * Makefile.in: Regenerate.
820 2000-07-20 H.J. Lu <hjl@gnu.org>
822 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
823 and "disable-new-dtags" to stop getopt from treating -d/-e as
824 abbreviations for these options.
826 2000-07-20 H.J. Lu <hjl@gnu.org>
828 * ld.texinfo: Add documentation for --disable-new-dtags and
831 * ldmain.c (main): Initialize link_info.new_dtags to false.
833 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
834 --disable-new-dtags and --enable-new-dtags.
835 (gld_${EMULATION_NAME}_list_options): Likewise.
837 2000-07-05 Kenneth Block <krblock@computer.org>
839 * ld/lexsup.c: Add optional style to demangle switch
840 * ld/ld.texinfo: Document optional style to demangle switch.
842 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
844 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
846 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
847 Regenerate dependencies.
848 * Makefile.in: Rebuild.
849 * configure.tgt (cris-*-*): New target.
850 * emulparams/crisaout.sh, emulparams/criself.sh,
851 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
852 * po/POTFILES.in, po/ld.pot: Regenerate.
854 2000-07-20 H.J. Lu <hjl@gnu.org>
856 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
857 Print out ignored -z options.
859 2000-07-19 H.J. Lu <hjl@gnu.org>
861 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
862 (PARSE_AND_LIST_PROLOGUE): New.
863 (PARSE_AND_LIST_LONGOPTS): Likewise.
864 (PARSE_AND_LIST_OPTIONS): Likewise.
865 (PARSE_AND_LIST_ARGS_CASES): Likewise.
867 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
869 * lexsup.c (ld_options): Comment out 'z'.
870 (parse_args): Likewise.
872 * emultempl/elf32.em: Include "elf/common.h".
873 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
875 (gld_${EMULATION_NAME}_list_options): Likewise.
877 * ld.texinfo: Add documentation for the recognized -z options.
879 2000-07-19 H.J. Lu <hjl@gnu.org>
881 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
882 bfd_elf_set_dt_needed_soname ().
884 2000-07-18 DJ Delorie <dj@cygnus.com>
886 * pe-dll.c (pe_dll_id_target): check object target name also
888 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
890 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
891 ${INIT_END} if relocating.
892 (.fini): Likewise ${FINI_START} and ${FINI_END}.
894 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
896 * src/ld/emultempl/pe.em (gld_*_open_dynamic_archive): New search
897 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
898 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
899 errors introduced by the old dynamic lib search order.
901 2000-07-17 DJ Delorie <dj@cygnus.com>
903 * pe-dll.c (process_def_file): auto-export data items also
904 (pe_process_import_defs): also see if _imp_ form needed
906 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
908 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
909 for dll import libraries
911 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
913 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
914 gcc 2.95.2 and later.
916 2000-07-11 Kazu Hirata <kazu@hxi.com>
918 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
921 2000-07-10 Alan Modra <alan@linuxcare.com.au>
923 * ldemul.h (struct lang_input_statement_struct): Remove forward
925 (struct search_dirs): Likewise.
926 * ldfile.h (struct lang_input_statement_struct): Likewise.
927 Protect file from multiple inclusion.
928 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
929 declaration from macro to file scope.
931 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
932 * ldgram.y: Likewise here.
933 * ldlang.c: And here.
934 * ldmain.c: And here.
935 * mpw-elfmips.c: And here.
936 * mpw-eppcmac.c: And here.
937 * emultempl/aix.em: And here.
938 * emultempl/armcoff.em: And here.
939 * emultempl/armelf.em: And here.
940 * emultempl/armelf_oabi.em: And here.
941 * emultempl/beos.em: And here.
942 * emultempl/elf32.em: And here.
943 * emultempl/hppaelf.em: And here.
944 * emultempl/linux.em: And here.
945 * emultempl/lnk960.em: And here.
946 * emultempl/pe.em: And here.
947 * emultempl/sunos.em: And here.
948 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
949 * mpw-idtmips.c: Ditto.
950 * emultempl/generic.em: Ditto.
951 * emultempl/gld960.em: Ditto.
952 * emultempl/gld960c.em: Ditto.
953 * emultempl/mipsecoff.em: Ditto.
954 * emultempl/ticoff.em: Ditto.
955 * emultempl/vanilla.em: Ditto.
957 * pe-dll.c: Include ldfile.h
958 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
960 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
961 arguments to bfd_elf32_size_dynamic_sections call.
962 (gldelf32ebmip_place_orphan): Add missing arguments to
963 lang_leave_output_section_statement call.
965 2000-07-10 H.J. Lu <hjl@gnu.org>
967 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
970 (compute_dll_image_base): Likewise.
971 (pe_undef_found_sym): Likewise.
972 (pe_undef_cdecl_match): Likewise.
973 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
974 argument "arch" with ATTRIBUTE_UNUSED.
976 2000-07-10 Alan Modra <alan@linuxcare.com.au>
978 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
980 From Ryan Bradetich <rbradetich@uswest.net>
981 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
983 2000-07-09 Alan Modra <alan@linuxcare.com.au>
985 Changes to create multiple linker stubs, positioned immediately
986 before the section where they are required.
987 * emultempl/hppaelf.em: Include elf32-hppa.h.
988 (stub_sec, file_chain): Delete.
989 (hppaelf_create_output_section_statements): Don't make a stub
991 (hook_stub_info): New struct.
992 (hook_in_stub): New function.
993 (hppaelf_add_stub_section): New function.
994 (hppaelf_finish): Do nothing for relocateable links. Modify the
995 call to elf32_hppa_size_stubs. Move code for updating section
997 (hppaelf_layaout_sections_again): ..to here, a new function.
999 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1000 broken list handling. Pass in a pointer to the list.
1001 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1003 (hppaelf_before_parse): Prototype.
1004 (hppaelf_set_output_arch): Prototype.
1005 (hppaelf_create_output_section_statements): Prototype.
1006 (hppaelf_delete_padding_statements): Prototype.
1007 (hppaelf_finish): Prototype.
1010 * emultempl/hppaelf.em: Include ctype.h.
1011 (struct orphan_save): New.
1012 (gld${EMULATION_NAME}_place_orphan): New.
1013 (output_rel_find): New.
1014 (hppaelf_get_script): Update from elf32.em.
1015 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1016 Change emulation_name field to "${EMULATION_NAME}". Add
1017 gld${EMULATION_NAME}_place_orphan.
1019 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
1020 ehppalinux.o, sort it. Regenerate dependencies.
1021 (ehppalinux.c): Depend on hppaelf.em
1022 * Makefile.in: Regenerate.
1024 * configure.tgt: targ_emul=hppalinux for hppa*linux
1026 * emulparams/hppalinux.sh: New.
1027 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1029 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1031 * lexsup.c (parse_args): Copy section name.
1033 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
1035 * emultempl/pe.em: institute the following search order for
1036 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1037 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
1038 static lib (libfoo.a) if none of the above are found.
1040 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
1042 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1043 (longopts): New --{enable,disable}-auto-image-base options.
1044 (gld_${EMULATION_NAME}_list_options): Document.
1045 (gld_${EMULATION_NAME}_parse): Handle.
1046 (strhash): New static function.
1047 (compute_dll_image_base): New static function.
1048 (gld_${EMULATION_NAME}_set_symbols): Use.
1050 2000-07-05 DJ Delorie <dj@redhat.com>
1054 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1056 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1057 * emulparams/elf32btsmip.sh: New file.
1058 * Makefile.am: Add traditional mips target.
1059 * Makefile.in: Rebuild.
1061 2000-07-01 H.J. Lu <hjl@gnu.org>
1063 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1064 automake to use YLWRAP.
1065 * Makefile.in: Rebuild.
1067 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1069 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1070 (CLEANFILES): Add DEPA.
1071 * Makefile.in: Regenerate.
1073 2000-06-30 Timothy Wall <twall@ppc>
1075 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1076 the page in the upper octet of the address.
1078 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1080 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1082 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1084 * NEWS: arm-elf does --gc-sections too.
1086 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1088 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1090 * Makefile.in: Regenerate.
1092 2000-06-21 H.J. Lu <hjl@gnu.org>
1094 * Makefile.am: Rebuild dependency.
1095 * Makefile.in: Rebuild.
1097 2000-06-20 H.J. Lu <hjl@gnu.org>
1099 * Makefile.am: Rebuild dependency.
1100 * Makefile.in: Rebuild.
1102 2000-06-20 Timothy Wall <twall@cygnus.com>
1104 * scripttempl/tic54xcoff.sc: New.
1105 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1106 * gen-doc.texi: Add flag for TI COFF.
1107 * ld.texinfo: Add documentation for TI COFF handling switches.
1108 * emultempl/ticoff.em: New. TI COFF handling.
1109 * configure.tgt: Add tic54x target.
1110 * Makefile.am: Add tic54x target.
1111 * Makefile.in: Ditto.
1113 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1115 * ldmain.c (set_scripts_dir): Correct pointer comparison when
1116 checking for backslashes.
1118 2000-06-19 Alan Modra <alan@linuxcare.com.au>
1120 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1122 2000-06-18 Alan Modra <alan@linuxcare.com.au>
1124 * NEWS: Update list of targets supporting --gc-sections.
1126 * scripttempl/elf.sc: KEEP .eh_frame contents.
1127 * scripttempl/elfd30v.sc: Same here.
1129 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1131 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1133 * Makefile.in: Rebuild.
1134 * configure.tgt: Recognize m68hc12 and m68hc11.
1135 * scripttempl/elfm68hc12.sc: New file.
1136 * emulparams/m68hc12elfb: New emulation.
1137 * emulparams/m68hc12elf: New emulation.
1138 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
1139 (includes a memory.x script to define the ROM and RAM banks).
1140 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1141 New configuration files for support of Motorola 68hc11
1143 2000-06-15 Alan Modra <alan@linuxcare.com.au>
1145 * ldmain.c (main): Only change SEC_READONLY for final link.
1147 2000-06-13 H.J. Lu <hjl@gnu.org>
1149 * configure: Regenerate.
1151 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1153 * configure.in (VERSION): Update to show this is the CVS mainline.
1155 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1157 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1158 input objects to be ECOFF.
1159 (check_sections): einfo takes %B, not %P, to print a BFD name.
1161 2000-06-05 Michael Matz <matz@ifh.de>
1163 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1166 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1168 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
1170 * emulparams/avr1200.sh (STACK): Define as 0.
1171 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1172 * emulparams/avr4433.sh (STACK): Likewise.
1173 * emulparams/avr44x4.sh (STACK): Likewise.
1174 * emulparams/avr85xx.sh (STACK): Likewise.
1175 * emulparams/avrmega103.sh (STACK): Likewise.
1176 * emulparams/avrmega161.sh (STACK): Likewise.
1177 * emulparams/avrmega603.sh (STACK): Likewise.
1178 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1179 (__stack): Define from ${STACK} for main().
1181 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1183 * Makefile.am: Update dependencies with "make dep-am"
1184 * Makefile.in: Regenerate.
1186 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1188 * ldmain.c: Include filenames.h.
1189 (set_scripts_dir): Support backslashes in program name.
1191 2000-05-22 Igor Shevlyakov <igor@windriver.com>
1193 * ldmain.c (main): When deciding if ".text" section should be
1194 read-only, don't forget to reset SEC_READONLY because it
1195 could be already set.
1197 2000-05-22 Thomas de Lellis <tdel@windriver.com>
1199 * ld.1: Add documentation for new command line option:
1200 --section-start <sectionname>=<sectionorg>
1201 This is a generic version of -Ttext etc. which accepts
1202 any section name as a parameter instead of just text/data/
1204 * ld.texinfo: More docs.
1206 * lexsup.c: (parse_args): Recognize new command line option.
1207 (ld_options): Add new option.
1209 2000-05-18 H.J. Lu <hjl@gnu.org>
1211 * lexsup.c (parse_args): `i' == `r', not `q'.
1213 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
1215 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1217 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1218 Rick Gorton <gorton@scrugs.lkg.dec.com>
1220 Add support for '-q' == '--emit-relocs' switch.
1221 * ldmain.c (main): Default to false.
1222 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1223 * NEWS: Describe the emitrelocations switch.
1224 * ld.texinfo: Describe the emitrelocations switch.
1226 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1228 * ld/emultempl/pe.em (_open_dynamic_archive): New function: Search
1229 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1230 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1233 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1235 * lexsup.c (parse_args): Update the year in the copyright notice.
1237 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1239 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1240 Replace defines with those from intl/libgettext.h to quieten gcc
1243 2000-05-10 H.J. Lu <hjl@gnu.org>
1245 * ldlang.c (open_input_bfds): Don't load the same file within
1246 a group again if the whole archive has been loaded already.
1248 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1250 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1251 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1254 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1256 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1258 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1259 host "ia64-*-linux-gnu*".
1261 2000-04-29 Andreas Jaeger <aj@suse.de>
1263 * ld.h: Correctly check GCC version.
1265 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1267 * Makefile.am: Add PA64 support. Add missing dependencies for
1269 * Makefile.in: Rebuilt.
1270 * configure.tgt: Add PA64 support (currently disabled).
1272 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1274 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1275 (output_rel_find): New function.
1276 (hold_section, hold_use): Delete.
1277 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1278 hold_interp): Make local to place_orphan.
1279 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1280 rather than place_section to find possible previous use of orphan.
1281 Similarly find the place-holder output sections. Use returned
1282 value from lang_enter_output_section_statement rather than calling
1283 lang_output_section_statement_lookup.
1284 * emultempl/armelf.em: Same here.
1285 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1287 * ldlang.c (lang_enter_output_section_statement): Return output
1289 * ldlang.h (lang_enter_output_section_statement): Change
1292 * ldlang.h (lang_output_section_statement): Export it.
1293 * ldlang.c (lang_output_section_statement): Ditto.
1295 2000-04-24 Nick Clifton <nickc@cygnus.com>
1297 * ld.texinfo (Output Section Data): Add note that section data
1298 commands cannot appear outside of section directives.
1300 2000-04-2 Matthew Green <mrg@cygnus.com>
1302 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1304 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1305 David Mosberger <davidm@hpl.hp.com>
1307 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1308 (eelf64_ia64.c): New rule.
1309 * Makefile.in: Rebuild.
1310 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1311 * emulparams/elf64_ia64.sh: New file.
1313 2000-04-21 Richard Henderson <rth@cygnus.com>
1315 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1317 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1319 * dep-in.sed: Match space at start of file name, not at end.
1321 2000-04-18 H.J. Lu <hjl@gnu.org>
1323 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1324 lang_leave_output_section_statement () after calling
1325 lang_enter_output_section_statement ().
1326 * emultempl/armelf.em: Likewise.
1328 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1330 * emultempl/elf32.em (struct orphan_save): Add section field.
1331 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1332 better order, and place first orphan section as we did before the
1333 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1334 Don't call make_bfd_section here, let wild_doit do the job for us.
1335 Don't build a statement list when we'll only throw it away.
1336 * emultempl/armelf.em: Ditto.
1337 * emultempl/pe.em: Similarly.
1339 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1341 * scripttempl/elfppc.sc: Remove.
1342 * emulparams/elf32ppc.sh: Use elf.sc.
1343 * emulparams/elf32lppc.sh: Use elf.sc.
1344 * emulparams/elf32ppclinux.sh: Use elf.sc.
1345 * emulparams/elf32ppcsim.sh: New file.
1346 * emulparams/elf32lppcsim.sh: New file.
1347 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1348 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1349 * Makefile.in: Regenerate.
1350 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1352 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1354 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1355 ~SEC_ALLOC sections too. Init start address of debug sections.
1356 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1357 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1358 Also set all relocateable section start addresses.
1360 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1362 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1363 Add new BSS_PLT variable for when .plt need not be contained in
1364 the file. Move _etext so that it is also after .fini, and provide
1365 both etext and _etext with a leading underscore. Mark the start
1368 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1370 * emultempl/elf32.em (struct orphan_save): New.
1371 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1372 hold_interp): Make them struct orphan_save.
1373 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1374 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1375 the end of the relevant section list. Also add associated section
1376 statements to the end of any previous orphan statements.
1377 * emultempl/armelf.em: Similarly.
1378 * emultempl/pe.em: Similarly.
1380 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1382 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1384 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1386 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1387 --enable-build-warnings option.
1388 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1389 * Makefile.in, configure: Re-generate.
1391 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1393 * po/ld.pot: Regenerate.
1395 * lexsup.c (help): Restore translated part of bug string.
1397 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1398 (DEP): Quote when passing vars to sub-make. Add warning message
1400 (DEP1): Rewrite for "gcc -MM".
1401 (CLEANFILES): Add DEP2.
1402 Update dependencies.
1403 * Makefile.in: Regenerate.
1405 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1407 * ld.h: #include "bin-bugs.h"
1408 * lexsup.c (help): Use REPORT_BUGS_TO.
1410 2000-03-27 Denis Chertykov <denisc@overta.ru>
1412 * configure.tgt (avr-*-*): New target support.
1413 * Makefile.am: Likewise.
1414 * scripttempl/elf32avr.sc: New script file.
1415 * emulparams/avr1200.sh: New file.
1416 * emulparams/avr23xx.sh: New file.
1417 * emulparams/avr4433.sh New file.
1418 * emulparams/avr44x4.sh New file.
1419 * emulparams/avr85xx.sh New file.
1420 * emulparams/avrmega103.sh New file.
1421 * emulparams/avrmega161.sh New file.
1422 * emulparams/avrmega603.sh New file.
1423 * Makefile.in: Regenerate.
1425 2000-03-09 Andreas Jaeger <aj@suse.de>
1427 * Makefile.am (check-DEJAGNU): Also unset LANG.
1428 * Makefile.in: Rebuild.
1430 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1432 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1435 2000-03-02 H.J. Lu <hjl@gnu.org>
1437 * emulparams/elf32mcore.sh: Include "getopt.h".
1439 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1441 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1443 2000-03-01 H.J. Lu <hjl@gnu.org>
1445 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1446 * emulparams/shpe.sh: Likewise.
1448 2000-03-01 Nick Clifton <nickc@cygnus.com>
1450 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1451 to unused parameters.
1453 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1454 functions only used by DLL code.
1455 (_place_orphan): Initialise 'dollar'.
1457 2000-03-01 H.J. Lu <hjl@gnu.org>
1459 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1460 indicate if the undefined symbol is a fatal error or not.
1461 Don't delete the output file if "fatal" is false.
1463 2000-02-29 H.J. Lu <hjl@gnu.org>
1465 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1466 Set LC_COLLATE and LC_ALL to null and export them. It is for
1467 sort which expects the C locale.
1468 Add $(LIBS) to all $(HOSTING_LIBS).
1469 * Makefile.in: Rebuild.
1471 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1473 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1474 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1475 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1476 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1477 find_potential_libraries.
1479 2000-02-28 Jim Blandy <jimb@redhat.com>
1481 * ldgram.y (exclude_name_list): Don't require a comma to separate
1482 list entries; the lexer considers commas to be valid part of a
1483 filename, so in something like `foo, bar' the comma is considered
1484 part of the first filename, `foo,'.
1485 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1487 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1489 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1490 host "i[3456]86-*-freebsdelf*".
1492 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1494 * scripttempl/i386go32.sc: Move misplaced semicolons.
1496 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1498 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1499 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1500 (eelf64hppa.c, ehppaelf.c): Remove targets.
1501 * Makefile.in: Rebuild.
1503 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1505 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1506 GNU/Linux/sparc, but keep the default as 32.
1508 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
1509 it default if sparcv9 or sparc64.
1511 2000-02-24 Nick Clifton <nickc@cygnus.com>
1513 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1514 * Makefile.in: Regenerate.
1515 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1517 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1518 find_potential_libraries.
1519 * ldemul.c (ldemul_find_potential_libraries): New function.
1521 * ldfile.c (ldfile_open_file_search): Allow function to be
1523 (ldfile_open_file): Call ldemul_find_potential_libraries.
1524 * ldfile.h: Add prototype for ldfile_open_file_search.
1526 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1528 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1529 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1531 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1532 (gld_X_find_potential_libraries): New function. Search for
1533 libraries called "*.lib".
1535 * scriptempl/pe.sc: Add .pdata section.
1537 2000-02-23 Richard Henderson <rth@cygnus.com>
1539 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1540 Add and use memory regions.
1542 2000-02-23 Linas Vepstas (linas@linas.org)
1544 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1546 * Makefile.am: Add support for Linux/IBM 370.
1547 * configure.tgt: Likewise.
1549 * Makefile.in: Regenerate.
1551 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1553 * ldlang.c (print_input_section, print_data_statement,
1554 print_reloc_statement, print_padding_statement, insert_pad,
1555 size_input_section, lang_check_section_addresses,
1556 lang_size_sections, lang_do_assignments, lang_set_startof,
1557 lang_one_common): Change `opb' to unsigned.
1558 (lang_do_assignments): Also change `size' to unsigned.
1560 2000-02-16 Richard Henderson <rth@cygnus.com>
1562 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1564 2000-02-16 Timothy Wall <twall@cygnus.com>
1566 * mri.c (mri_draw_tree): Add default LMA region argument to call
1567 to lang_leave_output_section_statement.
1568 * ldlang.h: Update prototypes with LMA region arguments.
1569 * ldlang.c (lang_size_sections): Encapsulate region bounds
1570 checking in os_check_region call.
1571 (os_check_region): New function.
1572 (lang_output_section_statement_lookup): Initialize lma_region.
1573 (lang_leave_output_section_statement): Add LMA region argument.
1574 (lang_leave_overlay): Ditto.
1575 * ldgram.y: Handle LMA region syntax.
1576 * ld.texinfo (Output Section Description): Describe LMA region usage.
1577 * emultempl/armelf.em (gld$place_orphan): Add default value for
1578 lma region in call to lang_leave_output_section_statement.
1579 * emultempl/elf32.em (gld$place_orphan): Add default value for
1580 lma region in call to lang_leave_output_section_statement.
1581 * emultempl/pe.em (gld$place_orphan): Add default value for
1582 lma region in call to lang_leave_output_section_statement.
1585 2000-02-04 Timothy Wall <twall@redhat.com>
1587 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1588 octets when calculating section end addresses.
1590 2000-02-04 Timothy Wall <twall@redhat.com>
1592 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1594 2000-02-03 Timothy Wall <twall@redhat.com>
1596 * ld/ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1598 * ld/ldlang.c (print_input_section, print_data_statement,
1599 print_reloc_statement, print_padding_statement): Print target
1600 address values and section sizes as bytes, not octets.
1601 (insert_pad) Calculate padding size in octets, and adjust "dot"
1603 (size_input_section) Always adjust "dot" by bytes, not octets.
1604 (lang_check_section_addresses, lang_do_assignments) Adjust
1605 "dot" by bytes, not octets. Use the larger of the directive size
1606 or octets_per_byte for the number of octets actually allocated in
1608 (lang_set_startof) Make sure STARTOF returns a target address.
1609 (lang_one_common) Record size changes in octets.
1610 (lang_abs_symbol_at_end_of) Section end symbol's value is
1611 recorded in target bytes.
1612 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
1613 to be clear about behavior when an octet is smaller than one byte.
1615 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1617 * ldcref.c (output_cref): Don't pass message strings to printf
1621 * ldmisc.c (vfinfo): Same here.
1624 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1626 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1627 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1628 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1629 Add missing NULL initialisers, and comments.
1631 * testsuite/ld-srec/sr3.cc (__rethrow): New.
1633 2000-01-21 Nick Clifton <nickc@cygnus.com>
1635 * ldlang.c (lang_size_sections): Fix typo in comment.
1637 2000-01-18 H.J. Lu <hjl@gnu.org>
1639 * ldlang.c (lang_size_sections): Also update the current
1640 address of a region if the SEC_NEVER_LOAD bit is not set.
1642 2000-01-10 Philip Blundell <pb@futuretv.com>
1644 * configure.tgt (arm*-*-conix*): New target.
1646 2000-01-07 Nick Clifton <nickc@cygnus.com>
1648 * ld.texinfo (Options): Remind users to preceed linker command
1649 line switches with -Wl, (or whatever is appropriate) if it is
1650 being invoked by a comnpiler driver program.
1651 Fix description of the behaviour of the -n command line switch.
1653 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
1655 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
1657 * ld.texinfo (EXCLUDE_FILE): Update documentation.
1658 * ldgram.y (wildcard_spec): Support a list of excluded_files.
1659 (exclude_name_list): New.
1660 ldlang.c (walk_wild_section): Support list of excluded files.
1661 (print_wild_statement): Likewise.
1662 (lang_add_wild): Likewise.
1663 * ldlang.h (lang_wild_statement_type): Likewise.
1664 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
1666 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
1668 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
1669 (process_def_file): Use.
1670 (pe_dll_compat_implib): New variable.
1673 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
1674 pe_dll_compat_implib.
1676 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
1677 compat-implib options.
1678 (gld_${EMULATION_NAME}_list_options): List new options.
1679 (gld_${EMULATION_NAME}_parse_args): Handle.
1681 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
1684 * deffilep.y (opt_name): Allow "." in name.
1686 For older changes see ChangeLog-9899
1692 version-control: never