1 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
3 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
5 2001-05-31 H.J. Lu <hjl@gnu.org>
7 * ldlang.c (open_input_bfds): Don't change the bfd error
8 handler whilst loading symbols.
10 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
12 * configure.tgt: Remove i370-mvs architecture, it is not currently
15 2001-05-25 H.J. Lu <hjl@gnu.org>
17 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
18 like emulparams/aixppc.sh.
20 2001-05-25 H.J. Lu <hjl@gnu.org>
22 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
23 setting of output_filename after bfd_scan_arch.
24 * emultempl/pe.em: Likewise.
26 2001-05-25 H.J. Lu <hjl@gnu.org>
28 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
29 like emulparams/aixppc.sh.
31 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
32 instead of ${srcdir}/emultempl/stringify.sed.
34 2001-05-25 Timothy Wall <twall@oculustech.com>
36 * emulparams/elf64_aix.sh: Change settings to match IBM linker
39 2001-05-25 Alan Modra <amodra@one.net.au>
41 * configure.host: Replace linuxoldld with linux*oldld.
42 * configure.tgt: Likewise.
44 2001-05-24 H.J. Lu <hjl@gnu.org>
46 * emultempl/stringify.sed: Removed again.
48 2001-05-24 H.J. Lu <hjl@gnu.org>
50 * emultempl/aix.em (OUTPUT_ARCH): Defined.
51 (gld${EMULATION_NAME}_before_parse): Initialize
52 ldfile_output_architecture, ldfile_output_machine and
53 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
54 * emultempl/beos.em: Likewise.
55 * emultempl/elf32.em: Likewise.
56 * emultempl/linux.em: Likewise.
57 * emultempl/mipsecoff.em: Likewise.
58 * emultempl/pe.em: Likewise.
59 * emultempl/sunos.em: Likewise.
61 2001-05-24 Tom Rix <trix@redhat.com>
63 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
64 udate import file format.
65 (change_symbol_mode) New, same
66 (is_syscall) New, same
67 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
68 * emulparams/aixppc64.sh : same
69 * emulparams/aixrs6.sh : same
70 * emulparams/ppcmacos.sh : same
71 * emultempl/aix.em : use strtoull to parse options
72 * Makefile.am : add eaixppc64 emulation for xcoff64
74 * configure.tgt : same
76 * scripttempl/aix.sc : default text section offset to 0x10000000
77 default data section offset to 0x20000000
78 add .sv3264 and .sv64 pseudo sections
79 loader and debug sections use the currect section offset.
81 * emultempl/aix.em : Add xcoff64 support
82 Add -binitfini support
83 (gld${EMULATION_NAME}_before_parse) -binitfini
84 (gld${EMULATION_NAME}_parse_args) same
85 (gld${EMULATION_NAME}_before_allocation) format change for special
88 * emulparams/aixppc64.sh : New file for xcoff64 support
90 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
92 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
93 variable to avoid non-portable shell construct.
95 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
97 * ldmain.c (get_emulation): Add -mips5 command line argument.
99 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
101 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
102 (ELF_INTERPRETER_NAME): Define it.
103 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
105 * configure.tgt (targ_emul, targ_extra_emuls)
106 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
107 as primary, elf_i386 as extra.
108 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
109 (eelf_i386_ldso.c): New rule.
110 * Makefile.in: Rebuilt.
112 2001-05-22 Nick Clifton <nickc@redhat.com>
114 * lexsup.c (ld_options): Allow -I to be an alias for
115 --dynamic-linker. This is for Solaris compatability.
116 * ld.texinfo: Document that -I can be used.
119 2001-05-16 Alan Modra <amodra@one.net.au>
121 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
122 whether an input section is the first one assigned to an output
124 Assorted formatting fixes.
126 2001-05-14 DJ Delorie <dj@delorie.com>
128 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
129 * Makefile.in: Ditto.
131 2001-05-11 Jakub Jelinek <jakub@redhat.com>
133 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
134 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
136 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
138 2001-05-11 Jakub Jelinek <jakub@redhat.com>
140 * ldlang.c (lang_process): Call bfd_merge_sections.
142 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
144 * ldgram.y: Fix typo.
146 2001-05-03 H.J. Lu <hjl@gnu.org>
148 * emultempl/elf32.em: Include "libiberty.h".
149 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
150 basename of the bfd filename.
151 (gld${EMULATION_NAME}_stat_needed): Likewise.
152 (gld${EMULATION_NAME}_try_needed): Likewise.
153 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
155 2001-05-02 H.J. Lu <hjl@gnu.org>
157 * emultempl/pe.em: Include <ctype.h>.
159 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
161 * emulparams/elf32openrisc.sh: New file.
163 * Makefile.am: Add OpenRISC target.
164 * Makefile.in: Regenerated.
166 * configure.tgt: Add openrisc-*-* mapping.
168 2001-05-02 Nick Clifton <nickc@redhat.com>
170 * emultempl/aix.em: Replace buystring with xstrdup.
171 * emultempl/beos.em: Replace buystring with xstrdup.
173 2001-05-02 H.J. Lu <hjl@gnu.org>
175 * ldfile.c: Include "libiberty.h".
178 * ldmisc.c (buystring): Removed.
179 * ldmisc.h: Likewise.
181 * ldfile.c: Replace buystring with xstrdup.
182 * ldlang.c: Likewise.
184 * ldmain.c: Likewise.
185 * ldmisc.c: Likewise.
186 * lexsup.c: Likewise.
187 * mpw-eppcmac.c: Likewise.
189 2001-04-30 Andreas Jaeger <aj@suse.de>
191 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
193 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
195 * ldlang.c (load_symbols): Give emulation a chance
196 to process unrecognized file before fatal error is
199 2001-04-27 Sean McNeil <sean@mcneil.com>
201 * configure.tgt: Add arm-vxworks target.
202 * scripttempl/armcoff.sc: Support .text or .data as a section name
206 2001-04-13 J.T. Conklin <jtc@redback.com>
208 * ld.texinfo: Document --fatal-warnings.
211 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
212 warnings have been turned into errors.
213 * lexsup.c (OPTION_WARN_FATAL): Define.
214 (ld_options): Entry for --fatal-warnings.
215 (parse_args): Handle OPTION_WARN_FATAL.
216 * ld.h (ld_config_type): Add fatal_warnings field.
218 2001-04-13 Jakub Jelinek <jakub@redhat.com>
220 * ldmain.c (main): Default to discard_sec_merge.
221 * lexsup.c (OPTION_DISCARD_NONE): Define.
222 (ld_options): Add --discard-none.
223 (parse_args): Handle OPTION_DISCARD_NONE.
224 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
225 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
226 all its input sections match.
228 2001-04-05 Steven J. Hill <sjhill@cotw.com>
230 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
231 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
232 (eelf32ltsmip.c): New target.
233 (eelf64btsmip.c): Likewise.
234 (eelf64ltsmip.c): Likewise.
235 * Makefile.in: Regenerated.
237 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
239 (mips*-*-linux-gnu*): Likewise.
241 * emulparams/elf32ltsmip.sh: New. Traditional little endian
243 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
245 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
248 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
250 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
251 correct value of __Stext here.
252 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
255 * emulparams/crislinux.sh: Remove FIXME.
257 2001-04-02 Alan Modra <alan@linuxcare.com.au>
259 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
260 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
262 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
264 * configure.tgt (cris-*-*): Change default emulation to criself.
265 (cris-*-*aout*): New rule.
267 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
269 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
270 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
272 2001-03-26 Andreas Jaeger <aj@suse.de>
274 * ld.texinfo (Overview): Fix syntax in texi code.
276 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
278 * ld.texinfo: Put @c man indications to generate the ld man page.
279 When generating man, define all the variables. Define SEEALSO
280 and SYNOPSIS. Re-organize some lines to avoid the cross references.
281 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
282 (ld.1): Generate from ld.texinfo.
283 * Makefile.in: Regenerate.
285 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
287 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
288 and '-fdata-sections'. Set the VMA of STABS sections to zero.
290 2001-03-17 Ulrich Drepper <drepper@redhat.com>
292 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
293 is an absolute path look only for this file and not along the path.
295 2001-03-17 Ulrich Drepper <drepper@redhat.com>
297 * emultempl/elf32.em (OPTION_GROUP): New macro.
298 Add new option Bgroup to longopts.
299 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
300 (gld*_list_options): Add -Bgroup and -z defs.
301 * ld.1: Document -Bgroup and -z defs.
302 * ld.texinfo: Likewise.
304 2001-03-07 Michael Meissner <meissner@redhat.com>
306 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
307 with sections created by -fdata-sections.
308 (.dynbss,.bss): Ditto.
310 2001-03-05 Alan Modra <alan@linuxcare.com.au>
312 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
313 after_allocation_default, not gld..._before_allocation.
315 2001-02-28 Matt Hiller <hiller@redhat.com>
317 * testsuite/ld-scripts/crossref.exp: Initialize flags to
318 [big_or_little_endian].
319 * testsuite/ld-undefined/undefined.exp: Ditto, and include $flags
321 * testsuite/lib/ld-lib.exp (big_or_little_endian): Recognize -EB,
323 (is_endian_output_format): New function.
324 (default_ld_link): Set flags to [big_or_little_endian] only if ld
325 is being invoked such that the output format being used is of
327 (default_ld_simple_link): Ditto.
329 2001-02-27 Alan Modra <alan@linuxcare.com.au>
331 * configure.in (BFD_VERSION): New.
332 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
333 * configure: Regenerate.
334 * Makefile.am: Run "make dep-am"
335 * Makefile.in: Regenerate.
337 2001-02-26 Timothy Wall <twall@cygnus.com>
339 * emulparams/elf64_aix.sh: Add additional read-only sections;
340 uncomment lines which are now required.
342 2001-02-26 H.J. Lu <hjl@gnu.org>
344 * ldlang.c (open_input_bfds): Set the bfd error handler so
345 that problems can be caught whilst loading symbols.
346 (record_bfd_errors): New function: Report BFD errors and mark
347 the executable output as being invalid.
349 2001-02-22 Timothy Wall <twall@cygnus.com>
351 * configure.host: Add configuration for ia64-*-aix*.
352 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
353 Add dependencies for eelf64_aix.c.
354 * Makefile.in: Regenerate.
355 * configure.tgt: Add ia64-*-aix* mapping.
356 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
357 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
360 2001-02-20 H.J. Lu <hjl@gnu.org>
362 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
363 false if we found the file.
365 2001-02-18 David O'Brien <obrien@FreeBSD.org>
367 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
368 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
370 2001-02-18 lars brinkhoff <lars@nocrew.org>
372 * Makefile.am: Add PDP-11 target.
373 * configure.tgt: Likewise.
374 * emulparams/pdp11.sh: New file.
376 2001-02-17 David O'Brien <obrien@FreeBSD.org>
378 * configure.host: Add a generic FreeBSD configuration entry such that
379 all [modern] FreeBSD systems on all platforms will look the same.
381 2001-02-14 H.J. Lu <hjl@gnu.org>
383 * configure.tgt: Remove mention of earmelf_linux26.
385 2001-02-13 Richard Henderson <rth@redhat.com>
387 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
389 2001-02-13 H.J. Lu <hjl@gnu.org>
391 * ldexp.h (node_type): Add etree_provided.
392 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
393 type to etree_provided if defined by PROVIDE. Allow updating
395 (exp_print_tree): Handle etree_provided.
396 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
399 2001-02-09 David Mosberger <davidm@hpl.hp.com>
401 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
402 .IA_64.unwind.* pattern to unwind table section and
403 .IA_64.unwind_info* pattern to unwind info section.
405 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
407 * Makefile.am: Add linux target for S/390.
408 * Makefile.in: Likewise.
409 * configure.host: Likewise.
410 * configure.tgt: Likewise.
411 * emulparams/elf64_s390.sh: New file.
412 * emulparams/elf_s390.sh: New file.
414 2001-02-09 Jakub Jelinek <jakub@redhat.com>
416 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
418 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
420 2001-02-06 Philip Blundell <philb@gnu.org>
422 * Makefile.am: Remove mention of earmelf_linux26.
423 * Makefile.in: Regenerate.
425 2001-02-04 Philip Blundell <philb@gnu.org>
427 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
428 * emulparams/armelf_linux26.sh: Delete.
429 * configure.tgt: Remove mention of armelf_linux26 emulation.
431 2001-02-01 Nick Clifton <nickc@redhat.com>
433 * ld.1: Replace occurances of -oformat with --oformat.
435 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
437 * ldlang.c (lang_leave_overlay): Don't set lma_region when
438 load_base is specified.
440 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
442 * emultempl/elf32.em: Correct spelling in comments and listed
445 2001-01-23 Alan Modra <alan@linuxcare.com.au>
447 * ldlang.c (lang_leave_overlay): Only set lma_region from the
448 default for the first section of a group of overlay sections.
450 2001-01-22 Alan Modra <alan@linuxcare.com.au>
452 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
453 * Makefile.in: Regenerate.
454 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
455 Check for null tool_dir.
457 2001-01-16 Jim Wilson <wilson@redhat.com>
459 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
460 and IA_64.unwind.info.
462 2001-01-16 H.J. Lu <hjl@gnu.org>
464 * ldlang.c (lang_check): Merge the private data only if the
465 input file has contents.
467 2001-01-14 Alan Modra <alan@linuxcare.com.au>
469 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
471 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
472 enabling search for libmilli. On a relocatable link, make .text
474 (LDEMUL_AFTER_PARSE): Define.
475 (hppaelf_finish): Correct spelling of relocatable in comments.
477 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
478 rummage through the script for sections on the unique list.
479 Correct length of strncmp for ".note".
480 (gld${EMULATION_NAME}_check_needed): Rearrange function.
482 * ldlang.c (unique_section_list): New var.
483 (unique_section_p): New function.
484 (walk_wild_section): Don't match sections on unique_section_list.
485 (lang_add_unique): New function.
486 Correct spelling of relocatable in comments.
488 * ldlang.h (struct unique_sections): Declare.
489 (unique_section_list): Declare.
490 (unique_section_p): Declare.
491 (lang_add_unique): Declare.
493 * lexsup.c (ld_options): Allow --unique to take an optional arg.
494 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
496 * ld.texinfo (--unique): Update.
498 2001-01-13 Nick Clifton <nickc@redhat.com>
500 * lexsup.c (parse_args): Remove spurious white space.
502 2001-01-12 Nick Clifton <nickc@redhat.com>
504 * lexsup.c (parse_args): Update copyright date.
506 2001-01-12 Philip Blundell <pb@futuretv.com>
508 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
510 2001-01-10 Kazu Hirata <kazu@hxi.com>
512 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
513 * scripttempl/h8300h.sc: Fix formatting.
514 * scripttempl/h8300s.sc: Likewise.
515 * scripttempl/h8500.sc: Likewise.
516 * scripttempl/h8500b.sc: Likewise.
517 * scripttempl/h8500c.sc: Likewise.
518 * scripttempl/h8500m.sc: Likewise.
519 * scripttempl/h8500s.sc: Likewise.
521 2000-01-07 David O'Brien <obrien@BSDi.com>
523 * emultempl/elf32.em: Only perform Linux ld hints processing when
526 2001-01-07 Philip Blundell <philb@gnu.org>
528 * ld.texinfo (Bug Reporting): Update email address for reports.
530 2000-12-31 Nick Clifton <nickc@redhat.com>
532 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
533 options by checking for a return value of '?' not -1.
535 2000-12-28 Nick Clifton <nickc@redhat.com>
537 * lexsup.c (struct ld_option): Add new enum value:
539 (ld_options[]): Change -omagic, -output and -oformat options
540 to be EXACTLY_TWO_DASHES.
541 (OUTPUT_COUNT): Use ARRAY_SIZE.
542 (parse_args): Change parameter 'argc' to unsigned.
543 Place EXACTLY_TWO_DASHES options into new really_longopts
545 If getopt_long_only fails, try calling getopt_long using the
546 really_longopts array.
547 (help): Print a double dash for both EXACTLY_TWO_DASHES and
550 * ldlex.h: Fix prototype of parse_args.
552 * ld.texinfo: Document that long options starting with 'o'
553 must be preceeded by two dashes. Change example of a single
554 dashed long option from -oformat to -trace-symbol.
556 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
558 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
559 (longopts[]): New --no-default-excludes option.
560 (gld_${EMULATION_NAME}_list_options): Document.
561 (gld_${EMULATION_NAME}_parse_args): Handle.
563 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
565 * ldlang.c (new_stat): Revert the last beautification with "innocent"
566 whitespace, it breaks the K&R C preprocessor.
568 2000-12-11 DJ Delorie <dj@redhat.com>
570 * ld.texinfo: Add notes about --whole-archive and gcc.
572 2000-11-18 Fred Fish <fnf@be.com>
574 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
575 (ld_options): Entry for --allow-shlib-undefined.
576 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
577 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
579 * ld.texinfo: Document new command line switch.
581 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
583 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
584 .fixup is actually read/write.
585 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
586 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
587 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
589 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
591 * NEWS: Add note about x86_64 architecture.
593 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
595 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
596 Set DWARF2 sections to a VMA of zero.
598 2000-12-01 Joel Sherrill <joel@OARcorp.com>
600 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
602 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
603 (sparc*-*-rtems*): Switched from a.out to ELF.
605 2000-11-30 Jan Hubicka <jh@suse.cz>
607 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
608 (eelf_x86_64.c): New.
609 * Makefile.in: Regenerate.
610 * configure.tgt: Add support for x86_64-*-linux-gnu*.
611 * emulparams/elf_x86_64.sh: New.
613 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
615 * emulparams/crislinux.sh (ENTRY): Change back to _start.
616 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
618 * scripttempl/crisaout.sc: Change all RELOCATING not related to
619 merging non-a.out sections into CONSTRUCTING.
621 2000-11-28 Nick Clifton <nickc@redhat.com>
623 * ld.1 (COPYING): Mention that the GNU Free Documentation
624 License is present in the sources, but not the output, and
625 also available from the GNU website.
626 (GNU Free Documentation License): Comment out this section.
628 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
630 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
633 2000-11-25 David O'Brien <obrien@FreeBSD.org>
635 * ld.1: Remove old date so it does not give the impression the manpage
638 2000-11-24 Nick Clifton <nickc@redhat.com>
640 * configure.tgt (xscale-coff): Add target.
641 (xscale-elf): Add target.
643 2000-11-24 Fred Fish <fnf@be.com>
645 * ldmain.c (main): Remove redundant init of config.make_executable
648 2000-11-15 Richard Henderson <rth@redhat.com>
650 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
652 2000-11-14 Kazu Hirata <kazu@hxi.com>
654 * scripttempl/h8300.sc: Fix formatting.
655 * scripttempl/h8300h.sc: Likewise.
656 * scripttempl/h8300s.sc: Likewise.
658 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
660 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
662 2000-11-09 Philip Blundell <pb@futuretv.com>
664 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
665 around orphan sections whose names can be represented in C.
667 2000-11-07 Jim Wilson <wilson@redhat.com>
669 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
670 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
672 2000-11-06 Nick Clifton <nickc@redhat.com>
674 * ld.texinfo: Add GNU Free Documentation License.
675 * ldint.texinfo: Add GNU Free Documentation License.
676 * ld.1: Add GNU Free Documentation License.
678 2000-11-05 Alan Modra <alan@linuxcare.com.au>
680 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
681 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
683 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
684 Move 2000-11-02 Makefile.in changes to this file.
685 * Makefile.in: Regenerate.
687 2000-11-03 Nick Clifton <nickc@redhat.com>
689 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
690 constructors and destructors.
691 * scripttempl/h8300h.sc: Ditto.
692 * scripttempl/h8300s.sc: Ditto.
693 * scripttempl/h8500.sc: Ditto.
694 * scripttempl/h8500b.sc: Ditto.
695 * scripttempl/h8500c.sc: Ditto.
696 * scripttempl/h8500m.sc: Ditto.
697 * scripttempl/h8500s.sc: Ditto.
698 * scripttempl/v850.sc: Ditto.
699 * scripttempl/w65.sc: Ditto.
700 * scripttempl/z8000.sc: Ditto.
702 2000-11-02 Per Lundberg <plundis@chaosdev.org>
704 * Makefile.in (e_i386_chaos.c): New rule.
705 (ALL_EMULATIONS): Added e_i386_chaos.o.
706 * emulparams/elf_i386_chaos.sh: New file.
707 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
709 2000-10-20 Jakub Jelinek <jakub@redhat.com>
711 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
712 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
713 Fix sed invocation, so that it coped with '/' in Solaris 64bit
715 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
717 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
719 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
720 for consecutive sections.
722 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
724 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
726 * ld.texinfo: Added notes about this new option.
728 2000-10-16 Nick Clifton <nickc@redhat.com>
730 * emultempl/pe.em (_after_open): Add tests of return values from
731 bfd functions. Emit appropriate error messages if necessary.
733 2000-10-13 Nick Clifton <nickc@redhat.com>
735 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
736 local variables - they are not used, but leave in the call to
737 bfd_canonicalize_symtab.
738 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
739 pe_dll_search_prefix.
741 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
743 * emultempl/pe.em (pe_dll_search_prefix): New variable,
744 (longopts): New --dll-search-prefix option.
745 (gld_${EMULATION_NAME}_list_options): Document.
746 (gld_${EMULATION_NAME}_parse_args): Handle.
747 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
748 dynamically, search for a dll named '<prefix><basename>.dll'
749 in preference to 'lib<basename>.dll' if --dll-search-prefix
752 2000-10-12 Alan Modra <alan@linuxcare.com.au>
754 * ldlang.c (section_already_linked): Set kept_section instead of
757 2000-10-10 Kazu Hirata <kazu@hxi.com>
759 * deffile.h: Fix formatting.
760 * lexsup.c: Likewise.
763 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
765 * pe-dll.c (make_one): Do not generate code thunk for DATA
767 (process_def_file): deduce DATA flag for auto-export sumbols.
769 2000-10-09 Kazu Hirata <kazu@hxi.com>
771 * ld.h: Fix formatting.
772 * ldcref.c: Likewise.
773 * ldctor.h: Likewise.
774 * ldemul.c: Likewise.
775 * ldemul.h: Likewise.
778 * ldfile.c: Likewise.
779 * ldfile.h: Likewise.
780 * ldlang.c: Likewise.
781 * ldlang.h: Likewise.
782 * ldmain.c: Likewise.
783 * pe-dll.c: Likewise.
785 * pe-dll.c: Revert some formatting fixes.
787 2000-10-08 Kazu Hirata <kazu@hxi.com>
789 * pe-dll.c: Fix formatting.
791 2000-10-05 Kazu Hirata <kazu@hxi.com>
793 * ldlang.c: Fix formatting.
795 2000-10-03 DJ Delorie <dj@redhat.com>
797 * pe-dll.c (fill_edata): initialize entire block
798 (make_one): fill in correct section.
800 2000-10-03 Kazu Hirata <kazu@hxi.com>
802 * ldexp.c: Fix formatting.
804 2000-10-02 DJ Delorie <dj@redhat.com>
806 * emultempl/pe.em (gld_*_after_open): detect case where there two
807 import libraries for same dll; rename one to ensure proper link
810 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
812 (generate_edata): fix typo
814 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
816 * scripttempl/crisaout.sc (ENTRY): Now __start.
817 (.text): Add default setting for __start.
818 Remove CONSTRUCTORS handling.
819 (/DISCARD/): Add .gnu.warning.*.
820 * emulparams/crislinux.sh (ENTRY): Now __start.
821 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
822 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
823 (ENTRY): Now __start.
824 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
825 (EXECUTABLE_SYMBOLS): Add default setting for __start.
827 2000-09-29 Kazu Hirata <kazu@hxi.com>
829 * deffile.h: Fix formatting.
831 * ldcref.c: Likewise.
832 * ldctor.c: Likewise.
833 * ldctor.h: Likewise.
834 * ldemul.c: Likewise.
835 * ldemul.h: Likewise.
838 * ldfile.c: Likewise.
839 * ldfile.h: Likewise.
840 * ldlang.c: Likewise.
841 * ldlang.h: Likewise.
842 * lexsup.c: Likewise.
844 * pe-dll.c: Likewise.
846 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
848 * pe-dll.c (process_def_file): Uninitialized data wasn't
849 exported with --export-all-symbols switch.
851 2000-09-28 DJ Delorie <dj@redhat.com>
853 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
854 noname work properly.
856 2000-09-28 Alan Modra <alan@linuxcare.com.au>
858 * ld.texinfo (HPPA ELF32): New section.
860 * emultempl/hppaelf.em (group_size): New.
861 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
862 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
863 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
864 options to prevent abbreviations matching.
865 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
866 (PARSE_AND_LIST_ARGS_CASES): Handle it.
868 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
870 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
871 on the m68*-*-elf target. Make it support COFF input objects.
873 2000-09-21 Kazu Hirata <kazu@hxi.com>
875 * ldmain.c: Fix formatting.
876 * ldmisc.c: Likewise.
878 * ldwrite.c: Likewise.
880 2000-09-21 Alan Modra <alan@linuxcare.com.au>
882 * ldwrite.c (clone_section): Silence gcc warnings.
884 2000-09-20 Alan Modra <alan@linuxcare.com.au>
886 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
887 out of memory failure.
889 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
890 (clone_section): Handle out of memory failures. Rename var to
891 avoid c++ reserved word.
893 2000-09-18 Alan Modra <alan@linuxcare.com.au>
895 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
896 stub_name param to stub_sec_name.
897 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
899 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
901 * emultempl/m68kelf.em: New file.
902 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
903 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
904 * Makefile.in: Regenerate.
906 2000-09-15 Alan Modra <alan@linuxcare.com.au>
908 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
911 2000-09-13 Nick Clifton <nickc@redhat.com>
913 * ldmain.c (multiple_definition): Disable relaxation if
914 multiple symbol definitions are encountered - otherwise the
915 linker could abort with an assertion failure.
917 2000-09-10 Nick Clifton <nickc@redhat.com>
919 * mri.c: Fix formatting.
921 2000-09-07 H.J. Lu <hjl@gnu.org>
923 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
924 * configure: Rebuild.
926 2000-09-07 H.J. Lu <hjl@gnu.org>
928 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
929 * Makefile.in: Rebuild.
931 2000-09-07 Alan Modra <alan@linuxcare.com.au>
933 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
934 broken list handling. Create __start_SECNAME and __stop_SECNAME
935 when no place-holder. Add some comments. Test both SEC_CODE and
936 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
937 Handle case where no output section statement created.
939 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
941 * configure.tgt (sh-*-linux*): Added.
942 * Makefile.am: Added eshelf_linux and eshlelf_linux.
943 * Makefile.in: Rebuilt.
944 * emulparams/shelf_linux.sh: New file.
945 * emulparams/shlelf_linux.sh: New file.
947 2000-09-06 Alan Modra <alan@linuxcare.com.au>
949 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
950 try shuffling sections when the orphan happens to be the place
951 holder. Keep count of unique section names generated so we speed
952 the search for a new name.
954 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
956 * configure: Rebuilt with new libtool.m4.
958 2000-09-05 Nick Clifton <nickc@redhat.com>
960 * Makefile.in: Regenerate.
961 * aclocal.m4: Regenerate.
962 * configure: Regenerate.
963 * config.in: Regenerate.
964 * po/ld.pot: Regenerate.
966 * ldint.texinfo: Remove CVS revision marker - it foils local
969 * emultempl/ticoff.em: Remove extraneous comma.
971 2000-09-05 Alan Modra <alan@linuxcare.com.au>
973 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
974 to stub section flags.
975 (hppa_for_each_input_file_wrapper): New.
976 (hppa_lang_for_each_input_file): New.
977 (lang_for_each_input_file): Define to call above.
978 (multi_subspace): New.
979 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
980 (PARSE_AND_LIST_PROLOGUE): Define.
981 (PARSE_AND_LIST_LONGOPTS): Define.
982 (PARSE_AND_LIST_OPTIONS): Define.
983 (PARSE_AND_LIST_ARGS_CASES): Define.
984 (hppaelf_finish): Call elf32_hppa_set_gp.
985 (hppaelf_set_output_arch): Remove.
986 (LDEMUL_SET_OUTPUT_ARCH): Remove.
988 * emulparams/hppalinux.sh (ELFSIZE): Define.
990 (OTHER_READONLY_SECTIONS): Define.
992 (GENERATE_SHLIB_SCRIPT): Define.
994 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
995 to const throughout. Change `void *' to `PTR' throughout.
996 (lang_memory_default): Function is local to file, add `static'.
998 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
999 (ehppalinux.c): Likewise.
1000 (earmelf.c): Likewise.
1001 (earmelf_linux.c): Likewise.
1002 (earmelf_linux26.c): Likewise.
1003 * Makefile.in: Regenerate.
1005 * ld.h (ld_config_type): Add unique_orphan_sections.
1006 * lexsup.c (OPTION_UNIQUE): Define.
1007 (ld_options): Add "--unique".
1008 (parse_args): Handle it.
1009 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1010 search for an existing output section if unique_orphan_sections is
1011 set. Make use of bfd_get_unique_section_name rather than
1012 duplicating code here.
1013 * ld.texinfo: Describe --unique.
1015 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1016 optional arg to split-by-file.
1017 (parse_args): Handle them.
1018 * ld.texinfo: Update description of these options.
1019 * ldwrite.c (clone_section): Pass in the section name. Replace
1020 local code with bfd_get_unique_section_name.
1021 (split_sections): Tidy code and comments. Use a list traversal
1022 more appropriate to the list construction. Handle cooked section
1023 sizes. Split when split_by_reloc reached rather than exceeded.
1024 Track section size and split when split_by_file reached. Fix
1025 link_order_tail (even though it's not used).
1026 (ldwrite): Modify condition for calling split_sections to suit
1027 changed split_by_reloc and split_by_file.
1028 * ldmain.c (main): Init config.split_by_reloc and
1029 config.split_by_file to -1.
1030 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1031 Change split_by_file to bfd_size_type.
1033 2000-09-02 Nick Clifton <nickc@redhat.com>
1035 * configure.in: Increase version number to 2.10.91.
1036 * NEWS: Mention new ability to support removal of duplicate DWARF2
1038 * configure: Regenerate.
1039 * aclocal.m4: Regenerate.
1040 * config.in: Regenerate.
1042 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1044 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1046 * scripttempl/elf32avr.sc: Ditto.
1047 * scripttempl/elfd10v.sc: Ditto.
1048 * scripttempl/elfd30v.sc: Ditto.
1049 * scripttempl/elfi370.sc: Ditto.
1050 * scripttempl/elfm68hc11.sc: Ditto.
1051 * scripttempl/elfm68hc12.sc: Ditto.
1052 * scripttempl/elfi386beos.sc: Ditto.
1053 * scripttempl/v850.sc: Ditto.
1055 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1057 * acinclude.m4: Include libtool and gettext macros from the
1059 * aclocal.m4, configure: Rebuilt.
1061 2000-08-25 Nick Clifton <nickc@redhat.com>
1063 * ldlang.c (open_output): When choosing the target for a
1064 particular endianness, do nothing if the target is not
1067 2000-08-25 H.J. Lu <hjl@gnu.org>
1069 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1070 check -rpath nor LD_RUN_PATH for cross link.
1071 * ld.texinfo: Document the change.
1073 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1075 * NEWS: Mention support for CRIS.
1077 2000-08-23 H.J. Lu <hjl@gnu.org>
1079 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1080 the current runpath list from bfd_elf_get_runpath_list ()
1083 2000-08-22 H.J. Lu <hjl@gnu.org>
1085 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1086 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1087 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1088 trace_file_tries is non-zero.
1089 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1090 if trace_file_tries is non-zero.
1092 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1095 2000-08-14 Jason Eckhardt <jle@cygnus.com>
1097 * NEWS: Mention i860 support.
1099 2000-08-14 Andreas Schwab <schwab@suse.de>
1101 * scripttempl/elf.sc: Fix last change to use correct comment
1104 2000-08-10 Geoff Keating <geoffk@cygnus.com>
1106 * scripttempl/elf.sc: Add a comment giving the correspondence
1107 between sections, per-datum sections, and linkonce sections. Make
1108 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1111 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1113 * emulparams/elf32_i860.sh: New file.
1114 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1115 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1116 (eelf32_i860.c): New rule.
1117 * Makefile.in: Regenerate.
1119 2000-08-10 Nick Clifton <nickc@cygnus.com>
1121 * emulparams/mipspe.sh (ENTRY): Add definition.
1123 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
1125 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1128 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1130 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1131 the final size of .bss section.
1132 * scripttempl/elfm68hc12.sc: Likewise.
1134 2000-08-04 Alan Modra <alan@linuxcare.com.au>
1136 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1137 gld${EMULATION_NAME}_parse_args for consistency. Combine
1138 lastoptind and prevoptind vars, and keep track of last optind.
1139 (gld_${EMULATION_NAME}_list_options): Rename to
1140 gld${EMULATION_NAME}_list_options.
1142 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
1144 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1145 (i586-sco-sysv5uw7.1.0).
1147 2000-07-27 H.J. Lu <hjl@gnu.org>
1149 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1150 (PARSE_AND_LIST_PROLOGUE): New.
1151 (PARSE_AND_LIST_LONGOPTS): Likewise.
1152 (PARSE_AND_LIST_OPTIONS): Likewise.
1153 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1154 (PARSE_AND_LIST_EPILOGUE): Likewise.
1156 2000-07-28 Alan Modra <alan@linuxcare.com.au>
1158 * emultempl/armelf.em: Elide functions common to elf32.em,
1159 ie. most of the file.
1160 (arm_elf_after_open): New. Do arm specific things then call
1161 gld${EMULATION_NAME}_after_open.
1162 (arm_elf_before_allocation): New. Call
1163 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1164 (PARSE_AND_LIST_PROLOGUE): Define.
1165 (PARSE_AND_LIST_SHORTOPTS): Define.
1166 (PARSE_AND_LIST_LONGOPTS): Define.
1167 (PARSE_AND_LIST_OPTIONS): Define.
1168 (PARSE_AND_LIST_ARGS_CASES): Define.
1169 (LDEMUL_AFTER_OPEN): Define.
1170 (LDEMUL_BEFORE_ALLOCATION): Define.
1171 (LDEMUL_BEFORE_PARSE): Define.
1172 (LDEMUL_FINISH): Define.
1174 * emultempl/hppaelf.em: Similarly zap most of this file.
1175 (hppaelf_add_stub_section): Prototype.
1176 (hppaelf_layaout_sections_again): Prototype.
1177 (hook_in_stub): Prototype.
1178 (LDEMUL_SET_OUTPUT_ARCH): Define.
1179 (LDEMUL_FINISH): Define.
1180 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1182 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1183 (EXTRA_EM_FILE): New.
1184 * emulparams/armelf_linux.sh: Likewise.
1185 * emulparams/armelf_linux26.sh: Likewise.
1186 * emulparams/hppalinux.sh: Likewise.
1187 * emulparams/hppaelf.sh: Likewise.
1190 * emultempl/elf32.em: Fix formatting.
1191 (EXTRA_EM_FILE): Source it.
1192 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1193 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1194 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1195 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1196 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1197 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1198 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1199 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1200 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1201 allow functions in this file to be overridden.
1202 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1204 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1206 * emultempl/elf32.em: Reorganize file.
1208 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
1210 * emulparams/elf64alpha.sh: Implement "-taso" emulation
1211 specific option to fit 64-bit executable in the lower
1212 31-bit address range. This is done by changing start
1213 address of .interp (the very first section of executable)
1214 and then setting EF_ALPHA_32BIT elf header flag.
1216 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1218 * emultempl/m68kcoff.em: New file.
1219 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1220 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1222 * Makefile.in: Regenerate.
1224 2000-07-20 H.J. Lu <hjl@gnu.org>
1226 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1227 and "disable-new-dtags" to stop getopt from treating -d/-e as
1228 abbreviations for these options.
1230 2000-07-20 H.J. Lu <hjl@gnu.org>
1232 * ld.texinfo: Add documentation for --disable-new-dtags and
1235 * ldmain.c (main): Initialize link_info.new_dtags to false.
1237 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1238 --disable-new-dtags and --enable-new-dtags.
1239 (gld_${EMULATION_NAME}_list_options): Likewise.
1241 2000-07-05 Kenneth Block <krblock@computer.org>
1243 * lexsup.c: Add optional style to demangle switch
1244 * ld.texinfo: Document optional style to demangle switch.
1246 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1248 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1250 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1251 Regenerate dependencies.
1252 * Makefile.in: Rebuild.
1253 * configure.tgt (cris-*-*): New target.
1254 * emulparams/crisaout.sh, emulparams/criself.sh,
1255 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1256 * po/POTFILES.in, po/ld.pot: Regenerate.
1258 2000-07-20 H.J. Lu <hjl@gnu.org>
1260 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1261 Print out ignored -z options.
1263 2000-07-19 H.J. Lu <hjl@gnu.org>
1265 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1266 (PARSE_AND_LIST_PROLOGUE): New.
1267 (PARSE_AND_LIST_LONGOPTS): Likewise.
1268 (PARSE_AND_LIST_OPTIONS): Likewise.
1269 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1271 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1273 * lexsup.c (ld_options): Comment out 'z'.
1274 (parse_args): Likewise.
1276 * emultempl/elf32.em: Include "elf/common.h".
1277 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1279 (gld_${EMULATION_NAME}_list_options): Likewise.
1281 * ld.texinfo: Add documentation for the recognized -z options.
1283 2000-07-19 H.J. Lu <hjl@gnu.org>
1285 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1286 bfd_elf_set_dt_needed_soname ().
1288 2000-07-18 DJ Delorie <dj@cygnus.com>
1290 * pe-dll.c (pe_dll_id_target): check object target name also
1292 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
1294 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1295 ${INIT_END} if relocating.
1296 (.fini): Likewise ${FINI_START} and ${FINI_END}.
1298 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
1300 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1301 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1302 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1303 errors introduced by the old dynamic lib search order.
1305 2000-07-17 DJ Delorie <dj@cygnus.com>
1307 * pe-dll.c (process_def_file): auto-export data items also
1308 (pe_process_import_defs): also see if _imp_ form needed
1310 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1312 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1313 for dll import libraries
1315 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
1317 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1318 gcc 2.95.2 and later.
1320 2000-07-11 Kazu Hirata <kazu@hxi.com>
1322 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1325 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1327 * ldemul.h (struct lang_input_statement_struct): Remove forward
1329 (struct search_dirs): Likewise.
1330 * ldfile.h (struct lang_input_statement_struct): Likewise.
1331 Protect file from multiple inclusion.
1332 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1333 declaration from macro to file scope.
1335 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1336 * ldgram.y: Likewise here.
1337 * ldlang.c: And here.
1338 * ldmain.c: And here.
1339 * mpw-elfmips.c: And here.
1340 * mpw-eppcmac.c: And here.
1341 * emultempl/aix.em: And here.
1342 * emultempl/armcoff.em: And here.
1343 * emultempl/armelf.em: And here.
1344 * emultempl/armelf_oabi.em: And here.
1345 * emultempl/beos.em: And here.
1346 * emultempl/elf32.em: And here.
1347 * emultempl/hppaelf.em: And here.
1348 * emultempl/linux.em: And here.
1349 * emultempl/lnk960.em: And here.
1350 * emultempl/pe.em: And here.
1351 * emultempl/sunos.em: And here.
1352 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1353 * mpw-idtmips.c: Ditto.
1354 * emultempl/generic.em: Ditto.
1355 * emultempl/gld960.em: Ditto.
1356 * emultempl/gld960c.em: Ditto.
1357 * emultempl/mipsecoff.em: Ditto.
1358 * emultempl/ticoff.em: Ditto.
1359 * emultempl/vanilla.em: Ditto.
1361 * pe-dll.c: Include ldfile.h
1362 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1364 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1365 arguments to bfd_elf32_size_dynamic_sections call.
1366 (gldelf32ebmip_place_orphan): Add missing arguments to
1367 lang_leave_output_section_statement call.
1369 2000-07-10 H.J. Lu <hjl@gnu.org>
1371 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1373 (strhash): Likewise.
1374 (compute_dll_image_base): Likewise.
1375 (pe_undef_found_sym): Likewise.
1376 (pe_undef_cdecl_match): Likewise.
1377 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1378 argument "arch" with ATTRIBUTE_UNUSED.
1380 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1382 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1384 From Ryan Bradetich <rbradetich@uswest.net>
1385 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1387 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1389 Changes to create multiple linker stubs, positioned immediately
1390 before the section where they are required.
1391 * emultempl/hppaelf.em: Include elf32-hppa.h.
1392 (stub_sec, file_chain): Delete.
1393 (hppaelf_create_output_section_statements): Don't make a stub
1395 (hook_stub_info): New struct.
1396 (hook_in_stub): New function.
1397 (hppaelf_add_stub_section): New function.
1398 (hppaelf_finish): Do nothing for relocateable links. Modify the
1399 call to elf32_hppa_size_stubs. Move code for updating section
1401 (hppaelf_layaout_sections_again): ..to here, a new function.
1403 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1404 broken list handling. Pass in a pointer to the list.
1405 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1407 (hppaelf_before_parse): Prototype.
1408 (hppaelf_set_output_arch): Prototype.
1409 (hppaelf_create_output_section_statements): Prototype.
1410 (hppaelf_delete_padding_statements): Prototype.
1411 (hppaelf_finish): Prototype.
1414 * emultempl/hppaelf.em: Include ctype.h.
1415 (struct orphan_save): New.
1416 (gld${EMULATION_NAME}_place_orphan): New.
1417 (output_rel_find): New.
1418 (hppaelf_get_script): Update from elf32.em.
1419 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1420 Change emulation_name field to "${EMULATION_NAME}". Add
1421 gld${EMULATION_NAME}_place_orphan.
1423 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
1424 ehppalinux.o, sort it. Regenerate dependencies.
1425 (ehppalinux.c): Depend on hppaelf.em
1426 * Makefile.in: Regenerate.
1428 * configure.tgt: targ_emul=hppalinux for hppa*linux
1430 * emulparams/hppalinux.sh: New.
1431 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1433 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1435 * lexsup.c (parse_args): Copy section name.
1437 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
1439 * emultempl/pe.em: institute the following search order for
1440 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1441 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
1442 static lib (libfoo.a) if none of the above are found.
1444 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
1446 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1447 (longopts): New --{enable,disable}-auto-image-base options.
1448 (gld_${EMULATION_NAME}_list_options): Document.
1449 (gld_${EMULATION_NAME}_parse): Handle.
1450 (strhash): New static function.
1451 (compute_dll_image_base): New static function.
1452 (gld_${EMULATION_NAME}_set_symbols): Use.
1454 2000-07-05 DJ Delorie <dj@redhat.com>
1458 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1460 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1461 * emulparams/elf32btsmip.sh: New file.
1462 * Makefile.am: Add traditional mips target.
1463 * Makefile.in: Rebuild.
1465 2000-07-01 H.J. Lu <hjl@gnu.org>
1467 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1468 automake to use YLWRAP.
1469 * Makefile.in: Rebuild.
1471 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1473 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1474 (CLEANFILES): Add DEPA.
1475 * Makefile.in: Regenerate.
1477 2000-06-30 Timothy Wall <twall@ppc>
1479 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1480 the page in the upper octet of the address.
1482 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1484 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1486 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1488 * NEWS: arm-elf does --gc-sections too.
1490 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1492 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1494 * Makefile.in: Regenerate.
1496 2000-06-21 H.J. Lu <hjl@gnu.org>
1498 * Makefile.am: Rebuild dependency.
1499 * Makefile.in: Rebuild.
1501 2000-06-20 H.J. Lu <hjl@gnu.org>
1503 * Makefile.am: Rebuild dependency.
1504 * Makefile.in: Rebuild.
1506 2000-06-20 Timothy Wall <twall@cygnus.com>
1508 * scripttempl/tic54xcoff.sc: New.
1509 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1510 * gen-doc.texi: Add flag for TI COFF.
1511 * ld.texinfo: Add documentation for TI COFF handling switches.
1512 * emultempl/ticoff.em: New. TI COFF handling.
1513 * configure.tgt: Add tic54x target.
1514 * Makefile.am: Add tic54x target.
1515 * Makefile.in: Ditto.
1517 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1519 * ldmain.c (set_scripts_dir): Correct pointer comparison when
1520 checking for backslashes.
1522 2000-06-19 Alan Modra <alan@linuxcare.com.au>
1524 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1526 2000-06-18 Alan Modra <alan@linuxcare.com.au>
1528 * NEWS: Update list of targets supporting --gc-sections.
1530 * scripttempl/elf.sc: KEEP .eh_frame contents.
1531 * scripttempl/elfd30v.sc: Same here.
1533 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1535 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1537 * Makefile.in: Rebuild.
1538 * configure.tgt: Recognize m68hc12 and m68hc11.
1539 * scripttempl/elfm68hc12.sc: New file.
1540 * emulparams/m68hc12elfb: New emulation.
1541 * emulparams/m68hc12elf: New emulation.
1542 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
1543 (includes a memory.x script to define the ROM and RAM banks).
1544 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1545 New configuration files for support of Motorola 68hc11
1547 2000-06-15 Alan Modra <alan@linuxcare.com.au>
1549 * ldmain.c (main): Only change SEC_READONLY for final link.
1551 2000-06-13 H.J. Lu <hjl@gnu.org>
1553 * configure: Regenerate.
1555 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1557 * configure.in (VERSION): Update to show this is the CVS mainline.
1559 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1561 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1562 input objects to be ECOFF.
1563 (check_sections): einfo takes %B, not %P, to print a BFD name.
1565 2000-06-05 Michael Matz <matz@ifh.de>
1567 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1570 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1572 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
1574 * emulparams/avr1200.sh (STACK): Define as 0.
1575 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1576 * emulparams/avr4433.sh (STACK): Likewise.
1577 * emulparams/avr44x4.sh (STACK): Likewise.
1578 * emulparams/avr85xx.sh (STACK): Likewise.
1579 * emulparams/avrmega103.sh (STACK): Likewise.
1580 * emulparams/avrmega161.sh (STACK): Likewise.
1581 * emulparams/avrmega603.sh (STACK): Likewise.
1582 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1583 (__stack): Define from ${STACK} for main().
1585 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1587 * Makefile.am: Update dependencies with "make dep-am"
1588 * Makefile.in: Regenerate.
1590 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1592 * ldmain.c: Include filenames.h.
1593 (set_scripts_dir): Support backslashes in program name.
1595 2000-05-22 Igor Shevlyakov <igor@windriver.com>
1597 * ldmain.c (main): When deciding if ".text" section should be
1598 read-only, don't forget to reset SEC_READONLY because it
1599 could be already set.
1601 2000-05-22 Thomas de Lellis <tdel@windriver.com>
1603 * ld.1: Add documentation for new command line option:
1604 --section-start <sectionname>=<sectionorg>
1605 This is a generic version of -Ttext etc. which accepts
1606 any section name as a parameter instead of just text/data/
1608 * ld.texinfo: More docs.
1610 * lexsup.c: (parse_args): Recognize new command line option.
1611 (ld_options): Add new option.
1613 2000-05-18 H.J. Lu <hjl@gnu.org>
1615 * lexsup.c (parse_args): `i' == `r', not `q'.
1617 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
1619 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1621 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1622 Rick Gorton <gorton@scrugs.lkg.dec.com>
1624 Add support for '-q' == '--emit-relocs' switch.
1625 * ldmain.c (main): Default to false.
1626 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1627 * NEWS: Describe the emitrelocations switch.
1628 * ld.texinfo: Describe the emitrelocations switch.
1630 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1632 * emultempl/pe.em (_open_dynamic_archive): New function: Search
1633 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1634 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1637 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1639 * lexsup.c (parse_args): Update the year in the copyright notice.
1641 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1643 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1644 Replace defines with those from intl/libgettext.h to quieten gcc
1647 2000-05-10 H.J. Lu <hjl@gnu.org>
1649 * ldlang.c (open_input_bfds): Don't load the same file within
1650 a group again if the whole archive has been loaded already.
1652 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1654 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1655 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1658 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1660 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1662 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1663 host "ia64-*-linux-gnu*".
1665 2000-04-29 Andreas Jaeger <aj@suse.de>
1667 * ld.h: Correctly check GCC version.
1669 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1671 * Makefile.am: Add PA64 support. Add missing dependencies for
1673 * Makefile.in: Rebuilt.
1674 * configure.tgt: Add PA64 support (currently disabled).
1676 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1678 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1679 (output_rel_find): New function.
1680 (hold_section, hold_use): Delete.
1681 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1682 hold_interp): Make local to place_orphan.
1683 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1684 rather than place_section to find possible previous use of orphan.
1685 Similarly find the place-holder output sections. Use returned
1686 value from lang_enter_output_section_statement rather than calling
1687 lang_output_section_statement_lookup.
1688 * emultempl/armelf.em: Same here.
1689 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1691 * ldlang.c (lang_enter_output_section_statement): Return output
1693 * ldlang.h (lang_enter_output_section_statement): Change
1696 * ldlang.h (lang_output_section_statement): Export it.
1697 * ldlang.c (lang_output_section_statement): Ditto.
1699 2000-04-24 Nick Clifton <nickc@cygnus.com>
1701 * ld.texinfo (Output Section Data): Add note that section data
1702 commands cannot appear outside of section directives.
1704 2000-04-2 Matthew Green <mrg@cygnus.com>
1706 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1708 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1709 David Mosberger <davidm@hpl.hp.com>
1711 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1712 (eelf64_ia64.c): New rule.
1713 * Makefile.in: Rebuild.
1714 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1715 * emulparams/elf64_ia64.sh: New file.
1717 2000-04-21 Richard Henderson <rth@cygnus.com>
1719 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1721 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1723 * dep-in.sed: Match space at start of file name, not at end.
1725 2000-04-18 H.J. Lu <hjl@gnu.org>
1727 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1728 lang_leave_output_section_statement () after calling
1729 lang_enter_output_section_statement ().
1730 * emultempl/armelf.em: Likewise.
1732 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1734 * emultempl/elf32.em (struct orphan_save): Add section field.
1735 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1736 better order, and place first orphan section as we did before the
1737 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1738 Don't call make_bfd_section here, let wild_doit do the job for us.
1739 Don't build a statement list when we'll only throw it away.
1740 * emultempl/armelf.em: Ditto.
1741 * emultempl/pe.em: Similarly.
1743 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1745 * scripttempl/elfppc.sc: Remove.
1746 * emulparams/elf32ppc.sh: Use elf.sc.
1747 * emulparams/elf32lppc.sh: Use elf.sc.
1748 * emulparams/elf32ppclinux.sh: Use elf.sc.
1749 * emulparams/elf32ppcsim.sh: New file.
1750 * emulparams/elf32lppcsim.sh: New file.
1751 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1752 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1753 * Makefile.in: Regenerate.
1754 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1756 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1758 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1759 ~SEC_ALLOC sections too. Init start address of debug sections.
1760 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1761 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1762 Also set all relocateable section start addresses.
1764 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1766 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1767 Add new BSS_PLT variable for when .plt need not be contained in
1768 the file. Move _etext so that it is also after .fini, and provide
1769 both etext and _etext with a leading underscore. Mark the start
1772 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1774 * emultempl/elf32.em (struct orphan_save): New.
1775 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1776 hold_interp): Make them struct orphan_save.
1777 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1778 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1779 the end of the relevant section list. Also add associated section
1780 statements to the end of any previous orphan statements.
1781 * emultempl/armelf.em: Similarly.
1782 * emultempl/pe.em: Similarly.
1784 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1786 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1788 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1790 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1791 --enable-build-warnings option.
1792 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1793 * Makefile.in, configure: Re-generate.
1795 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1797 * po/ld.pot: Regenerate.
1799 * lexsup.c (help): Restore translated part of bug string.
1801 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1802 (DEP): Quote when passing vars to sub-make. Add warning message
1804 (DEP1): Rewrite for "gcc -MM".
1805 (CLEANFILES): Add DEP2.
1806 Update dependencies.
1807 * Makefile.in: Regenerate.
1809 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1811 * ld.h: #include "bin-bugs.h"
1812 * lexsup.c (help): Use REPORT_BUGS_TO.
1814 2000-03-27 Denis Chertykov <denisc@overta.ru>
1816 * configure.tgt (avr-*-*): New target support.
1817 * Makefile.am: Likewise.
1818 * scripttempl/elf32avr.sc: New script file.
1819 * emulparams/avr1200.sh: New file.
1820 * emulparams/avr23xx.sh: New file.
1821 * emulparams/avr4433.sh New file.
1822 * emulparams/avr44x4.sh New file.
1823 * emulparams/avr85xx.sh New file.
1824 * emulparams/avrmega103.sh New file.
1825 * emulparams/avrmega161.sh New file.
1826 * emulparams/avrmega603.sh New file.
1827 * Makefile.in: Regenerate.
1829 2000-03-09 Andreas Jaeger <aj@suse.de>
1831 * Makefile.am (check-DEJAGNU): Also unset LANG.
1832 * Makefile.in: Rebuild.
1834 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1836 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1839 2000-03-02 H.J. Lu <hjl@gnu.org>
1841 * emulparams/elf32mcore.sh: Include "getopt.h".
1843 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1845 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1847 2000-03-01 H.J. Lu <hjl@gnu.org>
1849 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1850 * emulparams/shpe.sh: Likewise.
1852 2000-03-01 Nick Clifton <nickc@cygnus.com>
1854 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1855 to unused parameters.
1857 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1858 functions only used by DLL code.
1859 (_place_orphan): Initialise 'dollar'.
1861 2000-03-01 H.J. Lu <hjl@gnu.org>
1863 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1864 indicate if the undefined symbol is a fatal error or not.
1865 Don't delete the output file if "fatal" is false.
1867 2000-02-29 H.J. Lu <hjl@gnu.org>
1869 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1870 Set LC_COLLATE and LC_ALL to null and export them. It is for
1871 sort which expects the C locale.
1872 Add $(LIBS) to all $(HOSTING_LIBS).
1873 * Makefile.in: Rebuild.
1875 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1877 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1878 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1879 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1880 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1881 find_potential_libraries.
1883 2000-02-28 Jim Blandy <jimb@redhat.com>
1885 * ldgram.y (exclude_name_list): Don't require a comma to separate
1886 list entries; the lexer considers commas to be valid part of a
1887 filename, so in something like `foo, bar' the comma is considered
1888 part of the first filename, `foo,'.
1889 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1891 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1893 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1894 host "i[3456]86-*-freebsdelf*".
1896 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1898 * scripttempl/i386go32.sc: Move misplaced semicolons.
1900 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1902 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1903 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1904 (eelf64hppa.c, ehppaelf.c): Remove targets.
1905 * Makefile.in: Rebuild.
1907 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1909 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1910 GNU/Linux/sparc, but keep the default as 32.
1912 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
1913 it default if sparcv9 or sparc64.
1915 2000-02-24 Nick Clifton <nickc@cygnus.com>
1917 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
1918 * Makefile.in: Regenerate.
1919 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
1921 * ldemul.h (ld_emulation_xfer_struct): Add new field:
1922 find_potential_libraries.
1923 * ldemul.c (ldemul_find_potential_libraries): New function.
1925 * ldfile.c (ldfile_open_file_search): Allow function to be
1927 (ldfile_open_file): Call ldemul_find_potential_libraries.
1928 * ldfile.h: Add prototype for ldfile_open_file_search.
1930 * pe-dll.c: Add support for ARM, MIPS and SH targets.
1932 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
1933 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
1935 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
1936 (gld_X_find_potential_libraries): New function. Search for
1937 libraries called "*.lib".
1939 * scripttempl/pe.sc: Add .pdata section.
1941 2000-02-23 Richard Henderson <rth@cygnus.com>
1943 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
1944 Add and use memory regions.
1946 2000-02-23 Linas Vepstas (linas@linas.org)
1948 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
1950 * Makefile.am: Add support for Linux/IBM 370.
1951 * configure.tgt: Likewise.
1953 * Makefile.in: Regenerate.
1955 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
1957 * ldlang.c (print_input_section, print_data_statement,
1958 print_reloc_statement, print_padding_statement, insert_pad,
1959 size_input_section, lang_check_section_addresses,
1960 lang_size_sections, lang_do_assignments, lang_set_startof,
1961 lang_one_common): Change `opb' to unsigned.
1962 (lang_do_assignments): Also change `size' to unsigned.
1964 2000-02-16 Richard Henderson <rth@cygnus.com>
1966 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
1968 2000-02-16 Timothy Wall <twall@cygnus.com>
1970 * mri.c (mri_draw_tree): Add default LMA region argument to call
1971 to lang_leave_output_section_statement.
1972 * ldlang.h: Update prototypes with LMA region arguments.
1973 * ldlang.c (lang_size_sections): Encapsulate region bounds
1974 checking in os_check_region call.
1975 (os_check_region): New function.
1976 (lang_output_section_statement_lookup): Initialize lma_region.
1977 (lang_leave_output_section_statement): Add LMA region argument.
1978 (lang_leave_overlay): Ditto.
1979 * ldgram.y: Handle LMA region syntax.
1980 * ld.texinfo (Output Section Description): Describe LMA region usage.
1981 * emultempl/armelf.em (gld$place_orphan): Add default value for
1982 lma region in call to lang_leave_output_section_statement.
1983 * emultempl/elf32.em (gld$place_orphan): Add default value for
1984 lma region in call to lang_leave_output_section_statement.
1985 * emultempl/pe.em (gld$place_orphan): Add default value for
1986 lma region in call to lang_leave_output_section_statement.
1989 2000-02-04 Timothy Wall <twall@redhat.com>
1991 * ldlang.c (lang_check_section_addresses): Use bytes instead of
1992 octets when calculating section end addresses.
1994 2000-02-04 Timothy Wall <twall@redhat.com>
1996 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
1998 2000-02-03 Timothy Wall <twall@redhat.com>
2000 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2002 * ldlang.c (print_input_section, print_data_statement,
2003 print_reloc_statement, print_padding_statement): Print target
2004 address values and section sizes as bytes, not octets.
2005 (insert_pad) Calculate padding size in octets, and adjust "dot"
2007 (size_input_section) Always adjust "dot" by bytes, not octets.
2008 (lang_check_section_addresses, lang_do_assignments) Adjust
2009 "dot" by bytes, not octets. Use the larger of the directive size
2010 or octets_per_byte for the number of octets actually allocated in
2012 (lang_set_startof) Make sure STARTOF returns a target address.
2013 (lang_one_common) Record size changes in octets.
2014 (lang_abs_symbol_at_end_of) Section end symbol's value is
2015 recorded in target bytes.
2016 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2017 to be clear about behavior when an octet is smaller than one byte.
2019 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2021 * ldcref.c (output_cref): Don't pass message strings to printf
2025 * ldmisc.c (vfinfo): Same here.
2028 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2030 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2031 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2032 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2033 Add missing NULL initialisers, and comments.
2035 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2037 2000-01-21 Nick Clifton <nickc@cygnus.com>
2039 * ldlang.c (lang_size_sections): Fix typo in comment.
2041 2000-01-18 H.J. Lu <hjl@gnu.org>
2043 * ldlang.c (lang_size_sections): Also update the current
2044 address of a region if the SEC_NEVER_LOAD bit is not set.
2046 2000-01-10 Philip Blundell <pb@futuretv.com>
2048 * configure.tgt (arm*-*-conix*): New target.
2050 2000-01-07 Nick Clifton <nickc@cygnus.com>
2052 * ld.texinfo (Options): Remind users to preceed linker command
2053 line switches with -Wl, (or whatever is appropriate) if it is
2054 being invoked by a comnpiler driver program.
2055 Fix description of the behaviour of the -n command line switch.
2057 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2059 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2061 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2062 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2063 (exclude_name_list): New.
2064 ldlang.c (walk_wild_section): Support list of excluded files.
2065 (print_wild_statement): Likewise.
2066 (lang_add_wild): Likewise.
2067 * ldlang.h (lang_wild_statement_type): Likewise.
2068 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2070 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2072 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2073 (process_def_file): Use.
2074 (pe_dll_compat_implib): New variable.
2077 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2078 pe_dll_compat_implib.
2080 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2081 compat-implib options.
2082 (gld_${EMULATION_NAME}_list_options): List new options.
2083 (gld_${EMULATION_NAME}_parse_args): Handle.
2085 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2088 * deffilep.y (opt_name): Allow "." in name.
2090 For older changes see ChangeLog-9899
2096 version-control: never