1 2001-05-24 H.J. Lu <hjl@gnu.org>
3 * emultempl/aix.em (OUTPUT_ARCH): Defined.
4 (gld${EMULATION_NAME}_before_parse): Initialize
5 ldfile_output_architecture, ldfile_output_machine and
6 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
7 * emultempl/beos.em: Likewise.
8 * emultempl/elf32.em: Likewise.
9 * emultempl/linux.em: Likewise.
10 * emultempl/mipsecoff.em: Likewise.
11 * emultempl/pe.em: Likewise.
12 * emultempl/sunos.em: Likewise.
14 2001-05-24 Tom Rix <trix@redhat.com>
16 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
17 udate import file format.
18 (change_symbol_mode) New, same
19 (is_syscall) New, same
20 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
21 * emulparams/aixppc64.sh : same
22 * emulparams/aixrs6.sh : same
23 * emulparams/ppcmacos.sh : same
24 * emultempl/aix.em : use strtoull to parse options
25 * Makefile.am : add eaixppc64 emulation for xcoff64
27 * configure.tgt : same
29 * scripttempl/aix.sc : default text section offset to 0x10000000
30 default data section offset to 0x20000000
31 add .sv3264 and .sv64 pseudo sections
32 loader and debug sections use the currect section offset.
34 * emultempl/aix.em : Add xcoff64 support
35 Add -binitfini support
36 (gld${EMULATION_NAME}_before_parse) -binitfini
37 (gld${EMULATION_NAME}_parse_args) same
38 (gld${EMULATION_NAME}_before_allocation) format change for special
41 * emulparams/aixppc64.sh : New file for xcoff64 support
43 2000-01-18 H.J. Lu <hjl@gnu.org>
45 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
47 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
48 variable to avoid non-portable shell construct.
50 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
52 * ldmain.c (get_emulation): Add -mips5 command line argument.
54 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
56 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
57 (ELF_INTERPRETER_NAME): Define it.
58 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
60 * configure.tgt (targ_emul, targ_extra_emuls)
61 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
62 as primary, elf_i386 as extra.
63 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
64 (eelf_i386_ldso.c): New rule.
65 * Makefile.in: Rebuilt.
67 2001-05-22 Nick Clifton <nickc@redhat.com>
69 * lexsup.c (ld_options): Allow -I to be an alias for
70 --dynamic-linker. This is for Solaris compatability.
71 * ld.texinfo: Document that -I can be used.
74 2001-05-16 Alan Modra <amodra@one.net.au>
76 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
77 whether an input section is the first one assigned to an output
79 Assorted formatting fixes.
81 2001-05-14 DJ Delorie <dj@delorie.com>
83 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
86 2001-05-11 Jakub Jelinek <jakub@redhat.com>
88 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
89 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
91 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
93 2001-05-11 Jakub Jelinek <jakub@redhat.com>
95 * ldlang.c (lang_process): Call bfd_merge_sections.
97 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
101 2001-05-03 H.J. Lu <hjl@gnu.org>
103 * emultempl/elf32.em: Include "libiberty.h".
104 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
105 basename of the bfd filename.
106 (gld${EMULATION_NAME}_stat_needed): Likewise.
107 (gld${EMULATION_NAME}_try_needed): Likewise.
108 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
110 2001-05-02 H.J. Lu <hjl@gnu.org>
112 * emultempl/pe.em: Include <ctype.h>.
114 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
116 * emulparams/elf32openrisc.sh: New file.
118 * Makefile.am: Add OpenRISC target.
119 * Makefile.in: Regenerated.
121 * configure.tgt: Add openrisc-*-* mapping.
123 2001-05-02 Nick Clifton <nickc@redhat.com>
125 * emultempl/aix.em: Replace buystring with xstrdup.
126 * emultempl/beos.em: Replace buystring with xstrdup.
128 2001-05-02 H.J. Lu <hjl@gnu.org>
130 * ldfile.c: Include "libiberty.h".
133 * ldmisc.c (buystring): Removed.
134 * ldmisc.h: Likewise.
136 * ldfile.c: Replace buystring with xstrdup.
137 * ldlang.c: Likewise.
139 * ldmain.c: Likewise.
140 * ldmisc.c: Likewise.
141 * lexsup.c: Likewise.
142 * mpw-eppcmac.c: Likewise.
144 2001-04-30 Andreas Jaeger <aj@suse.de>
146 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
148 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
150 * ldlang.c (load_symbols): Give emulation a chance
151 to process unrecognized file before fatal error is
154 2001-04-27 Sean McNeil <sean@mcneil.com>
156 * configure.tgt: Add arm-vxworks target.
157 * scripttempl/armcoff.sc: Support .text or .data as a section name
161 2001-04-13 J.T. Conklin <jtc@redback.com>
163 * ld.texinfo: Document --fatal-warnings.
166 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
167 warnings have been turned into errors.
168 * lexsup.c (OPTION_WARN_FATAL): Define.
169 (ld_options): Entry for --fatal-warnings.
170 (parse_args): Handle OPTION_WARN_FATAL.
171 * ld.h (ld_config_type): Add fatal_warnings field.
173 2001-04-13 Jakub Jelinek <jakub@redhat.com>
175 * ldmain.c (main): Default to discard_sec_merge.
176 * lexsup.c (OPTION_DISCARD_NONE): Define.
177 (ld_options): Add --discard-none.
178 (parse_args): Handle OPTION_DISCARD_NONE.
179 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
180 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
181 all its input sections match.
183 2001-04-05 Steven J. Hill <sjhill@cotw.com>
185 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
186 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
187 (eelf32ltsmip.c): New target.
188 (eelf64btsmip.c): Likewise.
189 (eelf64ltsmip.c): Likewise.
190 * Makefile.in: Regenerated.
192 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
194 (mips*-*-linux-gnu*): Likewise.
196 * emulparams/elf32ltsmip.sh: New. Traditional little endian
198 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
200 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
203 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
205 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
206 correct value of __Stext here.
207 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
210 * emulparams/crislinux.sh: Remove FIXME.
212 2001-04-02 Alan Modra <alan@linuxcare.com.au>
214 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
215 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
217 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
219 * configure.tgt (cris-*-*): Change default emulation to criself.
220 (cris-*-*aout*): New rule.
222 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
224 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
225 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
227 2001-03-26 Andreas Jaeger <aj@suse.de>
229 * ld.texinfo (Overview): Fix syntax in texi code.
231 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
233 * ld.texinfo: Put @c man indications to generate the ld man page.
234 When generating man, define all the variables. Define SEEALSO
235 and SYNOPSIS. Re-organize some lines to avoid the cross references.
236 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
237 (ld.1): Generate from ld.texinfo.
238 * Makefile.in: Regenerate.
240 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
242 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
243 and '-fdata-sections'. Set the VMA of STABS sections to zero.
245 2001-03-17 Ulrich Drepper <drepper@redhat.com>
247 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
248 is an absolute path look only for this file and not along the path.
250 2001-03-17 Ulrich Drepper <drepper@redhat.com>
252 * emultempl/elf32.em (OPTION_GROUP): New macro.
253 Add new option Bgroup to longopts.
254 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
255 (gld*_list_options): Add -Bgroup and -z defs.
256 * ld.1: Document -Bgroup and -z defs.
257 * ld.texinfo: Likewise.
259 2001-03-07 Michael Meissner <meissner@redhat.com>
261 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
262 with sections created by -fdata-sections.
263 (.dynbss,.bss): Ditto.
265 2001-03-05 Alan Modra <alan@linuxcare.com.au>
267 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
268 after_allocation_default, not gld..._before_allocation.
270 2001-02-28 Matt Hiller <hiller@redhat.com>
272 * testsuite/ld-scripts/crossref.exp: Initialize flags to
273 [big_or_little_endian].
274 * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
276 * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
278 (is_endian_output_format): New function.
279 (default_ld_link): Set flags to [big_or_little_endian] only if ld
280 is being invoked such that the output format being used is of
282 (default_ld_simple_link): Ditto.
284 2001-02-27 Alan Modra <alan@linuxcare.com.au>
286 * configure.in (BFD_VERSION): New.
287 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
288 * configure: Regenerate.
289 * Makefile.am: Run "make dep-am"
290 * Makefile.in: Regenerate.
292 2001-02-26 Timothy Wall <twall@cygnus.com>
294 * emulparams/elf64_aix.sh: Add additional read-only sections;
295 uncomment lines which are now required.
297 2001-02-26 H.J. Lu <hjl@gnu.org>
299 * ldlang.c (open_input_bfds): Set the bfd error handler so
300 that problems can be caught whilst loading symbols.
301 (record_bfd_errors): New function: Report BFD errors and mark
302 the executable output as being invalid.
304 2001-02-22 Timothy Wall <twall@cygnus.com>
306 * configure.host: Add configuration for ia64-*-aix*.
307 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
308 Add dependencies for eelf64_aix.c.
309 * Makefile.in: Regenerate.
310 * configure.tgt: Add ia64-*-aix* mapping.
311 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
312 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
315 2001-02-20 H.J. Lu <hjl@gnu.org>
317 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
318 false if we found the file.
320 2001-02-18 David O'Brien <obrien@FreeBSD.org>
322 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
323 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
325 2001-02-18 lars brinkhoff <lars@nocrew.org>
327 * Makefile.am: Add PDP-11 target.
328 * configure.tgt: Likewise.
329 * emulparams/pdp11.sh: New file.
331 2001-02-17 David O'Brien <obrien@FreeBSD.org>
333 * configure.host: Add a generic FreeBSD configuration entry such that
334 all [modern] FreeBSD systems on all platforms will look the same.
336 2001-02-14 H.J. Lu <hjl@gnu.org>
338 * configure.tgt: Remove mention of earmelf_linux26.
340 2001-02-13 Richard Henderson <rth@redhat.com>
342 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
344 2001-02-13 H.J. Lu <hjl@gnu.org>
346 * ldexp.h (node_type): Add etree_provided.
347 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
348 type to etree_provided if defined by PROVIDE. Allow updating
350 (exp_print_tree): Handle etree_provided.
351 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
354 2001-02-09 David Mosberger <davidm@hpl.hp.com>
356 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
357 .IA_64.unwind.* pattern to unwind table section and
358 .IA_64.unwind_info* pattern to unwind info section.
360 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
362 * Makefile.am: Add linux target for S/390.
363 * Makefile.in: Likewise.
364 * configure.host: Likewise.
365 * configure.tgt: Likewise.
366 * emulparams/elf64_s390.sh: New file.
367 * emulparams/elf_s390.sh: New file.
369 2001-02-09 Jakub Jelinek <jakub@redhat.com>
371 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
373 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
375 2001-02-06 Philip Blundell <philb@gnu.org>
377 * Makefile.am: Remove mention of earmelf_linux26.
378 * Makefile.in: Regenerate.
380 2001-02-04 Philip Blundell <philb@gnu.org>
382 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
383 * emulparams/armelf_linux26.sh: Delete.
384 * configure.tgt: Remove mention of armelf_linux26 emulation.
386 2001-02-01 Nick Clifton <nickc@redhat.com>
388 * ld.1: Replace occurances of -oformat with --oformat.
390 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
392 * ldlang.c (lang_leave_overlay): Don't set lma_region when
393 load_base is specified.
395 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
397 * emultempl/elf32.em: Correct spelling in comments and listed
400 2001-01-23 Alan Modra <alan@linuxcare.com.au>
402 * ldlang.c (lang_leave_overlay): Only set lma_region from the
403 default for the first section of a group of overlay sections.
405 2001-01-22 Alan Modra <alan@linuxcare.com.au>
407 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
408 * Makefile.in: Regenerate.
409 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
410 Check for null tool_dir.
412 2001-01-16 Jim Wilson <wilson@redhat.com>
414 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
415 and IA_64.unwind.info.
417 2001-01-16 H.J. Lu <hjl@gnu.org>
419 * ldlang.c (lang_check): Merge the private data only if the
420 input file has contents.
422 2001-01-14 Alan Modra <alan@linuxcare.com.au>
424 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
426 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
427 enabling search for libmilli. On a relocatable link, make .text
429 (LDEMUL_AFTER_PARSE): Define.
430 (hppaelf_finish): Correct spelling of relocatable in comments.
432 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
433 rummage through the script for sections on the unique list.
434 Correct length of strncmp for ".note".
435 (gld${EMULATION_NAME}_check_needed): Rearrange function.
437 * ldlang.c (unique_section_list): New var.
438 (unique_section_p): New function.
439 (walk_wild_section): Don't match sections on unique_section_list.
440 (lang_add_unique): New function.
441 Correct spelling of relocatable in comments.
443 * ldlang.h (struct unique_sections): Declare.
444 (unique_section_list): Declare.
445 (unique_section_p): Declare.
446 (lang_add_unique): Declare.
448 * lexsup.c (ld_options): Allow --unique to take an optional arg.
449 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
451 * ld.texinfo (--unique): Update.
453 2001-01-13 Nick Clifton <nickc@redhat.com>
455 * lexsup.c (parse_args): Remove spurious white space.
457 2001-01-12 Nick Clifton <nickc@redhat.com>
459 * lexsup.c (parse_args): Update copyright date.
461 2001-01-12 Philip Blundell <pb@futuretv.com>
463 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
465 2001-01-10 Kazu Hirata <kazu@hxi.com>
467 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
468 * scripttempl/h8300h.sc: Fix formatting.
469 * scripttempl/h8300s.sc: Likewise.
470 * scripttempl/h8500.sc: Likewise.
471 * scripttempl/h8500b.sc: Likewise.
472 * scripttempl/h8500c.sc: Likewise.
473 * scripttempl/h8500m.sc: Likewise.
474 * scripttempl/h8500s.sc: Likewise.
476 2000-01-07 David O'Brien <obrien@BSDi.com>
478 * emultempl/elf32.em: Only perform Linux ld hints processing when
481 2001-01-07 Philip Blundell <philb@gnu.org>
483 * ld.texinfo (Bug Reporting): Update email address for reports.
485 2000-12-31 Nick Clifton <nickc@redhat.com>
487 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
488 options by checking for a return value of '?' not -1.
490 2000-12-28 Nick Clifton <nickc@redhat.com>
492 * lexsup.c (struct ld_option): Add new enum value:
494 (ld_options[]): Change -omagic, -output and -oformat options
495 to be EXACTLY_TWO_DASHES.
496 (OUTPUT_COUNT): Use ARRAY_SIZE.
497 (parse_args): Change parameter 'argc' to unsigned.
498 Place EXACTLY_TWO_DASHES options into new really_longopts
500 If getopt_long_only fails, try calling getopt_long using the
501 really_longopts array.
502 (help): Print a double dash for both EXACTLY_TWO_DASHES and
505 * ldlex.h: Fix prototype of parse_args.
507 * ld.texinfo: Document that long options starting with 'o'
508 must be preceeded by two dashes. Change example of a single
509 dashed long option from -oformat to -trace-symbol.
511 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
513 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
514 (longopts[]): New --no-default-excludes option.
515 (gld_${EMULATION_NAME}_list_options): Document.
516 (gld_${EMULATION_NAME}_parse_args): Handle.
518 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
520 * ldlang.c (new_stat): Revert the last beautification with "innocent"
521 whitespace, it breaks the K&R C preprocessor.
523 2000-12-11 DJ Delorie <dj@redhat.com>
525 * ld.texinfo: Add notes about --whole-archive and gcc.
527 2000-11-18 Fred Fish <fnf@be.com>
529 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
530 (ld_options): Entry for --allow-shlib-undefined.
531 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
532 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
534 * ld.texinfo: Document new command line switch.
536 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
538 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
539 .fixup is actually read/write.
540 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
541 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
542 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
544 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
546 * NEWS: Add note about x86_64 architecture.
548 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
550 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
551 Set DWARF2 sections to a VMA of zero.
553 2000-12-01 Joel Sherrill <joel@OARcorp.com>
555 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
557 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
558 (sparc*-*-rtems*): Switched from a.out to ELF.
560 2000-11-30 Jan Hubicka <jh@suse.cz>
562 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
563 (eelf_x86_64.c): New.
564 * Makefile.in: Regenerate.
565 * configure.tgt: Add support for x86_64-*-linux-gnu*.
566 * emulparams/elf_x86_64.sh: New.
568 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
570 * emulparams/crislinux.sh (ENTRY): Change back to _start.
571 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
573 * scripttempl/crisaout.sc: Change all RELOCATING not related to
574 merging non-a.out sections into CONSTRUCTING.
576 2000-11-28 Nick Clifton <nickc@redhat.com>
578 * ld.1 (COPYING): Mention that the GNU Free Documentation
579 License is present in the sources, but not the output, and
580 also available from the GNU website.
581 (GNU Free Documentation License): Comment out this section.
583 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
585 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
588 2000-11-25 David O'Brien <obrien@FreeBSD.org>
590 * ld.1: Remove old date so it does not give the impression the manpage
593 2000-11-24 Nick Clifton <nickc@redhat.com>
595 * configure.tgt (xscale-coff): Add target.
596 (xscale-elf): Add target.
598 2000-11-24 Fred Fish <fnf@be.com>
600 * ldmain.c (main): Remove redundant init of config.make_executable
603 2000-11-15 Richard Henderson <rth@redhat.com>
605 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
607 2000-11-14 Kazu Hirata <kazu@hxi.com>
609 * scripttempl/h8300.sc: Fix formatting.
610 * scripttempl/h8300h.sc: Likewise.
611 * scripttempl/h8300s.sc: Likewise.
613 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
615 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
617 2000-11-09 Philip Blundell <pb@futuretv.com>
619 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
620 around orphan sections whose names can be represented in C.
622 2000-11-07 Jim Wilson <wilson@redhat.com>
624 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
625 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
627 2000-11-06 Nick Clifton <nickc@redhat.com>
629 * ld.texinfo: Add GNU Free Documentation License.
630 * ldint.texinfo: Add GNU Free Documentation License.
631 * ld.1: Add GNU Free Documentation License.
633 2000-11-05 Alan Modra <alan@linuxcare.com.au>
635 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
636 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
638 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
639 Move 2000-11-02 Makefile.in changes to this file.
640 * Makefile.in: Regenerate.
642 2000-11-03 Nick Clifton <nickc@redhat.com>
644 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
645 constructors and destructors.
646 * scripttempl/h8300h.sc: Ditto.
647 * scripttempl/h8300s.sc: Ditto.
648 * scripttempl/h8500.sc: Ditto.
649 * scripttempl/h8500b.sc: Ditto.
650 * scripttempl/h8500c.sc: Ditto.
651 * scripttempl/h8500m.sc: Ditto.
652 * scripttempl/h8500s.sc: Ditto.
653 * scripttempl/v850.sc: Ditto.
654 * scripttempl/w65.sc: Ditto.
655 * scripttempl/z8000.sc: Ditto.
657 2000-11-02 Per Lundberg <plundis@chaosdev.org>
659 * Makefile.in (e_i386_chaos.c): New rule.
660 (ALL_EMULATIONS): Added e_i386_chaos.o.
661 * emulparams/elf_i386_chaos.sh: New file.
662 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
664 2000-10-20 Jakub Jelinek <jakub@redhat.com>
666 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
667 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
668 Fix sed invocation, so that it coped with '/' in Solaris 64bit
670 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
672 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
674 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
675 for consecutive sections.
677 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
679 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
681 * ld.texinfo: Added notes about this new option.
683 2000-10-16 Nick Clifton <nickc@redhat.com>
685 * emultempl/pe.em (_after_open): Add tests of return values from
686 bfd functions. Emit appropriate error messages if necessary.
688 2000-10-13 Nick Clifton <nickc@redhat.com>
690 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
691 local variables - they are not used, but leave in the call to
692 bfd_canonicalize_symtab.
693 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
694 pe_dll_search_prefix.
696 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
698 * emultempl/pe.em (pe_dll_search_prefix): New variable,
699 (longopts): New --dll-search-prefix option.
700 (gld_${EMULATION_NAME}_list_options): Document.
701 (gld_${EMULATION_NAME}_parse_args): Handle.
702 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
703 dynamically, search for a dll named '<prefix><basename>.dll'
704 in preference to 'lib<basename>.dll' if --dll-search-prefix
707 2000-10-12 Alan Modra <alan@linuxcare.com.au>
709 * ldlang.c (section_already_linked): Set kept_section instead of
712 2000-10-10 Kazu Hirata <kazu@hxi.com>
714 * deffile.h: Fix formatting.
715 * lexsup.c: Likewise.
718 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
720 * pe-dll.c (make_one): Do not generate code thunk for DATA
722 (process_def_file): deduce DATA flag for auto-export sumbols.
724 2000-10-09 Kazu Hirata <kazu@hxi.com>
726 * ld.h: Fix formatting.
727 * ldcref.c: Likewise.
728 * ldctor.h: Likewise.
729 * ldemul.c: Likewise.
730 * ldemul.h: Likewise.
733 * ldfile.c: Likewise.
734 * ldfile.h: Likewise.
735 * ldlang.c: Likewise.
736 * ldlang.h: Likewise.
737 * ldmain.c: Likewise.
738 * pe-dll.c: Likewise.
740 * pe-dll.c: Revert some formatting fixes.
742 2000-10-08 Kazu Hirata <kazu@hxi.com>
744 * pe-dll.c: Fix formatting.
746 2000-10-05 Kazu Hirata <kazu@hxi.com>
748 * ldlang.c: Fix formatting.
750 2000-10-03 DJ Delorie <dj@redhat.com>
752 * pe-dll.c (fill_edata): initialize entire block
753 (make_one): fill in correct section.
755 2000-10-03 Kazu Hirata <kazu@hxi.com>
757 * ldexp.c: Fix formatting.
759 2000-10-02 DJ Delorie <dj@redhat.com>
761 * emultempl/pe.em (gld_*_after_open): detect case where there two
762 import libraries for same dll; rename one to ensure proper link
765 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
767 (generate_edata): fix typo
769 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
771 * scripttempl/crisaout.sc (ENTRY): Now __start.
772 (.text): Add default setting for __start.
773 Remove CONSTRUCTORS handling.
774 (/DISCARD/): Add .gnu.warning.*.
775 * emulparams/crislinux.sh (ENTRY): Now __start.
776 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
777 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
778 (ENTRY): Now __start.
779 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
780 (EXECUTABLE_SYMBOLS): Add default setting for __start.
782 2000-09-29 Kazu Hirata <kazu@hxi.com>
784 * deffile.h: Fix formatting.
786 * ldcref.c: Likewise.
787 * ldctor.c: Likewise.
788 * ldctor.h: Likewise.
789 * ldemul.c: Likewise.
790 * ldemul.h: Likewise.
793 * ldfile.c: Likewise.
794 * ldfile.h: Likewise.
795 * ldlang.c: Likewise.
796 * ldlang.h: Likewise.
797 * lexsup.c: Likewise.
799 * pe-dll.c: Likewise.
801 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
803 * pe-dll.c (process_def_file): Uninitialized data wasn't
804 exported with --export-all-symbols switch.
806 2000-09-28 DJ Delorie <dj@redhat.com>
808 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
809 noname work properly.
811 2000-09-28 Alan Modra <alan@linuxcare.com.au>
813 * ld.texinfo (HPPA ELF32): New section.
815 * emultempl/hppaelf.em (group_size): New.
816 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
817 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
818 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
819 options to prevent abbreviations matching.
820 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
821 (PARSE_AND_LIST_ARGS_CASES): Handle it.
823 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
825 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
826 on the m68*-*-elf target. Make it support COFF input objects.
828 2000-09-21 Kazu Hirata <kazu@hxi.com>
830 * ldmain.c: Fix formatting.
831 * ldmisc.c: Likewise.
833 * ldwrite.c: Likewise.
835 2000-09-21 Alan Modra <alan@linuxcare.com.au>
837 * ldwrite.c (clone_section): Silence gcc warnings.
839 2000-09-20 Alan Modra <alan@linuxcare.com.au>
841 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
842 out of memory failure.
844 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
845 (clone_section): Handle out of memory failures. Rename var to
846 avoid c++ reserved word.
848 2000-09-18 Alan Modra <alan@linuxcare.com.au>
850 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
851 stub_name param to stub_sec_name.
852 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
854 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
856 * emultempl/m68kelf.em: New file.
857 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
858 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
859 * Makefile.in: Regenerate.
861 2000-09-15 Alan Modra <alan@linuxcare.com.au>
863 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
866 2000-09-13 Nick Clifton <nickc@redhat.com>
868 * ldmain.c (multiple_definition): Disable relaxation if
869 multiple symbol definitions are encountered - otherwise the
870 linker could abort with an assertion failure.
872 2000-09-10 Nick Clifton <nickc@redhat.com>
874 * mri.c: Fix formatting.
876 2000-09-07 H.J. Lu <hjl@gnu.org>
878 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
879 * configure: Rebuild.
881 2000-09-07 H.J. Lu <hjl@gnu.org>
883 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
884 * Makefile.in: Rebuild.
886 2000-09-07 Alan Modra <alan@linuxcare.com.au>
888 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
889 broken list handling. Create __start_SECNAME and __stop_SECNAME
890 when no place-holder. Add some comments. Test both SEC_CODE and
891 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
892 Handle case where no output section statement created.
894 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
896 * configure.tgt (sh-*-linux*): Added.
897 * Makefile.am: Added eshelf_linux and eshlelf_linux.
898 * Makefile.in: Rebuilt.
899 * emulparams/shelf_linux.sh: New file.
900 * emulparams/shlelf_linux.sh: New file.
902 2000-09-06 Alan Modra <alan@linuxcare.com.au>
904 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
905 try shuffling sections when the orphan happens to be the place
906 holder. Keep count of unique section names generated so we speed
907 the search for a new name.
909 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
911 * configure: Rebuilt with new libtool.m4.
913 2000-09-05 Nick Clifton <nickc@redhat.com>
915 * Makefile.in: Regenerate.
916 * aclocal.m4: Regenerate.
917 * configure: Regenerate.
918 * config.in: Regenerate.
919 * po/ld.pot: Regenerate.
921 * ldint.texinfo: Remove CVS revision marker - it foils local
924 * emultempl/ticoff.em: Remove extraneous comma.
926 2000-09-05 Alan Modra <alan@linuxcare.com.au>
928 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
929 to stub section flags.
930 (hppa_for_each_input_file_wrapper): New.
931 (hppa_lang_for_each_input_file): New.
932 (lang_for_each_input_file): Define to call above.
933 (multi_subspace): New.
934 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
935 (PARSE_AND_LIST_PROLOGUE): Define.
936 (PARSE_AND_LIST_LONGOPTS): Define.
937 (PARSE_AND_LIST_OPTIONS): Define.
938 (PARSE_AND_LIST_ARGS_CASES): Define.
939 (hppaelf_finish): Call elf32_hppa_set_gp.
940 (hppaelf_set_output_arch): Remove.
941 (LDEMUL_SET_OUTPUT_ARCH): Remove.
943 * emulparams/hppalinux.sh (ELFSIZE): Define.
945 (OTHER_READONLY_SECTIONS): Define.
947 (GENERATE_SHLIB_SCRIPT): Define.
949 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
950 to const throughout. Change `void *' to `PTR' throughout.
951 (lang_memory_default): Function is local to file, add `static'.
953 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
954 (ehppalinux.c): Likewise.
955 (earmelf.c): Likewise.
956 (earmelf_linux.c): Likewise.
957 (earmelf_linux26.c): Likewise.
958 * Makefile.in: Regenerate.
960 * ld.h (ld_config_type): Add unique_orphan_sections.
961 * lexsup.c (OPTION_UNIQUE): Define.
962 (ld_options): Add "--unique".
963 (parse_args): Handle it.
964 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
965 search for an existing output section if unique_orphan_sections is
966 set. Make use of bfd_get_unique_section_name rather than
967 duplicating code here.
968 * ld.texinfo: Describe --unique.
970 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
971 optional arg to split-by-file.
972 (parse_args): Handle them.
973 * ld.texinfo: Update description of these options.
974 * ldwrite.c (clone_section): Pass in the section name. Replace
975 local code with bfd_get_unique_section_name.
976 (split_sections): Tidy code and comments. Use a list traversal
977 more appropriate to the list construction. Handle cooked section
978 sizes. Split when split_by_reloc reached rather than exceeded.
979 Track section size and split when split_by_file reached. Fix
980 link_order_tail (even though it's not used).
981 (ldwrite): Modify condition for calling split_sections to suit
982 changed split_by_reloc and split_by_file.
983 * ldmain.c (main): Init config.split_by_reloc and
984 config.split_by_file to -1.
985 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
986 Change split_by_file to bfd_size_type.
988 2000-09-02 Nick Clifton <nickc@redhat.com>
990 * configure.in: Increase version number to 2.10.91.
991 * NEWS: Mention new ability to support removal of duplicate DWARF2
993 * configure: Regenerate.
994 * aclocal.m4: Regenerate.
995 * config.in: Regenerate.
997 2000-09-02 Daniel Berlin <dberlin@redhat.com>
999 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1001 * scripttempl/elf32avr.sc: Ditto.
1002 * scripttempl/elfd10v.sc: Ditto.
1003 * scripttempl/elfd30v.sc: Ditto.
1004 * scripttempl/elfi370.sc: Ditto.
1005 * scripttempl/elfm68hc11.sc: Ditto.
1006 * scripttempl/elfm68hc12.sc: Ditto.
1007 * scripttempl/elfi386beos.sc: Ditto.
1008 * scripttempl/v850.sc: Ditto.
1010 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1012 * acinclude.m4: Include libtool and gettext macros from the
1014 * aclocal.m4, configure: Rebuilt.
1016 2000-08-25 Nick Clifton <nickc@redhat.com>
1018 * ldlang.c (open_output): When choosing the target for a
1019 particular endianness, do nothing if the target is not
1022 2000-08-25 H.J. Lu <hjl@gnu.org>
1024 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1025 check -rpath nor LD_RUN_PATH for cross link.
1026 * ld.texinfo: Document the change.
1028 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1030 * NEWS: Mention support for CRIS.
1032 2000-08-23 H.J. Lu <hjl@gnu.org>
1034 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1035 the current runpath list from bfd_elf_get_runpath_list ()
1038 2000-08-22 H.J. Lu <hjl@gnu.org>
1040 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1041 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1042 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1043 trace_file_tries is non-zero.
1044 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1045 if trace_file_tries is non-zero.
1047 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1050 2000-08-14 Jason Eckhardt <jle@cygnus.com>
1052 * NEWS: Mention i860 support.
1054 2000-08-14 Andreas Schwab <schwab@suse.de>
1056 * scripttempl/elf.sc: Fix last change to use correct comment
1059 2000-08-10 Geoff Keating <geoffk@cygnus.com>
1061 * scripttempl/elf.sc: Add a comment giving the correspondence
1062 between sections, per-datum sections, and linkonce sections. Make
1063 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1066 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1068 * emulparams/elf32_i860.sh: New file.
1069 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1070 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1071 (eelf32_i860.c): New rule.
1072 * Makefile.in: Regenerate.
1074 2000-08-10 Nick Clifton <nickc@cygnus.com>
1076 * emulparams/mipspe.sh (ENTRY): Add definition.
1078 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
1080 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1083 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1085 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1086 the final size of .bss section.
1087 * scripttempl/elfm68hc12.sc: Likewise.
1089 2000-08-04 Alan Modra <alan@linuxcare.com.au>
1091 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1092 gld${EMULATION_NAME}_parse_args for consistency. Combine
1093 lastoptind and prevoptind vars, and keep track of last optind.
1094 (gld_${EMULATION_NAME}_list_options): Rename to
1095 gld${EMULATION_NAME}_list_options.
1097 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
1099 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1100 (i586-sco-sysv5uw7.1.0).
1102 2000-07-27 H.J. Lu <hjl@gnu.org>
1104 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1105 (PARSE_AND_LIST_PROLOGUE): New.
1106 (PARSE_AND_LIST_LONGOPTS): Likewise.
1107 (PARSE_AND_LIST_OPTIONS): Likewise.
1108 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1109 (PARSE_AND_LIST_EPILOGUE): Likewise.
1111 2000-07-28 Alan Modra <alan@linuxcare.com.au>
1113 * emultempl/armelf.em: Elide functions common to elf32.em,
1114 ie. most of the file.
1115 (arm_elf_after_open): New. Do arm specific things then call
1116 gld${EMULATION_NAME}_after_open.
1117 (arm_elf_before_allocation): New. Call
1118 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1119 (PARSE_AND_LIST_PROLOGUE): Define.
1120 (PARSE_AND_LIST_SHORTOPTS): Define.
1121 (PARSE_AND_LIST_LONGOPTS): Define.
1122 (PARSE_AND_LIST_OPTIONS): Define.
1123 (PARSE_AND_LIST_ARGS_CASES): Define.
1124 (LDEMUL_AFTER_OPEN): Define.
1125 (LDEMUL_BEFORE_ALLOCATION): Define.
1126 (LDEMUL_BEFORE_PARSE): Define.
1127 (LDEMUL_FINISH): Define.
1129 * emultempl/hppaelf.em: Similarly zap most of this file.
1130 (hppaelf_add_stub_section): Prototype.
1131 (hppaelf_layaout_sections_again): Prototype.
1132 (hook_in_stub): Prototype.
1133 (LDEMUL_SET_OUTPUT_ARCH): Define.
1134 (LDEMUL_FINISH): Define.
1135 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1137 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1138 (EXTRA_EM_FILE): New.
1139 * emulparams/armelf_linux.sh: Likewise.
1140 * emulparams/armelf_linux26.sh: Likewise.
1141 * emulparams/hppalinux.sh: Likewise.
1142 * emulparams/hppaelf.sh: Likewise.
1145 * emultempl/elf32.em: Fix formatting.
1146 (EXTRA_EM_FILE): Source it.
1147 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1148 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1149 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1150 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1151 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1152 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1153 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1154 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1155 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1156 allow functions in this file to be overridden.
1157 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1159 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1161 * emultempl/elf32.em: Reorganize file.
1163 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
1165 * emulparams/elf64alpha.sh: Implement "-taso" emulation
1166 specific option to fit 64-bit executable in the lower
1167 31-bit address range. This is done by changing start
1168 address of .interp (the very first section of executable)
1169 and then setting EF_ALPHA_32BIT elf header flag.
1171 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1173 * emultempl/m68kcoff.em: New file.
1174 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1175 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1177 * Makefile.in: Regenerate.
1179 2000-07-20 H.J. Lu <hjl@gnu.org>
1181 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1182 and "disable-new-dtags" to stop getopt from treating -d/-e as
1183 abbreviations for these options.
1185 2000-07-20 H.J. Lu <hjl@gnu.org>
1187 * ld.texinfo: Add documentation for --disable-new-dtags and
1190 * ldmain.c (main): Initialize link_info.new_dtags to false.
1192 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1193 --disable-new-dtags and --enable-new-dtags.
1194 (gld_${EMULATION_NAME}_list_options): Likewise.
1196 2000-07-05 Kenneth Block <krblock@computer.org>
1198 * lexsup.c: Add optional style to demangle switch
1199 * ld.texinfo: Document optional style to demangle switch.
1201 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1203 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1205 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1206 Regenerate dependencies.
1207 * Makefile.in: Rebuild.
1208 * configure.tgt (cris-*-*): New target.
1209 * emulparams/crisaout.sh, emulparams/criself.sh,
1210 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1211 * po/POTFILES.in, po/ld.pot: Regenerate.
1213 2000-07-20 H.J. Lu <hjl@gnu.org>
1215 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1216 Print out ignored -z options.
1218 2000-07-19 H.J. Lu <hjl@gnu.org>
1220 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1221 (PARSE_AND_LIST_PROLOGUE): New.
1222 (PARSE_AND_LIST_LONGOPTS): Likewise.
1223 (PARSE_AND_LIST_OPTIONS): Likewise.
1224 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1226 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1228 * lexsup.c (ld_options): Comment out 'z'.
1229 (parse_args): Likewise.
1231 * emultempl/elf32.em: Include "elf/common.h".
1232 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1234 (gld_${EMULATION_NAME}_list_options): Likewise.
1236 * ld.texinfo: Add documentation for the recognized -z options.
1238 2000-07-19 H.J. Lu <hjl@gnu.org>
1240 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1241 bfd_elf_set_dt_needed_soname ().
1243 2000-07-18 DJ Delorie <dj@cygnus.com>
1245 * pe-dll.c (pe_dll_id_target): check object target name also
1247 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
1249 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1250 ${INIT_END} if relocating.
1251 (.fini): Likewise ${FINI_START} and ${FINI_END}.
1253 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
1255 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1256 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1257 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1258 errors introduced by the old dynamic lib search order.
1260 2000-07-17 DJ Delorie <dj@cygnus.com>
1262 * pe-dll.c (process_def_file): auto-export data items also
1263 (pe_process_import_defs): also see if _imp_ form needed
1265 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1267 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1268 for dll import libraries
1270 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
1272 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1273 gcc 2.95.2 and later.
1275 2000-07-11 Kazu Hirata <kazu@hxi.com>
1277 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1280 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1282 * ldemul.h (struct lang_input_statement_struct): Remove forward
1284 (struct search_dirs): Likewise.
1285 * ldfile.h (struct lang_input_statement_struct): Likewise.
1286 Protect file from multiple inclusion.
1287 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1288 declaration from macro to file scope.
1290 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1291 * ldgram.y: Likewise here.
1292 * ldlang.c: And here.
1293 * ldmain.c: And here.
1294 * mpw-elfmips.c: And here.
1295 * mpw-eppcmac.c: And here.
1296 * emultempl/aix.em: And here.
1297 * emultempl/armcoff.em: And here.
1298 * emultempl/armelf.em: And here.
1299 * emultempl/armelf_oabi.em: And here.
1300 * emultempl/beos.em: And here.
1301 * emultempl/elf32.em: And here.
1302 * emultempl/hppaelf.em: And here.
1303 * emultempl/linux.em: And here.
1304 * emultempl/lnk960.em: And here.
1305 * emultempl/pe.em: And here.
1306 * emultempl/sunos.em: And here.
1307 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1308 * mpw-idtmips.c: Ditto.
1309 * emultempl/generic.em: Ditto.
1310 * emultempl/gld960.em: Ditto.
1311 * emultempl/gld960c.em: Ditto.
1312 * emultempl/mipsecoff.em: Ditto.
1313 * emultempl/ticoff.em: Ditto.
1314 * emultempl/vanilla.em: Ditto.
1316 * pe-dll.c: Include ldfile.h
1317 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1319 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1320 arguments to bfd_elf32_size_dynamic_sections call.
1321 (gldelf32ebmip_place_orphan): Add missing arguments to
1322 lang_leave_output_section_statement call.
1324 2000-07-10 H.J. Lu <hjl@gnu.org>
1326 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1328 (strhash): Likewise.
1329 (compute_dll_image_base): Likewise.
1330 (pe_undef_found_sym): Likewise.
1331 (pe_undef_cdecl_match): Likewise.
1332 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1333 argument "arch" with ATTRIBUTE_UNUSED.
1335 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1337 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1339 From Ryan Bradetich <rbradetich@uswest.net>
1340 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1342 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1344 Changes to create multiple linker stubs, positioned immediately
1345 before the section where they are required.
1346 * emultempl/hppaelf.em: Include elf32-hppa.h.
1347 (stub_sec, file_chain): Delete.
1348 (hppaelf_create_output_section_statements): Don't make a stub
1350 (hook_stub_info): New struct.
1351 (hook_in_stub): New function.
1352 (hppaelf_add_stub_section): New function.
1353 (hppaelf_finish): Do nothing for relocateable links. Modify the
1354 call to elf32_hppa_size_stubs. Move code for updating section
1356 (hppaelf_layaout_sections_again): ..to here, a new function.
1358 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1359 broken list handling. Pass in a pointer to the list.
1360 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1362 (hppaelf_before_parse): Prototype.
1363 (hppaelf_set_output_arch): Prototype.
1364 (hppaelf_create_output_section_statements): Prototype.
1365 (hppaelf_delete_padding_statements): Prototype.
1366 (hppaelf_finish): Prototype.
1369 * emultempl/hppaelf.em: Include ctype.h.
1370 (struct orphan_save): New.
1371 (gld${EMULATION_NAME}_place_orphan): New.
1372 (output_rel_find): New.
1373 (hppaelf_get_script): Update from elf32.em.
1374 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1375 Change emulation_name field to "${EMULATION_NAME}". Add
1376 gld${EMULATION_NAME}_place_orphan.
1378 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
1379 ehppalinux.o, sort it. Regenerate dependencies.
1380 (ehppalinux.c): Depend on hppaelf.em
1381 * Makefile.in: Regenerate.
1383 * configure.tgt: targ_emul=hppalinux for hppa*linux
1385 * emulparams/hppalinux.sh: New.
1386 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1388 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1390 * lexsup.c (parse_args): Copy section name.
1392 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
1394 * emultempl/pe.em: institute the following search order for
1395 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1396 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
1397 static lib (libfoo.a) if none of the above are found.
1399 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
1401 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1402 (longopts): New --{enable,disable}-auto-image-base options.
1403 (gld_${EMULATION_NAME}_list_options): Document.
1404 (gld_${EMULATION_NAME}_parse): Handle.
1405 (strhash): New static function.
1406 (compute_dll_image_base): New static function.
1407 (gld_${EMULATION_NAME}_set_symbols): Use.
1409 2000-07-05 DJ Delorie <dj@redhat.com>
1413 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1415 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1416 * emulparams/elf32btsmip.sh: New file.
1417 * Makefile.am: Add traditional mips target.
1418 * Makefile.in: Rebuild.
1420 2000-07-01 H.J. Lu <hjl@gnu.org>
1422 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1423 automake to use YLWRAP.
1424 * Makefile.in: Rebuild.
1426 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1428 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1429 (CLEANFILES): Add DEPA.
1430 * Makefile.in: Regenerate.
1432 2000-06-30 Timothy Wall <twall@ppc>
1434 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1435 the page in the upper octet of the address.
1437 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1439 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1441 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1443 * NEWS: arm-elf does --gc-sections too.
1445 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1447 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1449 * Makefile.in: Regenerate.
1451 2000-06-21 H.J. Lu <hjl@gnu.org>
1453 * Makefile.am: Rebuild dependency.
1454 * Makefile.in: Rebuild.
1456 2000-06-20 H.J. Lu <hjl@gnu.org>
1458 * Makefile.am: Rebuild dependency.
1459 * Makefile.in: Rebuild.
1461 2000-06-20 Timothy Wall <twall@cygnus.com>
1463 * scripttempl/tic54xcoff.sc: New.
1464 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1465 * gen-doc.texi: Add flag for TI COFF.
1466 * ld.texinfo: Add documentation for TI COFF handling switches.
1467 * emultempl/ticoff.em: New. TI COFF handling.
1468 * configure.tgt: Add tic54x target.
1469 * Makefile.am: Add tic54x target.
1470 * Makefile.in: Ditto.
1472 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1474 * ldmain.c (set_scripts_dir): Correct pointer comparison when
1475 checking for backslashes.
1477 2000-06-19 Alan Modra <alan@linuxcare.com.au>
1479 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1481 2000-06-18 Alan Modra <alan@linuxcare.com.au>
1483 * NEWS: Update list of targets supporting --gc-sections.
1485 * scripttempl/elf.sc: KEEP .eh_frame contents.
1486 * scripttempl/elfd30v.sc: Same here.
1488 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1490 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1492 * Makefile.in: Rebuild.
1493 * configure.tgt: Recognize m68hc12 and m68hc11.
1494 * scripttempl/elfm68hc12.sc: New file.
1495 * emulparams/m68hc12elfb: New emulation.
1496 * emulparams/m68hc12elf: New emulation.
1497 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
1498 (includes a memory.x script to define the ROM and RAM banks).
1499 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1500 New configuration files for support of Motorola 68hc11
1502 2000-06-15 Alan Modra <alan@linuxcare.com.au>
1504 * ldmain.c (main): Only change SEC_READONLY for final link.
1506 2000-06-13 H.J. Lu <hjl@gnu.org>
1508 * configure: Regenerate.
1510 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1512 * configure.in (VERSION): Update to show this is the CVS mainline.
1514 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1516 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1517 input objects to be ECOFF.
1518 (check_sections): einfo takes %B, not %P, to print a BFD name.
1520 2000-06-05 Michael Matz <matz@ifh.de>
1522 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1525 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1527 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
1529 * emulparams/avr1200.sh (STACK): Define as 0.
1530 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1531 * emulparams/avr4433.sh (STACK): Likewise.
1532 * emulparams/avr44x4.sh (STACK): Likewise.
1533 * emulparams/avr85xx.sh (STACK): Likewise.
1534 * emulparams/avrmega103.sh (STACK): Likewise.
1535 * emulparams/avrmega161.sh (STACK): Likewise.
1536 * emulparams/avrmega603.sh (STACK): Likewise.
1537 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1538 (__stack): Define from ${STACK} for main().
1540 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1542 * Makefile.am: Update dependencies with "make dep-am"
1543 * Makefile.in: Regenerate.
1545 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1547 * ldmain.c: Include filenames.h.
1548 (set_scripts_dir): Support backslashes in program name.
1550 2000-05-22 Igor Shevlyakov <igor@windriver.com>
1552 * ldmain.c (main): When deciding if ".text" section should be
1553 read-only, don't forget to reset SEC_READONLY because it
1554 could be already set.
1556 2000-05-22 Thomas de Lellis <tdel@windriver.com>
1558 * ld.1: Add documentation for new command line option:
1559 --section-start <sectionname>=<sectionorg>
1560 This is a generic version of -Ttext etc. which accepts
1561 any section name as a parameter instead of just text/data/
1563 * ld.texinfo: More docs.
1565 * lexsup.c: (parse_args): Recognize new command line option.
1566 (ld_options): Add new option.
1568 2000-05-18 H.J. Lu <hjl@gnu.org>
1570 * lexsup.c (parse_args): `i' == `r', not `q'.
1572 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
1574 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1576 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1577 Rick Gorton <gorton@scrugs.lkg.dec.com>
1579 Add support for '-q' == '--emit-relocs' switch.
1580 * ldmain.c (main): Default to false.
1581 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1582 * NEWS: Describe the emitrelocations switch.
1583 * ld.texinfo: Describe the emitrelocations switch.
1585 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1587 * emultempl/pe.em (_open_dynamic_archive): New function: Search
1588 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1589 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1592 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1594 * lexsup.c (parse_args): Update the year in the copyright notice.
1596 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1598 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1599 Replace defines with those from intl/libgettext.h to quieten gcc
1602 2000-05-10 H.J. Lu <hjl@gnu.org>
1604 * ldlang.c (open_input_bfds): Don't load the same file within
1605 a group again if the whole archive has been loaded already.
1607 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1609 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1610 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1613 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1615 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1617 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1618 host "ia64-*-linux-gnu*".
1620 2000-04-29 Andreas Jaeger <aj@suse.de>
1622 * ld.h: Correctly check GCC version.
1624 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1626 * Makefile.am: Add PA64 support. Add missing dependencies for
1628 * Makefile.in: Rebuilt.
1629 * configure.tgt: Add PA64 support (currently disabled).
1631 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1633 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1634 (output_rel_find): New function.
1635 (hold_section, hold_use): Delete.
1636 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1637 hold_interp): Make local to place_orphan.
1638 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1639 rather than place_section to find possible previous use of orphan.
1640 Similarly find the place-holder output sections. Use returned
1641 value from lang_enter_output_section_statement rather than calling
1642 lang_output_section_statement_lookup.
1643 * emultempl/armelf.em: Same here.
1644 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1646 * ldlang.c (lang_enter_output_section_statement): Return output
1648 * ldlang.h (lang_enter_output_section_statement): Change
1651 * ldlang.h (lang_output_section_statement): Export it.
1652 * ldlang.c (lang_output_section_statement): Ditto.
1654 2000-04-24 Nick Clifton <nickc@cygnus.com>
1656 * ld.texinfo (Output Section Data): Add note that section data
1657 commands cannot appear outside of section directives.
1659 2000-04-2 Matthew Green <mrg@cygnus.com>
1661 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1663 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1664 David Mosberger <davidm@hpl.hp.com>
1666 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1667 (eelf64_ia64.c): New rule.
1668 * Makefile.in: Rebuild.
1669 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1670 * emulparams/elf64_ia64.sh: New file.
1672 2000-04-21 Richard Henderson <rth@cygnus.com>
1674 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1676 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1678 * dep-in.sed: Match space at start of file name, not at end.
1680 2000-04-18 H.J. Lu <hjl@gnu.org>
1682 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1683 lang_leave_output_section_statement () after calling
1684 lang_enter_output_section_statement ().
1685 * emultempl/armelf.em: Likewise.
1687 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1689 * emultempl/elf32.em (struct orphan_save): Add section field.
1690 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1691 better order, and place first orphan section as we did before the
1692 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1693 Don't call make_bfd_section here, let wild_doit do the job for us.
1694 Don't build a statement list when we'll only throw it away.
1695 * emultempl/armelf.em: Ditto.
1696 * emultempl/pe.em: Similarly.
1698 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1700 * scripttempl/elfppc.sc: Remove.
1701 * emulparams/elf32ppc.sh: Use elf.sc.
1702 * emulparams/elf32lppc.sh: Use elf.sc.
1703 * emulparams/elf32ppclinux.sh: Use elf.sc.
1704 * emulparams/elf32ppcsim.sh: New file.
1705 * emulparams/elf32lppcsim.sh: New file.
1706 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1707 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1708 * Makefile.in: Regenerate.
1709 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1711 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1713 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1714 ~SEC_ALLOC sections too. Init start address of debug sections.
1715 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1716 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1717 Also set all relocateable section start addresses.
1719 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1721 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1722 Add new BSS_PLT variable for when .plt need not be contained in
1723 the file. Move _etext so that it is also after .fini, and provide
1724 both etext and _etext with a leading underscore. Mark the start
1727 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1729 * emultempl/elf32.em (struct orphan_save): New.
1730 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1731 hold_interp): Make them struct orphan_save.
1732 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1733 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1734 the end of the relevant section list. Also add associated section
1735 statements to the end of any previous orphan statements.
1736 * emultempl/armelf.em: Similarly.
1737 * emultempl/pe.em: Similarly.
1739 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1741 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1743 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1745 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1746 --enable-build-warnings option.
1747 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1748 * Makefile.in, configure: Re-generate.
1750 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1752 * po/ld.pot: Regenerate.
1754 * lexsup.c (help): Restore translated part of bug string.
1756 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1757 (DEP): Quote when passing vars to sub-make. Add warning message
1759 (DEP1): Rewrite for "gcc -MM".
1760 (CLEANFILES): Add DEP2.
1761 Update dependencies.
1762 * Makefile.in: Regenerate.
1764 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1766 * ld.h: #include "bin-bugs.h"
1767 * lexsup.c (help): Use REPORT_BUGS_TO.
1769 2000-03-27 Denis Chertykov <denisc@overta.ru>
1771 * configure.tgt (avr-*-*): New target support.
1772 * Makefile.am: Likewise.
1773 * scripttempl/elf32avr.sc: New script file.
1774 * emulparams/avr1200.sh: New file.
1775 * emulparams/avr23xx.sh: New file.
1776 * emulparams/avr4433.sh New file.
1777 * emulparams/avr44x4.sh New file.
1778 * emulparams/avr85xx.sh New file.
1779 * emulparams/avrmega103.sh New file.
1780 * emulparams/avrmega161.sh New file.
1781 * emulparams/avrmega603.sh New file.
1782 * Makefile.in: Regenerate.
1784 2000-03-09 Andreas Jaeger <aj@suse.de>
1786 * Makefile.am (check-DEJAGNU): Also unset LANG.
1787 * Makefile.in: Rebuild.
1789 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1791 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1794 2000-03-02 H.J. Lu <hjl@gnu.org>
1796 * emulparams/elf32mcore.sh: Include "getopt.h".
1798 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1800 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1802 2000-03-01 H.J. Lu <hjl@gnu.org>
1804 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1805 * emulparams/shpe.sh: Likewise.
1807 2000-03-01 Nick Clifton <nickc@cygnus.com>
1809 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1810 to unused parameters.
1812 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1813 functions only used by DLL code.
1814 (_place_orphan): Initialise 'dollar'.
1816 2000-03-01 H.J. Lu <hjl@gnu.org>
1818 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1819 indicate if the undefined symbol is a fatal error or not.
1820 Don't delete the output file if "fatal" is false.
1822 2000-02-29 H.J. Lu <hjl@gnu.org>
1824 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1825 Set LC_COLLATE and LC_ALL to null and export them. It is for
1826 sort which expects the C locale.
1827 Add $(LIBS) to all $(HOSTING_LIBS).
1828 * Makefile.in: Rebuild.
1830 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1832 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1833 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1834 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1835 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1836 find_potential_libraries.
1838 2000-02-28 Jim Blandy <jimb@redhat.com>
1840 * ldgram.y (exclude_name_list): Don't require a comma to separate
1841 list entries; the lexer considers commas to be valid part of a
1842 filename, so in something like `foo, bar' the comma is considered
1843 part of the first filename, `foo,'.
1844 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1846 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1848 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1849 host "i[3456]86-*-freebsdelf*".
1851 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1853 * scripttempl/i386go32.sc: Move misplaced semicolons.
1855 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1857 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1858 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1859 (eelf64hppa.c, ehppaelf.c): Remove targets.
1860 * Makefile.in: Rebuild.
1862 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1864 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1865 GNU/Linux/sparc, but keep the default as 32.
1867 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
1868 it default if sparcv9 or sparc64.
1870 2000-02-24 Nick Clifton <nickc@cygnus.com>
1872 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1873 * Makefile.in: Regenerate.
1874 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1876 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1877 find_potential_libraries.
1878 * ldemul.c (ldemul_find_potential_libraries): New function.
1880 * ldfile.c (ldfile_open_file_search): Allow function to be
1882 (ldfile_open_file): Call ldemul_find_potential_libraries.
1883 * ldfile.h: Add prototype for ldfile_open_file_search.
1885 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1887 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1888 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1890 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1891 (gld_X_find_potential_libraries): New function. Search for
1892 libraries called "*.lib".
1894 * scripttempl/pe.sc: Add .pdata section.
1896 2000-02-23 Richard Henderson <rth@cygnus.com>
1898 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1899 Add and use memory regions.
1901 2000-02-23 Linas Vepstas (linas@linas.org)
1903 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1905 * Makefile.am: Add support for Linux/IBM 370.
1906 * configure.tgt: Likewise.
1908 * Makefile.in: Regenerate.
1910 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1912 * ldlang.c (print_input_section, print_data_statement,
1913 print_reloc_statement, print_padding_statement, insert_pad,
1914 size_input_section, lang_check_section_addresses,
1915 lang_size_sections, lang_do_assignments, lang_set_startof,
1916 lang_one_common): Change `opb' to unsigned.
1917 (lang_do_assignments): Also change `size' to unsigned.
1919 2000-02-16 Richard Henderson <rth@cygnus.com>
1921 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1923 2000-02-16 Timothy Wall <twall@cygnus.com>
1925 * mri.c (mri_draw_tree): Add default LMA region argument to call
1926 to lang_leave_output_section_statement.
1927 * ldlang.h: Update prototypes with LMA region arguments.
1928 * ldlang.c (lang_size_sections): Encapsulate region bounds
1929 checking in os_check_region call.
1930 (os_check_region): New function.
1931 (lang_output_section_statement_lookup): Initialize lma_region.
1932 (lang_leave_output_section_statement): Add LMA region argument.
1933 (lang_leave_overlay): Ditto.
1934 * ldgram.y: Handle LMA region syntax.
1935 * ld.texinfo (Output Section Description): Describe LMA region usage.
1936 * emultempl/armelf.em (gld$place_orphan): Add default value for
1937 lma region in call to lang_leave_output_section_statement.
1938 * emultempl/elf32.em (gld$place_orphan): Add default value for
1939 lma region in call to lang_leave_output_section_statement.
1940 * emultempl/pe.em (gld$place_orphan): Add default value for
1941 lma region in call to lang_leave_output_section_statement.
1944 2000-02-04 Timothy Wall <twall@redhat.com>
1946 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1947 octets when calculating section end addresses.
1949 2000-02-04 Timothy Wall <twall@redhat.com>
1951 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1953 2000-02-03 Timothy Wall <twall@redhat.com>
1955 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
1957 * ldlang.c (print_input_section, print_data_statement,
1958 print_reloc_statement, print_padding_statement): Print target
1959 address values and section sizes as bytes, not octets.
1960 (insert_pad) Calculate padding size in octets, and adjust "dot"
1962 (size_input_section) Always adjust "dot" by bytes, not octets.
1963 (lang_check_section_addresses, lang_do_assignments) Adjust
1964 "dot" by bytes, not octets. Use the larger of the directive size
1965 or octets_per_byte for the number of octets actually allocated in
1967 (lang_set_startof) Make sure STARTOF returns a target address.
1968 (lang_one_common) Record size changes in octets.
1969 (lang_abs_symbol_at_end_of) Section end symbol's value is
1970 recorded in target bytes.
1971 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
1972 to be clear about behavior when an octet is smaller than one byte.
1974 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
1976 * ldcref.c (output_cref): Don't pass message strings to printf
1980 * ldmisc.c (vfinfo): Same here.
1983 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
1985 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
1986 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
1987 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
1988 Add missing NULL initialisers, and comments.
1990 * testsuite/ld-srec/sr3.cc (__rethrow): New.
1992 2000-01-21 Nick Clifton <nickc@cygnus.com>
1994 * ldlang.c (lang_size_sections): Fix typo in comment.
1996 2000-01-18 H.J. Lu <hjl@gnu.org>
1998 * ldlang.c (lang_size_sections): Also update the current
1999 address of a region if the SEC_NEVER_LOAD bit is not set.
2001 2000-01-10 Philip Blundell <pb@futuretv.com>
2003 * configure.tgt (arm*-*-conix*): New target.
2005 2000-01-07 Nick Clifton <nickc@cygnus.com>
2007 * ld.texinfo (Options): Remind users to preceed linker command
2008 line switches with -Wl, (or whatever is appropriate) if it is
2009 being invoked by a comnpiler driver program.
2010 Fix description of the behaviour of the -n command line switch.
2012 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2014 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2016 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2017 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2018 (exclude_name_list): New.
2019 ldlang.c (walk_wild_section): Support list of excluded files.
2020 (print_wild_statement): Likewise.
2021 (lang_add_wild): Likewise.
2022 * ldlang.h (lang_wild_statement_type): Likewise.
2023 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2025 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2027 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2028 (process_def_file): Use.
2029 (pe_dll_compat_implib): New variable.
2032 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2033 pe_dll_compat_implib.
2035 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2036 compat-implib options.
2037 (gld_${EMULATION_NAME}_list_options): List new options.
2038 (gld_${EMULATION_NAME}_parse_args): Handle.
2040 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2043 * deffilep.y (opt_name): Allow "." in name.
2045 For older changes see ChangeLog-9899
2051 version-control: never