1 2001-07-09 David O'Brien <obrien@FreeBSD.org>
3 * emultempl/elf32.em: Do not assuming that contents of the buffer
4 returned from basename function will remain unchanged accross other
7 2001-07-03 H.J. Lu <hjl@gnu.org>
9 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
10 2001-07-03. It creates dynamic entries even for static binaries.
12 2001-07-03 Jakub Jelinek <jakub@redhat.com>
14 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
15 (DYNAMIC): Use it to reserve few dynamic entries for
18 2001-06-27 Alan Modra <amodra@bigpond.net.au>
20 * emulparams/hppa64linux.sh: New file.
21 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
22 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
23 (ehppa64linux.c): Add rule to make it.
25 * Makefile.in: Regenerate.
27 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
29 * ld.texinfo (Options, -r): Mention restrictions when using
30 different object formats.
32 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
34 * ldlang.c (lang_check): Emit fatal error if relocatable link
35 between different object flavours with relocations in input.
37 2001-06-19 H.J. Lu <hjl@gnu.org>
39 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
40 (--version-script): Mention the language support.
42 2001-06-19 H.J. Lu <hjl@gnu.org>
44 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
46 2001-06-18 H.J. Lu <hjl@gnu.org>
48 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
49 (diststuff): Add $(MANS).
50 * Makefile.in: Regenerated.
54 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
56 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
57 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
58 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
59 * ld.h (args_type): Remove member export_dynamic. All users
60 changed to use struct bfd_link_info member.
62 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
63 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
64 * Makefile.in: Regenerate.
66 2001-06-18 H.J. Lu <hjl@gnu.org>
68 * ldlang.c (init_os): Add the newline to the einfo call.
69 (lang_check): Likewise.
70 (lang_do_version_exports_section): Likewise.
72 2001-06-15 H.J. Lu <hjl@gnu.org>
74 * lexsup.c (parse_args); Save optind to report unrecognized
77 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
79 * ldlang.c (lang_check): Emit fatal error if relocatable link
80 between different object flavours.
82 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
83 Set new link_info member export_dynamic.
84 * ldmain.c (main): Initialize new link_info member export_dynamic.
86 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
88 * ldlang.c (walk_wild): Only call walk_wild_file if
89 lookup_name returns something.
90 (lookup_name): If load_symbols fails, return NULL.
91 (load_symbols): Chnage to a boolean function.
92 (open_input_bfds): If load_symbols fails then do not make the
95 2001-06-08 Alan Modra <amodra@bigpond.net.au>
97 * ldlang.c (record_bfd_errors): Remove.
99 * emultempl/aix.em: Fix copyright dates.
101 2001-06-07 Andreas Jaeger <aj@suse.de>
103 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
104 (TEXT_START_ADDR): Likewise.
106 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
108 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
110 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
112 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
114 2001-05-31 H.J. Lu <hjl@gnu.org>
116 * ldlang.c (open_input_bfds): Don't change the bfd error
117 handler whilst loading symbols.
119 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
121 * configure.tgt: Remove i370-mvs architecture, it is not currently
124 2001-05-25 H.J. Lu <hjl@gnu.org>
126 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
127 like emulparams/aixppc.sh.
129 2001-05-25 H.J. Lu <hjl@gnu.org>
131 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
132 setting of output_filename after bfd_scan_arch.
133 * emultempl/pe.em: Likewise.
135 2001-05-25 H.J. Lu <hjl@gnu.org>
137 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
138 like emulparams/aixppc.sh.
140 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
141 instead of ${srcdir}/emultempl/stringify.sed.
143 2001-05-25 Timothy Wall <twall@oculustech.com>
145 * emulparams/elf64_aix.sh: Change settings to match IBM linker
148 2001-05-25 Alan Modra <amodra@one.net.au>
150 * configure.host: Replace linuxoldld with linux*oldld.
151 * configure.tgt: Likewise.
153 2001-05-24 H.J. Lu <hjl@gnu.org>
155 * emultempl/stringify.sed: Removed again.
157 2001-05-24 H.J. Lu <hjl@gnu.org>
159 * emultempl/aix.em (OUTPUT_ARCH): Defined.
160 (gld${EMULATION_NAME}_before_parse): Initialize
161 ldfile_output_architecture, ldfile_output_machine and
162 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
163 * emultempl/beos.em: Likewise.
164 * emultempl/elf32.em: Likewise.
165 * emultempl/linux.em: Likewise.
166 * emultempl/mipsecoff.em: Likewise.
167 * emultempl/pe.em: Likewise.
168 * emultempl/sunos.em: Likewise.
170 2001-05-24 Tom Rix <trix@redhat.com>
172 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
173 udate import file format.
174 (change_symbol_mode) New, same
175 (is_syscall) New, same
176 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
177 * emulparams/aixppc64.sh : same
178 * emulparams/aixrs6.sh : same
179 * emulparams/ppcmacos.sh : same
180 * emultempl/aix.em : use strtoull to parse options
181 * Makefile.am : add eaixppc64 emulation for xcoff64
183 * configure.tgt : same
185 * scripttempl/aix.sc : default text section offset to 0x10000000
186 default data section offset to 0x20000000
187 add .sv3264 and .sv64 pseudo sections
188 loader and debug sections use the currect section offset.
190 * emultempl/aix.em : Add xcoff64 support
191 Add -binitfini support
192 (gld${EMULATION_NAME}_before_parse) -binitfini
193 (gld${EMULATION_NAME}_parse_args) same
194 (gld${EMULATION_NAME}_before_allocation) format change for special
197 * emulparams/aixppc64.sh : New file for xcoff64 support
199 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
201 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
202 variable to avoid non-portable shell construct.
204 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
206 * ldmain.c (get_emulation): Add -mips5 command line argument.
208 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
210 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
211 (ELF_INTERPRETER_NAME): Define it.
212 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
214 * configure.tgt (targ_emul, targ_extra_emuls)
215 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
216 as primary, elf_i386 as extra.
217 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
218 (eelf_i386_ldso.c): New rule.
219 * Makefile.in: Rebuilt.
221 2001-05-22 Nick Clifton <nickc@redhat.com>
223 * lexsup.c (ld_options): Allow -I to be an alias for
224 --dynamic-linker. This is for Solaris compatability.
225 * ld.texinfo: Document that -I can be used.
228 2001-05-16 Alan Modra <amodra@one.net.au>
230 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
231 whether an input section is the first one assigned to an output
233 Assorted formatting fixes.
235 2001-05-14 DJ Delorie <dj@delorie.com>
237 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
238 * Makefile.in: Ditto.
240 2001-05-11 Jakub Jelinek <jakub@redhat.com>
242 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
243 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
245 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
247 2001-05-11 Jakub Jelinek <jakub@redhat.com>
249 * ldlang.c (lang_process): Call bfd_merge_sections.
251 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
253 * ldgram.y: Fix typo.
255 2001-05-03 H.J. Lu <hjl@gnu.org>
257 * emultempl/elf32.em: Include "libiberty.h".
258 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
259 basename of the bfd filename.
260 (gld${EMULATION_NAME}_stat_needed): Likewise.
261 (gld${EMULATION_NAME}_try_needed): Likewise.
262 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
264 2001-05-02 H.J. Lu <hjl@gnu.org>
266 * emultempl/pe.em: Include <ctype.h>.
268 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
270 * emulparams/elf32openrisc.sh: New file.
272 * Makefile.am: Add OpenRISC target.
273 * Makefile.in: Regenerated.
275 * configure.tgt: Add openrisc-*-* mapping.
277 2001-05-02 Nick Clifton <nickc@redhat.com>
279 * emultempl/aix.em: Replace buystring with xstrdup.
280 * emultempl/beos.em: Replace buystring with xstrdup.
282 2001-05-02 H.J. Lu <hjl@gnu.org>
284 * ldfile.c: Include "libiberty.h".
287 * ldmisc.c (buystring): Removed.
288 * ldmisc.h: Likewise.
290 * ldfile.c: Replace buystring with xstrdup.
291 * ldlang.c: Likewise.
293 * ldmain.c: Likewise.
294 * ldmisc.c: Likewise.
295 * lexsup.c: Likewise.
296 * mpw-eppcmac.c: Likewise.
298 2001-04-30 Andreas Jaeger <aj@suse.de>
300 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
302 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
304 * ldlang.c (load_symbols): Give emulation a chance
305 to process unrecognized file before fatal error is
308 2001-04-27 Sean McNeil <sean@mcneil.com>
310 * configure.tgt: Add arm-vxworks target.
311 * scripttempl/armcoff.sc: Support .text or .data as a section name
315 2001-04-13 J.T. Conklin <jtc@redback.com>
317 * ld.texinfo: Document --fatal-warnings.
320 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
321 warnings have been turned into errors.
322 * lexsup.c (OPTION_WARN_FATAL): Define.
323 (ld_options): Entry for --fatal-warnings.
324 (parse_args): Handle OPTION_WARN_FATAL.
325 * ld.h (ld_config_type): Add fatal_warnings field.
327 2001-04-13 Jakub Jelinek <jakub@redhat.com>
329 * ldmain.c (main): Default to discard_sec_merge.
330 * lexsup.c (OPTION_DISCARD_NONE): Define.
331 (ld_options): Add --discard-none.
332 (parse_args): Handle OPTION_DISCARD_NONE.
333 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
334 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
335 all its input sections match.
337 2001-04-05 Steven J. Hill <sjhill@cotw.com>
339 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
340 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
341 (eelf32ltsmip.c): New target.
342 (eelf64btsmip.c): Likewise.
343 (eelf64ltsmip.c): Likewise.
344 * Makefile.in: Regenerated.
346 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
348 (mips*-*-linux-gnu*): Likewise.
350 * emulparams/elf32ltsmip.sh: New. Traditional little endian
352 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
354 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
357 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
359 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
360 correct value of __Stext here.
361 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
364 * emulparams/crislinux.sh: Remove FIXME.
366 2001-04-02 Alan Modra <alan@linuxcare.com.au>
368 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
369 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
371 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
373 * configure.tgt (cris-*-*): Change default emulation to criself.
374 (cris-*-*aout*): New rule.
376 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
378 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
379 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
381 2001-03-26 Andreas Jaeger <aj@suse.de>
383 * ld.texinfo (Overview): Fix syntax in texi code.
385 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
387 * ld.texinfo: Put @c man indications to generate the ld man page.
388 When generating man, define all the variables. Define SEEALSO
389 and SYNOPSIS. Re-organize some lines to avoid the cross references.
390 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
391 (ld.1): Generate from ld.texinfo.
392 * Makefile.in: Regenerate.
394 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
396 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
397 and '-fdata-sections'. Set the VMA of STABS sections to zero.
399 2001-03-17 Ulrich Drepper <drepper@redhat.com>
401 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
402 is an absolute path look only for this file and not along the path.
404 2001-03-17 Ulrich Drepper <drepper@redhat.com>
406 * emultempl/elf32.em (OPTION_GROUP): New macro.
407 Add new option Bgroup to longopts.
408 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
409 (gld*_list_options): Add -Bgroup and -z defs.
410 * ld.1: Document -Bgroup and -z defs.
411 * ld.texinfo: Likewise.
413 2001-03-07 Michael Meissner <meissner@redhat.com>
415 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
416 with sections created by -fdata-sections.
417 (.dynbss,.bss): Ditto.
419 2001-03-05 Alan Modra <alan@linuxcare.com.au>
421 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
422 after_allocation_default, not gld..._before_allocation.
424 2001-02-27 Alan Modra <alan@linuxcare.com.au>
426 * configure.in (BFD_VERSION): New.
427 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
428 * configure: Regenerate.
429 * Makefile.am: Run "make dep-am"
430 * Makefile.in: Regenerate.
432 2001-02-26 Timothy Wall <twall@cygnus.com>
434 * emulparams/elf64_aix.sh: Add additional read-only sections;
435 uncomment lines which are now required.
437 2001-02-26 H.J. Lu <hjl@gnu.org>
439 * ldlang.c (open_input_bfds): Set the bfd error handler so
440 that problems can be caught whilst loading symbols.
441 (record_bfd_errors): New function: Report BFD errors and mark
442 the executable output as being invalid.
444 2001-02-22 Timothy Wall <twall@cygnus.com>
446 * configure.host: Add configuration for ia64-*-aix*.
447 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
448 Add dependencies for eelf64_aix.c.
449 * Makefile.in: Regenerate.
450 * configure.tgt: Add ia64-*-aix* mapping.
451 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
452 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
455 2001-02-20 H.J. Lu <hjl@gnu.org>
457 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
458 false if we found the file.
460 2001-02-18 David O'Brien <obrien@FreeBSD.org>
462 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
463 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
465 2001-02-18 lars brinkhoff <lars@nocrew.org>
467 * Makefile.am: Add PDP-11 target.
468 * configure.tgt: Likewise.
469 * emulparams/pdp11.sh: New file.
471 2001-02-17 David O'Brien <obrien@FreeBSD.org>
473 * configure.host: Add a generic FreeBSD configuration entry such that
474 all [modern] FreeBSD systems on all platforms will look the same.
476 2001-02-14 H.J. Lu <hjl@gnu.org>
478 * configure.tgt: Remove mention of earmelf_linux26.
480 2001-02-13 Richard Henderson <rth@redhat.com>
482 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
484 2001-02-13 H.J. Lu <hjl@gnu.org>
486 * ldexp.h (node_type): Add etree_provided.
487 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
488 type to etree_provided if defined by PROVIDE. Allow updating
490 (exp_print_tree): Handle etree_provided.
491 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
494 2001-02-09 David Mosberger <davidm@hpl.hp.com>
496 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
497 .IA_64.unwind.* pattern to unwind table section and
498 .IA_64.unwind_info* pattern to unwind info section.
500 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
502 * Makefile.am: Add linux target for S/390.
503 * Makefile.in: Likewise.
504 * configure.host: Likewise.
505 * configure.tgt: Likewise.
506 * emulparams/elf64_s390.sh: New file.
507 * emulparams/elf_s390.sh: New file.
509 2001-02-09 Jakub Jelinek <jakub@redhat.com>
511 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
513 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
515 2001-02-06 Philip Blundell <philb@gnu.org>
517 * Makefile.am: Remove mention of earmelf_linux26.
518 * Makefile.in: Regenerate.
520 2001-02-04 Philip Blundell <philb@gnu.org>
522 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
523 * emulparams/armelf_linux26.sh: Delete.
524 * configure.tgt: Remove mention of armelf_linux26 emulation.
526 2001-02-01 Nick Clifton <nickc@redhat.com>
528 * ld.1: Replace occurances of -oformat with --oformat.
530 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
532 * ldlang.c (lang_leave_overlay): Don't set lma_region when
533 load_base is specified.
535 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
537 * emultempl/elf32.em: Correct spelling in comments and listed
540 2001-01-23 Alan Modra <alan@linuxcare.com.au>
542 * ldlang.c (lang_leave_overlay): Only set lma_region from the
543 default for the first section of a group of overlay sections.
545 2001-01-22 Alan Modra <alan@linuxcare.com.au>
547 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
548 * Makefile.in: Regenerate.
549 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
550 Check for null tool_dir.
552 2001-01-16 Jim Wilson <wilson@redhat.com>
554 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
555 and IA_64.unwind.info.
557 2001-01-16 H.J. Lu <hjl@gnu.org>
559 * ldlang.c (lang_check): Merge the private data only if the
560 input file has contents.
562 2001-01-14 Alan Modra <alan@linuxcare.com.au>
564 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
566 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
567 enabling search for libmilli. On a relocatable link, make .text
569 (LDEMUL_AFTER_PARSE): Define.
570 (hppaelf_finish): Correct spelling of relocatable in comments.
572 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
573 rummage through the script for sections on the unique list.
574 Correct length of strncmp for ".note".
575 (gld${EMULATION_NAME}_check_needed): Rearrange function.
577 * ldlang.c (unique_section_list): New var.
578 (unique_section_p): New function.
579 (walk_wild_section): Don't match sections on unique_section_list.
580 (lang_add_unique): New function.
581 Correct spelling of relocatable in comments.
583 * ldlang.h (struct unique_sections): Declare.
584 (unique_section_list): Declare.
585 (unique_section_p): Declare.
586 (lang_add_unique): Declare.
588 * lexsup.c (ld_options): Allow --unique to take an optional arg.
589 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
591 * ld.texinfo (--unique): Update.
593 2001-01-13 Nick Clifton <nickc@redhat.com>
595 * lexsup.c (parse_args): Remove spurious white space.
597 2001-01-12 Nick Clifton <nickc@redhat.com>
599 * lexsup.c (parse_args): Update copyright date.
601 2001-01-12 Philip Blundell <pb@futuretv.com>
603 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
605 2001-01-10 Kazu Hirata <kazu@hxi.com>
607 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
608 * scripttempl/h8300h.sc: Fix formatting.
609 * scripttempl/h8300s.sc: Likewise.
610 * scripttempl/h8500.sc: Likewise.
611 * scripttempl/h8500b.sc: Likewise.
612 * scripttempl/h8500c.sc: Likewise.
613 * scripttempl/h8500m.sc: Likewise.
614 * scripttempl/h8500s.sc: Likewise.
616 2000-01-07 David O'Brien <obrien@BSDi.com>
618 * emultempl/elf32.em: Only perform Linux ld hints processing when
621 2001-01-07 Philip Blundell <philb@gnu.org>
623 * ld.texinfo (Bug Reporting): Update email address for reports.
625 2000-12-31 Nick Clifton <nickc@redhat.com>
627 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
628 options by checking for a return value of '?' not -1.
630 2000-12-28 Nick Clifton <nickc@redhat.com>
632 * lexsup.c (struct ld_option): Add new enum value:
634 (ld_options[]): Change -omagic, -output and -oformat options
635 to be EXACTLY_TWO_DASHES.
636 (OUTPUT_COUNT): Use ARRAY_SIZE.
637 (parse_args): Change parameter 'argc' to unsigned.
638 Place EXACTLY_TWO_DASHES options into new really_longopts
640 If getopt_long_only fails, try calling getopt_long using the
641 really_longopts array.
642 (help): Print a double dash for both EXACTLY_TWO_DASHES and
645 * ldlex.h: Fix prototype of parse_args.
647 * ld.texinfo: Document that long options starting with 'o'
648 must be preceeded by two dashes. Change example of a single
649 dashed long option from -oformat to -trace-symbol.
651 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
653 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
654 (longopts[]): New --no-default-excludes option.
655 (gld_${EMULATION_NAME}_list_options): Document.
656 (gld_${EMULATION_NAME}_parse_args): Handle.
658 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
660 * ldlang.c (new_stat): Revert the last beautification with "innocent"
661 whitespace, it breaks the K&R C preprocessor.
663 2000-12-11 DJ Delorie <dj@redhat.com>
665 * ld.texinfo: Add notes about --whole-archive and gcc.
667 2000-11-18 Fred Fish <fnf@be.com>
669 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
670 (ld_options): Entry for --allow-shlib-undefined.
671 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
672 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
674 * ld.texinfo: Document new command line switch.
676 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
678 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
679 .fixup is actually read/write.
680 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
681 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
682 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
684 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
686 * NEWS: Add note about x86_64 architecture.
688 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
690 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
691 Set DWARF2 sections to a VMA of zero.
693 2000-12-01 Joel Sherrill <joel@OARcorp.com>
695 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
697 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
698 (sparc*-*-rtems*): Switched from a.out to ELF.
700 2000-11-30 Jan Hubicka <jh@suse.cz>
702 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
703 (eelf_x86_64.c): New.
704 * Makefile.in: Regenerate.
705 * configure.tgt: Add support for x86_64-*-linux-gnu*.
706 * emulparams/elf_x86_64.sh: New.
708 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
710 * emulparams/crislinux.sh (ENTRY): Change back to _start.
711 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
713 * scripttempl/crisaout.sc: Change all RELOCATING not related to
714 merging non-a.out sections into CONSTRUCTING.
716 2000-11-28 Nick Clifton <nickc@redhat.com>
718 * ld.1 (COPYING): Mention that the GNU Free Documentation
719 License is present in the sources, but not the output, and
720 also available from the GNU website.
721 (GNU Free Documentation License): Comment out this section.
723 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
725 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
728 2000-11-25 David O'Brien <obrien@FreeBSD.org>
730 * ld.1: Remove old date so it does not give the impression the manpage
733 2000-11-24 Nick Clifton <nickc@redhat.com>
735 * configure.tgt (xscale-coff): Add target.
736 (xscale-elf): Add target.
738 2000-11-24 Fred Fish <fnf@be.com>
740 * ldmain.c (main): Remove redundant init of config.make_executable
743 2000-11-15 Richard Henderson <rth@redhat.com>
745 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
747 2000-11-14 Kazu Hirata <kazu@hxi.com>
749 * scripttempl/h8300.sc: Fix formatting.
750 * scripttempl/h8300h.sc: Likewise.
751 * scripttempl/h8300s.sc: Likewise.
753 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
755 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
757 2000-11-09 Philip Blundell <pb@futuretv.com>
759 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
760 around orphan sections whose names can be represented in C.
762 2000-11-07 Jim Wilson <wilson@redhat.com>
764 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
765 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
767 2000-11-06 Nick Clifton <nickc@redhat.com>
769 * ld.texinfo: Add GNU Free Documentation License.
770 * ldint.texinfo: Add GNU Free Documentation License.
771 * ld.1: Add GNU Free Documentation License.
773 2000-11-05 Alan Modra <alan@linuxcare.com.au>
775 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
776 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
778 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
779 Move 2000-11-02 Makefile.in changes to this file.
780 * Makefile.in: Regenerate.
782 2000-11-03 Nick Clifton <nickc@redhat.com>
784 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
785 constructors and destructors.
786 * scripttempl/h8300h.sc: Ditto.
787 * scripttempl/h8300s.sc: Ditto.
788 * scripttempl/h8500.sc: Ditto.
789 * scripttempl/h8500b.sc: Ditto.
790 * scripttempl/h8500c.sc: Ditto.
791 * scripttempl/h8500m.sc: Ditto.
792 * scripttempl/h8500s.sc: Ditto.
793 * scripttempl/v850.sc: Ditto.
794 * scripttempl/w65.sc: Ditto.
795 * scripttempl/z8000.sc: Ditto.
797 2000-11-02 Per Lundberg <plundis@chaosdev.org>
799 * Makefile.in (e_i386_chaos.c): New rule.
800 (ALL_EMULATIONS): Added e_i386_chaos.o.
801 * emulparams/elf_i386_chaos.sh: New file.
802 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
804 2000-10-20 Jakub Jelinek <jakub@redhat.com>
806 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
807 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
808 Fix sed invocation, so that it coped with '/' in Solaris 64bit
810 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
812 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
814 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
815 for consecutive sections.
817 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
819 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
821 * ld.texinfo: Added notes about this new option.
823 2000-10-16 Nick Clifton <nickc@redhat.com>
825 * emultempl/pe.em (_after_open): Add tests of return values from
826 bfd functions. Emit appropriate error messages if necessary.
828 2000-10-13 Nick Clifton <nickc@redhat.com>
830 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
831 local variables - they are not used, but leave in the call to
832 bfd_canonicalize_symtab.
833 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
834 pe_dll_search_prefix.
836 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
838 * emultempl/pe.em (pe_dll_search_prefix): New variable,
839 (longopts): New --dll-search-prefix option.
840 (gld_${EMULATION_NAME}_list_options): Document.
841 (gld_${EMULATION_NAME}_parse_args): Handle.
842 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
843 dynamically, search for a dll named '<prefix><basename>.dll'
844 in preference to 'lib<basename>.dll' if --dll-search-prefix
847 2000-10-12 Alan Modra <alan@linuxcare.com.au>
849 * ldlang.c (section_already_linked): Set kept_section instead of
852 2000-10-10 Kazu Hirata <kazu@hxi.com>
854 * deffile.h: Fix formatting.
855 * lexsup.c: Likewise.
858 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
860 * pe-dll.c (make_one): Do not generate code thunk for DATA
862 (process_def_file): deduce DATA flag for auto-export sumbols.
864 2000-10-09 Kazu Hirata <kazu@hxi.com>
866 * ld.h: Fix formatting.
867 * ldcref.c: Likewise.
868 * ldctor.h: Likewise.
869 * ldemul.c: Likewise.
870 * ldemul.h: Likewise.
873 * ldfile.c: Likewise.
874 * ldfile.h: Likewise.
875 * ldlang.c: Likewise.
876 * ldlang.h: Likewise.
877 * ldmain.c: Likewise.
878 * pe-dll.c: Likewise.
880 * pe-dll.c: Revert some formatting fixes.
882 2000-10-08 Kazu Hirata <kazu@hxi.com>
884 * pe-dll.c: Fix formatting.
886 2000-10-05 Kazu Hirata <kazu@hxi.com>
888 * ldlang.c: Fix formatting.
890 2000-10-03 DJ Delorie <dj@redhat.com>
892 * pe-dll.c (fill_edata): initialize entire block
893 (make_one): fill in correct section.
895 2000-10-03 Kazu Hirata <kazu@hxi.com>
897 * ldexp.c: Fix formatting.
899 2000-10-02 DJ Delorie <dj@redhat.com>
901 * emultempl/pe.em (gld_*_after_open): detect case where there two
902 import libraries for same dll; rename one to ensure proper link
905 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
907 (generate_edata): fix typo
909 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
911 * scripttempl/crisaout.sc (ENTRY): Now __start.
912 (.text): Add default setting for __start.
913 Remove CONSTRUCTORS handling.
914 (/DISCARD/): Add .gnu.warning.*.
915 * emulparams/crislinux.sh (ENTRY): Now __start.
916 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
917 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
918 (ENTRY): Now __start.
919 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
920 (EXECUTABLE_SYMBOLS): Add default setting for __start.
922 2000-09-29 Kazu Hirata <kazu@hxi.com>
924 * deffile.h: Fix formatting.
926 * ldcref.c: Likewise.
927 * ldctor.c: Likewise.
928 * ldctor.h: Likewise.
929 * ldemul.c: Likewise.
930 * ldemul.h: Likewise.
933 * ldfile.c: Likewise.
934 * ldfile.h: Likewise.
935 * ldlang.c: Likewise.
936 * ldlang.h: Likewise.
937 * lexsup.c: Likewise.
939 * pe-dll.c: Likewise.
941 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
943 * pe-dll.c (process_def_file): Uninitialized data wasn't
944 exported with --export-all-symbols switch.
946 2000-09-28 DJ Delorie <dj@redhat.com>
948 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
949 noname work properly.
951 2000-09-28 Alan Modra <alan@linuxcare.com.au>
953 * ld.texinfo (HPPA ELF32): New section.
955 * emultempl/hppaelf.em (group_size): New.
956 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
957 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
958 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
959 options to prevent abbreviations matching.
960 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
961 (PARSE_AND_LIST_ARGS_CASES): Handle it.
963 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
965 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
966 on the m68*-*-elf target. Make it support COFF input objects.
968 2000-09-21 Kazu Hirata <kazu@hxi.com>
970 * ldmain.c: Fix formatting.
971 * ldmisc.c: Likewise.
973 * ldwrite.c: Likewise.
975 2000-09-21 Alan Modra <alan@linuxcare.com.au>
977 * ldwrite.c (clone_section): Silence gcc warnings.
979 2000-09-20 Alan Modra <alan@linuxcare.com.au>
981 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
982 out of memory failure.
984 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
985 (clone_section): Handle out of memory failures. Rename var to
986 avoid c++ reserved word.
988 2000-09-18 Alan Modra <alan@linuxcare.com.au>
990 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
991 stub_name param to stub_sec_name.
992 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
994 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
996 * emultempl/m68kelf.em: New file.
997 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
998 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
999 * Makefile.in: Regenerate.
1001 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1003 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1006 2000-09-13 Nick Clifton <nickc@redhat.com>
1008 * ldmain.c (multiple_definition): Disable relaxation if
1009 multiple symbol definitions are encountered - otherwise the
1010 linker could abort with an assertion failure.
1012 2000-09-10 Nick Clifton <nickc@redhat.com>
1014 * mri.c: Fix formatting.
1016 2000-09-07 H.J. Lu <hjl@gnu.org>
1018 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1019 * configure: Rebuild.
1021 2000-09-07 H.J. Lu <hjl@gnu.org>
1023 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1024 * Makefile.in: Rebuild.
1026 2000-09-07 Alan Modra <alan@linuxcare.com.au>
1028 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1029 broken list handling. Create __start_SECNAME and __stop_SECNAME
1030 when no place-holder. Add some comments. Test both SEC_CODE and
1031 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1032 Handle case where no output section statement created.
1034 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1036 * configure.tgt (sh-*-linux*): Added.
1037 * Makefile.am: Added eshelf_linux and eshlelf_linux.
1038 * Makefile.in: Rebuilt.
1039 * emulparams/shelf_linux.sh: New file.
1040 * emulparams/shlelf_linux.sh: New file.
1042 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1044 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1045 try shuffling sections when the orphan happens to be the place
1046 holder. Keep count of unique section names generated so we speed
1047 the search for a new name.
1049 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1051 * configure: Rebuilt with new libtool.m4.
1053 2000-09-05 Nick Clifton <nickc@redhat.com>
1055 * Makefile.in: Regenerate.
1056 * aclocal.m4: Regenerate.
1057 * configure: Regenerate.
1058 * config.in: Regenerate.
1059 * po/ld.pot: Regenerate.
1061 * ldint.texinfo: Remove CVS revision marker - it foils local
1064 * emultempl/ticoff.em: Remove extraneous comma.
1066 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1068 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1069 to stub section flags.
1070 (hppa_for_each_input_file_wrapper): New.
1071 (hppa_lang_for_each_input_file): New.
1072 (lang_for_each_input_file): Define to call above.
1073 (multi_subspace): New.
1074 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1075 (PARSE_AND_LIST_PROLOGUE): Define.
1076 (PARSE_AND_LIST_LONGOPTS): Define.
1077 (PARSE_AND_LIST_OPTIONS): Define.
1078 (PARSE_AND_LIST_ARGS_CASES): Define.
1079 (hppaelf_finish): Call elf32_hppa_set_gp.
1080 (hppaelf_set_output_arch): Remove.
1081 (LDEMUL_SET_OUTPUT_ARCH): Remove.
1083 * emulparams/hppalinux.sh (ELFSIZE): Define.
1085 (OTHER_READONLY_SECTIONS): Define.
1087 (GENERATE_SHLIB_SCRIPT): Define.
1089 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
1090 to const throughout. Change `void *' to `PTR' throughout.
1091 (lang_memory_default): Function is local to file, add `static'.
1093 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1094 (ehppalinux.c): Likewise.
1095 (earmelf.c): Likewise.
1096 (earmelf_linux.c): Likewise.
1097 (earmelf_linux26.c): Likewise.
1098 * Makefile.in: Regenerate.
1100 * ld.h (ld_config_type): Add unique_orphan_sections.
1101 * lexsup.c (OPTION_UNIQUE): Define.
1102 (ld_options): Add "--unique".
1103 (parse_args): Handle it.
1104 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1105 search for an existing output section if unique_orphan_sections is
1106 set. Make use of bfd_get_unique_section_name rather than
1107 duplicating code here.
1108 * ld.texinfo: Describe --unique.
1110 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1111 optional arg to split-by-file.
1112 (parse_args): Handle them.
1113 * ld.texinfo: Update description of these options.
1114 * ldwrite.c (clone_section): Pass in the section name. Replace
1115 local code with bfd_get_unique_section_name.
1116 (split_sections): Tidy code and comments. Use a list traversal
1117 more appropriate to the list construction. Handle cooked section
1118 sizes. Split when split_by_reloc reached rather than exceeded.
1119 Track section size and split when split_by_file reached. Fix
1120 link_order_tail (even though it's not used).
1121 (ldwrite): Modify condition for calling split_sections to suit
1122 changed split_by_reloc and split_by_file.
1123 * ldmain.c (main): Init config.split_by_reloc and
1124 config.split_by_file to -1.
1125 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1126 Change split_by_file to bfd_size_type.
1128 2000-09-02 Nick Clifton <nickc@redhat.com>
1130 * configure.in: Increase version number to 2.10.91.
1131 * NEWS: Mention new ability to support removal of duplicate DWARF2
1133 * configure: Regenerate.
1134 * aclocal.m4: Regenerate.
1135 * config.in: Regenerate.
1137 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1139 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1141 * scripttempl/elf32avr.sc: Ditto.
1142 * scripttempl/elfd10v.sc: Ditto.
1143 * scripttempl/elfd30v.sc: Ditto.
1144 * scripttempl/elfi370.sc: Ditto.
1145 * scripttempl/elfm68hc11.sc: Ditto.
1146 * scripttempl/elfm68hc12.sc: Ditto.
1147 * scripttempl/elfi386beos.sc: Ditto.
1148 * scripttempl/v850.sc: Ditto.
1150 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1152 * acinclude.m4: Include libtool and gettext macros from the
1154 * aclocal.m4, configure: Rebuilt.
1156 2000-08-25 Nick Clifton <nickc@redhat.com>
1158 * ldlang.c (open_output): When choosing the target for a
1159 particular endianness, do nothing if the target is not
1162 2000-08-25 H.J. Lu <hjl@gnu.org>
1164 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1165 check -rpath nor LD_RUN_PATH for cross link.
1166 * ld.texinfo: Document the change.
1168 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1170 * NEWS: Mention support for CRIS.
1172 2000-08-23 H.J. Lu <hjl@gnu.org>
1174 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1175 the current runpath list from bfd_elf_get_runpath_list ()
1178 2000-08-22 H.J. Lu <hjl@gnu.org>
1180 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1181 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1182 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1183 trace_file_tries is non-zero.
1184 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1185 if trace_file_tries is non-zero.
1187 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
1190 2000-08-14 Jason Eckhardt <jle@cygnus.com>
1192 * NEWS: Mention i860 support.
1194 2000-08-14 Andreas Schwab <schwab@suse.de>
1196 * scripttempl/elf.sc: Fix last change to use correct comment
1199 2000-08-10 Geoff Keating <geoffk@cygnus.com>
1201 * scripttempl/elf.sc: Add a comment giving the correspondence
1202 between sections, per-datum sections, and linkonce sections. Make
1203 the comment true even for .bss, .sdata, .sdata2, .sbss, and
1206 2000-08-10 Jason Eckhardt <jle@cygnus.com>
1208 * emulparams/elf32_i860.sh: New file.
1209 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
1210 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
1211 (eelf32_i860.c): New rule.
1212 * Makefile.in: Regenerate.
1214 2000-08-10 Nick Clifton <nickc@cygnus.com>
1216 * emulparams/mipspe.sh (ENTRY): Add definition.
1218 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
1220 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
1223 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1225 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
1226 the final size of .bss section.
1227 * scripttempl/elfm68hc12.sc: Likewise.
1229 2000-08-04 Alan Modra <alan@linuxcare.com.au>
1231 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
1232 gld${EMULATION_NAME}_parse_args for consistency. Combine
1233 lastoptind and prevoptind vars, and keep track of last optind.
1234 (gld_${EMULATION_NAME}_list_options): Rename to
1235 gld${EMULATION_NAME}_list_options.
1237 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
1239 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
1240 (i586-sco-sysv5uw7.1.0).
1242 2000-07-27 H.J. Lu <hjl@gnu.org>
1244 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
1245 (PARSE_AND_LIST_PROLOGUE): New.
1246 (PARSE_AND_LIST_LONGOPTS): Likewise.
1247 (PARSE_AND_LIST_OPTIONS): Likewise.
1248 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1249 (PARSE_AND_LIST_EPILOGUE): Likewise.
1251 2000-07-28 Alan Modra <alan@linuxcare.com.au>
1253 * emultempl/armelf.em: Elide functions common to elf32.em,
1254 ie. most of the file.
1255 (arm_elf_after_open): New. Do arm specific things then call
1256 gld${EMULATION_NAME}_after_open.
1257 (arm_elf_before_allocation): New. Call
1258 gld${EMULATION_NAME}_before_allocation then do arm specifics.
1259 (PARSE_AND_LIST_PROLOGUE): Define.
1260 (PARSE_AND_LIST_SHORTOPTS): Define.
1261 (PARSE_AND_LIST_LONGOPTS): Define.
1262 (PARSE_AND_LIST_OPTIONS): Define.
1263 (PARSE_AND_LIST_ARGS_CASES): Define.
1264 (LDEMUL_AFTER_OPEN): Define.
1265 (LDEMUL_BEFORE_ALLOCATION): Define.
1266 (LDEMUL_BEFORE_PARSE): Define.
1267 (LDEMUL_FINISH): Define.
1269 * emultempl/hppaelf.em: Similarly zap most of this file.
1270 (hppaelf_add_stub_section): Prototype.
1271 (hppaelf_layaout_sections_again): Prototype.
1272 (hook_in_stub): Prototype.
1273 (LDEMUL_SET_OUTPUT_ARCH): Define.
1274 (LDEMUL_FINISH): Define.
1275 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
1277 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
1278 (EXTRA_EM_FILE): New.
1279 * emulparams/armelf_linux.sh: Likewise.
1280 * emulparams/armelf_linux26.sh: Likewise.
1281 * emulparams/hppalinux.sh: Likewise.
1282 * emulparams/hppaelf.sh: Likewise.
1285 * emultempl/elf32.em: Fix formatting.
1286 (EXTRA_EM_FILE): Source it.
1287 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1288 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1289 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1290 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1291 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1292 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1293 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1294 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1295 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
1296 allow functions in this file to be overridden.
1297 (PARSE_AND_LIST_SHORTOPTS): Handle it.
1299 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
1301 * emultempl/elf32.em: Reorganize file.
1303 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
1305 * emulparams/elf64alpha.sh: Implement "-taso" emulation
1306 specific option to fit 64-bit executable in the lower
1307 31-bit address range. This is done by changing start
1308 address of .interp (the very first section of executable)
1309 and then setting EF_ALPHA_32BIT elf header flag.
1311 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1313 * emultempl/m68kcoff.em: New file.
1314 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
1315 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
1317 * Makefile.in: Regenerate.
1319 2000-07-20 H.J. Lu <hjl@gnu.org>
1321 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
1322 and "disable-new-dtags" to stop getopt from treating -d/-e as
1323 abbreviations for these options.
1325 2000-07-20 H.J. Lu <hjl@gnu.org>
1327 * ld.texinfo: Add documentation for --disable-new-dtags and
1330 * ldmain.c (main): Initialize link_info.new_dtags to false.
1332 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
1333 --disable-new-dtags and --enable-new-dtags.
1334 (gld_${EMULATION_NAME}_list_options): Likewise.
1336 2000-07-05 Kenneth Block <krblock@computer.org>
1338 * lexsup.c: Add optional style to demangle switch
1339 * ld.texinfo: Document optional style to demangle switch.
1341 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
1343 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
1345 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
1346 Regenerate dependencies.
1347 * Makefile.in: Rebuild.
1348 * configure.tgt (cris-*-*): New target.
1349 * emulparams/crisaout.sh, emulparams/criself.sh,
1350 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
1351 * po/POTFILES.in, po/ld.pot: Regenerate.
1353 2000-07-20 H.J. Lu <hjl@gnu.org>
1355 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
1356 Print out ignored -z options.
1358 2000-07-19 H.J. Lu <hjl@gnu.org>
1360 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
1361 (PARSE_AND_LIST_PROLOGUE): New.
1362 (PARSE_AND_LIST_LONGOPTS): Likewise.
1363 (PARSE_AND_LIST_OPTIONS): Likewise.
1364 (PARSE_AND_LIST_ARGS_CASES): Likewise.
1366 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
1368 * lexsup.c (ld_options): Comment out 'z'.
1369 (parse_args): Likewise.
1371 * emultempl/elf32.em: Include "elf/common.h".
1372 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
1374 (gld_${EMULATION_NAME}_list_options): Likewise.
1376 * ld.texinfo: Add documentation for the recognized -z options.
1378 2000-07-19 H.J. Lu <hjl@gnu.org>
1380 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
1381 bfd_elf_set_dt_needed_soname ().
1383 2000-07-18 DJ Delorie <dj@cygnus.com>
1385 * pe-dll.c (pe_dll_id_target): check object target name also
1387 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
1389 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
1390 ${INIT_END} if relocating.
1391 (.fini): Likewise ${FINI_START} and ${FINI_END}.
1393 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
1395 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
1396 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
1397 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
1398 errors introduced by the old dynamic lib search order.
1400 2000-07-17 DJ Delorie <dj@cygnus.com>
1402 * pe-dll.c (process_def_file): auto-export data items also
1403 (pe_process_import_defs): also see if _imp_ form needed
1405 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
1407 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
1408 for dll import libraries
1410 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
1412 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
1413 gcc 2.95.2 and later.
1415 2000-07-11 Kazu Hirata <kazu@hxi.com>
1417 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
1420 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1422 * ldemul.h (struct lang_input_statement_struct): Remove forward
1424 (struct search_dirs): Likewise.
1425 * ldfile.h (struct lang_input_statement_struct): Likewise.
1426 Protect file from multiple inclusion.
1427 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
1428 declaration from macro to file scope.
1430 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
1431 * ldgram.y: Likewise here.
1432 * ldlang.c: And here.
1433 * ldmain.c: And here.
1434 * mpw-elfmips.c: And here.
1435 * mpw-eppcmac.c: And here.
1436 * emultempl/aix.em: And here.
1437 * emultempl/armcoff.em: And here.
1438 * emultempl/armelf.em: And here.
1439 * emultempl/armelf_oabi.em: And here.
1440 * emultempl/beos.em: And here.
1441 * emultempl/elf32.em: And here.
1442 * emultempl/hppaelf.em: And here.
1443 * emultempl/linux.em: And here.
1444 * emultempl/lnk960.em: And here.
1445 * emultempl/pe.em: And here.
1446 * emultempl/sunos.em: And here.
1447 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
1448 * mpw-idtmips.c: Ditto.
1449 * emultempl/generic.em: Ditto.
1450 * emultempl/gld960.em: Ditto.
1451 * emultempl/gld960c.em: Ditto.
1452 * emultempl/mipsecoff.em: Ditto.
1453 * emultempl/ticoff.em: Ditto.
1454 * emultempl/vanilla.em: Ditto.
1456 * pe-dll.c: Include ldfile.h
1457 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
1459 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
1460 arguments to bfd_elf32_size_dynamic_sections call.
1461 (gldelf32ebmip_place_orphan): Add missing arguments to
1462 lang_leave_output_section_statement call.
1464 2000-07-10 H.J. Lu <hjl@gnu.org>
1466 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
1468 (strhash): Likewise.
1469 (compute_dll_image_base): Likewise.
1470 (pe_undef_found_sym): Likewise.
1471 (pe_undef_cdecl_match): Likewise.
1472 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
1473 argument "arch" with ATTRIBUTE_UNUSED.
1475 2000-07-10 Alan Modra <alan@linuxcare.com.au>
1477 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
1479 From Ryan Bradetich <rbradetich@uswest.net>
1480 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
1482 2000-07-09 Alan Modra <alan@linuxcare.com.au>
1484 Changes to create multiple linker stubs, positioned immediately
1485 before the section where they are required.
1486 * emultempl/hppaelf.em: Include elf32-hppa.h.
1487 (stub_sec, file_chain): Delete.
1488 (hppaelf_create_output_section_statements): Don't make a stub
1490 (hook_stub_info): New struct.
1491 (hook_in_stub): New function.
1492 (hppaelf_add_stub_section): New function.
1493 (hppaelf_finish): Do nothing for relocateable links. Modify the
1494 call to elf32_hppa_size_stubs. Move code for updating section
1496 (hppaelf_layaout_sections_again): ..to here, a new function.
1498 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
1499 broken list handling. Pass in a pointer to the list.
1500 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
1502 (hppaelf_before_parse): Prototype.
1503 (hppaelf_set_output_arch): Prototype.
1504 (hppaelf_create_output_section_statements): Prototype.
1505 (hppaelf_delete_padding_statements): Prototype.
1506 (hppaelf_finish): Prototype.
1509 * emultempl/hppaelf.em: Include ctype.h.
1510 (struct orphan_save): New.
1511 (gld${EMULATION_NAME}_place_orphan): New.
1512 (output_rel_find): New.
1513 (hppaelf_get_script): Update from elf32.em.
1514 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
1515 Change emulation_name field to "${EMULATION_NAME}". Add
1516 gld${EMULATION_NAME}_place_orphan.
1518 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
1519 ehppalinux.o, sort it. Regenerate dependencies.
1520 (ehppalinux.c): Depend on hppaelf.em
1521 * Makefile.in: Regenerate.
1523 * configure.tgt: targ_emul=hppalinux for hppa*linux
1525 * emulparams/hppalinux.sh: New.
1526 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
1528 2000-07-08 Alan Modra <alan@linuxcare.com.au>
1530 * lexsup.c (parse_args): Copy section name.
1532 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
1534 * emultempl/pe.em: institute the following search order for
1535 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
1536 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
1537 static lib (libfoo.a) if none of the above are found.
1539 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
1541 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
1542 (longopts): New --{enable,disable}-auto-image-base options.
1543 (gld_${EMULATION_NAME}_list_options): Document.
1544 (gld_${EMULATION_NAME}_parse): Handle.
1545 (strhash): New static function.
1546 (compute_dll_image_base): New static function.
1547 (gld_${EMULATION_NAME}_set_symbols): Use.
1549 2000-07-05 DJ Delorie <dj@redhat.com>
1553 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
1555 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
1556 * emulparams/elf32btsmip.sh: New file.
1557 * Makefile.am: Add traditional mips target.
1558 * Makefile.in: Rebuild.
1560 2000-07-01 H.J. Lu <hjl@gnu.org>
1562 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
1563 automake to use YLWRAP.
1564 * Makefile.in: Rebuild.
1566 2000-07-01 Alan Modra <alan@linuxcare.com.au>
1568 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
1569 (CLEANFILES): Add DEPA.
1570 * Makefile.in: Regenerate.
1572 2000-06-30 Timothy Wall <twall@ppc>
1574 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
1575 the page in the upper octet of the address.
1577 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
1579 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
1581 2000-06-24 Alan Modra <alan@linuxcare.com.au>
1583 * NEWS: arm-elf does --gc-sections too.
1585 2000-06-22 Alan Modra <alan@linuxcare.com.au>
1587 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
1589 * Makefile.in: Regenerate.
1591 2000-06-21 H.J. Lu <hjl@gnu.org>
1593 * Makefile.am: Rebuild dependency.
1594 * Makefile.in: Rebuild.
1596 2000-06-20 H.J. Lu <hjl@gnu.org>
1598 * Makefile.am: Rebuild dependency.
1599 * Makefile.in: Rebuild.
1601 2000-06-20 Timothy Wall <twall@cygnus.com>
1603 * scripttempl/tic54xcoff.sc: New.
1604 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
1605 * gen-doc.texi: Add flag for TI COFF.
1606 * ld.texinfo: Add documentation for TI COFF handling switches.
1607 * emultempl/ticoff.em: New. TI COFF handling.
1608 * configure.tgt: Add tic54x target.
1609 * Makefile.am: Add tic54x target.
1610 * Makefile.in: Ditto.
1612 2000-06-20 Alan Modra <alan@linuxcare.com.au>
1614 * ldmain.c (set_scripts_dir): Correct pointer comparison when
1615 checking for backslashes.
1617 2000-06-19 Alan Modra <alan@linuxcare.com.au>
1619 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
1621 2000-06-18 Alan Modra <alan@linuxcare.com.au>
1623 * NEWS: Update list of targets supporting --gc-sections.
1625 * scripttempl/elf.sc: KEEP .eh_frame contents.
1626 * scripttempl/elfd30v.sc: Same here.
1628 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
1630 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
1632 * Makefile.in: Rebuild.
1633 * configure.tgt: Recognize m68hc12 and m68hc11.
1634 * scripttempl/elfm68hc12.sc: New file.
1635 * emulparams/m68hc12elfb: New emulation.
1636 * emulparams/m68hc12elf: New emulation.
1637 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
1638 (includes a memory.x script to define the ROM and RAM banks).
1639 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
1640 New configuration files for support of Motorola 68hc11
1642 2000-06-15 Alan Modra <alan@linuxcare.com.au>
1644 * ldmain.c (main): Only change SEC_READONLY for final link.
1646 2000-06-13 H.J. Lu <hjl@gnu.org>
1648 * configure: Regenerate.
1650 2000-06-08 David O'Brien <obrien@FreeBSD.org>
1652 * configure.in (VERSION): Update to show this is the CVS mainline.
1654 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1656 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
1657 input objects to be ECOFF.
1658 (check_sections): einfo takes %B, not %P, to print a BFD name.
1660 2000-06-05 Michael Matz <matz@ifh.de>
1662 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
1665 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
1667 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
1669 * emulparams/avr1200.sh (STACK): Define as 0.
1670 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
1671 * emulparams/avr4433.sh (STACK): Likewise.
1672 * emulparams/avr44x4.sh (STACK): Likewise.
1673 * emulparams/avr85xx.sh (STACK): Likewise.
1674 * emulparams/avrmega103.sh (STACK): Likewise.
1675 * emulparams/avrmega161.sh (STACK): Likewise.
1676 * emulparams/avrmega603.sh (STACK): Likewise.
1677 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
1678 (__stack): Define from ${STACK} for main().
1680 2000-05-26 Alan Modra <alan@linuxcare.com.au>
1682 * Makefile.am: Update dependencies with "make dep-am"
1683 * Makefile.in: Regenerate.
1685 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
1687 * ldmain.c: Include filenames.h.
1688 (set_scripts_dir): Support backslashes in program name.
1690 2000-05-22 Igor Shevlyakov <igor@windriver.com>
1692 * ldmain.c (main): When deciding if ".text" section should be
1693 read-only, don't forget to reset SEC_READONLY because it
1694 could be already set.
1696 2000-05-22 Thomas de Lellis <tdel@windriver.com>
1698 * ld.1: Add documentation for new command line option:
1699 --section-start <sectionname>=<sectionorg>
1700 This is a generic version of -Ttext etc. which accepts
1701 any section name as a parameter instead of just text/data/
1703 * ld.texinfo: More docs.
1705 * lexsup.c: (parse_args): Recognize new command line option.
1706 (ld_options): Add new option.
1708 2000-05-18 H.J. Lu <hjl@gnu.org>
1710 * lexsup.c (parse_args): `i' == `r', not `q'.
1712 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
1714 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
1716 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
1717 Rick Gorton <gorton@scrugs.lkg.dec.com>
1719 Add support for '-q' == '--emit-relocs' switch.
1720 * ldmain.c (main): Default to false.
1721 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
1722 * NEWS: Describe the emitrelocations switch.
1723 * ld.texinfo: Describe the emitrelocations switch.
1725 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
1727 * emultempl/pe.em (_open_dynamic_archive): New function: Search
1728 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
1729 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
1732 2000-05-15 David O'Brien <obrien@FreeBSD.org>
1734 * lexsup.c (parse_args): Update the year in the copyright notice.
1736 2000-05-13 Alan Modra <alan@linuxcare.com.au>
1738 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
1739 Replace defines with those from intl/libgettext.h to quieten gcc
1742 2000-05-10 H.J. Lu <hjl@gnu.org>
1744 * ldlang.c (open_input_bfds): Don't load the same file within
1745 a group again if the whole archive has been loaded already.
1747 2000-05-03 Alan Modra <alan@linuxcare.com.au>
1749 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
1750 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
1753 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
1755 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
1757 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1758 host "ia64-*-linux-gnu*".
1760 2000-04-29 Andreas Jaeger <aj@suse.de>
1762 * ld.h: Correctly check GCC version.
1764 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
1766 * Makefile.am: Add PA64 support. Add missing dependencies for
1768 * Makefile.in: Rebuilt.
1769 * configure.tgt: Add PA64 support (currently disabled).
1771 2000-04-25 Alan Modra <alan@linuxcare.com.au>
1773 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
1774 (output_rel_find): New function.
1775 (hold_section, hold_use): Delete.
1776 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1777 hold_interp): Make local to place_orphan.
1778 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
1779 rather than place_section to find possible previous use of orphan.
1780 Similarly find the place-holder output sections. Use returned
1781 value from lang_enter_output_section_statement rather than calling
1782 lang_output_section_statement_lookup.
1783 * emultempl/armelf.em: Same here.
1784 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
1786 * ldlang.c (lang_enter_output_section_statement): Return output
1788 * ldlang.h (lang_enter_output_section_statement): Change
1791 * ldlang.h (lang_output_section_statement): Export it.
1792 * ldlang.c (lang_output_section_statement): Ditto.
1794 2000-04-24 Nick Clifton <nickc@cygnus.com>
1796 * ld.texinfo (Output Section Data): Add note that section data
1797 commands cannot appear outside of section directives.
1799 2000-04-2 Matthew Green <mrg@cygnus.com>
1801 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
1803 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
1804 David Mosberger <davidm@hpl.hp.com>
1806 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
1807 (eelf64_ia64.c): New rule.
1808 * Makefile.in: Rebuild.
1809 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
1810 * emulparams/elf64_ia64.sh: New file.
1812 2000-04-21 Richard Henderson <rth@cygnus.com>
1814 * scripttempl/elfd30v.sc: Place .gcc_except_table.
1816 2000-04-19 Alan Modra <alan@linuxcare.com.au>
1818 * dep-in.sed: Match space at start of file name, not at end.
1820 2000-04-18 H.J. Lu <hjl@gnu.org>
1822 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
1823 lang_leave_output_section_statement () after calling
1824 lang_enter_output_section_statement ().
1825 * emultempl/armelf.em: Likewise.
1827 2000-04-18 Alan Modra <alan@linuxcare.com.au>
1829 * emultempl/elf32.em (struct orphan_save): Add section field.
1830 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
1831 better order, and place first orphan section as we did before the
1832 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
1833 Don't call make_bfd_section here, let wild_doit do the job for us.
1834 Don't build a statement list when we'll only throw it away.
1835 * emultempl/armelf.em: Ditto.
1836 * emultempl/pe.em: Similarly.
1838 2000-04-14 Geoff Keating <geoffk@cygnus.com>
1840 * scripttempl/elfppc.sc: Remove.
1841 * emulparams/elf32ppc.sh: Use elf.sc.
1842 * emulparams/elf32lppc.sh: Use elf.sc.
1843 * emulparams/elf32ppclinux.sh: Use elf.sc.
1844 * emulparams/elf32ppcsim.sh: New file.
1845 * emulparams/elf32lppcsim.sh: New file.
1846 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
1847 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
1848 * Makefile.in: Regenerate.
1849 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
1851 2000-04-14 Alan Modra <alan@linuxcare.com.au>
1853 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
1854 ~SEC_ALLOC sections too. Init start address of debug sections.
1855 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1856 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
1857 Also set all relocateable section start addresses.
1859 2000-04-13 Geoff Keating <geoffk@cygnus.com>
1861 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
1862 Add new BSS_PLT variable for when .plt need not be contained in
1863 the file. Move _etext so that it is also after .fini, and provide
1864 both etext and _etext with a leading underscore. Mark the start
1867 2000-04-12 Alan Modra <alan@linuxcare.com.au>
1869 * emultempl/elf32.em (struct orphan_save): New.
1870 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
1871 hold_interp): Make them struct orphan_save.
1872 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
1873 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
1874 the end of the relevant section list. Also add associated section
1875 statements to the end of any previous orphan statements.
1876 * emultempl/armelf.em: Similarly.
1877 * emultempl/pe.em: Similarly.
1879 2000-04-11 Alan Modra <alan@linuxcare.com.au>
1881 * ld.texinfo (Simple Example): Remove extraneous paragraph.
1883 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
1885 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
1886 --enable-build-warnings option.
1887 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
1888 * Makefile.in, configure: Re-generate.
1890 2000-04-04 Alan Modra <alan@linuxcare.com.au>
1892 * po/ld.pot: Regenerate.
1894 * lexsup.c (help): Restore translated part of bug string.
1896 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
1897 (DEP): Quote when passing vars to sub-make. Add warning message
1899 (DEP1): Rewrite for "gcc -MM".
1900 (CLEANFILES): Add DEP2.
1901 Update dependencies.
1902 * Makefile.in: Regenerate.
1904 2000-04-03 Alan Modra <alan@linuxcare.com.au>
1906 * ld.h: #include "bin-bugs.h"
1907 * lexsup.c (help): Use REPORT_BUGS_TO.
1909 2000-03-27 Denis Chertykov <denisc@overta.ru>
1911 * configure.tgt (avr-*-*): New target support.
1912 * Makefile.am: Likewise.
1913 * scripttempl/elf32avr.sc: New script file.
1914 * emulparams/avr1200.sh: New file.
1915 * emulparams/avr23xx.sh: New file.
1916 * emulparams/avr4433.sh New file.
1917 * emulparams/avr44x4.sh New file.
1918 * emulparams/avr85xx.sh New file.
1919 * emulparams/avrmega103.sh New file.
1920 * emulparams/avrmega161.sh New file.
1921 * emulparams/avrmega603.sh New file.
1922 * Makefile.in: Regenerate.
1924 2000-03-09 Andreas Jaeger <aj@suse.de>
1926 * Makefile.am (check-DEJAGNU): Also unset LANG.
1927 * Makefile.in: Rebuild.
1929 2000-03-06 Ian Lance Taylor <ian@zembu.com>
1931 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
1934 2000-03-02 H.J. Lu <hjl@gnu.org>
1936 * emulparams/elf32mcore.sh: Include "getopt.h".
1938 2000-03-01 Ian Lance Taylor <ian@zembu.com>
1940 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
1942 2000-03-01 H.J. Lu <hjl@gnu.org>
1944 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
1945 * emulparams/shpe.sh: Likewise.
1947 2000-03-01 Nick Clifton <nickc@cygnus.com>
1949 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
1950 to unused parameters.
1952 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
1953 functions only used by DLL code.
1954 (_place_orphan): Initialise 'dollar'.
1956 2000-03-01 H.J. Lu <hjl@gnu.org>
1958 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
1959 indicate if the undefined symbol is a fatal error or not.
1960 Don't delete the output file if "fatal" is false.
1962 2000-02-29 H.J. Lu <hjl@gnu.org>
1964 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
1965 Set LC_COLLATE and LC_ALL to null and export them. It is for
1966 sort which expects the C locale.
1967 Add $(LIBS) to all $(HOSTING_LIBS).
1968 * Makefile.in: Rebuild.
1970 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
1972 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
1973 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
1974 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
1975 (ld_emulation_xfer_struct): Add missing NULL initialiser for
1976 find_potential_libraries.
1978 2000-02-28 Jim Blandy <jimb@redhat.com>
1980 * ldgram.y (exclude_name_list): Don't require a comma to separate
1981 list entries; the lexer considers commas to be valid part of a
1982 filename, so in something like `foo, bar' the comma is considered
1983 part of the first filename, `foo,'.
1984 * ld.texinfo: Update section on EXCLUDE_FILE lists.
1986 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
1988 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
1989 host "i[3456]86-*-freebsdelf*".
1991 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
1993 * scripttempl/i386go32.sc: Move misplaced semicolons.
1995 2000-02-25 Ian Lance Taylor <ian@zembu.com>
1997 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
1998 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
1999 (eelf64hppa.c, ehppaelf.c): Remove targets.
2000 * Makefile.in: Rebuild.
2002 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2004 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2005 GNU/Linux/sparc, but keep the default as 32.
2007 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
2008 it default if sparcv9 or sparc64.
2010 2000-02-24 Nick Clifton <nickc@cygnus.com>
2012 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2013 * Makefile.in: Regenerate.
2014 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2016 * ldemul.h (ld_emulation_xfer_struct): Add new field:
2017 find_potential_libraries.
2018 * ldemul.c (ldemul_find_potential_libraries): New function.
2020 * ldfile.c (ldfile_open_file_search): Allow function to be
2022 (ldfile_open_file): Call ldemul_find_potential_libraries.
2023 * ldfile.h: Add prototype for ldfile_open_file_search.
2025 * pe-dll.c: Add support for ARM, MIPS and SH targets.
2027 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
2028 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
2030 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2031 (gld_X_find_potential_libraries): New function. Search for
2032 libraries called "*.lib".
2034 * scripttempl/pe.sc: Add .pdata section.
2036 2000-02-23 Richard Henderson <rth@cygnus.com>
2038 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2039 Add and use memory regions.
2041 2000-02-23 Linas Vepstas (linas@linas.org)
2043 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2045 * Makefile.am: Add support for Linux/IBM 370.
2046 * configure.tgt: Likewise.
2048 * Makefile.in: Regenerate.
2050 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2052 * ldlang.c (print_input_section, print_data_statement,
2053 print_reloc_statement, print_padding_statement, insert_pad,
2054 size_input_section, lang_check_section_addresses,
2055 lang_size_sections, lang_do_assignments, lang_set_startof,
2056 lang_one_common): Change `opb' to unsigned.
2057 (lang_do_assignments): Also change `size' to unsigned.
2059 2000-02-16 Richard Henderson <rth@cygnus.com>
2061 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2063 2000-02-16 Timothy Wall <twall@cygnus.com>
2065 * mri.c (mri_draw_tree): Add default LMA region argument to call
2066 to lang_leave_output_section_statement.
2067 * ldlang.h: Update prototypes with LMA region arguments.
2068 * ldlang.c (lang_size_sections): Encapsulate region bounds
2069 checking in os_check_region call.
2070 (os_check_region): New function.
2071 (lang_output_section_statement_lookup): Initialize lma_region.
2072 (lang_leave_output_section_statement): Add LMA region argument.
2073 (lang_leave_overlay): Ditto.
2074 * ldgram.y: Handle LMA region syntax.
2075 * ld.texinfo (Output Section Description): Describe LMA region usage.
2076 * emultempl/armelf.em (gld$place_orphan): Add default value for
2077 lma region in call to lang_leave_output_section_statement.
2078 * emultempl/elf32.em (gld$place_orphan): Add default value for
2079 lma region in call to lang_leave_output_section_statement.
2080 * emultempl/pe.em (gld$place_orphan): Add default value for
2081 lma region in call to lang_leave_output_section_statement.
2084 2000-02-04 Timothy Wall <twall@redhat.com>
2086 * ldlang.c (lang_check_section_addresses): Use bytes instead of
2087 octets when calculating section end addresses.
2089 2000-02-04 Timothy Wall <twall@redhat.com>
2091 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2093 2000-02-03 Timothy Wall <twall@redhat.com>
2095 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2097 * ldlang.c (print_input_section, print_data_statement,
2098 print_reloc_statement, print_padding_statement): Print target
2099 address values and section sizes as bytes, not octets.
2100 (insert_pad) Calculate padding size in octets, and adjust "dot"
2102 (size_input_section) Always adjust "dot" by bytes, not octets.
2103 (lang_check_section_addresses, lang_do_assignments) Adjust
2104 "dot" by bytes, not octets. Use the larger of the directive size
2105 or octets_per_byte for the number of octets actually allocated in
2107 (lang_set_startof) Make sure STARTOF returns a target address.
2108 (lang_one_common) Record size changes in octets.
2109 (lang_abs_symbol_at_end_of) Section end symbol's value is
2110 recorded in target bytes.
2111 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2112 to be clear about behavior when an octet is smaller than one byte.
2114 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2116 * ldcref.c (output_cref): Don't pass message strings to printf
2120 * ldmisc.c (vfinfo): Same here.
2123 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2125 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2126 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2127 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2128 Add missing NULL initialisers, and comments.
2130 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2132 2000-01-21 Nick Clifton <nickc@cygnus.com>
2134 * ldlang.c (lang_size_sections): Fix typo in comment.
2136 2000-01-18 H.J. Lu <hjl@gnu.org>
2138 * ldlang.c (lang_size_sections): Also update the current
2139 address of a region if the SEC_NEVER_LOAD bit is not set.
2141 2000-01-10 Philip Blundell <pb@futuretv.com>
2143 * configure.tgt (arm*-*-conix*): New target.
2145 2000-01-07 Nick Clifton <nickc@cygnus.com>
2147 * ld.texinfo (Options): Remind users to preceed linker command
2148 line switches with -Wl, (or whatever is appropriate) if it is
2149 being invoked by a comnpiler driver program.
2150 Fix description of the behaviour of the -n command line switch.
2152 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2154 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2156 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2157 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2158 (exclude_name_list): New.
2159 ldlang.c (walk_wild_section): Support list of excluded files.
2160 (print_wild_statement): Likewise.
2161 (lang_add_wild): Likewise.
2162 * ldlang.h (lang_wild_statement_type): Likewise.
2163 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2165 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2167 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2168 (process_def_file): Use.
2169 (pe_dll_compat_implib): New variable.
2172 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2173 pe_dll_compat_implib.
2175 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2176 compat-implib options.
2177 (gld_${EMULATION_NAME}_list_options): List new options.
2178 (gld_${EMULATION_NAME}_parse_args): Handle.
2180 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2183 * deffilep.y (opt_name): Allow "." in name.
2185 For older changes see ChangeLog-9899
2191 version-control: never