1 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3 * ld.texinfo: Use @command for commands, @option for options.
4 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
6 * Makefile.in: Rebuild.
8 2001-11-04 Chris Demetriou <cgd@broadcom.com>
10 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
11 Add support for targets.
13 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
15 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
16 * configure: Regernate.
20 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
22 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
23 as little endian default and to support big endian.
25 2001-11-01 Chris Demetriou <cgd@broadcom.com>
27 * ld.texinfo (Options): Document new option, -nostdlib.
28 * lexsup.c (OPTION_NOSTDLIB): New definition.
29 (ld_options): Add entry for "nostdlib".
30 (parse_args): Handle OPTIONS_NOSTDLIB.
31 * ldfile.c (ldfile_add_library_path): Don't add directories
32 to the search path if they weren't specified on the command line
33 and -nostdlib was specified.
34 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
36 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
38 * lexsup.c (parse_args): Prevent infinite parsing loop when
39 "-rpath.a" is specified on the command line.
40 Replace calls to fprintf with calls to einfo.
42 2001-10-31 John Marshall <jmarshall@acm.org>
44 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
45 appear only once across all the linker scripts involved in a link
46 invocation no longer applies. Make the documentation reflect
49 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
51 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
53 (sh-*-linux*): Added targ_extra_libpath.
55 2001-10-31 David Heine <dlheine@tensilica.com>
57 * ldlang.c (lang_size_sections): Keep a valid output_offset field
58 for padding statements.
60 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
62 * configure.tgt (mmix-*-*): New target.
63 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
64 Add dependencies to match.
65 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
66 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
67 scripttempl/mmo.sc: New files.
68 * gen-doc.texi: @set MMIX.
71 * Makefile.in: Regenerate.
73 2001-10-29 Kazu Hirata <kazu@hxi.com>
75 * ldlang.c: Fix a comment typo.
77 2001-10-23 Alan Modra <amodra@bigpond.net.au>
79 * configure.host: Move alpha*-*-linux-gnu* entry to generic
80 entries, and match *-*-linux*.
82 2001-10-20 Alan Modra <amodra@bigpond.net.au>
84 * ldgram.y (mri_script_command): Surround processing of INCLUDE
85 with ldlex_script, ldlex_popstate.
87 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
89 (lex_push_file): Save current lineno to lineno_stack. Set lineno
90 to 1. Don't BEGIN(SCRIPT).
91 (lex_redirect): Similarly.
92 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
94 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
96 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
97 __EH_FRAME_END__ and accept eh frames into data section.
98 Add ctor and dtor sections.
100 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
102 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
103 (auto-export): Fix indentation.
105 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
107 * pe-dll.c (autofilter_objectlist): Add startup objects
109 (auto-export): Constify char * p.
110 Extract file basename and use strcmp rather than ststr
113 2001-10-18 Chris Demetriou <cgd@broadcom.com>
115 * ldmain.c (get_emulation): Improve comment about the handling
118 2001-10-17 Alan Modra <amodra@bigpond.net.au>
120 * po/POTFILES.in: Regenerate.
122 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
124 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
125 -z nocopyreloc and -z nocombreloc usage strings.
127 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
129 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
132 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
134 * scripttempl/armaout.sc: Place .bss section after end of aligned
135 data section to match behaviour of aout code in constructrion of
138 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
140 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
141 startup files for mingw32 dlls to list.
143 2001-10-10 Chris Demetriou <cgd@broadcom.com>
145 * emultempl/elf32.em: Fix shell 'if' usage for portability.
147 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
149 * configure.tgt (targ): Add arm9e-*-elf.
151 2001-10-05 H.J. Lu <hjl@gnu.org>
153 * genscripts.sh: Fix a typo in the last change.
155 2001-10-05 Jakub Jelinek <jakub@redhat.com>
157 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
158 -z nocombreloc in usage.
160 2001-10-03 Jim Blandy <jimb@redhat.com>
162 * genscripts.sh: Include a comment at the top of each generated
163 script, explaining its purpose.
165 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
167 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
168 * NEWS: Mention -z nocopyreloc.
169 * ld.texinfo (Options): Describe nocopyreloc.
171 2001-10-03 Alan Modra <amodra@bigpond.net.au>
173 * configure: Regenerate.
175 2001-10-02 Alan Modra <amodra@bigpond.net.au>
177 * ldver.h (ld_program_version): Remove declaration.
178 * lexsup.c (parse_args): Move printing of copyright message..
179 * ldver.c (ldversion): .. to here.
180 Use BFD_VERSION_STRING in place of BFD_VERSION.
181 (ld_program_version): Remove.
182 * Makefile.am (Makefile): Depend on bfd/configure.in.
184 * Makefile.in: Regenerate.
186 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
188 * Makefile.am: Update dependencies with "make dep-am".
189 * Makefile.in: Regenerate.
191 2001-09-29 John Reiser <jreiser@BitWagon.com>
193 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
194 * lexsup.c: Add --no-define-common commandline option.
195 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
197 * ld.h: Add command_line.inhibit_common_definition.
198 * ldmain.c (main): Initialize.
199 * ld.texinfo: Document.
201 2001-09-26 Alan Modra <amodra@bigpond.net.au>
203 * ldmisc.c (USE_STDARG): Remove.
204 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
209 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
210 declarations. Update copyright.
212 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
214 * pe-dll.c: Remove obsoleted declaration of
215 pe_get_data_import_dll_name.
216 (pe_create_import_fixup): Fix thinko.
218 * ld.texinfo(enable-auto-import): Clarify the explanation.
220 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
222 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
223 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
224 DLL_SUPPORT controlled code.
226 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
228 * emultempl/pe.em(pe_data_import_dll): Make static.
229 (pe_get_data_import_dll_name): New accessor function.
230 * pe-dll.c(pe_create_import_fixup): call
231 pe_get_data_import_dll_name() from pe.em, instead of
232 directly accessing pe_data_import_dll variable from pe.em.
234 2001-09-18 Bruno Haible <haible@clisp.cons.org>
236 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
237 (def_file_add_directive): Use ISSPACE instead of isspace.
238 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
239 isdigit/isxdigit/isalpha/isalnum.
240 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
241 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
242 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
243 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
245 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
246 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
248 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
249 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
250 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
251 (ctor_prio): Use ISDIGIT instead of isdigit.
252 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
253 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
254 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
256 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
257 (stricpy): Use TOLOWER instead of isupper/tolower.
258 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
259 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
260 (lex_warn_invalid): Use ISPRINT instead of isprint.
261 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
262 (main): For gettext, also set the LC_CTYPE locate facet.
263 (add_keepsyms_file): Use ISSPACE instead of isspace.
264 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
265 (is_num, parse_args): Use ISDIGIT instead of isdigit.
266 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
267 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
268 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
269 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
270 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
271 (quoteput): Use ISSPACE instead of isspace.
272 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
275 2001-09-18 Alan Modra <amodra@bigpond.net.au>
277 * deffilep.y (def_stash_module): Constify "name" param.
279 * pe-dll.c: Replace CONST with const throughout.
280 (quick_symbol): Constify "n1", "n2", "n3" params.
281 (make_singleton_name_thunk): Constify "import" param. Make
282 "buffer_len" a size_t.
283 (make_import_fixup_entry): Constify "name", "fixup_name",
284 "dll_symname" params.
285 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
286 (pe_get32): Likewise.
287 (pe_implied_import_dll): Likewise.
289 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
290 (sort_by_section_name): Likewise.
292 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
293 (make_import_fixup): Cast printf arg, rel->address to long rather
295 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
297 2001-09-15 Alan Modra <amodra@bigpond.net.au>
299 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
300 defines BufferSize. Increase buffer size by one.
302 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
304 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
306 2001-09-14 Kevin Lo <kevlo@openbsd.org>
308 * configure.tgt: Add arm-openbsd target.
310 2001-09-12 H.J. Lu <hjl@gnu.org>
312 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
314 (ALL_64_EMULATIONS): Here.
315 * Makefile.in: Regenerated.
317 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
319 * emultempl/pe.em(make_import_fixup): change signature to
320 take asection as well as arelec; we need this for proper
321 error reporting. Only call pe_create_import_fixup() if
322 there is no attempt to add a constant addend to the reloc;
323 otherwise, report error condition.
324 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
325 since final argument is a pointer to make_import_fixup().
326 Change call to cb() to match make_import_fixup() signature.
327 (make_import_fixup_mark): make buffer_len unsigned.
328 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
330 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
332 * ld.texinfo: add verbose documentation for auto-import
333 direct-addressing workaround, to compliment the terse
336 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
338 * scripttempl/v850.sc: Add gcc_except_table sections.
340 Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
342 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
343 * emulparams/h8300self.sh: Similarly.
345 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
347 * ld.texinfo (Options, --stack): Correct default value for stack
350 2001-09-05 Tom Rix <trix@redhat.com>
352 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
354 2001-09-03 Andreas Jaeger <aj@suse.de>
356 * emultempl/beos.em: Declare prototypes for comparions functions,
359 2001-09-02 Andreas Jaeger <aj@suse.de>
361 * emultempl/aix.em: Add missing prototype.
362 * emultempl/lnk960.em: Likewise.
363 * emultempl/vanilla.em: Likewise.
364 * emultempl/armcoff.em: Likewise.
365 * emultempl/armelf_oabi.em: Likewise.
366 * emultempl/beos.em: Likewise.
367 * emultempl/gld960c.em: Likewise.
368 * emultempl/gld960.em: Likewise.
370 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
371 for prototype declaration.
373 2001-08-31 Eric Christopher <echristo@redhat.com>
374 Jason Eckhardt <jle@redhat.com>
376 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
378 2001-08-31 Andreas Jaeger <aj@suse.de>
380 * emultempl/pe.em: Add missing prototypes.
381 (gld_${EMULATION_NAME}_after_open): Remove extra args to
382 pe_find_data_imports.
383 (pr_sym): Add unused attribute.
385 2001-08-29 Joel Sherrill <joel@OARcorp.com>
387 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
388 default from coff to elf.
390 2001-08-29 Jeff Law <law@redhat.com>
392 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
394 * emulparams/h8300self.sh: Similarly.
396 Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
398 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
400 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
401 * configure.tgt (h8300-*-elf*): New case.
402 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
403 * emulparams/h8300self.sh: New file.
404 * Makefile.in: Regenerated.
406 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
408 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
411 2001-08-27 Linus Nordberg <linus@swox.com>
412 Alan Modra <amodra@bigpond.net.au>
414 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
415 (eelf64ppc.c, eelf64lppc.c): Add make targets.
417 * Makefile.in: Regenerate.
418 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
419 entries to correct alphabetical position.
420 * emulparams/elf64ppc.sh: New.
421 * emulparams/elf64lppc.sh: New.
423 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
425 * ldmain.c (main): Declare BSIZE as static.
427 2001-08-23 Jakub Jelinek <jakub@redhat.com>
429 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
430 into .rel.dyn resp. .rela.dyn if combreloc.
431 (get_script): If .x linker script is equal to .xn, only put it
432 once into the binary.
433 Add .xc and .xsc scripts.
434 (parse_args): Handle -z combreloc and -z nocombreloc.
435 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
436 For .xc and .xsc scripts put all .rel* or .rela* input sections
437 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
438 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
440 Strip trailing whitespace from script.
441 Generate .xc and .xsc scripts if requested.
442 * ldmain.c (main): Initialize link_info.combreloc and
443 link_info.spare_dynamic_tags.
444 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
445 (ld_options): Add --spare-dynamic-tags option.
446 (parse_args): Likewise.
447 * ld.texinfo: Document -z combreloc and -z nocombreloc.
448 * ldint.texinfo: Document .xc and .xsc linker scripts.
449 * NEWS: Add notes about -z combreloc and SHF_MERGE.
451 2001-08-22 H.J. Lu <hjl@gnu.org>
453 * emulparams/elf32fr30.sh: Add a newline.
455 2001-08-21 Andreas Jaeger <aj@suse.de>
457 * deffilep.y: Add missing prototypes.
458 * pe-dll.c: Likewise.
460 2001-08-20 Alan Modra <amodra@bigpond.net.au>
462 * ldlang.c (insert_pad): Fix typos in last patch.
464 * ldlang.c: When traversing lang_statement_union_type lists,
465 consistently use "header.next" rather than "next".
466 * mpw-eppcmac.c: Likewise.
467 * emultempl/beos.em: Likewise.
468 * emultempl/hppaelf.em: Likewise.
469 * emultempl/pe.em: Likewise.
470 * ldlang.h (union lang_statement_union): Remove "next" field.
472 * ldlang.c (insert_pad): Use offsetof macro.
473 (lang_size_sections): Always neuter padding statements.
474 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
476 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
477 passed to lang_size_sections.
478 (pe_exe_fill_sections): Likewise.
479 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
480 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
482 2001-08-18 Alan Modra <amodra@bigpond.net.au>
484 * emultempl/aix.em: Formatting fixes.
486 2001-08-18 Alan Modra <amodra@bigpond.net.au>
488 * ldlang.c (insert_pad): Make use of an existing pad statement if
489 available. Move code calculating alignment, adjusting section
490 alignment power, and adjusting dot to ..
491 (size_input_section): .. here. Remove unused relax param.
492 (lang_size_sections): Change boolean `relax' param to boolean *.
493 Adjust call to size_input_section. Make use of insert_pad to
494 place pad after the assignment statement. If relaxing, zap
496 (reset_memory_regions): Reset output_bfd section sizes too.
497 (relax_again): Move to..
498 (lang_process): ..here. Adjust call to lang_size_sections, and
499 remove duplicated code.
500 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
502 2001-08-17 Alan Modra <amodra@bigpond.net.au>
504 * ld.texinfo: Document that fill values now use the four least
506 * emulparams/elf32fr30.sh (NOP): Update.
507 * emulparams/elf32mcore.sh: Likewise.
508 * emulparams/elf64_s390.sh: Likewise.
509 * emulparams/elf_i386.sh: Likewise.
510 * emulparams/elf_i386_be.sh: Likewise.
511 * emulparams/elf_i386_chaos.sh: Likewise.
512 * emulparams/elf_i386_ldso.sh: Likewise.
513 * emulparams/elf_s390.sh: Likewise.
514 * emulparams/elf_x86_64.sh: Likewise.
515 * emulparams/i386moss.sh: Likewise.
516 * emulparams/i386nw.sh: Likewise.
517 * emulparams/m68kelf.sh: Likewise.
518 * scripttempl/elf.sc: Update NOP comment.
519 * scripttempl/elfi370.sc: Likewise.
520 * scripttempl/elfm68hc11.sc: Likewise.
521 * scripttempl/elfm68hc12.sc: Likewise.
522 * scripttempl/nw.sc: Likewise.
524 2001-08-15 Tom Rix <trix@redhat.com>
526 * ldgram.y (saved_script_handle): Initialize to NULL.
527 * ldmain.c (main): Change check on saved_script_handle.
529 2001-08-14 Alan Modra <amodra@bigpond.net.au>
531 * emultempl/elf32.em: Formatting fixes.
532 (output_prev_sec_find): Test for bfd_ind_section too; do so by
533 looking at sec->owner.
534 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
535 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
536 unused code, and reorganize orphan section placement code.
538 * ldlang.c (wild_doit): Rename to lang_add_section.
539 * ldlang.h: Here too.
540 * mpw-elfmips.c: And here.
541 * emultempl/beos.em: And here.
542 * emultempl/elf32.em: And here.
543 * emultempl/hppaelf.em: And here.
544 * emultempl/pe.em: And here.
546 2001-08-13 Richard Henderson <rth@redhat.com>
548 * emultempl/needrelax.em: New file.
549 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
550 * Makefile.am (eelf64_ia64.c): Depend on it.
551 * Makefile.in: Rebuild.
553 2001-08-13 Alan Modra <amodra@bigpond.net.au>
555 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
556 output_section is set non-NULL.
558 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
559 `true' for SEC_EXCLUDE sections so that the generic code doesn't
560 needlessly create an output_section_statement. Treat a correctly
561 named output_section_statement with NULL bfd_section as compatible.
563 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
565 * emultempl/generic.em: Support EXTRA_EM_FILE.
566 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
567 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
568 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
569 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
570 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
571 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
572 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
573 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
574 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
575 LDEMUL_FIND_POTENTIAL_LIBRARIES.
577 2001-08-12 Richard Henderson <rth@redhat.com>
579 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
580 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
581 scripttempl/v850.sc: Keep .jcr data.
583 2001-08-12 H.J. Lu <hjl@gnu.org>
584 Andrew Haley <aph@cambridge.redhat.com>
585 Nick Clifton <nickc@redhat.com>
587 * ldgram.y (had_script): Change name to saved_script_handle.
588 Change type to file handle.
589 * ld.h (had_script): Rename and retype.
590 * ldfile.c (ldfile_open_command_file): Save the file handle
591 used in saved_script_handle.
592 * lexsup.c (parse_args): Do not allow -c option to alter
594 * ldmain.c (main): Print out the linker script used if
595 --verbose is given. Check saved_script_handle to obtain the
596 external linker script used, or if NULL, dump the builtin
598 * ld.texinfo: Document that --verbose now dumps the linker
599 script used, regardless of whether it was an internal or an
602 2001-08-10 Andreas Jaeger <aj@suse.de>
604 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
606 * configure: Regenerate.
608 2001-08-09 Alan Modra <amodra@bigpond.net.au>
610 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
612 * scripttempl/elf.sc: Move non-text .dynamic section before
613 .plt/.got/.sdata* group.
614 (OTHER_GOT_SECTIONS): Move to immediately after .got.
615 (OTHER_SDATA_SECTIONS): Add.
616 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
618 * emulparams/crislinux.sh: Likewise.
619 * emulparams/elf32b4300.sh: Likewise.
620 * emulparams/elf32bmip.sh: Likewise.
621 * emulparams/elf32bmipn32.sh: Likewise.
622 * emulparams/elf32bsmip.sh: Likewise.
623 * emulparams/elf32btsmip.sh: Likewise.
624 * emulparams/elf32ebmip.sh: Likewise.
625 * emulparams/elf32elmip.sh: Likewise.
626 * emulparams/elf32l4300.sh: Likewise.
627 * emulparams/elf32lmip.sh: Likewise.
628 * emulparams/elf32lsmip.sh: Likewise.
629 * emulparams/elf32ltsmip.sh: Likewise.
630 * emulparams/elf64bmip.sh: Likewise.
631 * emulparams/elf64btsmip.sh: Likewise.
632 * emulparams/elf64ltsmip.sh: Likewise.
634 2001-08-08 Alan Modra <amodra@bigpond.net.au>
636 * genscripts.sh: Source the emulparams script before each output
637 script is generated so that variables like `RELOCATING' may affect
638 variables defined in the emulparams script.
640 2001-08-04 Alan Modra <amodra@bigpond.net.au>
642 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
645 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
646 ie. iterate over wild_statement.section_list.
647 (gld${EMULATION_NAME}_place_orphan): Likewise.
649 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
651 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
652 .fini[0-4] sections used by _exit
653 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
654 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
655 * scripttempl/elfm68hc11.sc: Likewise.
657 2001-08-03 H.J. Lu <hjl@gnu.org>
659 * emultempl/beos.em (init): Add the missing initialization.
661 2001-08-03 Alan Modra <amodra@bigpond.net.au>
663 * ld.texinfo (Input Section Basics): Clarify ordering of output
665 * ldlang.c (callback_t): Add wildcard_list param.
666 (walk_wild_section): Remove "section" param. Rewrite for
667 lang_wild_statement_type change. Remove unique_section_p test.
668 (walk_wild_file): Remove "section" param.
669 (walk_wild): Remove "section" and "file" params.
670 (lang_gc_wild): Likewise.
671 (wild): Likewise. Modify for lang_wild_statement_type change.
672 (wild_sort): Likewise. Add "sec" param.
673 (gc_section_callback): Likewise.
674 (output_section_callback): Likewise. Do unique_section_p test.
675 (map_input_to_output_sections): Modify call to wild.
676 (lang_gc_sections_1): Likewise.
677 (print_wild_statement): Modify for lang_wild_statement_type
679 (lang_add_wild): Replace filename, filenames_sorted param with
680 filespec. Replace section_name, sections_sorted,
681 exclude_filename_list with section_list.
682 * ldlang.h (lang_add_wild): Here too.
683 (lang_wild_statement_type): Replace section_name, sections_sorted,
684 and exclude_filename_list with section_list.
685 * ldgram.y (current_file): Delete.
686 (%union): Add wildcard_list.
687 (file_NAME_list): Set type to wildcard_list. Build a linked list
688 rather than calling lang_add_wild for each entry.
689 (input_section_spec_no_keep): Call lang_add_wild here instead.
690 * ld.h (struct wildcard_list): Declare.
691 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
693 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
695 * ldmain.c (main): initialize link_info.pei386_auto_import
696 * pe-dll.c: new tables for auto-export filtering
697 (auto_export): change API, pass abfd for contextual filtering.
698 Loop thru tables of excluded symbols instead of comparing
701 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
703 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
704 static variable current_sec (static struct sec *). Add
705 forward declaration for add_bfd_to_link.
706 (process_def_file): Don't export undefined symbols. Do not
707 export symbols starting with "_imp__". Call auto_export()
709 (pe_walk_relocs_of_symbol): New function.
710 (generate_reloc): add optional extra debugging
711 (pe_dll_generate_def_file): eliminate extraneous initial blank
713 (make_one): enlarge symtab to make room for __nm__ symbols
714 (DATA auto-import support).
715 (make_singleton_name_thunk): New function.
716 (make_import_fixup_mark): New function.
717 (make_import_fixup_entry): New function.
718 (pe_create_import_fixup): New function.
719 (add_bfd_to_link): Specify that 'name' argument is a CONST
721 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
722 declare new functions pe_walk_relocs_of_symbol and
723 pe_create_import_fixup.
724 * emultempl/pe.em: add new options --enable-auto-import,
725 --disable-auto-import, and --enable-extra-pe-debug.
726 (make_import_fixup): New function.
727 (pe_find_data_imports): New function.
728 (pr_sym): New function.
729 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
730 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
733 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
735 * ld.texinfo: add additional documentation for
736 --export-all-symbols. Document --out-implib,
737 --enable-auto-image-base, --disable-auto-image-base,
738 --dll-search-prefix, --enable-auto-import, and
739 --disable-auto-import.
740 * ldint.texinfo: Add detailed documentation on auto-import
743 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
745 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
748 2001-07-24 Alan Modra <amodra@bigpond.net.au>
750 * Makefile.am: Update dependencies with "make dep-am".
751 * Makefile.in: Regenerate
753 2001-07-23 Alan Modra <amodra@bigpond.net.au>
755 * ldcref.c (check_section_sym_xref): New function.
756 (check_nocrossrefs): Call it.
757 (check_nocrossref): Interate over h->refs here instead of..
758 (check_refs): ..here. Pass in the symbol name, section, and bfd
759 rather than hash_entry pointers.
760 (struct check_refs_info): Keep symbol name rather than hash entry.
762 (check_reloc_refs): Tweak for above changes in check_refs_info.
763 Only report references to section syms when symname is NULL to
764 prevent duplicate messages for the same reloc.
766 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
768 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
769 available. Do not print NULL trees.
770 (exp_print_token): Print unknown tokens with values > 126 as
771 decimal values not ASCII characters.
773 * ldlang.c (lang_leave_overlay): If a region is specified assign
774 it to all sections inside the overlay unless they have been
775 assigned to the own, non-default, memory region.
777 * README: Add header for consistency with other README files.
779 2001-07-14 H.J. Lu <hjl@gnu.org>
781 * emultempl/elf32.em (output_prev_sec_find): Never return
782 bfd_abs_section_ptr, bfd_com_section_ptr nor
785 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
787 * Makefile.am (em32relf.c): Change dependency from generic.em to
789 * Makefile.in: Regenerate.
791 2001-07-14 matthew green <mrg@eterna.com.au>
793 * configure.tgt (i386-*-netbsdelf*): New target.
794 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
796 2001-07-13 Jakub Jelinek <jakub@redhat.com>
798 * emultempl/elf32.em (output_prev_sec_find): New.
799 (place_orphan): Use it.
801 2001-07-11 H.J. Lu <hjl@gnu.org>
803 * ldmain.c (main): Fix typos in the last change.
805 2001-07-11 Jakub Jelinek <jakub@redhat.com>
807 * ldmain.c (main): Disallow -F and -f without -shared.
809 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
811 * emultempl/pe.em (after_open): Check for the output_bfd not
812 having any coff_data structure allocated to it.
814 2001-07-09 David O'Brien <obrien@FreeBSD.org>
816 * emultempl/elf32.em: Do not assuming that contents of the buffer
817 returned from basename function will remain unchanged accross other
820 2001-07-03 H.J. Lu <hjl@gnu.org>
822 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
823 2001-07-03. It creates dynamic entries even for static binaries.
825 2001-07-03 Jakub Jelinek <jakub@redhat.com>
827 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
828 (DYNAMIC): Use it to reserve few dynamic entries for
831 2001-06-27 Alan Modra <amodra@bigpond.net.au>
833 * emulparams/hppa64linux.sh: New file.
834 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
835 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
836 (ehppa64linux.c): Add rule to make it.
838 * Makefile.in: Regenerate.
840 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
842 * ld.texinfo (Options, -r): Mention restrictions when using
843 different object formats.
845 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
847 * ldlang.c (lang_check): Emit fatal error if relocatable link
848 between different object flavours with relocations in input.
850 2001-06-19 H.J. Lu <hjl@gnu.org>
852 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
853 (--version-script): Mention the language support.
855 2001-06-19 H.J. Lu <hjl@gnu.org>
857 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
859 2001-06-18 H.J. Lu <hjl@gnu.org>
861 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
862 (diststuff): Add $(MANS).
863 * Makefile.in: Regenerated.
867 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
869 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
870 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
871 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
872 * ld.h (args_type): Remove member export_dynamic. All users
873 changed to use struct bfd_link_info member.
875 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
876 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
877 * Makefile.in: Regenerate.
879 2001-06-18 H.J. Lu <hjl@gnu.org>
881 * ldlang.c (init_os): Add the newline to the einfo call.
882 (lang_check): Likewise.
883 (lang_do_version_exports_section): Likewise.
885 2001-06-15 H.J. Lu <hjl@gnu.org>
887 * lexsup.c (parse_args); Save optind to report unrecognized
890 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
892 * ldlang.c (lang_check): Emit fatal error if relocatable link
893 between different object flavours.
895 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
896 Set new link_info member export_dynamic.
897 * ldmain.c (main): Initialize new link_info member export_dynamic.
899 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
901 * ldlang.c (walk_wild): Only call walk_wild_file if
902 lookup_name returns something.
903 (lookup_name): If load_symbols fails, return NULL.
904 (load_symbols): Change to a boolean function.
905 (open_input_bfds): If load_symbols fails then do not make the
908 2001-06-08 Alan Modra <amodra@bigpond.net.au>
910 * ldlang.c (record_bfd_errors): Remove.
912 * emultempl/aix.em: Fix copyright dates.
914 2001-06-07 Andreas Jaeger <aj@suse.de>
916 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
917 (TEXT_START_ADDR): Likewise.
919 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
921 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
923 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
925 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
927 2001-05-31 H.J. Lu <hjl@gnu.org>
929 * ldlang.c (open_input_bfds): Don't change the bfd error
930 handler whilst loading symbols.
932 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
934 * configure.tgt: Remove i370-mvs architecture, it is not currently
937 2001-05-25 H.J. Lu <hjl@gnu.org>
939 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
940 like emulparams/aixppc.sh.
942 2001-05-25 H.J. Lu <hjl@gnu.org>
944 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
945 setting of output_filename after bfd_scan_arch.
946 * emultempl/pe.em: Likewise.
948 2001-05-25 H.J. Lu <hjl@gnu.org>
950 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
951 like emulparams/aixppc.sh.
953 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
954 instead of ${srcdir}/emultempl/stringify.sed.
956 2001-05-25 Timothy Wall <twall@oculustech.com>
958 * emulparams/elf64_aix.sh: Change settings to match IBM linker
961 2001-05-25 Alan Modra <amodra@one.net.au>
963 * configure.host: Replace linuxoldld with linux*oldld.
964 * configure.tgt: Likewise.
966 2001-05-24 H.J. Lu <hjl@gnu.org>
968 * emultempl/stringify.sed: Removed again.
970 2001-05-24 H.J. Lu <hjl@gnu.org>
972 * emultempl/aix.em (OUTPUT_ARCH): Defined.
973 (gld${EMULATION_NAME}_before_parse): Initialize
974 ldfile_output_architecture, ldfile_output_machine and
975 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
976 * emultempl/beos.em: Likewise.
977 * emultempl/elf32.em: Likewise.
978 * emultempl/linux.em: Likewise.
979 * emultempl/mipsecoff.em: Likewise.
980 * emultempl/pe.em: Likewise.
981 * emultempl/sunos.em: Likewise.
983 2001-05-24 Tom Rix <trix@redhat.com>
985 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
986 udate import file format.
987 (change_symbol_mode) New, same
988 (is_syscall) New, same
989 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
990 * emulparams/aixppc64.sh : same
991 * emulparams/aixrs6.sh : same
992 * emulparams/ppcmacos.sh : same
993 * emultempl/aix.em : use strtoull to parse options
994 * Makefile.am : add eaixppc64 emulation for xcoff64
996 * configure.tgt : same
998 * scripttempl/aix.sc : default text section offset to 0x10000000
999 default data section offset to 0x20000000
1000 add .sv3264 and .sv64 pseudo sections
1001 loader and debug sections use the currect section offset.
1003 * emultempl/aix.em : Add xcoff64 support
1004 Add -binitfini support
1005 (gld${EMULATION_NAME}_before_parse) -binitfini
1006 (gld${EMULATION_NAME}_parse_args) same
1007 (gld${EMULATION_NAME}_before_allocation) format change for special
1010 * emulparams/aixppc64.sh : New file for xcoff64 support
1012 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1014 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1015 variable to avoid non-portable shell construct.
1017 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1019 * ldmain.c (get_emulation): Add -mips5 command line argument.
1021 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1023 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1024 (ELF_INTERPRETER_NAME): Define it.
1025 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1027 * configure.tgt (targ_emul, targ_extra_emuls)
1028 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1029 as primary, elf_i386 as extra.
1030 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1031 (eelf_i386_ldso.c): New rule.
1032 * Makefile.in: Rebuilt.
1034 2001-05-22 Nick Clifton <nickc@redhat.com>
1036 * lexsup.c (ld_options): Allow -I to be an alias for
1037 --dynamic-linker. This is for Solaris compatability.
1038 * ld.texinfo: Document that -I can be used.
1041 2001-05-16 Alan Modra <amodra@one.net.au>
1043 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1044 whether an input section is the first one assigned to an output
1046 Assorted formatting fixes.
1048 2001-05-14 DJ Delorie <dj@delorie.com>
1050 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1051 * Makefile.in: Ditto.
1053 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1055 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1056 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1058 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1060 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1062 * ldlang.c (lang_process): Call bfd_merge_sections.
1064 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1066 * ldgram.y: Fix typo.
1068 2001-05-03 H.J. Lu <hjl@gnu.org>
1070 * emultempl/elf32.em: Include "libiberty.h".
1071 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1072 basename of the bfd filename.
1073 (gld${EMULATION_NAME}_stat_needed): Likewise.
1074 (gld${EMULATION_NAME}_try_needed): Likewise.
1075 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1077 2001-05-02 H.J. Lu <hjl@gnu.org>
1079 * emultempl/pe.em: Include <ctype.h>.
1081 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1083 * emulparams/elf32openrisc.sh: New file.
1085 * Makefile.am: Add OpenRISC target.
1086 * Makefile.in: Regenerated.
1088 * configure.tgt: Add openrisc-*-* mapping.
1090 2001-05-02 Nick Clifton <nickc@redhat.com>
1092 * emultempl/aix.em: Replace buystring with xstrdup.
1093 * emultempl/beos.em: Replace buystring with xstrdup.
1095 2001-05-02 H.J. Lu <hjl@gnu.org>
1097 * ldfile.c: Include "libiberty.h".
1098 * ldlex.l: Likewise.
1100 * ldmisc.c (buystring): Removed.
1101 * ldmisc.h: Likewise.
1103 * ldfile.c: Replace buystring with xstrdup.
1104 * ldlang.c: Likewise.
1105 * ldlex.l: Likewise.
1106 * ldmain.c: Likewise.
1107 * ldmisc.c: Likewise.
1108 * lexsup.c: Likewise.
1109 * mpw-eppcmac.c: Likewise.
1111 2001-04-30 Andreas Jaeger <aj@suse.de>
1113 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1115 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1117 * ldlang.c (load_symbols): Give emulation a chance
1118 to process unrecognized file before fatal error is
1119 reported, not after.
1121 2001-04-27 Sean McNeil <sean@mcneil.com>
1123 * configure.tgt: Add arm-vxworks target.
1124 * scripttempl/armcoff.sc: Support .text or .data as a section name
1128 2001-04-13 J.T. Conklin <jtc@redback.com>
1130 * ld.texinfo: Document --fatal-warnings.
1133 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1134 warnings have been turned into errors.
1135 * lexsup.c (OPTION_WARN_FATAL): Define.
1136 (ld_options): Entry for --fatal-warnings.
1137 (parse_args): Handle OPTION_WARN_FATAL.
1138 * ld.h (ld_config_type): Add fatal_warnings field.
1140 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1142 * ldmain.c (main): Default to discard_sec_merge.
1143 * lexsup.c (OPTION_DISCARD_NONE): Define.
1144 (ld_options): Add --discard-none.
1145 (parse_args): Handle OPTION_DISCARD_NONE.
1146 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1147 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1148 all its input sections match.
1150 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1152 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1153 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1154 (eelf32ltsmip.c): New target.
1155 (eelf64btsmip.c): Likewise.
1156 (eelf64ltsmip.c): Likewise.
1157 * Makefile.in: Regenerated.
1159 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1161 (mips*-*-linux-gnu*): Likewise.
1163 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1165 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1167 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1170 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1172 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1173 correct value of __Stext here.
1174 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1177 * emulparams/crislinux.sh: Remove FIXME.
1179 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1181 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1182 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1184 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1186 * configure.tgt (cris-*-*): Change default emulation to criself.
1187 (cris-*-*aout*): New rule.
1189 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1191 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1192 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1194 2001-03-26 Andreas Jaeger <aj@suse.de>
1196 * ld.texinfo (Overview): Fix syntax in texi code.
1198 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1200 * ld.texinfo: Put @c man indications to generate the ld man page.
1201 When generating man, define all the variables. Define SEEALSO
1202 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1203 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1204 (ld.1): Generate from ld.texinfo.
1205 * Makefile.in: Regenerate.
1207 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1209 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1210 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1212 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1214 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1215 is an absolute path look only for this file and not along the path.
1217 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1219 * emultempl/elf32.em (OPTION_GROUP): New macro.
1220 Add new option Bgroup to longopts.
1221 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1222 (gld*_list_options): Add -Bgroup and -z defs.
1223 * ld.1: Document -Bgroup and -z defs.
1224 * ld.texinfo: Likewise.
1226 2001-03-07 Michael Meissner <meissner@redhat.com>
1228 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1229 with sections created by -fdata-sections.
1230 (.dynbss,.bss): Ditto.
1232 2001-03-05 Alan Modra <alan@linuxcare.com.au>
1234 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1235 after_allocation_default, not gld..._before_allocation.
1237 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1239 * configure.in (BFD_VERSION): New.
1240 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1241 * configure: Regenerate.
1242 * Makefile.am: Run "make dep-am"
1243 * Makefile.in: Regenerate.
1245 2001-02-26 Timothy Wall <twall@cygnus.com>
1247 * emulparams/elf64_aix.sh: Add additional read-only sections;
1248 uncomment lines which are now required.
1250 2001-02-26 H.J. Lu <hjl@gnu.org>
1252 * ldlang.c (open_input_bfds): Set the bfd error handler so
1253 that problems can be caught whilst loading symbols.
1254 (record_bfd_errors): New function: Report BFD errors and mark
1255 the executable output as being invalid.
1257 2001-02-22 Timothy Wall <twall@cygnus.com>
1259 * configure.host: Add configuration for ia64-*-aix*.
1260 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1261 Add dependencies for eelf64_aix.c.
1262 * Makefile.in: Regenerate.
1263 * configure.tgt: Add ia64-*-aix* mapping.
1264 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1265 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1268 2001-02-20 H.J. Lu <hjl@gnu.org>
1270 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1271 false if we found the file.
1273 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1275 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1276 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1278 2001-02-18 lars brinkhoff <lars@nocrew.org>
1280 * Makefile.am: Add PDP-11 target.
1281 * configure.tgt: Likewise.
1282 * emulparams/pdp11.sh: New file.
1284 2001-02-17 David O'Brien <obrien@FreeBSD.org>
1286 * configure.host: Add a generic FreeBSD configuration entry such that
1287 all [modern] FreeBSD systems on all platforms will look the same.
1289 2001-02-14 H.J. Lu <hjl@gnu.org>
1291 * configure.tgt: Remove mention of earmelf_linux26.
1293 2001-02-13 Richard Henderson <rth@redhat.com>
1295 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1297 2001-02-13 H.J. Lu <hjl@gnu.org>
1299 * ldexp.h (node_type): Add etree_provided.
1300 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1301 type to etree_provided if defined by PROVIDE. Allow updating
1303 (exp_print_tree): Handle etree_provided.
1304 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1307 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1309 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1310 .IA_64.unwind.* pattern to unwind table section and
1311 .IA_64.unwind_info* pattern to unwind info section.
1313 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1315 * Makefile.am: Add linux target for S/390.
1316 * Makefile.in: Likewise.
1317 * configure.host: Likewise.
1318 * configure.tgt: Likewise.
1319 * emulparams/elf64_s390.sh: New file.
1320 * emulparams/elf_s390.sh: New file.
1322 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1324 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1326 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1328 2001-02-06 Philip Blundell <philb@gnu.org>
1330 * Makefile.am: Remove mention of earmelf_linux26.
1331 * Makefile.in: Regenerate.
1333 2001-02-04 Philip Blundell <philb@gnu.org>
1335 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1336 * emulparams/armelf_linux26.sh: Delete.
1337 * configure.tgt: Remove mention of armelf_linux26 emulation.
1339 2001-02-01 Nick Clifton <nickc@redhat.com>
1341 * ld.1: Replace occurances of -oformat with --oformat.
1343 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1345 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1346 load_base is specified.
1348 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
1350 * emultempl/elf32.em: Correct spelling in comments and listed
1353 2001-01-23 Alan Modra <alan@linuxcare.com.au>
1355 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1356 default for the first section of a group of overlay sections.
1358 2001-01-22 Alan Modra <alan@linuxcare.com.au>
1360 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1361 * Makefile.in: Regenerate.
1362 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1363 Check for null tool_dir.
1365 2001-01-16 Jim Wilson <wilson@redhat.com>
1367 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1368 and IA_64.unwind.info.
1370 2001-01-16 H.J. Lu <hjl@gnu.org>
1372 * ldlang.c (lang_check): Merge the private data only if the
1373 input file has contents.
1375 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1377 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1379 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1380 enabling search for libmilli. On a relocatable link, make .text
1382 (LDEMUL_AFTER_PARSE): Define.
1383 (hppaelf_finish): Correct spelling of relocatable in comments.
1385 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1386 rummage through the script for sections on the unique list.
1387 Correct length of strncmp for ".note".
1388 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1390 * ldlang.c (unique_section_list): New var.
1391 (unique_section_p): New function.
1392 (walk_wild_section): Don't match sections on unique_section_list.
1393 (lang_add_unique): New function.
1394 Correct spelling of relocatable in comments.
1396 * ldlang.h (struct unique_sections): Declare.
1397 (unique_section_list): Declare.
1398 (unique_section_p): Declare.
1399 (lang_add_unique): Declare.
1401 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1402 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1404 * ld.texinfo (--unique): Update.
1406 2001-01-13 Nick Clifton <nickc@redhat.com>
1408 * lexsup.c (parse_args): Remove spurious white space.
1410 2001-01-12 Nick Clifton <nickc@redhat.com>
1412 * lexsup.c (parse_args): Update copyright date.
1414 2001-01-12 Philip Blundell <pb@futuretv.com>
1416 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1418 2001-01-10 Kazu Hirata <kazu@hxi.com>
1420 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1421 * scripttempl/h8300h.sc: Fix formatting.
1422 * scripttempl/h8300s.sc: Likewise.
1423 * scripttempl/h8500.sc: Likewise.
1424 * scripttempl/h8500b.sc: Likewise.
1425 * scripttempl/h8500c.sc: Likewise.
1426 * scripttempl/h8500m.sc: Likewise.
1427 * scripttempl/h8500s.sc: Likewise.
1429 2000-01-07 David O'Brien <obrien@BSDi.com>
1431 * emultempl/elf32.em: Only perform Linux ld hints processing when
1434 2001-01-07 Philip Blundell <philb@gnu.org>
1436 * ld.texinfo (Bug Reporting): Update email address for reports.
1438 2000-12-31 Nick Clifton <nickc@redhat.com>
1440 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1441 options by checking for a return value of '?' not -1.
1443 2000-12-28 Nick Clifton <nickc@redhat.com>
1445 * lexsup.c (struct ld_option): Add new enum value:
1447 (ld_options[]): Change -omagic, -output and -oformat options
1448 to be EXACTLY_TWO_DASHES.
1449 (OUTPUT_COUNT): Use ARRAY_SIZE.
1450 (parse_args): Change parameter 'argc' to unsigned.
1451 Place EXACTLY_TWO_DASHES options into new really_longopts
1453 If getopt_long_only fails, try calling getopt_long using the
1454 really_longopts array.
1455 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1458 * ldlex.h: Fix prototype of parse_args.
1460 * ld.texinfo: Document that long options starting with 'o'
1461 must be preceeded by two dashes. Change example of a single
1462 dashed long option from -oformat to -trace-symbol.
1464 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1466 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1467 (longopts[]): New --no-default-excludes option.
1468 (gld_${EMULATION_NAME}_list_options): Document.
1469 (gld_${EMULATION_NAME}_parse_args): Handle.
1471 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1473 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1474 whitespace, it breaks the K&R C preprocessor.
1476 2000-12-11 DJ Delorie <dj@redhat.com>
1478 * ld.texinfo: Add notes about --whole-archive and gcc.
1480 2000-11-18 Fred Fish <fnf@be.com>
1482 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1483 (ld_options): Entry for --allow-shlib-undefined.
1484 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1485 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1487 * ld.texinfo: Document new command line switch.
1489 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
1491 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1492 .fixup is actually read/write.
1493 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1494 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1495 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1497 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1499 * NEWS: Add note about x86_64 architecture.
1501 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1503 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1504 Set DWARF2 sections to a VMA of zero.
1506 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1508 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1510 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1511 (sparc*-*-rtems*): Switched from a.out to ELF.
1513 2000-11-30 Jan Hubicka <jh@suse.cz>
1515 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1516 (eelf_x86_64.c): New.
1517 * Makefile.in: Regenerate.
1518 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1519 * emulparams/elf_x86_64.sh: New.
1521 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
1523 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1524 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1526 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1527 merging non-a.out sections into CONSTRUCTING.
1529 2000-11-28 Nick Clifton <nickc@redhat.com>
1531 * ld.1 (COPYING): Mention that the GNU Free Documentation
1532 License is present in the sources, but not the output, and
1533 also available from the GNU website.
1534 (GNU Free Documentation License): Comment out this section.
1536 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1538 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1541 2000-11-25 David O'Brien <obrien@FreeBSD.org>
1543 * ld.1: Remove old date so it does not give the impression the manpage
1546 2000-11-24 Nick Clifton <nickc@redhat.com>
1548 * configure.tgt (xscale-coff): Add target.
1549 (xscale-elf): Add target.
1551 2000-11-24 Fred Fish <fnf@be.com>
1553 * ldmain.c (main): Remove redundant init of config.make_executable
1556 2000-11-15 Richard Henderson <rth@redhat.com>
1558 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1560 2000-11-14 Kazu Hirata <kazu@hxi.com>
1562 * scripttempl/h8300.sc: Fix formatting.
1563 * scripttempl/h8300h.sc: Likewise.
1564 * scripttempl/h8300s.sc: Likewise.
1566 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1568 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1570 2000-11-09 Philip Blundell <pb@futuretv.com>
1572 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1573 around orphan sections whose names can be represented in C.
1575 2000-11-07 Jim Wilson <wilson@redhat.com>
1577 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1578 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1580 2000-11-06 Nick Clifton <nickc@redhat.com>
1582 * ld.texinfo: Add GNU Free Documentation License.
1583 * ldint.texinfo: Add GNU Free Documentation License.
1584 * ld.1: Add GNU Free Documentation License.
1586 2000-11-05 Alan Modra <alan@linuxcare.com.au>
1588 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1589 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1591 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1592 Move 2000-11-02 Makefile.in changes to this file.
1593 * Makefile.in: Regenerate.
1595 2000-11-03 Nick Clifton <nickc@redhat.com>
1597 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1598 constructors and destructors.
1599 * scripttempl/h8300h.sc: Ditto.
1600 * scripttempl/h8300s.sc: Ditto.
1601 * scripttempl/h8500.sc: Ditto.
1602 * scripttempl/h8500b.sc: Ditto.
1603 * scripttempl/h8500c.sc: Ditto.
1604 * scripttempl/h8500m.sc: Ditto.
1605 * scripttempl/h8500s.sc: Ditto.
1606 * scripttempl/v850.sc: Ditto.
1607 * scripttempl/w65.sc: Ditto.
1608 * scripttempl/z8000.sc: Ditto.
1610 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1612 * Makefile.in (e_i386_chaos.c): New rule.
1613 (ALL_EMULATIONS): Added e_i386_chaos.o.
1614 * emulparams/elf_i386_chaos.sh: New file.
1615 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1617 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1619 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1620 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1621 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1622 library path suffix.
1623 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1625 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1627 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1628 for consecutive sections.
1630 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1632 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1634 * ld.texinfo: Added notes about this new option.
1636 2000-10-16 Nick Clifton <nickc@redhat.com>
1638 * emultempl/pe.em (_after_open): Add tests of return values from
1639 bfd functions. Emit appropriate error messages if necessary.
1641 2000-10-13 Nick Clifton <nickc@redhat.com>
1643 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1644 local variables - they are not used, but leave in the call to
1645 bfd_canonicalize_symtab.
1646 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1647 pe_dll_search_prefix.
1649 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
1651 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1652 (longopts): New --dll-search-prefix option.
1653 (gld_${EMULATION_NAME}_list_options): Document.
1654 (gld_${EMULATION_NAME}_parse_args): Handle.
1655 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1656 dynamically, search for a dll named '<prefix><basename>.dll'
1657 in preference to 'lib<basename>.dll' if --dll-search-prefix
1660 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1662 * ldlang.c (section_already_linked): Set kept_section instead of
1665 2000-10-10 Kazu Hirata <kazu@hxi.com>
1667 * deffile.h: Fix formatting.
1668 * lexsup.c: Likewise.
1671 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1673 * pe-dll.c (make_one): Do not generate code thunk for DATA
1675 (process_def_file): deduce DATA flag for auto-export sumbols.
1677 2000-10-09 Kazu Hirata <kazu@hxi.com>
1679 * ld.h: Fix formatting.
1680 * ldcref.c: Likewise.
1681 * ldctor.h: Likewise.
1682 * ldemul.c: Likewise.
1683 * ldemul.h: Likewise.
1684 * ldexp.c: Likewise.
1685 * ldexp.h: Likewise.
1686 * ldfile.c: Likewise.
1687 * ldfile.h: Likewise.
1688 * ldlang.c: Likewise.
1689 * ldlang.h: Likewise.
1690 * ldmain.c: Likewise.
1691 * pe-dll.c: Likewise.
1693 * pe-dll.c: Revert some formatting fixes.
1695 2000-10-08 Kazu Hirata <kazu@hxi.com>
1697 * pe-dll.c: Fix formatting.
1699 2000-10-05 Kazu Hirata <kazu@hxi.com>
1701 * ldlang.c: Fix formatting.
1703 2000-10-03 DJ Delorie <dj@redhat.com>
1705 * pe-dll.c (fill_edata): initialize entire block
1706 (make_one): fill in correct section.
1708 2000-10-03 Kazu Hirata <kazu@hxi.com>
1710 * ldexp.c: Fix formatting.
1712 2000-10-02 DJ Delorie <dj@redhat.com>
1714 * emultempl/pe.em (gld_*_after_open): detect case where there two
1715 import libraries for same dll; rename one to ensure proper link
1718 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1720 (generate_edata): fix typo
1722 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
1724 * scripttempl/crisaout.sc (ENTRY): Now __start.
1725 (.text): Add default setting for __start.
1726 Remove CONSTRUCTORS handling.
1727 (/DISCARD/): Add .gnu.warning.*.
1728 * emulparams/crislinux.sh (ENTRY): Now __start.
1729 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1730 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1731 (ENTRY): Now __start.
1732 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1733 (EXECUTABLE_SYMBOLS): Add default setting for __start.
1735 2000-09-29 Kazu Hirata <kazu@hxi.com>
1737 * deffile.h: Fix formatting.
1739 * ldcref.c: Likewise.
1740 * ldctor.c: Likewise.
1741 * ldctor.h: Likewise.
1742 * ldemul.c: Likewise.
1743 * ldemul.h: Likewise.
1744 * ldexp.c: Likewise.
1745 * ldexp.h: Likewise.
1746 * ldfile.c: Likewise.
1747 * ldfile.h: Likewise.
1748 * ldlang.c: Likewise.
1749 * ldlang.h: Likewise.
1750 * lexsup.c: Likewise.
1752 * pe-dll.c: Likewise.
1754 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1756 * pe-dll.c (process_def_file): Uninitialized data wasn't
1757 exported with --export-all-symbols switch.
1759 2000-09-28 DJ Delorie <dj@redhat.com>
1761 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1762 noname work properly.
1764 2000-09-28 Alan Modra <alan@linuxcare.com.au>
1766 * ld.texinfo (HPPA ELF32): New section.
1768 * emultempl/hppaelf.em (group_size): New.
1769 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1770 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1771 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
1772 options to prevent abbreviations matching.
1773 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
1774 (PARSE_AND_LIST_ARGS_CASES): Handle it.
1776 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1778 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1779 on the m68*-*-elf target. Make it support COFF input objects.
1781 2000-09-21 Kazu Hirata <kazu@hxi.com>
1783 * ldmain.c: Fix formatting.
1784 * ldmisc.c: Likewise.
1785 * ldver.c: Likewise.
1786 * ldwrite.c: Likewise.
1788 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1790 * ldwrite.c (clone_section): Silence gcc warnings.
1792 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1794 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
1795 out of memory failure.
1797 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
1798 (clone_section): Handle out of memory failures. Rename var to
1799 avoid c++ reserved word.
1801 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1803 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1804 stub_name param to stub_sec_name.
1805 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1807 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1809 * emultempl/m68kelf.em: New file.
1810 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1811 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1812 * Makefile.in: Regenerate.
1814 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1816 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1819 2000-09-13 Nick Clifton <nickc@redhat.com>
1821 * ldmain.c (multiple_definition): Disable relaxation if
1822 multiple symbol definitions are encountered - otherwise the
1823 linker could abort with an assertion failure.
1825 2000-09-10 Nick Clifton <nickc@redhat.com>
1827 * mri.c: Fix formatting.
1829 2000-09-07 H.J. Lu <hjl@gnu.org>
1831 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1832 * configure: Rebuild.
1834 2000-09-07 H.J. Lu <hjl@gnu.org>
1836 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1837 * Makefile.in: Rebuild.
1839 2000-09-07 Alan Modra <alan@linuxcare.com.au>
1841 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1842 broken list handling. Create __start_SECNAME and __stop_SECNAME
1843 when no place-holder. Add some comments. Test both SEC_CODE and
1844 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1845 Handle case where no output section statement created.
1847 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1849 * configure.tgt (sh-*-linux*): Added.
1850 * Makefile.am: Added eshelf_linux and eshlelf_linux.
1851 * Makefile.in: Rebuilt.
1852 * emulparams/shelf_linux.sh: New file.
1853 * emulparams/shlelf_linux.sh: New file.
1855 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1857 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1858 try shuffling sections when the orphan happens to be the place
1859 holder. Keep count of unique section names generated so we speed
1860 the search for a new name.
1862 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1864 * configure: Rebuilt with new libtool.m4.
1866 2000-09-05 Nick Clifton <nickc@redhat.com>
1868 * Makefile.in: Regenerate.
1869 * aclocal.m4: Regenerate.
1870 * configure: Regenerate.
1871 * config.in: Regenerate.
1872 * po/ld.pot: Regenerate.
1874 * ldint.texinfo: Remove CVS revision marker - it foils local
1877 * emultempl/ticoff.em: Remove extraneous comma.
1879 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1881 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1882 to stub section flags.
1883 (hppa_for_each_input_file_wrapper): New.
1884 (hppa_lang_for_each_input_file): New.
1885 (lang_for_each_input_file): Define to call above.
1886 (multi_subspace): New.
1887 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1888 (PARSE_AND_LIST_PROLOGUE): Define.
1889 (PARSE_AND_LIST_LONGOPTS): Define.
1890 (PARSE_AND_LIST_OPTIONS): Define.
1891 (PARSE_AND_LIST_ARGS_CASES): Define.
1892 (hppaelf_finish): Call elf32_hppa_set_gp.
1893 (hppaelf_set_output_arch): Remove.
1894 (LDEMUL_SET_OUTPUT_ARCH): Remove.
1896 * emulparams/hppalinux.sh (ELFSIZE): Define.
1898 (OTHER_READONLY_SECTIONS): Define.
1900 (GENERATE_SHLIB_SCRIPT): Define.
1902 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
1903 to const throughout. Change `void *' to `PTR' throughout.
1904 (lang_memory_default): Function is local to file, add `static'.
1906 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1907 (ehppalinux.c): Likewise.
1908 (earmelf.c): Likewise.
1909 (earmelf_linux.c): Likewise.
1910 (earmelf_linux26.c): Likewise.
1911 * Makefile.in: Regenerate.
1913 * ld.h (ld_config_type): Add unique_orphan_sections.
1914 * lexsup.c (OPTION_UNIQUE): Define.
1915 (ld_options): Add "--unique".
1916 (parse_args): Handle it.
1917 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1918 search for an existing output section if unique_orphan_sections is
1919 set. Make use of bfd_get_unique_section_name rather than
1920 duplicating code here.
1921 * ld.texinfo: Describe --unique.
1923 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1924 optional arg to split-by-file.
1925 (parse_args): Handle them.
1926 * ld.texinfo: Update description of these options.
1927 * ldwrite.c (clone_section): Pass in the section name. Replace
1928 local code with bfd_get_unique_section_name.
1929 (split_sections): Tidy code and comments. Use a list traversal
1930 more appropriate to the list construction. Handle cooked section
1931 sizes. Split when split_by_reloc reached rather than exceeded.
1932 Track section size and split when split_by_file reached. Fix
1933 link_order_tail (even though it's not used).
1934 (ldwrite): Modify condition for calling split_sections to suit
1935 changed split_by_reloc and split_by_file.
1936 * ldmain.c (main): Init config.split_by_reloc and
1937 config.split_by_file to -1.
1938 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1939 Change split_by_file to bfd_size_type.
1941 2000-09-02 Nick Clifton <nickc@redhat.com>
1943 * configure.in: Increase version number to 2.10.91.
1944 * NEWS: Mention new ability to support removal of duplicate DWARF2
1946 * configure: Regenerate.
1947 * aclocal.m4: Regenerate.
1948 * config.in: Regenerate.
1950 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1952 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
1954 * scripttempl/elf32avr.sc: Ditto.
1955 * scripttempl/elfd10v.sc: Ditto.
1956 * scripttempl/elfd30v.sc: Ditto.
1957 * scripttempl/elfi370.sc: Ditto.
1958 * scripttempl/elfm68hc11.sc: Ditto.
1959 * scripttempl/elfm68hc12.sc: Ditto.
1960 * scripttempl/elfi386beos.sc: Ditto.
1961 * scripttempl/v850.sc: Ditto.
1963 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
1965 * acinclude.m4: Include libtool and gettext macros from the
1967 * aclocal.m4, configure: Rebuilt.
1969 2000-08-25 Nick Clifton <nickc@redhat.com>
1971 * ldlang.c (open_output): When choosing the target for a
1972 particular endianness, do nothing if the target is not
1975 2000-08-25 H.J. Lu <hjl@gnu.org>
1977 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
1978 check -rpath nor LD_RUN_PATH for cross link.
1979 * ld.texinfo: Document the change.
1981 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
1983 * NEWS: Mention support for CRIS.
1985 2000-08-23 H.J. Lu <hjl@gnu.org>
1987 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
1988 the current runpath list from bfd_elf_get_runpath_list ()
1991 2000-08-22 H.J. Lu <hjl@gnu.org>
1993 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
1994 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
1995 LD_LIBRARY_PATH for native linker. Display the needed DSO if
1996 trace_file_tries is non-zero.
1997 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
1998 if trace_file_tries is non-zero.
2000 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2003 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2005 * NEWS: Mention i860 support.
2007 2000-08-14 Andreas Schwab <schwab@suse.de>
2009 * scripttempl/elf.sc: Fix last change to use correct comment
2012 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2014 * scripttempl/elf.sc: Add a comment giving the correspondence
2015 between sections, per-datum sections, and linkonce sections. Make
2016 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2019 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2021 * emulparams/elf32_i860.sh: New file.
2022 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2023 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2024 (eelf32_i860.c): New rule.
2025 * Makefile.in: Regenerate.
2027 2000-08-10 Nick Clifton <nickc@cygnus.com>
2029 * emulparams/mipspe.sh (ENTRY): Add definition.
2031 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2033 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2036 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2038 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2039 the final size of .bss section.
2040 * scripttempl/elfm68hc12.sc: Likewise.
2042 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2044 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2045 gld${EMULATION_NAME}_parse_args for consistency. Combine
2046 lastoptind and prevoptind vars, and keep track of last optind.
2047 (gld_${EMULATION_NAME}_list_options): Rename to
2048 gld${EMULATION_NAME}_list_options.
2050 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2052 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2053 (i586-sco-sysv5uw7.1.0).
2055 2000-07-27 H.J. Lu <hjl@gnu.org>
2057 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2058 (PARSE_AND_LIST_PROLOGUE): New.
2059 (PARSE_AND_LIST_LONGOPTS): Likewise.
2060 (PARSE_AND_LIST_OPTIONS): Likewise.
2061 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2062 (PARSE_AND_LIST_EPILOGUE): Likewise.
2064 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2066 * emultempl/armelf.em: Elide functions common to elf32.em,
2067 ie. most of the file.
2068 (arm_elf_after_open): New. Do arm specific things then call
2069 gld${EMULATION_NAME}_after_open.
2070 (arm_elf_before_allocation): New. Call
2071 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2072 (PARSE_AND_LIST_PROLOGUE): Define.
2073 (PARSE_AND_LIST_SHORTOPTS): Define.
2074 (PARSE_AND_LIST_LONGOPTS): Define.
2075 (PARSE_AND_LIST_OPTIONS): Define.
2076 (PARSE_AND_LIST_ARGS_CASES): Define.
2077 (LDEMUL_AFTER_OPEN): Define.
2078 (LDEMUL_BEFORE_ALLOCATION): Define.
2079 (LDEMUL_BEFORE_PARSE): Define.
2080 (LDEMUL_FINISH): Define.
2082 * emultempl/hppaelf.em: Similarly zap most of this file.
2083 (hppaelf_add_stub_section): Prototype.
2084 (hppaelf_layaout_sections_again): Prototype.
2085 (hook_in_stub): Prototype.
2086 (LDEMUL_SET_OUTPUT_ARCH): Define.
2087 (LDEMUL_FINISH): Define.
2088 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2090 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2091 (EXTRA_EM_FILE): New.
2092 * emulparams/armelf_linux.sh: Likewise.
2093 * emulparams/armelf_linux26.sh: Likewise.
2094 * emulparams/hppalinux.sh: Likewise.
2095 * emulparams/hppaelf.sh: Likewise.
2098 * emultempl/elf32.em: Fix formatting.
2099 (EXTRA_EM_FILE): Source it.
2100 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2101 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2102 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2103 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2104 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2105 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2106 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2107 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2108 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2109 allow functions in this file to be overridden.
2110 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2112 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2114 * emultempl/elf32.em: Reorganize file.
2116 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2118 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2119 specific option to fit 64-bit executable in the lower
2120 31-bit address range. This is done by changing start
2121 address of .interp (the very first section of executable)
2122 and then setting EF_ALPHA_32BIT elf header flag.
2124 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2126 * emultempl/m68kcoff.em: New file.
2127 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2128 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2130 * Makefile.in: Regenerate.
2132 2000-07-20 H.J. Lu <hjl@gnu.org>
2134 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2135 and "disable-new-dtags" to stop getopt from treating -d/-e as
2136 abbreviations for these options.
2138 2000-07-20 H.J. Lu <hjl@gnu.org>
2140 * ld.texinfo: Add documentation for --disable-new-dtags and
2143 * ldmain.c (main): Initialize link_info.new_dtags to false.
2145 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2146 --disable-new-dtags and --enable-new-dtags.
2147 (gld_${EMULATION_NAME}_list_options): Likewise.
2149 2000-07-05 Kenneth Block <krblock@computer.org>
2151 * lexsup.c: Add optional style to demangle switch
2152 * ld.texinfo: Document optional style to demangle switch.
2154 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2156 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2158 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2159 Regenerate dependencies.
2160 * Makefile.in: Rebuild.
2161 * configure.tgt (cris-*-*): New target.
2162 * emulparams/crisaout.sh, emulparams/criself.sh,
2163 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2164 * po/POTFILES.in, po/ld.pot: Regenerate.
2166 2000-07-20 H.J. Lu <hjl@gnu.org>
2168 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2169 Print out ignored -z options.
2171 2000-07-19 H.J. Lu <hjl@gnu.org>
2173 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2174 (PARSE_AND_LIST_PROLOGUE): New.
2175 (PARSE_AND_LIST_LONGOPTS): Likewise.
2176 (PARSE_AND_LIST_OPTIONS): Likewise.
2177 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2179 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2181 * lexsup.c (ld_options): Comment out 'z'.
2182 (parse_args): Likewise.
2184 * emultempl/elf32.em: Include "elf/common.h".
2185 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2187 (gld_${EMULATION_NAME}_list_options): Likewise.
2189 * ld.texinfo: Add documentation for the recognized -z options.
2191 2000-07-19 H.J. Lu <hjl@gnu.org>
2193 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2194 bfd_elf_set_dt_needed_soname ().
2196 2000-07-18 DJ Delorie <dj@cygnus.com>
2198 * pe-dll.c (pe_dll_id_target): check object target name also
2200 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
2202 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2203 ${INIT_END} if relocating.
2204 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2206 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2208 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2209 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2210 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2211 errors introduced by the old dynamic lib search order.
2213 2000-07-17 DJ Delorie <dj@cygnus.com>
2215 * pe-dll.c (process_def_file): auto-export data items also
2216 (pe_process_import_defs): also see if _imp_ form needed
2218 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2220 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2221 for dll import libraries
2223 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2225 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2226 gcc 2.95.2 and later.
2228 2000-07-11 Kazu Hirata <kazu@hxi.com>
2230 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2233 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2235 * ldemul.h (struct lang_input_statement_struct): Remove forward
2237 (struct search_dirs): Likewise.
2238 * ldfile.h (struct lang_input_statement_struct): Likewise.
2239 Protect file from multiple inclusion.
2240 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2241 declaration from macro to file scope.
2243 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2244 * ldgram.y: Likewise here.
2245 * ldlang.c: And here.
2246 * ldmain.c: And here.
2247 * mpw-elfmips.c: And here.
2248 * mpw-eppcmac.c: And here.
2249 * emultempl/aix.em: And here.
2250 * emultempl/armcoff.em: And here.
2251 * emultempl/armelf.em: And here.
2252 * emultempl/armelf_oabi.em: And here.
2253 * emultempl/beos.em: And here.
2254 * emultempl/elf32.em: And here.
2255 * emultempl/hppaelf.em: And here.
2256 * emultempl/linux.em: And here.
2257 * emultempl/lnk960.em: And here.
2258 * emultempl/pe.em: And here.
2259 * emultempl/sunos.em: And here.
2260 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2261 * mpw-idtmips.c: Ditto.
2262 * emultempl/generic.em: Ditto.
2263 * emultempl/gld960.em: Ditto.
2264 * emultempl/gld960c.em: Ditto.
2265 * emultempl/mipsecoff.em: Ditto.
2266 * emultempl/ticoff.em: Ditto.
2267 * emultempl/vanilla.em: Ditto.
2269 * pe-dll.c: Include ldfile.h
2270 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2272 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2273 arguments to bfd_elf32_size_dynamic_sections call.
2274 (gldelf32ebmip_place_orphan): Add missing arguments to
2275 lang_leave_output_section_statement call.
2277 2000-07-10 H.J. Lu <hjl@gnu.org>
2279 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2281 (strhash): Likewise.
2282 (compute_dll_image_base): Likewise.
2283 (pe_undef_found_sym): Likewise.
2284 (pe_undef_cdecl_match): Likewise.
2285 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2286 argument "arch" with ATTRIBUTE_UNUSED.
2288 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2290 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2292 From Ryan Bradetich <rbradetich@uswest.net>
2293 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2295 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2297 Changes to create multiple linker stubs, positioned immediately
2298 before the section where they are required.
2299 * emultempl/hppaelf.em: Include elf32-hppa.h.
2300 (stub_sec, file_chain): Delete.
2301 (hppaelf_create_output_section_statements): Don't make a stub
2303 (hook_stub_info): New struct.
2304 (hook_in_stub): New function.
2305 (hppaelf_add_stub_section): New function.
2306 (hppaelf_finish): Do nothing for relocateable links. Modify the
2307 call to elf32_hppa_size_stubs. Move code for updating section
2309 (hppaelf_layaout_sections_again): ..to here, a new function.
2311 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2312 broken list handling. Pass in a pointer to the list.
2313 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2315 (hppaelf_before_parse): Prototype.
2316 (hppaelf_set_output_arch): Prototype.
2317 (hppaelf_create_output_section_statements): Prototype.
2318 (hppaelf_delete_padding_statements): Prototype.
2319 (hppaelf_finish): Prototype.
2322 * emultempl/hppaelf.em: Include ctype.h.
2323 (struct orphan_save): New.
2324 (gld${EMULATION_NAME}_place_orphan): New.
2325 (output_rel_find): New.
2326 (hppaelf_get_script): Update from elf32.em.
2327 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2328 Change emulation_name field to "${EMULATION_NAME}". Add
2329 gld${EMULATION_NAME}_place_orphan.
2331 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2332 ehppalinux.o, sort it. Regenerate dependencies.
2333 (ehppalinux.c): Depend on hppaelf.em
2334 * Makefile.in: Regenerate.
2336 * configure.tgt: targ_emul=hppalinux for hppa*linux
2338 * emulparams/hppalinux.sh: New.
2339 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2341 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2343 * lexsup.c (parse_args): Copy section name.
2345 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
2347 * emultempl/pe.em: institute the following search order for
2348 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2349 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2350 static lib (libfoo.a) if none of the above are found.
2352 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2354 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2355 (longopts): New --{enable,disable}-auto-image-base options.
2356 (gld_${EMULATION_NAME}_list_options): Document.
2357 (gld_${EMULATION_NAME}_parse): Handle.
2358 (strhash): New static function.
2359 (compute_dll_image_base): New static function.
2360 (gld_${EMULATION_NAME}_set_symbols): Use.
2362 2000-07-05 DJ Delorie <dj@redhat.com>
2366 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2368 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2369 * emulparams/elf32btsmip.sh: New file.
2370 * Makefile.am: Add traditional mips target.
2371 * Makefile.in: Rebuild.
2373 2000-07-01 H.J. Lu <hjl@gnu.org>
2375 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2376 automake to use YLWRAP.
2377 * Makefile.in: Rebuild.
2379 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2381 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2382 (CLEANFILES): Add DEPA.
2383 * Makefile.in: Regenerate.
2385 2000-06-30 Timothy Wall <twall@ppc>
2387 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2388 the page in the upper octet of the address.
2390 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2392 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2394 2000-06-24 Alan Modra <alan@linuxcare.com.au>
2396 * NEWS: arm-elf does --gc-sections too.
2398 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2400 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2402 * Makefile.in: Regenerate.
2404 2000-06-21 H.J. Lu <hjl@gnu.org>
2406 * Makefile.am: Rebuild dependency.
2407 * Makefile.in: Rebuild.
2409 2000-06-20 H.J. Lu <hjl@gnu.org>
2411 * Makefile.am: Rebuild dependency.
2412 * Makefile.in: Rebuild.
2414 2000-06-20 Timothy Wall <twall@cygnus.com>
2416 * scripttempl/tic54xcoff.sc: New.
2417 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2418 * gen-doc.texi: Add flag for TI COFF.
2419 * ld.texinfo: Add documentation for TI COFF handling switches.
2420 * emultempl/ticoff.em: New. TI COFF handling.
2421 * configure.tgt: Add tic54x target.
2422 * Makefile.am: Add tic54x target.
2423 * Makefile.in: Ditto.
2425 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2427 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2428 checking for backslashes.
2430 2000-06-19 Alan Modra <alan@linuxcare.com.au>
2432 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2434 2000-06-18 Alan Modra <alan@linuxcare.com.au>
2436 * NEWS: Update list of targets supporting --gc-sections.
2438 * scripttempl/elf.sc: KEEP .eh_frame contents.
2439 * scripttempl/elfd30v.sc: Same here.
2441 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2443 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2445 * Makefile.in: Rebuild.
2446 * configure.tgt: Recognize m68hc12 and m68hc11.
2447 * scripttempl/elfm68hc12.sc: New file.
2448 * emulparams/m68hc12elfb: New emulation.
2449 * emulparams/m68hc12elf: New emulation.
2450 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2451 (includes a memory.x script to define the ROM and RAM banks).
2452 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2453 New configuration files for support of Motorola 68hc11
2455 2000-06-15 Alan Modra <alan@linuxcare.com.au>
2457 * ldmain.c (main): Only change SEC_READONLY for final link.
2459 2000-06-13 H.J. Lu <hjl@gnu.org>
2461 * configure: Regenerate.
2463 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2465 * configure.in (VERSION): Update to show this is the CVS mainline.
2467 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2469 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2470 input objects to be ECOFF.
2471 (check_sections): einfo takes %B, not %P, to print a BFD name.
2473 2000-06-05 Michael Matz <matz@ifh.de>
2475 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2478 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2480 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2482 * emulparams/avr1200.sh (STACK): Define as 0.
2483 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2484 * emulparams/avr4433.sh (STACK): Likewise.
2485 * emulparams/avr44x4.sh (STACK): Likewise.
2486 * emulparams/avr85xx.sh (STACK): Likewise.
2487 * emulparams/avrmega103.sh (STACK): Likewise.
2488 * emulparams/avrmega161.sh (STACK): Likewise.
2489 * emulparams/avrmega603.sh (STACK): Likewise.
2490 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2491 (__stack): Define from ${STACK} for main().
2493 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2495 * Makefile.am: Update dependencies with "make dep-am"
2496 * Makefile.in: Regenerate.
2498 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2500 * ldmain.c: Include filenames.h.
2501 (set_scripts_dir): Support backslashes in program name.
2503 2000-05-22 Igor Shevlyakov <igor@windriver.com>
2505 * ldmain.c (main): When deciding if ".text" section should be
2506 read-only, don't forget to reset SEC_READONLY because it
2507 could be already set.
2509 2000-05-22 Thomas de Lellis <tdel@windriver.com>
2511 * ld.1: Add documentation for new command line option:
2512 --section-start <sectionname>=<sectionorg>
2513 This is a generic version of -Ttext etc. which accepts
2514 any section name as a parameter instead of just text/data/
2516 * ld.texinfo: More docs.
2518 * lexsup.c: (parse_args): Recognize new command line option.
2519 (ld_options): Add new option.
2521 2000-05-18 H.J. Lu <hjl@gnu.org>
2523 * lexsup.c (parse_args): `i' == `r', not `q'.
2525 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2527 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2529 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2530 Rick Gorton <gorton@scrugs.lkg.dec.com>
2532 Add support for '-q' == '--emit-relocs' switch.
2533 * ldmain.c (main): Default to false.
2534 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2535 * NEWS: Describe the emitrelocations switch.
2536 * ld.texinfo: Describe the emitrelocations switch.
2538 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2540 * emultempl/pe.em (_open_dynamic_archive): New function: Search
2541 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2542 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2545 2000-05-15 David O'Brien <obrien@FreeBSD.org>
2547 * lexsup.c (parse_args): Update the year in the copyright notice.
2549 2000-05-13 Alan Modra <alan@linuxcare.com.au>
2551 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2552 Replace defines with those from intl/libgettext.h to quieten gcc
2555 2000-05-10 H.J. Lu <hjl@gnu.org>
2557 * ldlang.c (open_input_bfds): Don't load the same file within
2558 a group again if the whole archive has been loaded already.
2560 2000-05-03 Alan Modra <alan@linuxcare.com.au>
2562 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2563 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2566 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2568 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2570 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2571 host "ia64-*-linux-gnu*".
2573 2000-04-29 Andreas Jaeger <aj@suse.de>
2575 * ld.h: Correctly check GCC version.
2577 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2579 * Makefile.am: Add PA64 support. Add missing dependencies for
2581 * Makefile.in: Rebuilt.
2582 * configure.tgt: Add PA64 support (currently disabled).
2584 2000-04-25 Alan Modra <alan@linuxcare.com.au>
2586 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2587 (output_rel_find): New function.
2588 (hold_section, hold_use): Delete.
2589 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2590 hold_interp): Make local to place_orphan.
2591 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2592 rather than place_section to find possible previous use of orphan.
2593 Similarly find the place-holder output sections. Use returned
2594 value from lang_enter_output_section_statement rather than calling
2595 lang_output_section_statement_lookup.
2596 * emultempl/armelf.em: Same here.
2597 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2599 * ldlang.c (lang_enter_output_section_statement): Return output
2601 * ldlang.h (lang_enter_output_section_statement): Change
2604 * ldlang.h (lang_output_section_statement): Export it.
2605 * ldlang.c (lang_output_section_statement): Ditto.
2607 2000-04-24 Nick Clifton <nickc@cygnus.com>
2609 * ld.texinfo (Output Section Data): Add note that section data
2610 commands cannot appear outside of section directives.
2612 2000-04-2 Matthew Green <mrg@cygnus.com>
2614 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2616 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2617 David Mosberger <davidm@hpl.hp.com>
2619 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2620 (eelf64_ia64.c): New rule.
2621 * Makefile.in: Rebuild.
2622 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2623 * emulparams/elf64_ia64.sh: New file.
2625 2000-04-21 Richard Henderson <rth@cygnus.com>
2627 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2629 2000-04-19 Alan Modra <alan@linuxcare.com.au>
2631 * dep-in.sed: Match space at start of file name, not at end.
2633 2000-04-18 H.J. Lu <hjl@gnu.org>
2635 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2636 lang_leave_output_section_statement () after calling
2637 lang_enter_output_section_statement ().
2638 * emultempl/armelf.em: Likewise.
2640 2000-04-18 Alan Modra <alan@linuxcare.com.au>
2642 * emultempl/elf32.em (struct orphan_save): Add section field.
2643 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2644 better order, and place first orphan section as we did before the
2645 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2646 Don't call make_bfd_section here, let wild_doit do the job for us.
2647 Don't build a statement list when we'll only throw it away.
2648 * emultempl/armelf.em: Ditto.
2649 * emultempl/pe.em: Similarly.
2651 2000-04-14 Geoff Keating <geoffk@cygnus.com>
2653 * scripttempl/elfppc.sc: Remove.
2654 * emulparams/elf32ppc.sh: Use elf.sc.
2655 * emulparams/elf32lppc.sh: Use elf.sc.
2656 * emulparams/elf32ppclinux.sh: Use elf.sc.
2657 * emulparams/elf32ppcsim.sh: New file.
2658 * emulparams/elf32lppcsim.sh: New file.
2659 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2660 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2661 * Makefile.in: Regenerate.
2662 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2664 2000-04-14 Alan Modra <alan@linuxcare.com.au>
2666 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
2667 ~SEC_ALLOC sections too. Init start address of debug sections.
2668 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2669 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2670 Also set all relocateable section start addresses.
2672 2000-04-13 Geoff Keating <geoffk@cygnus.com>
2674 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2675 Add new BSS_PLT variable for when .plt need not be contained in
2676 the file. Move _etext so that it is also after .fini, and provide
2677 both etext and _etext with a leading underscore. Mark the start
2680 2000-04-12 Alan Modra <alan@linuxcare.com.au>
2682 * emultempl/elf32.em (struct orphan_save): New.
2683 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2684 hold_interp): Make them struct orphan_save.
2685 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2686 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2687 the end of the relevant section list. Also add associated section
2688 statements to the end of any previous orphan statements.
2689 * emultempl/armelf.em: Similarly.
2690 * emultempl/pe.em: Similarly.
2692 2000-04-11 Alan Modra <alan@linuxcare.com.au>
2694 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2696 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
2698 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
2699 --enable-build-warnings option.
2700 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2701 * Makefile.in, configure: Re-generate.
2703 2000-04-04 Alan Modra <alan@linuxcare.com.au>
2705 * po/ld.pot: Regenerate.
2707 * lexsup.c (help): Restore translated part of bug string.
2709 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2710 (DEP): Quote when passing vars to sub-make. Add warning message
2712 (DEP1): Rewrite for "gcc -MM".
2713 (CLEANFILES): Add DEP2.
2714 Update dependencies.
2715 * Makefile.in: Regenerate.
2717 2000-04-03 Alan Modra <alan@linuxcare.com.au>
2719 * ld.h: #include "bin-bugs.h"
2720 * lexsup.c (help): Use REPORT_BUGS_TO.
2722 2000-03-27 Denis Chertykov <denisc@overta.ru>
2724 * configure.tgt (avr-*-*): New target support.
2725 * Makefile.am: Likewise.
2726 * scripttempl/elf32avr.sc: New script file.
2727 * emulparams/avr1200.sh: New file.
2728 * emulparams/avr23xx.sh: New file.
2729 * emulparams/avr4433.sh New file.
2730 * emulparams/avr44x4.sh New file.
2731 * emulparams/avr85xx.sh New file.
2732 * emulparams/avrmega103.sh New file.
2733 * emulparams/avrmega161.sh New file.
2734 * emulparams/avrmega603.sh New file.
2735 * Makefile.in: Regenerate.
2737 2000-03-09 Andreas Jaeger <aj@suse.de>
2739 * Makefile.am (check-DEJAGNU): Also unset LANG.
2740 * Makefile.in: Rebuild.
2742 2000-03-06 Ian Lance Taylor <ian@zembu.com>
2744 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2747 2000-03-02 H.J. Lu <hjl@gnu.org>
2749 * emulparams/elf32mcore.sh: Include "getopt.h".
2751 2000-03-01 Ian Lance Taylor <ian@zembu.com>
2753 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2755 2000-03-01 H.J. Lu <hjl@gnu.org>
2757 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2758 * emulparams/shpe.sh: Likewise.
2760 2000-03-01 Nick Clifton <nickc@cygnus.com>
2762 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2763 to unused parameters.
2765 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2766 functions only used by DLL code.
2767 (_place_orphan): Initialise 'dollar'.
2769 2000-03-01 H.J. Lu <hjl@gnu.org>
2771 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2772 indicate if the undefined symbol is a fatal error or not.
2773 Don't delete the output file if "fatal" is false.
2775 2000-02-29 H.J. Lu <hjl@gnu.org>
2777 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
2778 Set LC_COLLATE and LC_ALL to null and export them. It is for
2779 sort which expects the C locale.
2780 Add $(LIBS) to all $(HOSTING_LIBS).
2781 * Makefile.in: Rebuild.
2783 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
2785 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2786 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
2787 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
2788 (ld_emulation_xfer_struct): Add missing NULL initialiser for
2789 find_potential_libraries.
2791 2000-02-28 Jim Blandy <jimb@redhat.com>
2793 * ldgram.y (exclude_name_list): Don't require a comma to separate
2794 list entries; the lexer considers commas to be valid part of a
2795 filename, so in something like `foo, bar' the comma is considered
2796 part of the first filename, `foo,'.
2797 * ld.texinfo: Update section on EXCLUDE_FILE lists.
2799 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
2801 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2802 host "i[3456]86-*-freebsdelf*".
2804 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
2806 * scripttempl/i386go32.sc: Move misplaced semicolons.
2808 2000-02-25 Ian Lance Taylor <ian@zembu.com>
2810 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2811 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2812 (eelf64hppa.c, ehppaelf.c): Remove targets.
2813 * Makefile.in: Rebuild.
2815 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2817 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2818 GNU/Linux/sparc, but keep the default as 32.
2820 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
2821 it default if sparcv9 or sparc64.
2823 2000-02-24 Nick Clifton <nickc@cygnus.com>
2825 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2826 * Makefile.in: Regenerate.
2827 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2829 * ldemul.h (ld_emulation_xfer_struct): Add new field:
2830 find_potential_libraries.
2831 * ldemul.c (ldemul_find_potential_libraries): New function.
2833 * ldfile.c (ldfile_open_file_search): Allow function to be
2835 (ldfile_open_file): Call ldemul_find_potential_libraries.
2836 * ldfile.h: Add prototype for ldfile_open_file_search.
2838 * pe-dll.c: Add support for ARM, MIPS and SH targets.
2840 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
2841 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
2843 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2844 (gld_X_find_potential_libraries): New function. Search for
2845 libraries called "*.lib".
2847 * scripttempl/pe.sc: Add .pdata section.
2849 2000-02-23 Richard Henderson <rth@cygnus.com>
2851 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2852 Add and use memory regions.
2854 2000-02-23 Linas Vepstas (linas@linas.org)
2856 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2858 * Makefile.am: Add support for Linux/IBM 370.
2859 * configure.tgt: Likewise.
2861 * Makefile.in: Regenerate.
2863 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2865 * ldlang.c (print_input_section, print_data_statement,
2866 print_reloc_statement, print_padding_statement, insert_pad,
2867 size_input_section, lang_check_section_addresses,
2868 lang_size_sections, lang_do_assignments, lang_set_startof,
2869 lang_one_common): Change `opb' to unsigned.
2870 (lang_do_assignments): Also change `size' to unsigned.
2872 2000-02-16 Richard Henderson <rth@cygnus.com>
2874 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2876 2000-02-16 Timothy Wall <twall@cygnus.com>
2878 * mri.c (mri_draw_tree): Add default LMA region argument to call
2879 to lang_leave_output_section_statement.
2880 * ldlang.h: Update prototypes with LMA region arguments.
2881 * ldlang.c (lang_size_sections): Encapsulate region bounds
2882 checking in os_check_region call.
2883 (os_check_region): New function.
2884 (lang_output_section_statement_lookup): Initialize lma_region.
2885 (lang_leave_output_section_statement): Add LMA region argument.
2886 (lang_leave_overlay): Ditto.
2887 * ldgram.y: Handle LMA region syntax.
2888 * ld.texinfo (Output Section Description): Describe LMA region usage.
2889 * emultempl/armelf.em (gld$place_orphan): Add default value for
2890 lma region in call to lang_leave_output_section_statement.
2891 * emultempl/elf32.em (gld$place_orphan): Add default value for
2892 lma region in call to lang_leave_output_section_statement.
2893 * emultempl/pe.em (gld$place_orphan): Add default value for
2894 lma region in call to lang_leave_output_section_statement.
2897 2000-02-04 Timothy Wall <twall@redhat.com>
2899 * ldlang.c (lang_check_section_addresses): Use bytes instead of
2900 octets when calculating section end addresses.
2902 2000-02-04 Timothy Wall <twall@redhat.com>
2904 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2906 2000-02-03 Timothy Wall <twall@redhat.com>
2908 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2910 * ldlang.c (print_input_section, print_data_statement,
2911 print_reloc_statement, print_padding_statement): Print target
2912 address values and section sizes as bytes, not octets.
2913 (insert_pad) Calculate padding size in octets, and adjust "dot"
2915 (size_input_section) Always adjust "dot" by bytes, not octets.
2916 (lang_check_section_addresses, lang_do_assignments) Adjust
2917 "dot" by bytes, not octets. Use the larger of the directive size
2918 or octets_per_byte for the number of octets actually allocated in
2920 (lang_set_startof) Make sure STARTOF returns a target address.
2921 (lang_one_common) Record size changes in octets.
2922 (lang_abs_symbol_at_end_of) Section end symbol's value is
2923 recorded in target bytes.
2924 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2925 to be clear about behavior when an octet is smaller than one byte.
2927 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2929 * ldcref.c (output_cref): Don't pass message strings to printf
2933 * ldmisc.c (vfinfo): Same here.
2936 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2938 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2939 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2940 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2941 Add missing NULL initialisers, and comments.
2943 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2945 2000-01-21 Nick Clifton <nickc@cygnus.com>
2947 * ldlang.c (lang_size_sections): Fix typo in comment.
2949 2000-01-18 H.J. Lu <hjl@gnu.org>
2951 * ldlang.c (lang_size_sections): Also update the current
2952 address of a region if the SEC_NEVER_LOAD bit is not set.
2954 2000-01-10 Philip Blundell <pb@futuretv.com>
2956 * configure.tgt (arm*-*-conix*): New target.
2958 2000-01-07 Nick Clifton <nickc@cygnus.com>
2960 * ld.texinfo (Options): Remind users to preceed linker command
2961 line switches with -Wl, (or whatever is appropriate) if it is
2962 being invoked by a comnpiler driver program.
2963 Fix description of the behaviour of the -n command line switch.
2965 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
2967 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
2969 * ld.texinfo (EXCLUDE_FILE): Update documentation.
2970 * ldgram.y (wildcard_spec): Support a list of excluded_files.
2971 (exclude_name_list): New.
2972 ldlang.c (walk_wild_section): Support list of excluded files.
2973 (print_wild_statement): Likewise.
2974 (lang_add_wild): Likewise.
2975 * ldlang.h (lang_wild_statement_type): Likewise.
2976 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
2978 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
2980 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
2981 (process_def_file): Use.
2982 (pe_dll_compat_implib): New variable.
2985 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
2986 pe_dll_compat_implib.
2988 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
2989 compat-implib options.
2990 (gld_${EMULATION_NAME}_list_options): List new options.
2991 (gld_${EMULATION_NAME}_parse_args): Handle.
2993 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
2996 * deffilep.y (opt_name): Allow "." in name.
2998 For older changes see ChangeLog-9899
3004 version-control: never