1 2001-07-03 H.J. Lu <hjl@gnu.org>
3 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
4 2001-07-03. It creates dynamic entries even for static binaries.
6 2001-07-03 Jakub Jelinek <jakub@redhat.com>
8 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
9 (DYNAMIC): Use it to reserve few dynamic entries for
12 2001-06-27 Alan Modra <amodra@bigpond.net.au>
14 * emulparams/hppa64linux.sh: New file.
15 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
16 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
17 (ehppa64linux.c): Add rule to make it.
19 * Makefile.in: Regenerate.
21 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
23 * ld.texinfo (Options, -r): Mention restrictions when using
24 different object formats.
26 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
28 * ldlang.c (lang_check): Emit fatal error if relocatable link
29 between different object flavours with relocations in input.
31 2001-06-19 H.J. Lu <hjl@gnu.org>
33 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
34 (--version-script): Mention the language support.
36 2001-06-19 H.J. Lu <hjl@gnu.org>
38 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
40 2001-06-18 H.J. Lu <hjl@gnu.org>
42 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
43 (diststuff): Add $(MANS).
44 * Makefile.in: Regenerated.
48 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
50 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
51 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
52 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
53 * ld.h (args_type): Remove member export_dynamic. All users
54 changed to use struct bfd_link_info member.
56 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
57 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
58 * Makefile.in: Regenerate.
60 2001-06-18 H.J. Lu <hjl@gnu.org>
62 * ldlang.c (init_os): Add the newline to the einfo call.
63 (lang_check): Likewise.
64 (lang_do_version_exports_section): Likewise.
66 2001-06-15 H.J. Lu <hjl@gnu.org>
68 * lexsup.c (parse_args); Save optind to report unrecognized
71 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
73 * ldlang.c (lang_check): Emit fatal error if relocatable link
74 between different object flavours.
76 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
77 Set new link_info member export_dynamic.
78 * ldmain.c (main): Initialize new link_info member export_dynamic.
80 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
82 * ldlang.c (walk_wild): Only call walk_wild_file if
83 lookup_name returns something.
84 (lookup_name): If load_symbols fails, return NULL.
85 (load_symbols): Chnage to a boolean function.
86 (open_input_bfds): If load_symbols fails then do not make the
89 2001-06-08 Alan Modra <amodra@bigpond.net.au>
91 * ldlang.c (record_bfd_errors): Remove.
93 * emultempl/aix.em: Fix copyright dates.
95 2001-06-07 Andreas Jaeger <aj@suse.de>
97 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
98 (TEXT_START_ADDR): Likewise.
100 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
102 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
104 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
106 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
108 2001-05-31 H.J. Lu <hjl@gnu.org>
110 * ldlang.c (open_input_bfds): Don't change the bfd error
111 handler whilst loading symbols.
113 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
115 * configure.tgt: Remove i370-mvs architecture, it is not currently
118 2001-05-25 H.J. Lu <hjl@gnu.org>
120 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
121 like emulparams/aixppc.sh.
123 2001-05-25 H.J. Lu <hjl@gnu.org>
125 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
126 setting of output_filename after bfd_scan_arch.
127 * emultempl/pe.em: Likewise.
129 2001-05-25 H.J. Lu <hjl@gnu.org>
131 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
132 like emulparams/aixppc.sh.
134 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
135 instead of ${srcdir}/emultempl/stringify.sed.
137 2001-05-25 Timothy Wall <twall@oculustech.com>
139 * emulparams/elf64_aix.sh: Change settings to match IBM linker
142 2001-05-25 Alan Modra <amodra@one.net.au>
144 * configure.host: Replace linuxoldld with linux*oldld.
145 * configure.tgt: Likewise.
147 2001-05-24 H.J. Lu <hjl@gnu.org>
149 * emultempl/stringify.sed: Removed again.
151 2001-05-24 H.J. Lu <hjl@gnu.org>
153 * emultempl/aix.em (OUTPUT_ARCH): Defined.
154 (gld${EMULATION_NAME}_before_parse): Initialize
155 ldfile_output_architecture, ldfile_output_machine and
156 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
157 * emultempl/beos.em: Likewise.
158 * emultempl/elf32.em: Likewise.
159 * emultempl/linux.em: Likewise.
160 * emultempl/mipsecoff.em: Likewise.
161 * emultempl/pe.em: Likewise.
162 * emultempl/sunos.em: Likewise.
164 2001-05-24 Tom Rix <trix@redhat.com>
166 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
167 udate import file format.
168 (change_symbol_mode) New, same
169 (is_syscall) New, same
170 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
171 * emulparams/aixppc64.sh : same
172 * emulparams/aixrs6.sh : same
173 * emulparams/ppcmacos.sh : same
174 * emultempl/aix.em : use strtoull to parse options
175 * Makefile.am : add eaixppc64 emulation for xcoff64
177 * configure.tgt : same
179 * scripttempl/aix.sc : default text section offset to 0x10000000
180 default data section offset to 0x20000000
181 add .sv3264 and .sv64 pseudo sections
182 loader and debug sections use the currect section offset.
184 * emultempl/aix.em : Add xcoff64 support
185 Add -binitfini support
186 (gld${EMULATION_NAME}_before_parse) -binitfini
187 (gld${EMULATION_NAME}_parse_args) same
188 (gld${EMULATION_NAME}_before_allocation) format change for special
191 * emulparams/aixppc64.sh : New file for xcoff64 support
193 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
195 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
196 variable to avoid non-portable shell construct.
198 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
200 * ldmain.c (get_emulation): Add -mips5 command line argument.
202 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
204 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
205 (ELF_INTERPRETER_NAME): Define it.
206 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
208 * configure.tgt (targ_emul, targ_extra_emuls)
209 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
210 as primary, elf_i386 as extra.
211 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
212 (eelf_i386_ldso.c): New rule.
213 * Makefile.in: Rebuilt.
215 2001-05-22 Nick Clifton <nickc@redhat.com>
217 * lexsup.c (ld_options): Allow -I to be an alias for
218 --dynamic-linker. This is for Solaris compatability.
219 * ld.texinfo: Document that -I can be used.
222 2001-05-16 Alan Modra <amodra@one.net.au>
224 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
225 whether an input section is the first one assigned to an output
227 Assorted formatting fixes.
229 2001-05-14 DJ Delorie <dj@delorie.com>
231 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
232 * Makefile.in: Ditto.
234 2001-05-11 Jakub Jelinek <jakub@redhat.com>
236 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
237 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
239 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
241 2001-05-11 Jakub Jelinek <jakub@redhat.com>
243 * ldlang.c (lang_process): Call bfd_merge_sections.
245 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
247 * ldgram.y: Fix typo.
249 2001-05-03 H.J. Lu <hjl@gnu.org>
251 * emultempl/elf32.em: Include "libiberty.h".
252 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
253 basename of the bfd filename.
254 (gld${EMULATION_NAME}_stat_needed): Likewise.
255 (gld${EMULATION_NAME}_try_needed): Likewise.
256 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
258 2001-05-02 H.J. Lu <hjl@gnu.org>
260 * emultempl/pe.em: Include <ctype.h>.
262 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
264 * emulparams/elf32openrisc.sh: New file.
266 * Makefile.am: Add OpenRISC target.
267 * Makefile.in: Regenerated.
269 * configure.tgt: Add openrisc-*-* mapping.
271 2001-05-02 Nick Clifton <nickc@redhat.com>
273 * emultempl/aix.em: Replace buystring with xstrdup.
274 * emultempl/beos.em: Replace buystring with xstrdup.
276 2001-05-02 H.J. Lu <hjl@gnu.org>
278 * ldfile.c: Include "libiberty.h".
281 * ldmisc.c (buystring): Removed.
282 * ldmisc.h: Likewise.
284 * ldfile.c: Replace buystring with xstrdup.
285 * ldlang.c: Likewise.
287 * ldmain.c: Likewise.
288 * ldmisc.c: Likewise.
289 * lexsup.c: Likewise.
290 * mpw-eppcmac.c: Likewise.
292 2001-04-30 Andreas Jaeger <aj@suse.de>
294 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
296 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
298 * ldlang.c (load_symbols): Give emulation a chance
299 to process unrecognized file before fatal error is
302 2001-04-27 Sean McNeil <sean@mcneil.com>
304 * configure.tgt: Add arm-vxworks target.
305 * scripttempl/armcoff.sc: Support .text or .data as a section name
309 2001-04-13 J.T. Conklin <jtc@redback.com>
311 * ld.texinfo: Document --fatal-warnings.
314 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
315 warnings have been turned into errors.
316 * lexsup.c (OPTION_WARN_FATAL): Define.
317 (ld_options): Entry for --fatal-warnings.
318 (parse_args): Handle OPTION_WARN_FATAL.
319 * ld.h (ld_config_type): Add fatal_warnings field.
321 2001-04-13 Jakub Jelinek <jakub@redhat.com>
323 * ldmain.c (main): Default to discard_sec_merge.
324 * lexsup.c (OPTION_DISCARD_NONE): Define.
325 (ld_options): Add --discard-none.
326 (parse_args): Handle OPTION_DISCARD_NONE.
327 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
328 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
329 all its input sections match.
331 2001-04-05 Steven J. Hill <sjhill@cotw.com>
333 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
334 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
335 (eelf32ltsmip.c): New target.
336 (eelf64btsmip.c): Likewise.
337 (eelf64ltsmip.c): Likewise.
338 * Makefile.in: Regenerated.
340 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
342 (mips*-*-linux-gnu*): Likewise.
344 * emulparams/elf32ltsmip.sh: New. Traditional little endian
346 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
348 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
351 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
353 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
354 correct value of __Stext here.
355 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
358 * emulparams/crislinux.sh: Remove FIXME.
360 2001-04-02 Alan Modra <alan@linuxcare.com.au>
362 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
363 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
365 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
367 * configure.tgt (cris-*-*): Change default emulation to criself.
368 (cris-*-*aout*): New rule.
370 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
372 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
373 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
375 2001-03-26 Andreas Jaeger <aj@suse.de>
377 * ld.texinfo (Overview): Fix syntax in texi code.
379 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
381 * ld.texinfo: Put @c man indications to generate the ld man page.
382 When generating man, define all the variables. Define SEEALSO
383 and SYNOPSIS. Re-organize some lines to avoid the cross references.
384 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
385 (ld.1): Generate from ld.texinfo.
386 * Makefile.in: Regenerate.
388 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
390 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
391 and '-fdata-sections'. Set the VMA of STABS sections to zero.
393 2001-03-17 Ulrich Drepper <drepper@redhat.com>
395 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
396 is an absolute path look only for this file and not along the path.
398 2001-03-17 Ulrich Drepper <drepper@redhat.com>
400 * emultempl/elf32.em (OPTION_GROUP): New macro.
401 Add new option Bgroup to longopts.
402 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
403 (gld*_list_options): Add -Bgroup and -z defs.
404 * ld.1: Document -Bgroup and -z defs.
405 * ld.texinfo: Likewise.
407 2001-03-07 Michael Meissner <meissner@redhat.com>
409 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
410 with sections created by -fdata-sections.
411 (.dynbss,.bss): Ditto.
413 2001-03-05 Alan Modra <alan@linuxcare.com.au>
415 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
416 after_allocation_default, not gld..._before_allocation.
418 2001-02-27 Alan Modra <alan@linuxcare.com.au>
420 * configure.in (BFD_VERSION): New.
421 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
422 * configure: Regenerate.
423 * Makefile.am: Run "make dep-am"
424 * Makefile.in: Regenerate.
426 2001-02-26 Timothy Wall <twall@cygnus.com>
428 * emulparams/elf64_aix.sh: Add additional read-only sections;
429 uncomment lines which are now required.
431 2001-02-26 H.J. Lu <hjl@gnu.org>
433 * ldlang.c (open_input_bfds): Set the bfd error handler so
434 that problems can be caught whilst loading symbols.
435 (record_bfd_errors): New function: Report BFD errors and mark
436 the executable output as being invalid.
438 2001-02-22 Timothy Wall <twall@cygnus.com>
440 * configure.host: Add configuration for ia64-*-aix*.
441 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
442 Add dependencies for eelf64_aix.c.
443 * Makefile.in: Regenerate.
444 * configure.tgt: Add ia64-*-aix* mapping.
445 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
446 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
449 2001-02-20 H.J. Lu <hjl@gnu.org>
451 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
452 false if we found the file.
454 2001-02-18 David O'Brien <obrien@FreeBSD.org>
456 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
457 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
459 2001-02-18 lars brinkhoff <lars@nocrew.org>
461 * Makefile.am: Add PDP-11 target.
462 * configure.tgt: Likewise.
463 * emulparams/pdp11.sh: New file.
465 2001-02-17 David O'Brien <obrien@FreeBSD.org>
467 * configure.host: Add a generic FreeBSD configuration entry such that
468 all [modern] FreeBSD systems on all platforms will look the same.
470 2001-02-14 H.J. Lu <hjl@gnu.org>
472 * configure.tgt: Remove mention of earmelf_linux26.
474 2001-02-13 Richard Henderson <rth@redhat.com>
476 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
478 2001-02-13 H.J. Lu <hjl@gnu.org>
480 * ldexp.h (node_type): Add etree_provided.
481 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
482 type to etree_provided if defined by PROVIDE. Allow updating
484 (exp_print_tree): Handle etree_provided.
485 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
488 2001-02-09 David Mosberger <davidm@hpl.hp.com>
490 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
491 .IA_64.unwind.* pattern to unwind table section and
492 .IA_64.unwind_info* pattern to unwind info section.
494 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
496 * Makefile.am: Add linux target for S/390.
497 * Makefile.in: Likewise.
498 * configure.host: Likewise.
499 * configure.tgt: Likewise.
500 * emulparams/elf64_s390.sh: New file.
501 * emulparams/elf_s390.sh: New file.
503 2001-02-09 Jakub Jelinek <jakub@redhat.com>
505 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
507 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
509 2001-02-06 Philip Blundell <philb@gnu.org>
511 * Makefile.am: Remove mention of earmelf_linux26.
512 * Makefile.in: Regenerate.
514 2001-02-04 Philip Blundell <philb@gnu.org>
516 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
517 * emulparams/armelf_linux26.sh: Delete.
518 * configure.tgt: Remove mention of armelf_linux26 emulation.
520 2001-02-01 Nick Clifton <nickc@redhat.com>
522 * ld.1: Replace occurances of -oformat with --oformat.
524 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
526 * ldlang.c (lang_leave_overlay): Don't set lma_region when
527 load_base is specified.
529 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
531 * emultempl/elf32.em: Correct spelling in comments and listed
534 2001-01-23 Alan Modra <alan@linuxcare.com.au>
536 * ldlang.c (lang_leave_overlay): Only set lma_region from the
537 default for the first section of a group of overlay sections.
539 2001-01-22 Alan Modra <alan@linuxcare.com.au>
541 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
542 * Makefile.in: Regenerate.
543 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
544 Check for null tool_dir.
546 2001-01-16 Jim Wilson <wilson@redhat.com>
548 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
549 and IA_64.unwind.info.
551 2001-01-16 H.J. Lu <hjl@gnu.org>
553 * ldlang.c (lang_check): Merge the private data only if the
554 input file has contents.
556 2001-01-14 Alan Modra <alan@linuxcare.com.au>
558 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
560 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
561 enabling search for libmilli. On a relocatable link, make .text
563 (LDEMUL_AFTER_PARSE): Define.
564 (hppaelf_finish): Correct spelling of relocatable in comments.
566 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
567 rummage through the script for sections on the unique list.
568 Correct length of strncmp for ".note".
569 (gld${EMULATION_NAME}_check_needed): Rearrange function.
571 * ldlang.c (unique_section_list): New var.
572 (unique_section_p): New function.
573 (walk_wild_section): Don't match sections on unique_section_list.
574 (lang_add_unique): New function.
575 Correct spelling of relocatable in comments.
577 * ldlang.h (struct unique_sections): Declare.
578 (unique_section_list): Declare.
579 (unique_section_p): Declare.
580 (lang_add_unique): Declare.
582 * lexsup.c (ld_options): Allow --unique to take an optional arg.
583 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
585 * ld.texinfo (--unique): Update.
587 2001-01-13 Nick Clifton <nickc@redhat.com>
589 * lexsup.c (parse_args): Remove spurious white space.
591 2001-01-12 Nick Clifton <nickc@redhat.com>
593 * lexsup.c (parse_args): Update copyright date.
595 2001-01-12 Philip Blundell <pb@futuretv.com>
597 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
599 2001-01-10 Kazu Hirata <kazu@hxi.com>
601 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
602 * scripttempl/h8300h.sc: Fix formatting.
603 * scripttempl/h8300s.sc: Likewise.
604 * scripttempl/h8500.sc: Likewise.
605 * scripttempl/h8500b.sc: Likewise.
606 * scripttempl/h8500c.sc: Likewise.
607 * scripttempl/h8500m.sc: Likewise.
608 * scripttempl/h8500s.sc: Likewise.
610 2000-01-07 David O'Brien <obrien@BSDi.com>
612 * emultempl/elf32.em: Only perform Linux ld hints processing when
615 2001-01-07 Philip Blundell <philb@gnu.org>
617 * ld.texinfo (Bug Reporting): Update email address for reports.
619 2000-12-31 Nick Clifton <nickc@redhat.com>
621 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
622 options by checking for a return value of '?' not -1.
624 2000-12-28 Nick Clifton <nickc@redhat.com>
626 * lexsup.c (struct ld_option): Add new enum value:
628 (ld_options[]): Change -omagic, -output and -oformat options
629 to be EXACTLY_TWO_DASHES.
630 (OUTPUT_COUNT): Use ARRAY_SIZE.
631 (parse_args): Change parameter 'argc' to unsigned.
632 Place EXACTLY_TWO_DASHES options into new really_longopts
634 If getopt_long_only fails, try calling getopt_long using the
635 really_longopts array.
636 (help): Print a double dash for both EXACTLY_TWO_DASHES and
639 * ldlex.h: Fix prototype of parse_args.
641 * ld.texinfo: Document that long options starting with 'o'
642 must be preceeded by two dashes. Change example of a single
643 dashed long option from -oformat to -trace-symbol.
645 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
647 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
648 (longopts[]): New --no-default-excludes option.
649 (gld_${EMULATION_NAME}_list_options): Document.
650 (gld_${EMULATION_NAME}_parse_args): Handle.
652 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
654 * ldlang.c (new_stat): Revert the last beautification with "innocent"
655 whitespace, it breaks the K&R C preprocessor.
657 2000-12-11 DJ Delorie <dj@redhat.com>
659 * ld.texinfo: Add notes about --whole-archive and gcc.
661 2000-11-18 Fred Fish <fnf@be.com>
663 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
664 (ld_options): Entry for --allow-shlib-undefined.
665 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
666 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
668 * ld.texinfo: Document new command line switch.
670 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
672 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
673 .fixup is actually read/write.
674 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
675 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
676 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
678 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
680 * NEWS: Add note about x86_64 architecture.
682 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
684 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
685 Set DWARF2 sections to a VMA of zero.
687 2000-12-01 Joel Sherrill <joel@OARcorp.com>
689 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
691 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
692 (sparc*-*-rtems*): Switched from a.out to ELF.
694 2000-11-30 Jan Hubicka <jh@suse.cz>
696 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
697 (eelf_x86_64.c): New.
698 * Makefile.in: Regenerate.
699 * configure.tgt: Add support for x86_64-*-linux-gnu*.
700 * emulparams/elf_x86_64.sh: New.
702 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
704 * emulparams/crislinux.sh (ENTRY): Change back to _start.
705 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
707 * scripttempl/crisaout.sc: Change all RELOCATING not related to
708 merging non-a.out sections into CONSTRUCTING.
710 2000-11-28 Nick Clifton <nickc@redhat.com>
712 * ld.1 (COPYING): Mention that the GNU Free Documentation
713 License is present in the sources, but not the output, and
714 also available from the GNU website.
715 (GNU Free Documentation License): Comment out this section.
717 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
719 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
722 2000-11-25 David O'Brien <obrien@FreeBSD.org>
724 * ld.1: Remove old date so it does not give the impression the manpage
727 2000-11-24 Nick Clifton <nickc@redhat.com>
729 * configure.tgt (xscale-coff): Add target.
730 (xscale-elf): Add target.
732 2000-11-24 Fred Fish <fnf@be.com>
734 * ldmain.c (main): Remove redundant init of config.make_executable
737 2000-11-15 Richard Henderson <rth@redhat.com>
739 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
741 2000-11-14 Kazu Hirata <kazu@hxi.com>
743 * scripttempl/h8300.sc: Fix formatting.
744 * scripttempl/h8300h.sc: Likewise.
745 * scripttempl/h8300s.sc: Likewise.
747 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
749 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
751 2000-11-09 Philip Blundell <pb@futuretv.com>
753 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
754 around orphan sections whose names can be represented in C.
756 2000-11-07 Jim Wilson <wilson@redhat.com>
758 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
759 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
761 2000-11-06 Nick Clifton <nickc@redhat.com>
763 * ld.texinfo: Add GNU Free Documentation License.
764 * ldint.texinfo: Add GNU Free Documentation License.
765 * ld.1: Add GNU Free Documentation License.
767 2000-11-05 Alan Modra <alan@linuxcare.com.au>
769 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
770 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
772 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
773 Move 2000-11-02 Makefile.in changes to this file.
774 * Makefile.in: Regenerate.
776 2000-11-03 Nick Clifton <nickc@redhat.com>
778 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
779 constructors and destructors.
780 * scripttempl/h8300h.sc: Ditto.
781 * scripttempl/h8300s.sc: Ditto.
782 * scripttempl/h8500.sc: Ditto.
783 * scripttempl/h8500b.sc: Ditto.
784 * scripttempl/h8500c.sc: Ditto.
785 * scripttempl/h8500m.sc: Ditto.
786 * scripttempl/h8500s.sc: Ditto.
787 * scripttempl/v850.sc: Ditto.
788 * scripttempl/w65.sc: Ditto.
789 * scripttempl/z8000.sc: Ditto.
791 2000-11-02 Per Lundberg <plundis@chaosdev.org>
793 * Makefile.in (e_i386_chaos.c): New rule.
794 (ALL_EMULATIONS): Added e_i386_chaos.o.
795 * emulparams/elf_i386_chaos.sh: New file.
796 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
798 2000-10-20 Jakub Jelinek <jakub@redhat.com>
800 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
801 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
802 Fix sed invocation, so that it coped with '/' in Solaris 64bit
804 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
806 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
808 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
809 for consecutive sections.
811 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
813 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
815 * ld.texinfo: Added notes about this new option.
817 2000-10-16 Nick Clifton <nickc@redhat.com>
819 * emultempl/pe.em (_after_open): Add tests of return values from
820 bfd functions. Emit appropriate error messages if necessary.
822 2000-10-13 Nick Clifton <nickc@redhat.com>
824 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
825 local variables - they are not used, but leave in the call to
826 bfd_canonicalize_symtab.
827 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
828 pe_dll_search_prefix.
830 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
832 * emultempl/pe.em (pe_dll_search_prefix): New variable,
833 (longopts): New --dll-search-prefix option.
834 (gld_${EMULATION_NAME}_list_options): Document.
835 (gld_${EMULATION_NAME}_parse_args): Handle.
836 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
837 dynamically, search for a dll named '<prefix><basename>.dll'
838 in preference to 'lib<basename>.dll' if --dll-search-prefix
841 2000-10-12 Alan Modra <alan@linuxcare.com.au>
843 * ldlang.c (section_already_linked): Set kept_section instead of
846 2000-10-10 Kazu Hirata <kazu@hxi.com>
848 * deffile.h: Fix formatting.
849 * lexsup.c: Likewise.
852 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
854 * pe-dll.c (make_one): Do not generate code thunk for DATA
856 (process_def_file): deduce DATA flag for auto-export sumbols.
858 2000-10-09 Kazu Hirata <kazu@hxi.com>
860 * ld.h: Fix formatting.
861 * ldcref.c: Likewise.
862 * ldctor.h: Likewise.
863 * ldemul.c: Likewise.
864 * ldemul.h: Likewise.
867 * ldfile.c: Likewise.
868 * ldfile.h: Likewise.
869 * ldlang.c: Likewise.
870 * ldlang.h: Likewise.
871 * ldmain.c: Likewise.
872 * pe-dll.c: Likewise.
874 * pe-dll.c: Revert some formatting fixes.
876 2000-10-08 Kazu Hirata <kazu@hxi.com>
878 * pe-dll.c: Fix formatting.
880 2000-10-05 Kazu Hirata <kazu@hxi.com>
882 * ldlang.c: Fix formatting.
884 2000-10-03 DJ Delorie <dj@redhat.com>
886 * pe-dll.c (fill_edata): initialize entire block
887 (make_one): fill in correct section.
889 2000-10-03 Kazu Hirata <kazu@hxi.com>
891 * ldexp.c: Fix formatting.
893 2000-10-02 DJ Delorie <dj@redhat.com>
895 * emultempl/pe.em (gld_*_after_open): detect case where there two
896 import libraries for same dll; rename one to ensure proper link
899 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
901 (generate_edata): fix typo
903 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
905 * scripttempl/crisaout.sc (ENTRY): Now __start.
906 (.text): Add default setting for __start.
907 Remove CONSTRUCTORS handling.
908 (/DISCARD/): Add .gnu.warning.*.
909 * emulparams/crislinux.sh (ENTRY): Now __start.
910 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
911 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
912 (ENTRY): Now __start.
913 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
914 (EXECUTABLE_SYMBOLS): Add default setting for __start.
916 2000-09-29 Kazu Hirata <kazu@hxi.com>
918 * deffile.h: Fix formatting.
920 * ldcref.c: Likewise.
921 * ldctor.c: Likewise.
922 * ldctor.h: Likewise.
923 * ldemul.c: Likewise.
924 * ldemul.h: Likewise.
927 * ldfile.c: Likewise.
928 * ldfile.h: Likewise.
929 * ldlang.c: Likewise.
930 * ldlang.h: Likewise.
931 * lexsup.c: Likewise.
933 * pe-dll.c: Likewise.
935 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
937 * pe-dll.c (process_def_file): Uninitialized data wasn't
938 exported with --export-all-symbols switch.
940 2000-09-28 DJ Delorie <dj@redhat.com>
942 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
943 noname work properly.
945 2000-09-28 Alan Modra <alan@linuxcare.com.au>
947 * ld.texinfo (HPPA ELF32): New section.
949 * emultempl/hppaelf.em (group_size): New.
950 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
951 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
952 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
953 options to prevent abbreviations matching.
954 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
955 (PARSE_AND_LIST_ARGS_CASES): Handle it.
957 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
959 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
960 on the m68*-*-elf target. Make it support COFF input objects.
962 2000-09-21 Kazu Hirata <kazu@hxi.com>
964 * ldmain.c: Fix formatting.
965 * ldmisc.c: Likewise.
967 * ldwrite.c: Likewise.
969 2000-09-21 Alan Modra <alan@linuxcare.com.au>
971 * ldwrite.c (clone_section): Silence gcc warnings.
973 2000-09-20 Alan Modra <alan@linuxcare.com.au>
975 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
976 out of memory failure.
978 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
979 (clone_section): Handle out of memory failures. Rename var to
980 avoid c++ reserved word.
982 2000-09-18 Alan Modra <alan@linuxcare.com.au>
984 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
985 stub_name param to stub_sec_name.
986 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
988 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
990 * emultempl/m68kelf.em: New file.
991 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
992 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
993 * Makefile.in: Regenerate.
995 2000-09-15 Alan Modra <alan@linuxcare.com.au>
997 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1000 2000-09-13 Nick Clifton <nickc@redhat.com>
1002 * ldmain.c (multiple_definition): Disable relaxation if
1003 multiple symbol definitions are encountered - otherwise the
1004 linker could abort with an assertion failure.
1006 2000-09-10 Nick Clifton <nickc@redhat.com>
1008 * mri.c: Fix formatting.
1010 2000-09-07 H.J. Lu <hjl@gnu.org>
1012 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1013 * configure: Rebuild.
1015 2000-09-07 H.J. Lu <hjl@gnu.org>
1017 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1018 * Makefile.in: Rebuild.
1020 2000-09-07 Alan Modra <alan@linuxcare.com.au>
1022 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1023 broken list handling. Create __start_SECNAME and __stop_SECNAME
1024 when no place-holder. Add some comments. Test both SEC_CODE and
1025 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1026 Handle case where no output section statement created.
1028 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1030 * configure.tgt (sh-*-linux*): Added.
1031 * Makefile.am: Added eshelf_linux and eshlelf_linux.
1032 * Makefile.in: Rebuilt.
1033 * emulparams/shelf_linux.sh: New file.
1034 * emulparams/shlelf_linux.sh: New file.
1036 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1038 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1039 try shuffling sections when the orphan happens to be the place
1040 holder. Keep count of unique section names generated so we speed
1041 the search for a new name.
1043 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1045 * configure: Rebuilt with new libtool.m4.
1047 2000-09-05 Nick Clifton <nickc@redhat.com>
1049 * Makefile.in: Regenerate.
1050 * aclocal.m4: Regenerate.
1051 * configure: Regenerate.
1052 * config.in: Regenerate.
1053 * po/ld.pot: Regenerate.
1055 * ldint.texinfo: Remove CVS revision marker - it foils local
1058 * emultempl/ticoff.em: Remove extraneous comma.
1060 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1062 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1063 to stub section flags.
1064 (hppa_for_each_input_file_wrapper): New.
1065 (hppa_lang_for_each_input_file): New.
1066 (lang_for_each_input_file): Define to call above.
1067 (multi_subspace): New.
1068 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1069 (PARSE_AND_LIST_PROLOGUE): Define.
1070 (PARSE_AND_LIST_LONGOPTS): Define.
1071 (PARSE_AND_LIST_OPTIONS): Define.
1072 (PARSE_AND_LIST_ARGS_CASES): Define.
1073 (hppaelf_finish): Call elf32_hppa_set_gp.
1074 (hppaelf_set_output_arch): Remove.
1075 (LDEMUL_SET_OUTPUT_ARCH): Remove.
1077 * emulparams/hppalinux.sh (ELFSIZE): Define.
1079 (OTHER_READONLY_SECTIONS): Define.
1081 (GENERATE_SHLIB_SCRIPT): Define.
1083 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
1084 to const throughout. Change `void *' to `PTR' throughout.
1085 (lang_memory_default): Function is local to file, add `static'.
1087 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1088 (ehppalinux.c): Likewise.
1089 (earmelf.c): Likewise.
1090 (earmelf_linux.c): Likewise.
1091 (earmelf_linux26.c): Likewise.
1092 * Makefile.in: Regenerate.
1094 * ld.h (ld_config_type): Add unique_orphan_sections.
1095 * lexsup.c (OPTION_UNIQUE): Define.
1096 (ld_options): Add "--unique".
1097 (parse_args): Handle it.
1098 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1099 search for an existing output section if unique_orphan_sections is
1100 set. Make use of bfd_get_unique_section_name rather than
1101 duplicating code here.
1102 * ld.texinfo: Describe --unique.
1104 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1105 optional arg to split-by-file.
1106 (parse_args): Handle them.
1107 * ld.texinfo: Update description of these options.
1108 * ldwrite.c (clone_section): Pass in the section name. Replace
1109 local code with bfd_get_unique_section_name.
1110 (split_sections): Tidy code and comments. Use a list traversal
1111 more appropriate to the list construction. Handle cooked section
1112 sizes. Split when split_by_reloc reached rather than exceeded.
1113 Track section size and split when split_by_file reached. Fix
1114 link_order_tail (even though it's not used).
1115 (ldwrite): Modify condition for calling split_sections to suit
1116 changed split_by_reloc and split_by_file.
1117 * ldmain.c (main): Init config.split_by_reloc and
1118 config.split_by_file to -1.
1119 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1120 Change split_by_file to bfd_size_type.
1122 2000-09-02 Nick Clifton <nickc@redhat.com>
1124 * configure.in: Increase version number to 2.10.91.
1125 * NEWS: Mention new ability to support removal of duplicate DWARF2
1127 * configure: Regenerate.
1128 * aclocal.m4: Regenerate.
1129 * config.in: Regenerate.
1131 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1133 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1135 * scripttempl/elf32avr.sc: Ditto.
1136 * scripttempl/elfd10v.sc: Ditto.
1137 * scripttempl/elfd30v.sc: Ditto.
1138 * scripttempl/elfi370.sc: Ditto.
1139 * scripttempl/elfm68hc11.sc: Ditto.
1140 * scripttempl/elfm68hc12.sc: Ditto.
1141 * scripttempl/elfi386beos.sc: Ditto.
1142 * scripttempl/v850.sc: Ditto.
1144 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1146 * acinclude.m4: Include libtool and gettext macros from the
1148 * aclocal.m4, configure: Rebuilt.
1150 2000-08-25 Nick Clifton <nickc@redhat.com>
1152 * ldlang.c (open_output): When choosing the target for a
1153 particular endianness, do nothing if the target is not
1156 2000-08-25 H.J. Lu <hjl@gnu.org>
1158 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1159 check -rpath nor LD_RUN_PATH for cross link.
1160 * ld.texinfo: Document the change.
1162 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1164 * NEWS: Mention support for CRIS.
1166 2000-08-23 H.J. Lu <hjl@gnu.org>
1168 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1169 the current runpath list from bfd_elf_get_runpath_list ()
1172 2000-08-22 H.J. Lu <hjl@gnu.org>
1174 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1175 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1176 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1177 trace_file_tries is non-zero.
1178 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1179 if trace_file_tries is non-zero.
1181 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1184 2000-08-14 Jason Eckhardt <jle@cygnus.com>
1186 * NEWS: Mention i860 support.
1188 2000-08-14 Andreas Schwab <schwab@suse.de>
1190 * scripttempl/elf.sc: Fix last change to use correct comment
1193 2000-08-10 Geoff Keating <geoffk@cygnus.com>
1195 * scripttempl/elf.sc: Add a comment giving the correspondence
1196 between sections, per-datum sections, and linkonce sections. Make
1197 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1200 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1202 * emulparams/elf32_i860.sh: New file.
1203 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1204 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1205 (eelf32_i860.c): New rule.
1206 * Makefile.in: Regenerate.
1208 2000-08-10 Nick Clifton <nickc@cygnus.com>
1210 * emulparams/mipspe.sh (ENTRY): Add definition.
1212 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
1214 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1217 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1219 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1220 the final size of .bss section.
1221 * scripttempl/elfm68hc12.sc: Likewise.
1223 2000-08-04 Alan Modra <alan@linuxcare.com.au>
1225 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1226 gld${EMULATION_NAME}_parse_args for consistency. Combine
1227 lastoptind and prevoptind vars, and keep track of last optind.
1228 (gld_${EMULATION_NAME}_list_options): Rename to
1229 gld${EMULATION_NAME}_list_options.
1231 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
1233 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1234 (i586-sco-sysv5uw7.1.0).
1236 2000-07-27 H.J. Lu <hjl@gnu.org>
1238 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1239 (PARSE_AND_LIST_PROLOGUE): New.
1240 (PARSE_AND_LIST_LONGOPTS): Likewise.
1241 (PARSE_AND_LIST_OPTIONS): Likewise.
1242 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1243 (PARSE_AND_LIST_EPILOGUE): Likewise.
1245 2000-07-28 Alan Modra <alan@linuxcare.com.au>
1247 * emultempl/armelf.em: Elide functions common to elf32.em,
1248 ie. most of the file.
1249 (arm_elf_after_open): New. Do arm specific things then call
1250 gld${EMULATION_NAME}_after_open.
1251 (arm_elf_before_allocation): New. Call
1252 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1253 (PARSE_AND_LIST_PROLOGUE): Define.
1254 (PARSE_AND_LIST_SHORTOPTS): Define.
1255 (PARSE_AND_LIST_LONGOPTS): Define.
1256 (PARSE_AND_LIST_OPTIONS): Define.
1257 (PARSE_AND_LIST_ARGS_CASES): Define.
1258 (LDEMUL_AFTER_OPEN): Define.
1259 (LDEMUL_BEFORE_ALLOCATION): Define.
1260 (LDEMUL_BEFORE_PARSE): Define.
1261 (LDEMUL_FINISH): Define.
1263 * emultempl/hppaelf.em: Similarly zap most of this file.
1264 (hppaelf_add_stub_section): Prototype.
1265 (hppaelf_layaout_sections_again): Prototype.
1266 (hook_in_stub): Prototype.
1267 (LDEMUL_SET_OUTPUT_ARCH): Define.
1268 (LDEMUL_FINISH): Define.
1269 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1271 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1272 (EXTRA_EM_FILE): New.
1273 * emulparams/armelf_linux.sh: Likewise.
1274 * emulparams/armelf_linux26.sh: Likewise.
1275 * emulparams/hppalinux.sh: Likewise.
1276 * emulparams/hppaelf.sh: Likewise.
1279 * emultempl/elf32.em: Fix formatting.
1280 (EXTRA_EM_FILE): Source it.
1281 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1282 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1283 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1284 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1285 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1286 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1287 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1288 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1289 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1290 allow functions in this file to be overridden.
1291 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1293 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1295 * emultempl/elf32.em: Reorganize file.
1297 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
1299 * emulparams/elf64alpha.sh: Implement "-taso" emulation
1300 specific option to fit 64-bit executable in the lower
1301 31-bit address range. This is done by changing start
1302 address of .interp (the very first section of executable)
1303 and then setting EF_ALPHA_32BIT elf header flag.
1305 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1307 * emultempl/m68kcoff.em: New file.
1308 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1309 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1311 * Makefile.in: Regenerate.
1313 2000-07-20 H.J. Lu <hjl@gnu.org>
1315 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1316 and "disable-new-dtags" to stop getopt from treating -d/-e as
1317 abbreviations for these options.
1319 2000-07-20 H.J. Lu <hjl@gnu.org>
1321 * ld.texinfo: Add documentation for --disable-new-dtags and
1324 * ldmain.c (main): Initialize link_info.new_dtags to false.
1326 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1327 --disable-new-dtags and --enable-new-dtags.
1328 (gld_${EMULATION_NAME}_list_options): Likewise.
1330 2000-07-05 Kenneth Block <krblock@computer.org>
1332 * lexsup.c: Add optional style to demangle switch
1333 * ld.texinfo: Document optional style to demangle switch.
1335 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1337 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1339 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1340 Regenerate dependencies.
1341 * Makefile.in: Rebuild.
1342 * configure.tgt (cris-*-*): New target.
1343 * emulparams/crisaout.sh, emulparams/criself.sh,
1344 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1345 * po/POTFILES.in, po/ld.pot: Regenerate.
1347 2000-07-20 H.J. Lu <hjl@gnu.org>
1349 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1350 Print out ignored -z options.
1352 2000-07-19 H.J. Lu <hjl@gnu.org>
1354 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1355 (PARSE_AND_LIST_PROLOGUE): New.
1356 (PARSE_AND_LIST_LONGOPTS): Likewise.
1357 (PARSE_AND_LIST_OPTIONS): Likewise.
1358 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1360 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1362 * lexsup.c (ld_options): Comment out 'z'.
1363 (parse_args): Likewise.
1365 * emultempl/elf32.em: Include "elf/common.h".
1366 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1368 (gld_${EMULATION_NAME}_list_options): Likewise.
1370 * ld.texinfo: Add documentation for the recognized -z options.
1372 2000-07-19 H.J. Lu <hjl@gnu.org>
1374 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1375 bfd_elf_set_dt_needed_soname ().
1377 2000-07-18 DJ Delorie <dj@cygnus.com>
1379 * pe-dll.c (pe_dll_id_target): check object target name also
1381 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
1383 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1384 ${INIT_END} if relocating.
1385 (.fini): Likewise ${FINI_START} and ${FINI_END}.
1387 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
1389 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1390 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1391 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1392 errors introduced by the old dynamic lib search order.
1394 2000-07-17 DJ Delorie <dj@cygnus.com>
1396 * pe-dll.c (process_def_file): auto-export data items also
1397 (pe_process_import_defs): also see if _imp_ form needed
1399 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1401 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1402 for dll import libraries
1404 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
1406 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1407 gcc 2.95.2 and later.
1409 2000-07-11 Kazu Hirata <kazu@hxi.com>
1411 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1414 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1416 * ldemul.h (struct lang_input_statement_struct): Remove forward
1418 (struct search_dirs): Likewise.
1419 * ldfile.h (struct lang_input_statement_struct): Likewise.
1420 Protect file from multiple inclusion.
1421 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1422 declaration from macro to file scope.
1424 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1425 * ldgram.y: Likewise here.
1426 * ldlang.c: And here.
1427 * ldmain.c: And here.
1428 * mpw-elfmips.c: And here.
1429 * mpw-eppcmac.c: And here.
1430 * emultempl/aix.em: And here.
1431 * emultempl/armcoff.em: And here.
1432 * emultempl/armelf.em: And here.
1433 * emultempl/armelf_oabi.em: And here.
1434 * emultempl/beos.em: And here.
1435 * emultempl/elf32.em: And here.
1436 * emultempl/hppaelf.em: And here.
1437 * emultempl/linux.em: And here.
1438 * emultempl/lnk960.em: And here.
1439 * emultempl/pe.em: And here.
1440 * emultempl/sunos.em: And here.
1441 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1442 * mpw-idtmips.c: Ditto.
1443 * emultempl/generic.em: Ditto.
1444 * emultempl/gld960.em: Ditto.
1445 * emultempl/gld960c.em: Ditto.
1446 * emultempl/mipsecoff.em: Ditto.
1447 * emultempl/ticoff.em: Ditto.
1448 * emultempl/vanilla.em: Ditto.
1450 * pe-dll.c: Include ldfile.h
1451 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1453 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1454 arguments to bfd_elf32_size_dynamic_sections call.
1455 (gldelf32ebmip_place_orphan): Add missing arguments to
1456 lang_leave_output_section_statement call.
1458 2000-07-10 H.J. Lu <hjl@gnu.org>
1460 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1462 (strhash): Likewise.
1463 (compute_dll_image_base): Likewise.
1464 (pe_undef_found_sym): Likewise.
1465 (pe_undef_cdecl_match): Likewise.
1466 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1467 argument "arch" with ATTRIBUTE_UNUSED.
1469 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1471 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1473 From Ryan Bradetich <rbradetich@uswest.net>
1474 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1476 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1478 Changes to create multiple linker stubs, positioned immediately
1479 before the section where they are required.
1480 * emultempl/hppaelf.em: Include elf32-hppa.h.
1481 (stub_sec, file_chain): Delete.
1482 (hppaelf_create_output_section_statements): Don't make a stub
1484 (hook_stub_info): New struct.
1485 (hook_in_stub): New function.
1486 (hppaelf_add_stub_section): New function.
1487 (hppaelf_finish): Do nothing for relocateable links. Modify the
1488 call to elf32_hppa_size_stubs. Move code for updating section
1490 (hppaelf_layaout_sections_again): ..to here, a new function.
1492 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1493 broken list handling. Pass in a pointer to the list.
1494 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1496 (hppaelf_before_parse): Prototype.
1497 (hppaelf_set_output_arch): Prototype.
1498 (hppaelf_create_output_section_statements): Prototype.
1499 (hppaelf_delete_padding_statements): Prototype.
1500 (hppaelf_finish): Prototype.
1503 * emultempl/hppaelf.em: Include ctype.h.
1504 (struct orphan_save): New.
1505 (gld${EMULATION_NAME}_place_orphan): New.
1506 (output_rel_find): New.
1507 (hppaelf_get_script): Update from elf32.em.
1508 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1509 Change emulation_name field to "${EMULATION_NAME}". Add
1510 gld${EMULATION_NAME}_place_orphan.
1512 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
1513 ehppalinux.o, sort it. Regenerate dependencies.
1514 (ehppalinux.c): Depend on hppaelf.em
1515 * Makefile.in: Regenerate.
1517 * configure.tgt: targ_emul=hppalinux for hppa*linux
1519 * emulparams/hppalinux.sh: New.
1520 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1522 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1524 * lexsup.c (parse_args): Copy section name.
1526 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
1528 * emultempl/pe.em: institute the following search order for
1529 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1530 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
1531 static lib (libfoo.a) if none of the above are found.
1533 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
1535 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1536 (longopts): New --{enable,disable}-auto-image-base options.
1537 (gld_${EMULATION_NAME}_list_options): Document.
1538 (gld_${EMULATION_NAME}_parse): Handle.
1539 (strhash): New static function.
1540 (compute_dll_image_base): New static function.
1541 (gld_${EMULATION_NAME}_set_symbols): Use.
1543 2000-07-05 DJ Delorie <dj@redhat.com>
1547 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1549 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1550 * emulparams/elf32btsmip.sh: New file.
1551 * Makefile.am: Add traditional mips target.
1552 * Makefile.in: Rebuild.
1554 2000-07-01 H.J. Lu <hjl@gnu.org>
1556 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1557 automake to use YLWRAP.
1558 * Makefile.in: Rebuild.
1560 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1562 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1563 (CLEANFILES): Add DEPA.
1564 * Makefile.in: Regenerate.
1566 2000-06-30 Timothy Wall <twall@ppc>
1568 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1569 the page in the upper octet of the address.
1571 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1573 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1575 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1577 * NEWS: arm-elf does --gc-sections too.
1579 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1581 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1583 * Makefile.in: Regenerate.
1585 2000-06-21 H.J. Lu <hjl@gnu.org>
1587 * Makefile.am: Rebuild dependency.
1588 * Makefile.in: Rebuild.
1590 2000-06-20 H.J. Lu <hjl@gnu.org>
1592 * Makefile.am: Rebuild dependency.
1593 * Makefile.in: Rebuild.
1595 2000-06-20 Timothy Wall <twall@cygnus.com>
1597 * scripttempl/tic54xcoff.sc: New.
1598 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1599 * gen-doc.texi: Add flag for TI COFF.
1600 * ld.texinfo: Add documentation for TI COFF handling switches.
1601 * emultempl/ticoff.em: New. TI COFF handling.
1602 * configure.tgt: Add tic54x target.
1603 * Makefile.am: Add tic54x target.
1604 * Makefile.in: Ditto.
1606 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1608 * ldmain.c (set_scripts_dir): Correct pointer comparison when
1609 checking for backslashes.
1611 2000-06-19 Alan Modra <alan@linuxcare.com.au>
1613 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1615 2000-06-18 Alan Modra <alan@linuxcare.com.au>
1617 * NEWS: Update list of targets supporting --gc-sections.
1619 * scripttempl/elf.sc: KEEP .eh_frame contents.
1620 * scripttempl/elfd30v.sc: Same here.
1622 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1624 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1626 * Makefile.in: Rebuild.
1627 * configure.tgt: Recognize m68hc12 and m68hc11.
1628 * scripttempl/elfm68hc12.sc: New file.
1629 * emulparams/m68hc12elfb: New emulation.
1630 * emulparams/m68hc12elf: New emulation.
1631 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
1632 (includes a memory.x script to define the ROM and RAM banks).
1633 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1634 New configuration files for support of Motorola 68hc11
1636 2000-06-15 Alan Modra <alan@linuxcare.com.au>
1638 * ldmain.c (main): Only change SEC_READONLY for final link.
1640 2000-06-13 H.J. Lu <hjl@gnu.org>
1642 * configure: Regenerate.
1644 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1646 * configure.in (VERSION): Update to show this is the CVS mainline.
1648 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1650 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1651 input objects to be ECOFF.
1652 (check_sections): einfo takes %B, not %P, to print a BFD name.
1654 2000-06-05 Michael Matz <matz@ifh.de>
1656 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1659 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1661 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
1663 * emulparams/avr1200.sh (STACK): Define as 0.
1664 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1665 * emulparams/avr4433.sh (STACK): Likewise.
1666 * emulparams/avr44x4.sh (STACK): Likewise.
1667 * emulparams/avr85xx.sh (STACK): Likewise.
1668 * emulparams/avrmega103.sh (STACK): Likewise.
1669 * emulparams/avrmega161.sh (STACK): Likewise.
1670 * emulparams/avrmega603.sh (STACK): Likewise.
1671 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1672 (__stack): Define from ${STACK} for main().
1674 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1676 * Makefile.am: Update dependencies with "make dep-am"
1677 * Makefile.in: Regenerate.
1679 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1681 * ldmain.c: Include filenames.h.
1682 (set_scripts_dir): Support backslashes in program name.
1684 2000-05-22 Igor Shevlyakov <igor@windriver.com>
1686 * ldmain.c (main): When deciding if ".text" section should be
1687 read-only, don't forget to reset SEC_READONLY because it
1688 could be already set.
1690 2000-05-22 Thomas de Lellis <tdel@windriver.com>
1692 * ld.1: Add documentation for new command line option:
1693 --section-start <sectionname>=<sectionorg>
1694 This is a generic version of -Ttext etc. which accepts
1695 any section name as a parameter instead of just text/data/
1697 * ld.texinfo: More docs.
1699 * lexsup.c: (parse_args): Recognize new command line option.
1700 (ld_options): Add new option.
1702 2000-05-18 H.J. Lu <hjl@gnu.org>
1704 * lexsup.c (parse_args): `i' == `r', not `q'.
1706 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
1708 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1710 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1711 Rick Gorton <gorton@scrugs.lkg.dec.com>
1713 Add support for '-q' == '--emit-relocs' switch.
1714 * ldmain.c (main): Default to false.
1715 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1716 * NEWS: Describe the emitrelocations switch.
1717 * ld.texinfo: Describe the emitrelocations switch.
1719 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1721 * emultempl/pe.em (_open_dynamic_archive): New function: Search
1722 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1723 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1726 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1728 * lexsup.c (parse_args): Update the year in the copyright notice.
1730 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1732 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1733 Replace defines with those from intl/libgettext.h to quieten gcc
1736 2000-05-10 H.J. Lu <hjl@gnu.org>
1738 * ldlang.c (open_input_bfds): Don't load the same file within
1739 a group again if the whole archive has been loaded already.
1741 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1743 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1744 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1747 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1749 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1751 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1752 host "ia64-*-linux-gnu*".
1754 2000-04-29 Andreas Jaeger <aj@suse.de>
1756 * ld.h: Correctly check GCC version.
1758 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1760 * Makefile.am: Add PA64 support. Add missing dependencies for
1762 * Makefile.in: Rebuilt.
1763 * configure.tgt: Add PA64 support (currently disabled).
1765 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1767 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1768 (output_rel_find): New function.
1769 (hold_section, hold_use): Delete.
1770 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1771 hold_interp): Make local to place_orphan.
1772 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1773 rather than place_section to find possible previous use of orphan.
1774 Similarly find the place-holder output sections. Use returned
1775 value from lang_enter_output_section_statement rather than calling
1776 lang_output_section_statement_lookup.
1777 * emultempl/armelf.em: Same here.
1778 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1780 * ldlang.c (lang_enter_output_section_statement): Return output
1782 * ldlang.h (lang_enter_output_section_statement): Change
1785 * ldlang.h (lang_output_section_statement): Export it.
1786 * ldlang.c (lang_output_section_statement): Ditto.
1788 2000-04-24 Nick Clifton <nickc@cygnus.com>
1790 * ld.texinfo (Output Section Data): Add note that section data
1791 commands cannot appear outside of section directives.
1793 2000-04-2 Matthew Green <mrg@cygnus.com>
1795 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1797 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1798 David Mosberger <davidm@hpl.hp.com>
1800 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1801 (eelf64_ia64.c): New rule.
1802 * Makefile.in: Rebuild.
1803 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1804 * emulparams/elf64_ia64.sh: New file.
1806 2000-04-21 Richard Henderson <rth@cygnus.com>
1808 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1810 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1812 * dep-in.sed: Match space at start of file name, not at end.
1814 2000-04-18 H.J. Lu <hjl@gnu.org>
1816 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1817 lang_leave_output_section_statement () after calling
1818 lang_enter_output_section_statement ().
1819 * emultempl/armelf.em: Likewise.
1821 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1823 * emultempl/elf32.em (struct orphan_save): Add section field.
1824 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1825 better order, and place first orphan section as we did before the
1826 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1827 Don't call make_bfd_section here, let wild_doit do the job for us.
1828 Don't build a statement list when we'll only throw it away.
1829 * emultempl/armelf.em: Ditto.
1830 * emultempl/pe.em: Similarly.
1832 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1834 * scripttempl/elfppc.sc: Remove.
1835 * emulparams/elf32ppc.sh: Use elf.sc.
1836 * emulparams/elf32lppc.sh: Use elf.sc.
1837 * emulparams/elf32ppclinux.sh: Use elf.sc.
1838 * emulparams/elf32ppcsim.sh: New file.
1839 * emulparams/elf32lppcsim.sh: New file.
1840 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1841 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1842 * Makefile.in: Regenerate.
1843 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1845 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1847 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1848 ~SEC_ALLOC sections too. Init start address of debug sections.
1849 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1850 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1851 Also set all relocateable section start addresses.
1853 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1855 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1856 Add new BSS_PLT variable for when .plt need not be contained in
1857 the file. Move _etext so that it is also after .fini, and provide
1858 both etext and _etext with a leading underscore. Mark the start
1861 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1863 * emultempl/elf32.em (struct orphan_save): New.
1864 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1865 hold_interp): Make them struct orphan_save.
1866 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1867 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1868 the end of the relevant section list. Also add associated section
1869 statements to the end of any previous orphan statements.
1870 * emultempl/armelf.em: Similarly.
1871 * emultempl/pe.em: Similarly.
1873 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1875 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1877 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1879 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1880 --enable-build-warnings option.
1881 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1882 * Makefile.in, configure: Re-generate.
1884 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1886 * po/ld.pot: Regenerate.
1888 * lexsup.c (help): Restore translated part of bug string.
1890 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1891 (DEP): Quote when passing vars to sub-make. Add warning message
1893 (DEP1): Rewrite for "gcc -MM".
1894 (CLEANFILES): Add DEP2.
1895 Update dependencies.
1896 * Makefile.in: Regenerate.
1898 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1900 * ld.h: #include "bin-bugs.h"
1901 * lexsup.c (help): Use REPORT_BUGS_TO.
1903 2000-03-27 Denis Chertykov <denisc@overta.ru>
1905 * configure.tgt (avr-*-*): New target support.
1906 * Makefile.am: Likewise.
1907 * scripttempl/elf32avr.sc: New script file.
1908 * emulparams/avr1200.sh: New file.
1909 * emulparams/avr23xx.sh: New file.
1910 * emulparams/avr4433.sh New file.
1911 * emulparams/avr44x4.sh New file.
1912 * emulparams/avr85xx.sh New file.
1913 * emulparams/avrmega103.sh New file.
1914 * emulparams/avrmega161.sh New file.
1915 * emulparams/avrmega603.sh New file.
1916 * Makefile.in: Regenerate.
1918 2000-03-09 Andreas Jaeger <aj@suse.de>
1920 * Makefile.am (check-DEJAGNU): Also unset LANG.
1921 * Makefile.in: Rebuild.
1923 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1925 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1928 2000-03-02 H.J. Lu <hjl@gnu.org>
1930 * emulparams/elf32mcore.sh: Include "getopt.h".
1932 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1934 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1936 2000-03-01 H.J. Lu <hjl@gnu.org>
1938 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1939 * emulparams/shpe.sh: Likewise.
1941 2000-03-01 Nick Clifton <nickc@cygnus.com>
1943 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1944 to unused parameters.
1946 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1947 functions only used by DLL code.
1948 (_place_orphan): Initialise 'dollar'.
1950 2000-03-01 H.J. Lu <hjl@gnu.org>
1952 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1953 indicate if the undefined symbol is a fatal error or not.
1954 Don't delete the output file if "fatal" is false.
1956 2000-02-29 H.J. Lu <hjl@gnu.org>
1958 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1959 Set LC_COLLATE and LC_ALL to null and export them. It is for
1960 sort which expects the C locale.
1961 Add $(LIBS) to all $(HOSTING_LIBS).
1962 * Makefile.in: Rebuild.
1964 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1966 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1967 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1968 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1969 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1970 find_potential_libraries.
1972 2000-02-28 Jim Blandy <jimb@redhat.com>
1974 * ldgram.y (exclude_name_list): Don't require a comma to separate
1975 list entries; the lexer considers commas to be valid part of a
1976 filename, so in something like `foo, bar' the comma is considered
1977 part of the first filename, `foo,'.
1978 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1980 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1982 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1983 host "i[3456]86-*-freebsdelf*".
1985 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1987 * scripttempl/i386go32.sc: Move misplaced semicolons.
1989 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1991 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1992 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1993 (eelf64hppa.c, ehppaelf.c): Remove targets.
1994 * Makefile.in: Rebuild.
1996 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
1998 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
1999 GNU/Linux/sparc, but keep the default as 32.
2001 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
2002 it default if sparcv9 or sparc64.
2004 2000-02-24 Nick Clifton <nickc@cygnus.com>
2006 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2007 * Makefile.in: Regenerate.
2008 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2010 * ldemul.h (ld_emulation_xfer_struct): Add new field:
2011 find_potential_libraries.
2012 * ldemul.c (ldemul_find_potential_libraries): New function.
2014 * ldfile.c (ldfile_open_file_search): Allow function to be
2016 (ldfile_open_file): Call ldemul_find_potential_libraries.
2017 * ldfile.h: Add prototype for ldfile_open_file_search.
2019 * pe-dll.c: Add support for ARM, MIPS and SH targets.
2021 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
2022 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
2024 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2025 (gld_X_find_potential_libraries): New function. Search for
2026 libraries called "*.lib".
2028 * scripttempl/pe.sc: Add .pdata section.
2030 2000-02-23 Richard Henderson <rth@cygnus.com>
2032 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2033 Add and use memory regions.
2035 2000-02-23 Linas Vepstas (linas@linas.org)
2037 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2039 * Makefile.am: Add support for Linux/IBM 370.
2040 * configure.tgt: Likewise.
2042 * Makefile.in: Regenerate.
2044 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2046 * ldlang.c (print_input_section, print_data_statement,
2047 print_reloc_statement, print_padding_statement, insert_pad,
2048 size_input_section, lang_check_section_addresses,
2049 lang_size_sections, lang_do_assignments, lang_set_startof,
2050 lang_one_common): Change `opb' to unsigned.
2051 (lang_do_assignments): Also change `size' to unsigned.
2053 2000-02-16 Richard Henderson <rth@cygnus.com>
2055 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2057 2000-02-16 Timothy Wall <twall@cygnus.com>
2059 * mri.c (mri_draw_tree): Add default LMA region argument to call
2060 to lang_leave_output_section_statement.
2061 * ldlang.h: Update prototypes with LMA region arguments.
2062 * ldlang.c (lang_size_sections): Encapsulate region bounds
2063 checking in os_check_region call.
2064 (os_check_region): New function.
2065 (lang_output_section_statement_lookup): Initialize lma_region.
2066 (lang_leave_output_section_statement): Add LMA region argument.
2067 (lang_leave_overlay): Ditto.
2068 * ldgram.y: Handle LMA region syntax.
2069 * ld.texinfo (Output Section Description): Describe LMA region usage.
2070 * emultempl/armelf.em (gld$place_orphan): Add default value for
2071 lma region in call to lang_leave_output_section_statement.
2072 * emultempl/elf32.em (gld$place_orphan): Add default value for
2073 lma region in call to lang_leave_output_section_statement.
2074 * emultempl/pe.em (gld$place_orphan): Add default value for
2075 lma region in call to lang_leave_output_section_statement.
2078 2000-02-04 Timothy Wall <twall@redhat.com>
2080 * ldlang.c (lang_check_section_addresses): Use bytes instead of
2081 octets when calculating section end addresses.
2083 2000-02-04 Timothy Wall <twall@redhat.com>
2085 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2087 2000-02-03 Timothy Wall <twall@redhat.com>
2089 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2091 * ldlang.c (print_input_section, print_data_statement,
2092 print_reloc_statement, print_padding_statement): Print target
2093 address values and section sizes as bytes, not octets.
2094 (insert_pad) Calculate padding size in octets, and adjust "dot"
2096 (size_input_section) Always adjust "dot" by bytes, not octets.
2097 (lang_check_section_addresses, lang_do_assignments) Adjust
2098 "dot" by bytes, not octets. Use the larger of the directive size
2099 or octets_per_byte for the number of octets actually allocated in
2101 (lang_set_startof) Make sure STARTOF returns a target address.
2102 (lang_one_common) Record size changes in octets.
2103 (lang_abs_symbol_at_end_of) Section end symbol's value is
2104 recorded in target bytes.
2105 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2106 to be clear about behavior when an octet is smaller than one byte.
2108 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2110 * ldcref.c (output_cref): Don't pass message strings to printf
2114 * ldmisc.c (vfinfo): Same here.
2117 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2119 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2120 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2121 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2122 Add missing NULL initialisers, and comments.
2124 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2126 2000-01-21 Nick Clifton <nickc@cygnus.com>
2128 * ldlang.c (lang_size_sections): Fix typo in comment.
2130 2000-01-18 H.J. Lu <hjl@gnu.org>
2132 * ldlang.c (lang_size_sections): Also update the current
2133 address of a region if the SEC_NEVER_LOAD bit is not set.
2135 2000-01-10 Philip Blundell <pb@futuretv.com>
2137 * configure.tgt (arm*-*-conix*): New target.
2139 2000-01-07 Nick Clifton <nickc@cygnus.com>
2141 * ld.texinfo (Options): Remind users to preceed linker command
2142 line switches with -Wl, (or whatever is appropriate) if it is
2143 being invoked by a comnpiler driver program.
2144 Fix description of the behaviour of the -n command line switch.
2146 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2148 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2150 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2151 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2152 (exclude_name_list): New.
2153 ldlang.c (walk_wild_section): Support list of excluded files.
2154 (print_wild_statement): Likewise.
2155 (lang_add_wild): Likewise.
2156 * ldlang.h (lang_wild_statement_type): Likewise.
2157 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2159 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2161 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2162 (process_def_file): Use.
2163 (pe_dll_compat_implib): New variable.
2166 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2167 pe_dll_compat_implib.
2169 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2170 compat-implib options.
2171 (gld_${EMULATION_NAME}_list_options): List new options.
2172 (gld_${EMULATION_NAME}_parse_args): Handle.
2174 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2177 * deffilep.y (opt_name): Allow "." in name.
2179 For older changes see ChangeLog-9899
2185 version-control: never