1 2001-11-20 Angela Marie Thomas <angela@redhat.com>
3 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
4 of false when calling lang_size_sections.
5 (hppaelf_layout_sections_again): Likewise.
7 2001-11-15 Alan Modra <amodra@bigpond.net.au>
9 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
10 function when LDEMUL_FINISH isn't set to the same name. Don't
11 call ${LDEMUL_FINISH}.
12 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
13 * emultempl/armelf.em (arm_elf_finish): Call
14 gld${EMULATION_NAME}_finish.
15 * emultempl/hppaelf.em (hppaelf_finish): Rename to
16 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
17 hppaelf_layout_sections_again if necessary.
18 (need_laying_out): New var.
19 (hppaelf_layaout_sections_again): Rename to
20 hppaelf_layout_sections_again. Clear need_laying_out.
21 (PARSE_AND_LIST_OPTIONS): Format text.
23 2001-11-14 H.J. Lu <hjl@gnu.org>
25 * emultempl/armelf.em (arm_elf_finish): Renamed from
26 gld${EMULATION_NAME}_finish.
27 (LDEMUL_FINISH): Set to arm_elf_finish.
29 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
31 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
32 (struct ld_emulation_xfer_struct): Use it.
34 Tue Nov 13 11:27:14 2001 Ross Alexander <ross.alexander@uk.neceur.com>
36 * emulparams/elf64hppa.sh (OTHER_BSS_END_SECTIONS): Add
37 additional symbols referenced by newer crt0.o files from HP.
39 2001-11-12 Anthony Green <green@redhat.com>
41 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
43 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
45 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
46 * Makefile.in: Regenerate.
48 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
50 * ld.texinfo: Use @command for commands, @option for options.
51 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
53 * Makefile.in: Rebuild.
55 2001-11-04 Chris Demetriou <cgd@broadcom.com>
57 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
58 Add support for targets.
60 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
62 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
63 * configure: Regernate.
67 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
69 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
70 as little endian default and to support big endian.
72 2001-11-01 Chris Demetriou <cgd@broadcom.com>
74 * ld.texinfo (Options): Document new option, -nostdlib.
75 * lexsup.c (OPTION_NOSTDLIB): New definition.
76 (ld_options): Add entry for "nostdlib".
77 (parse_args): Handle OPTIONS_NOSTDLIB.
78 * ldfile.c (ldfile_add_library_path): Don't add directories
79 to the search path if they weren't specified on the command line
80 and -nostdlib was specified.
81 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
83 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
85 * lexsup.c (parse_args): Prevent infinite parsing loop when
86 "-rpath.a" is specified on the command line.
87 Replace calls to fprintf with calls to einfo.
89 2001-10-31 John Marshall <jmarshall@acm.org>
91 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
92 appear only once across all the linker scripts involved in a link
93 invocation no longer applies. Make the documentation reflect
96 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
98 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
100 (sh-*-linux*): Added targ_extra_libpath.
102 2001-10-31 David Heine <dlheine@tensilica.com>
104 * ldlang.c (lang_size_sections): Keep a valid output_offset field
105 for padding statements.
107 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
109 * configure.tgt (mmix-*-*): New target.
110 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
111 Add dependencies to match.
112 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
113 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
114 scripttempl/mmo.sc: New files.
115 * gen-doc.texi: @set MMIX.
117 [MMIX] Add MMIX node.
118 * Makefile.in: Regenerate.
120 2001-10-29 Kazu Hirata <kazu@hxi.com>
122 * ldlang.c: Fix a comment typo.
124 2001-10-23 Alan Modra <amodra@bigpond.net.au>
126 * configure.host: Move alpha*-*-linux-gnu* entry to generic
127 entries, and match *-*-linux*.
129 2001-10-20 Alan Modra <amodra@bigpond.net.au>
131 * ldgram.y (mri_script_command): Surround processing of INCLUDE
132 with ldlex_script, ldlex_popstate.
133 (ifile_p1): Likewise.
134 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
136 (lex_push_file): Save current lineno to lineno_stack. Set lineno
137 to 1. Don't BEGIN(SCRIPT).
138 (lex_redirect): Similarly.
139 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
141 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
143 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
144 __EH_FRAME_END__ and accept eh frames into data section.
145 Add ctor and dtor sections.
147 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
149 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
150 (auto-export): Fix indentation.
152 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
154 * pe-dll.c (autofilter_objectlist): Add startup objects
156 (auto-export): Constify char * p.
157 Extract file basename and use strcmp rather than ststr
160 2001-10-18 Chris Demetriou <cgd@broadcom.com>
162 * ldmain.c (get_emulation): Improve comment about the handling
165 2001-10-17 Alan Modra <amodra@bigpond.net.au>
167 * po/POTFILES.in: Regenerate.
169 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
171 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
172 -z nocopyreloc and -z nocombreloc usage strings.
174 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
176 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
179 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
181 * scripttempl/armaout.sc: Place .bss section after end of aligned
182 data section to match behaviour of aout code in constructrion of
185 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
187 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
188 startup files for mingw32 dlls to list.
190 2001-10-10 Chris Demetriou <cgd@broadcom.com>
192 * emultempl/elf32.em: Fix shell 'if' usage for portability.
194 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
196 * configure.tgt (targ): Add arm9e-*-elf.
198 2001-10-05 H.J. Lu <hjl@gnu.org>
200 * genscripts.sh: Fix a typo in the last change.
202 2001-10-05 Jakub Jelinek <jakub@redhat.com>
204 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
205 -z nocombreloc in usage.
207 2001-10-03 Jim Blandy <jimb@redhat.com>
209 * genscripts.sh: Include a comment at the top of each generated
210 script, explaining its purpose.
212 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
214 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
215 * NEWS: Mention -z nocopyreloc.
216 * ld.texinfo (Options): Describe nocopyreloc.
218 2001-10-03 Alan Modra <amodra@bigpond.net.au>
220 * configure: Regenerate.
222 2001-10-02 Alan Modra <amodra@bigpond.net.au>
224 * ldver.h (ld_program_version): Remove declaration.
225 * lexsup.c (parse_args): Move printing of copyright message..
226 * ldver.c (ldversion): .. to here.
227 Use BFD_VERSION_STRING in place of BFD_VERSION.
228 (ld_program_version): Remove.
229 * Makefile.am (Makefile): Depend on bfd/configure.in.
231 * Makefile.in: Regenerate.
233 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
235 * Makefile.am: Update dependencies with "make dep-am".
236 * Makefile.in: Regenerate.
238 2001-09-29 John Reiser <jreiser@BitWagon.com>
240 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
241 * lexsup.c: Add --no-define-common commandline option.
242 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
244 * ld.h: Add command_line.inhibit_common_definition.
245 * ldmain.c (main): Initialize.
246 * ld.texinfo: Document.
248 2001-09-26 Alan Modra <amodra@bigpond.net.au>
250 * ldmisc.c (USE_STDARG): Remove.
251 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
256 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
257 declarations. Update copyright.
259 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
261 * pe-dll.c: Remove obsoleted declaration of
262 pe_get_data_import_dll_name.
263 (pe_create_import_fixup): Fix thinko.
265 * ld.texinfo(enable-auto-import): Clarify the explanation.
267 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
269 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
270 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
271 DLL_SUPPORT controlled code.
273 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
275 * emultempl/pe.em(pe_data_import_dll): Make static.
276 (pe_get_data_import_dll_name): New accessor function.
277 * pe-dll.c(pe_create_import_fixup): call
278 pe_get_data_import_dll_name() from pe.em, instead of
279 directly accessing pe_data_import_dll variable from pe.em.
281 2001-09-18 Bruno Haible <haible@clisp.cons.org>
283 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
284 (def_file_add_directive): Use ISSPACE instead of isspace.
285 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
286 isdigit/isxdigit/isalpha/isalnum.
287 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
288 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
289 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
290 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
292 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
293 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
295 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
296 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
297 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
298 (ctor_prio): Use ISDIGIT instead of isdigit.
299 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
300 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
301 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
303 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
304 (stricpy): Use TOLOWER instead of isupper/tolower.
305 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
306 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
307 (lex_warn_invalid): Use ISPRINT instead of isprint.
308 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
309 (main): For gettext, also set the LC_CTYPE locate facet.
310 (add_keepsyms_file): Use ISSPACE instead of isspace.
311 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
312 (is_num, parse_args): Use ISDIGIT instead of isdigit.
313 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
314 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
315 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
316 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
317 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
318 (quoteput): Use ISSPACE instead of isspace.
319 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
322 2001-09-18 Alan Modra <amodra@bigpond.net.au>
324 * deffilep.y (def_stash_module): Constify "name" param.
326 * pe-dll.c: Replace CONST with const throughout.
327 (quick_symbol): Constify "n1", "n2", "n3" params.
328 (make_singleton_name_thunk): Constify "import" param. Make
329 "buffer_len" a size_t.
330 (make_import_fixup_entry): Constify "name", "fixup_name",
331 "dll_symname" params.
332 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
333 (pe_get32): Likewise.
334 (pe_implied_import_dll): Likewise.
336 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
337 (sort_by_section_name): Likewise.
339 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
340 (make_import_fixup): Cast printf arg, rel->address to long rather
342 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
344 2001-09-15 Alan Modra <amodra@bigpond.net.au>
346 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
347 defines BufferSize. Increase buffer size by one.
349 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
351 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
353 2001-09-14 Kevin Lo <kevlo@openbsd.org>
355 * configure.tgt: Add arm-openbsd target.
357 2001-09-12 H.J. Lu <hjl@gnu.org>
359 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
361 (ALL_64_EMULATIONS): Here.
362 * Makefile.in: Regenerated.
364 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
366 * emultempl/pe.em(make_import_fixup): change signature to
367 take asection as well as arelec; we need this for proper
368 error reporting. Only call pe_create_import_fixup() if
369 there is no attempt to add a constant addend to the reloc;
370 otherwise, report error condition.
371 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
372 since final argument is a pointer to make_import_fixup().
373 Change call to cb() to match make_import_fixup() signature.
374 (make_import_fixup_mark): make buffer_len unsigned.
375 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
377 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
379 * ld.texinfo: add verbose documentation for auto-import
380 direct-addressing workaround, to compliment the terse
383 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
385 * scripttempl/v850.sc: Add gcc_except_table sections.
387 Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
389 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
390 * emulparams/h8300self.sh: Similarly.
392 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
394 * ld.texinfo (Options, --stack): Correct default value for stack
397 2001-09-05 Tom Rix <trix@redhat.com>
399 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
401 2001-09-03 Andreas Jaeger <aj@suse.de>
403 * emultempl/beos.em: Declare prototypes for comparions functions,
406 2001-09-02 Andreas Jaeger <aj@suse.de>
408 * emultempl/aix.em: Add missing prototype.
409 * emultempl/lnk960.em: Likewise.
410 * emultempl/vanilla.em: Likewise.
411 * emultempl/armcoff.em: Likewise.
412 * emultempl/armelf_oabi.em: Likewise.
413 * emultempl/beos.em: Likewise.
414 * emultempl/gld960c.em: Likewise.
415 * emultempl/gld960.em: Likewise.
417 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
418 for prototype declaration.
420 2001-08-31 Eric Christopher <echristo@redhat.com>
421 Jason Eckhardt <jle@redhat.com>
423 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
425 2001-08-31 Andreas Jaeger <aj@suse.de>
427 * emultempl/pe.em: Add missing prototypes.
428 (gld_${EMULATION_NAME}_after_open): Remove extra args to
429 pe_find_data_imports.
430 (pr_sym): Add unused attribute.
432 2001-08-29 Joel Sherrill <joel@OARcorp.com>
434 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
435 default from coff to elf.
437 2001-08-29 Jeff Law <law@redhat.com>
439 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
441 * emulparams/h8300self.sh: Similarly.
443 Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
445 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
447 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
448 * configure.tgt (h8300-*-elf*): New case.
449 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
450 * emulparams/h8300self.sh: New file.
451 * Makefile.in: Regenerated.
453 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
455 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
458 2001-08-27 Linus Nordberg <linus@swox.com>
459 Alan Modra <amodra@bigpond.net.au>
461 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
462 (eelf64ppc.c, eelf64lppc.c): Add make targets.
464 * Makefile.in: Regenerate.
465 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
466 entries to correct alphabetical position.
467 * emulparams/elf64ppc.sh: New.
468 * emulparams/elf64lppc.sh: New.
470 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
472 * ldmain.c (main): Declare BSIZE as static.
474 2001-08-23 Jakub Jelinek <jakub@redhat.com>
476 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
477 into .rel.dyn resp. .rela.dyn if combreloc.
478 (get_script): If .x linker script is equal to .xn, only put it
479 once into the binary.
480 Add .xc and .xsc scripts.
481 (parse_args): Handle -z combreloc and -z nocombreloc.
482 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
483 For .xc and .xsc scripts put all .rel* or .rela* input sections
484 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
485 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
487 Strip trailing whitespace from script.
488 Generate .xc and .xsc scripts if requested.
489 * ldmain.c (main): Initialize link_info.combreloc and
490 link_info.spare_dynamic_tags.
491 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
492 (ld_options): Add --spare-dynamic-tags option.
493 (parse_args): Likewise.
494 * ld.texinfo: Document -z combreloc and -z nocombreloc.
495 * ldint.texinfo: Document .xc and .xsc linker scripts.
496 * NEWS: Add notes about -z combreloc and SHF_MERGE.
498 2001-08-22 H.J. Lu <hjl@gnu.org>
500 * emulparams/elf32fr30.sh: Add a newline.
502 2001-08-21 Andreas Jaeger <aj@suse.de>
504 * deffilep.y: Add missing prototypes.
505 * pe-dll.c: Likewise.
507 2001-08-20 Alan Modra <amodra@bigpond.net.au>
509 * ldlang.c (insert_pad): Fix typos in last patch.
511 * ldlang.c: When traversing lang_statement_union_type lists,
512 consistently use "header.next" rather than "next".
513 * mpw-eppcmac.c: Likewise.
514 * emultempl/beos.em: Likewise.
515 * emultempl/hppaelf.em: Likewise.
516 * emultempl/pe.em: Likewise.
517 * ldlang.h (union lang_statement_union): Remove "next" field.
519 * ldlang.c (insert_pad): Use offsetof macro.
520 (lang_size_sections): Always neuter padding statements.
521 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
523 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
524 passed to lang_size_sections.
525 (pe_exe_fill_sections): Likewise.
526 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
527 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
529 2001-08-18 Alan Modra <amodra@bigpond.net.au>
531 * emultempl/aix.em: Formatting fixes.
533 2001-08-18 Alan Modra <amodra@bigpond.net.au>
535 * ldlang.c (insert_pad): Make use of an existing pad statement if
536 available. Move code calculating alignment, adjusting section
537 alignment power, and adjusting dot to ..
538 (size_input_section): .. here. Remove unused relax param.
539 (lang_size_sections): Change boolean `relax' param to boolean *.
540 Adjust call to size_input_section. Make use of insert_pad to
541 place pad after the assignment statement. If relaxing, zap
543 (reset_memory_regions): Reset output_bfd section sizes too.
544 (relax_again): Move to..
545 (lang_process): ..here. Adjust call to lang_size_sections, and
546 remove duplicated code.
547 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
549 2001-08-17 Alan Modra <amodra@bigpond.net.au>
551 * ld.texinfo: Document that fill values now use the four least
553 * emulparams/elf32fr30.sh (NOP): Update.
554 * emulparams/elf32mcore.sh: Likewise.
555 * emulparams/elf64_s390.sh: Likewise.
556 * emulparams/elf_i386.sh: Likewise.
557 * emulparams/elf_i386_be.sh: Likewise.
558 * emulparams/elf_i386_chaos.sh: Likewise.
559 * emulparams/elf_i386_ldso.sh: Likewise.
560 * emulparams/elf_s390.sh: Likewise.
561 * emulparams/elf_x86_64.sh: Likewise.
562 * emulparams/i386moss.sh: Likewise.
563 * emulparams/i386nw.sh: Likewise.
564 * emulparams/m68kelf.sh: Likewise.
565 * scripttempl/elf.sc: Update NOP comment.
566 * scripttempl/elfi370.sc: Likewise.
567 * scripttempl/elfm68hc11.sc: Likewise.
568 * scripttempl/elfm68hc12.sc: Likewise.
569 * scripttempl/nw.sc: Likewise.
571 2001-08-15 Tom Rix <trix@redhat.com>
573 * ldgram.y (saved_script_handle): Initialize to NULL.
574 * ldmain.c (main): Change check on saved_script_handle.
576 2001-08-14 Alan Modra <amodra@bigpond.net.au>
578 * emultempl/elf32.em: Formatting fixes.
579 (output_prev_sec_find): Test for bfd_ind_section too; do so by
580 looking at sec->owner.
581 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
582 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
583 unused code, and reorganize orphan section placement code.
585 * ldlang.c (wild_doit): Rename to lang_add_section.
586 * ldlang.h: Here too.
587 * mpw-elfmips.c: And here.
588 * emultempl/beos.em: And here.
589 * emultempl/elf32.em: And here.
590 * emultempl/hppaelf.em: And here.
591 * emultempl/pe.em: And here.
593 2001-08-13 Richard Henderson <rth@redhat.com>
595 * emultempl/needrelax.em: New file.
596 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
597 * Makefile.am (eelf64_ia64.c): Depend on it.
598 * Makefile.in: Rebuild.
600 2001-08-13 Alan Modra <amodra@bigpond.net.au>
602 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
603 output_section is set non-NULL.
605 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
606 `true' for SEC_EXCLUDE sections so that the generic code doesn't
607 needlessly create an output_section_statement. Treat a correctly
608 named output_section_statement with NULL bfd_section as compatible.
610 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
612 * emultempl/generic.em: Support EXTRA_EM_FILE.
613 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
614 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
615 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
616 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
617 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
618 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
619 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
620 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
621 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
622 LDEMUL_FIND_POTENTIAL_LIBRARIES.
624 2001-08-12 Richard Henderson <rth@redhat.com>
626 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
627 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
628 scripttempl/v850.sc: Keep .jcr data.
630 2001-08-12 H.J. Lu <hjl@gnu.org>
631 Andrew Haley <aph@cambridge.redhat.com>
632 Nick Clifton <nickc@redhat.com>
634 * ldgram.y (had_script): Change name to saved_script_handle.
635 Change type to file handle.
636 * ld.h (had_script): Rename and retype.
637 * ldfile.c (ldfile_open_command_file): Save the file handle
638 used in saved_script_handle.
639 * lexsup.c (parse_args): Do not allow -c option to alter
641 * ldmain.c (main): Print out the linker script used if
642 --verbose is given. Check saved_script_handle to obtain the
643 external linker script used, or if NULL, dump the builtin
645 * ld.texinfo: Document that --verbose now dumps the linker
646 script used, regardless of whether it was an internal or an
649 2001-08-10 Andreas Jaeger <aj@suse.de>
651 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
653 * configure: Regenerate.
655 2001-08-09 Alan Modra <amodra@bigpond.net.au>
657 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
659 * scripttempl/elf.sc: Move non-text .dynamic section before
660 .plt/.got/.sdata* group.
661 (OTHER_GOT_SECTIONS): Move to immediately after .got.
662 (OTHER_SDATA_SECTIONS): Add.
663 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
665 * emulparams/crislinux.sh: Likewise.
666 * emulparams/elf32b4300.sh: Likewise.
667 * emulparams/elf32bmip.sh: Likewise.
668 * emulparams/elf32bmipn32.sh: Likewise.
669 * emulparams/elf32bsmip.sh: Likewise.
670 * emulparams/elf32btsmip.sh: Likewise.
671 * emulparams/elf32ebmip.sh: Likewise.
672 * emulparams/elf32elmip.sh: Likewise.
673 * emulparams/elf32l4300.sh: Likewise.
674 * emulparams/elf32lmip.sh: Likewise.
675 * emulparams/elf32lsmip.sh: Likewise.
676 * emulparams/elf32ltsmip.sh: Likewise.
677 * emulparams/elf64bmip.sh: Likewise.
678 * emulparams/elf64btsmip.sh: Likewise.
679 * emulparams/elf64ltsmip.sh: Likewise.
681 2001-08-08 Alan Modra <amodra@bigpond.net.au>
683 * genscripts.sh: Source the emulparams script before each output
684 script is generated so that variables like `RELOCATING' may affect
685 variables defined in the emulparams script.
687 2001-08-04 Alan Modra <amodra@bigpond.net.au>
689 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
692 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
693 ie. iterate over wild_statement.section_list.
694 (gld${EMULATION_NAME}_place_orphan): Likewise.
696 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
698 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
699 .fini[0-4] sections used by _exit
700 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
701 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
702 * scripttempl/elfm68hc11.sc: Likewise.
704 2001-08-03 H.J. Lu <hjl@gnu.org>
706 * emultempl/beos.em (init): Add the missing initialization.
708 2001-08-03 Alan Modra <amodra@bigpond.net.au>
710 * ld.texinfo (Input Section Basics): Clarify ordering of output
712 * ldlang.c (callback_t): Add wildcard_list param.
713 (walk_wild_section): Remove "section" param. Rewrite for
714 lang_wild_statement_type change. Remove unique_section_p test.
715 (walk_wild_file): Remove "section" param.
716 (walk_wild): Remove "section" and "file" params.
717 (lang_gc_wild): Likewise.
718 (wild): Likewise. Modify for lang_wild_statement_type change.
719 (wild_sort): Likewise. Add "sec" param.
720 (gc_section_callback): Likewise.
721 (output_section_callback): Likewise. Do unique_section_p test.
722 (map_input_to_output_sections): Modify call to wild.
723 (lang_gc_sections_1): Likewise.
724 (print_wild_statement): Modify for lang_wild_statement_type
726 (lang_add_wild): Replace filename, filenames_sorted param with
727 filespec. Replace section_name, sections_sorted,
728 exclude_filename_list with section_list.
729 * ldlang.h (lang_add_wild): Here too.
730 (lang_wild_statement_type): Replace section_name, sections_sorted,
731 and exclude_filename_list with section_list.
732 * ldgram.y (current_file): Delete.
733 (%union): Add wildcard_list.
734 (file_NAME_list): Set type to wildcard_list. Build a linked list
735 rather than calling lang_add_wild for each entry.
736 (input_section_spec_no_keep): Call lang_add_wild here instead.
737 * ld.h (struct wildcard_list): Declare.
738 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
740 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
742 * ldmain.c (main): initialize link_info.pei386_auto_import
743 * pe-dll.c: new tables for auto-export filtering
744 (auto_export): change API, pass abfd for contextual filtering.
745 Loop thru tables of excluded symbols instead of comparing
748 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
750 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
751 static variable current_sec (static struct sec *). Add
752 forward declaration for add_bfd_to_link.
753 (process_def_file): Don't export undefined symbols. Do not
754 export symbols starting with "_imp__". Call auto_export()
756 (pe_walk_relocs_of_symbol): New function.
757 (generate_reloc): add optional extra debugging
758 (pe_dll_generate_def_file): eliminate extraneous initial blank
760 (make_one): enlarge symtab to make room for __nm__ symbols
761 (DATA auto-import support).
762 (make_singleton_name_thunk): New function.
763 (make_import_fixup_mark): New function.
764 (make_import_fixup_entry): New function.
765 (pe_create_import_fixup): New function.
766 (add_bfd_to_link): Specify that 'name' argument is a CONST
768 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
769 declare new functions pe_walk_relocs_of_symbol and
770 pe_create_import_fixup.
771 * emultempl/pe.em: add new options --enable-auto-import,
772 --disable-auto-import, and --enable-extra-pe-debug.
773 (make_import_fixup): New function.
774 (pe_find_data_imports): New function.
775 (pr_sym): New function.
776 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
777 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
780 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
782 * ld.texinfo: add additional documentation for
783 --export-all-symbols. Document --out-implib,
784 --enable-auto-image-base, --disable-auto-image-base,
785 --dll-search-prefix, --enable-auto-import, and
786 --disable-auto-import.
787 * ldint.texinfo: Add detailed documentation on auto-import
790 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
792 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
795 2001-07-24 Alan Modra <amodra@bigpond.net.au>
797 * Makefile.am: Update dependencies with "make dep-am".
798 * Makefile.in: Regenerate
800 2001-07-23 Alan Modra <amodra@bigpond.net.au>
802 * ldcref.c (check_section_sym_xref): New function.
803 (check_nocrossrefs): Call it.
804 (check_nocrossref): Interate over h->refs here instead of..
805 (check_refs): ..here. Pass in the symbol name, section, and bfd
806 rather than hash_entry pointers.
807 (struct check_refs_info): Keep symbol name rather than hash entry.
809 (check_reloc_refs): Tweak for above changes in check_refs_info.
810 Only report references to section syms when symname is NULL to
811 prevent duplicate messages for the same reloc.
813 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
815 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
816 available. Do not print NULL trees.
817 (exp_print_token): Print unknown tokens with values > 126 as
818 decimal values not ASCII characters.
820 * ldlang.c (lang_leave_overlay): If a region is specified assign
821 it to all sections inside the overlay unless they have been
822 assigned to the own, non-default, memory region.
824 * README: Add header for consistency with other README files.
826 2001-07-14 H.J. Lu <hjl@gnu.org>
828 * emultempl/elf32.em (output_prev_sec_find): Never return
829 bfd_abs_section_ptr, bfd_com_section_ptr nor
832 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
834 * Makefile.am (em32relf.c): Change dependency from generic.em to
836 * Makefile.in: Regenerate.
838 2001-07-14 matthew green <mrg@eterna.com.au>
840 * configure.tgt (i386-*-netbsdelf*): New target.
841 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
843 2001-07-13 Jakub Jelinek <jakub@redhat.com>
845 * emultempl/elf32.em (output_prev_sec_find): New.
846 (place_orphan): Use it.
848 2001-07-11 H.J. Lu <hjl@gnu.org>
850 * ldmain.c (main): Fix typos in the last change.
852 2001-07-11 Jakub Jelinek <jakub@redhat.com>
854 * ldmain.c (main): Disallow -F and -f without -shared.
856 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
858 * emultempl/pe.em (after_open): Check for the output_bfd not
859 having any coff_data structure allocated to it.
861 2001-07-09 David O'Brien <obrien@FreeBSD.org>
863 * emultempl/elf32.em: Do not assuming that contents of the buffer
864 returned from basename function will remain unchanged accross other
867 2001-07-03 H.J. Lu <hjl@gnu.org>
869 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
870 2001-07-03. It creates dynamic entries even for static binaries.
872 2001-07-03 Jakub Jelinek <jakub@redhat.com>
874 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
875 (DYNAMIC): Use it to reserve few dynamic entries for
878 2001-06-27 Alan Modra <amodra@bigpond.net.au>
880 * emulparams/hppa64linux.sh: New file.
881 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
882 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
883 (ehppa64linux.c): Add rule to make it.
885 * Makefile.in: Regenerate.
887 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
889 * ld.texinfo (Options, -r): Mention restrictions when using
890 different object formats.
892 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
894 * ldlang.c (lang_check): Emit fatal error if relocatable link
895 between different object flavours with relocations in input.
897 2001-06-19 H.J. Lu <hjl@gnu.org>
899 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
900 (--version-script): Mention the language support.
902 2001-06-19 H.J. Lu <hjl@gnu.org>
904 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
906 2001-06-18 H.J. Lu <hjl@gnu.org>
908 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
909 (diststuff): Add $(MANS).
910 * Makefile.in: Regenerated.
914 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
916 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
917 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
918 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
919 * ld.h (args_type): Remove member export_dynamic. All users
920 changed to use struct bfd_link_info member.
922 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
923 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
924 * Makefile.in: Regenerate.
926 2001-06-18 H.J. Lu <hjl@gnu.org>
928 * ldlang.c (init_os): Add the newline to the einfo call.
929 (lang_check): Likewise.
930 (lang_do_version_exports_section): Likewise.
932 2001-06-15 H.J. Lu <hjl@gnu.org>
934 * lexsup.c (parse_args); Save optind to report unrecognized
937 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
939 * ldlang.c (lang_check): Emit fatal error if relocatable link
940 between different object flavours.
942 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
943 Set new link_info member export_dynamic.
944 * ldmain.c (main): Initialize new link_info member export_dynamic.
946 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
948 * ldlang.c (walk_wild): Only call walk_wild_file if
949 lookup_name returns something.
950 (lookup_name): If load_symbols fails, return NULL.
951 (load_symbols): Change to a boolean function.
952 (open_input_bfds): If load_symbols fails then do not make the
955 2001-06-08 Alan Modra <amodra@bigpond.net.au>
957 * ldlang.c (record_bfd_errors): Remove.
959 * emultempl/aix.em: Fix copyright dates.
961 2001-06-07 Andreas Jaeger <aj@suse.de>
963 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
964 (TEXT_START_ADDR): Likewise.
966 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
968 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
970 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
972 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
974 2001-05-31 H.J. Lu <hjl@gnu.org>
976 * ldlang.c (open_input_bfds): Don't change the bfd error
977 handler whilst loading symbols.
979 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
981 * configure.tgt: Remove i370-mvs architecture, it is not currently
984 2001-05-25 H.J. Lu <hjl@gnu.org>
986 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
987 like emulparams/aixppc.sh.
989 2001-05-25 H.J. Lu <hjl@gnu.org>
991 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
992 setting of output_filename after bfd_scan_arch.
993 * emultempl/pe.em: Likewise.
995 2001-05-25 H.J. Lu <hjl@gnu.org>
997 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
998 like emulparams/aixppc.sh.
1000 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1001 instead of ${srcdir}/emultempl/stringify.sed.
1003 2001-05-25 Timothy Wall <twall@oculustech.com>
1005 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1008 2001-05-25 Alan Modra <amodra@one.net.au>
1010 * configure.host: Replace linuxoldld with linux*oldld.
1011 * configure.tgt: Likewise.
1013 2001-05-24 H.J. Lu <hjl@gnu.org>
1015 * emultempl/stringify.sed: Removed again.
1017 2001-05-24 H.J. Lu <hjl@gnu.org>
1019 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1020 (gld${EMULATION_NAME}_before_parse): Initialize
1021 ldfile_output_architecture, ldfile_output_machine and
1022 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1023 * emultempl/beos.em: Likewise.
1024 * emultempl/elf32.em: Likewise.
1025 * emultempl/linux.em: Likewise.
1026 * emultempl/mipsecoff.em: Likewise.
1027 * emultempl/pe.em: Likewise.
1028 * emultempl/sunos.em: Likewise.
1030 2001-05-24 Tom Rix <trix@redhat.com>
1032 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1033 udate import file format.
1034 (change_symbol_mode) New, same
1035 (is_syscall) New, same
1036 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1037 * emulparams/aixppc64.sh : same
1038 * emulparams/aixrs6.sh : same
1039 * emulparams/ppcmacos.sh : same
1040 * emultempl/aix.em : use strtoull to parse options
1041 * Makefile.am : add eaixppc64 emulation for xcoff64
1042 * Makefile.in : same
1043 * configure.tgt : same
1045 * scripttempl/aix.sc : default text section offset to 0x10000000
1046 default data section offset to 0x20000000
1047 add .sv3264 and .sv64 pseudo sections
1048 loader and debug sections use the currect section offset.
1050 * emultempl/aix.em : Add xcoff64 support
1051 Add -binitfini support
1052 (gld${EMULATION_NAME}_before_parse) -binitfini
1053 (gld${EMULATION_NAME}_parse_args) same
1054 (gld${EMULATION_NAME}_before_allocation) format change for special
1057 * emulparams/aixppc64.sh : New file for xcoff64 support
1059 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1061 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1062 variable to avoid non-portable shell construct.
1064 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1066 * ldmain.c (get_emulation): Add -mips5 command line argument.
1068 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1070 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1071 (ELF_INTERPRETER_NAME): Define it.
1072 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1074 * configure.tgt (targ_emul, targ_extra_emuls)
1075 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1076 as primary, elf_i386 as extra.
1077 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1078 (eelf_i386_ldso.c): New rule.
1079 * Makefile.in: Rebuilt.
1081 2001-05-22 Nick Clifton <nickc@redhat.com>
1083 * lexsup.c (ld_options): Allow -I to be an alias for
1084 --dynamic-linker. This is for Solaris compatability.
1085 * ld.texinfo: Document that -I can be used.
1088 2001-05-16 Alan Modra <amodra@one.net.au>
1090 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1091 whether an input section is the first one assigned to an output
1093 Assorted formatting fixes.
1095 2001-05-14 DJ Delorie <dj@delorie.com>
1097 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1098 * Makefile.in: Ditto.
1100 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1102 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1103 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1105 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1107 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1109 * ldlang.c (lang_process): Call bfd_merge_sections.
1111 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1113 * ldgram.y: Fix typo.
1115 2001-05-03 H.J. Lu <hjl@gnu.org>
1117 * emultempl/elf32.em: Include "libiberty.h".
1118 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1119 basename of the bfd filename.
1120 (gld${EMULATION_NAME}_stat_needed): Likewise.
1121 (gld${EMULATION_NAME}_try_needed): Likewise.
1122 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1124 2001-05-02 H.J. Lu <hjl@gnu.org>
1126 * emultempl/pe.em: Include <ctype.h>.
1128 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1130 * emulparams/elf32openrisc.sh: New file.
1132 * Makefile.am: Add OpenRISC target.
1133 * Makefile.in: Regenerated.
1135 * configure.tgt: Add openrisc-*-* mapping.
1137 2001-05-02 Nick Clifton <nickc@redhat.com>
1139 * emultempl/aix.em: Replace buystring with xstrdup.
1140 * emultempl/beos.em: Replace buystring with xstrdup.
1142 2001-05-02 H.J. Lu <hjl@gnu.org>
1144 * ldfile.c: Include "libiberty.h".
1145 * ldlex.l: Likewise.
1147 * ldmisc.c (buystring): Removed.
1148 * ldmisc.h: Likewise.
1150 * ldfile.c: Replace buystring with xstrdup.
1151 * ldlang.c: Likewise.
1152 * ldlex.l: Likewise.
1153 * ldmain.c: Likewise.
1154 * ldmisc.c: Likewise.
1155 * lexsup.c: Likewise.
1156 * mpw-eppcmac.c: Likewise.
1158 2001-04-30 Andreas Jaeger <aj@suse.de>
1160 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1162 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1164 * ldlang.c (load_symbols): Give emulation a chance
1165 to process unrecognized file before fatal error is
1166 reported, not after.
1168 2001-04-27 Sean McNeil <sean@mcneil.com>
1170 * configure.tgt: Add arm-vxworks target.
1171 * scripttempl/armcoff.sc: Support .text or .data as a section name
1175 2001-04-13 J.T. Conklin <jtc@redback.com>
1177 * ld.texinfo: Document --fatal-warnings.
1180 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1181 warnings have been turned into errors.
1182 * lexsup.c (OPTION_WARN_FATAL): Define.
1183 (ld_options): Entry for --fatal-warnings.
1184 (parse_args): Handle OPTION_WARN_FATAL.
1185 * ld.h (ld_config_type): Add fatal_warnings field.
1187 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1189 * ldmain.c (main): Default to discard_sec_merge.
1190 * lexsup.c (OPTION_DISCARD_NONE): Define.
1191 (ld_options): Add --discard-none.
1192 (parse_args): Handle OPTION_DISCARD_NONE.
1193 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1194 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1195 all its input sections match.
1197 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1199 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1200 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1201 (eelf32ltsmip.c): New target.
1202 (eelf64btsmip.c): Likewise.
1203 (eelf64ltsmip.c): Likewise.
1204 * Makefile.in: Regenerated.
1206 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1208 (mips*-*-linux-gnu*): Likewise.
1210 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1212 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1214 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1217 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1219 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1220 correct value of __Stext here.
1221 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1224 * emulparams/crislinux.sh: Remove FIXME.
1226 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1228 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1229 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1231 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1233 * configure.tgt (cris-*-*): Change default emulation to criself.
1234 (cris-*-*aout*): New rule.
1236 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1238 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1239 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1241 2001-03-26 Andreas Jaeger <aj@suse.de>
1243 * ld.texinfo (Overview): Fix syntax in texi code.
1245 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1247 * ld.texinfo: Put @c man indications to generate the ld man page.
1248 When generating man, define all the variables. Define SEEALSO
1249 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1250 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1251 (ld.1): Generate from ld.texinfo.
1252 * Makefile.in: Regenerate.
1254 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1256 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1257 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1259 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1261 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1262 is an absolute path look only for this file and not along the path.
1264 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1266 * emultempl/elf32.em (OPTION_GROUP): New macro.
1267 Add new option Bgroup to longopts.
1268 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1269 (gld*_list_options): Add -Bgroup and -z defs.
1270 * ld.1: Document -Bgroup and -z defs.
1271 * ld.texinfo: Likewise.
1273 2001-03-07 Michael Meissner <meissner@redhat.com>
1275 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1276 with sections created by -fdata-sections.
1277 (.dynbss,.bss): Ditto.
1279 2001-03-05 Alan Modra <alan@linuxcare.com.au>
1281 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1282 after_allocation_default, not gld..._before_allocation.
1284 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1286 * configure.in (BFD_VERSION): New.
1287 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1288 * configure: Regenerate.
1289 * Makefile.am: Run "make dep-am"
1290 * Makefile.in: Regenerate.
1292 2001-02-26 Timothy Wall <twall@cygnus.com>
1294 * emulparams/elf64_aix.sh: Add additional read-only sections;
1295 uncomment lines which are now required.
1297 2001-02-26 H.J. Lu <hjl@gnu.org>
1299 * ldlang.c (open_input_bfds): Set the bfd error handler so
1300 that problems can be caught whilst loading symbols.
1301 (record_bfd_errors): New function: Report BFD errors and mark
1302 the executable output as being invalid.
1304 2001-02-22 Timothy Wall <twall@cygnus.com>
1306 * configure.host: Add configuration for ia64-*-aix*.
1307 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1308 Add dependencies for eelf64_aix.c.
1309 * Makefile.in: Regenerate.
1310 * configure.tgt: Add ia64-*-aix* mapping.
1311 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1312 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1315 2001-02-20 H.J. Lu <hjl@gnu.org>
1317 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1318 false if we found the file.
1320 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1322 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1323 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1325 2001-02-18 lars brinkhoff <lars@nocrew.org>
1327 * Makefile.am: Add PDP-11 target.
1328 * configure.tgt: Likewise.
1329 * emulparams/pdp11.sh: New file.
1331 2001-02-17 David O'Brien <obrien@FreeBSD.org>
1333 * configure.host: Add a generic FreeBSD configuration entry such that
1334 all [modern] FreeBSD systems on all platforms will look the same.
1336 2001-02-14 H.J. Lu <hjl@gnu.org>
1338 * configure.tgt: Remove mention of earmelf_linux26.
1340 2001-02-13 Richard Henderson <rth@redhat.com>
1342 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1344 2001-02-13 H.J. Lu <hjl@gnu.org>
1346 * ldexp.h (node_type): Add etree_provided.
1347 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1348 type to etree_provided if defined by PROVIDE. Allow updating
1350 (exp_print_tree): Handle etree_provided.
1351 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1354 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1356 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1357 .IA_64.unwind.* pattern to unwind table section and
1358 .IA_64.unwind_info* pattern to unwind info section.
1360 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1362 * Makefile.am: Add linux target for S/390.
1363 * Makefile.in: Likewise.
1364 * configure.host: Likewise.
1365 * configure.tgt: Likewise.
1366 * emulparams/elf64_s390.sh: New file.
1367 * emulparams/elf_s390.sh: New file.
1369 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1371 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1373 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1375 2001-02-06 Philip Blundell <philb@gnu.org>
1377 * Makefile.am: Remove mention of earmelf_linux26.
1378 * Makefile.in: Regenerate.
1380 2001-02-04 Philip Blundell <philb@gnu.org>
1382 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1383 * emulparams/armelf_linux26.sh: Delete.
1384 * configure.tgt: Remove mention of armelf_linux26 emulation.
1386 2001-02-01 Nick Clifton <nickc@redhat.com>
1388 * ld.1: Replace occurances of -oformat with --oformat.
1390 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1392 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1393 load_base is specified.
1395 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
1397 * emultempl/elf32.em: Correct spelling in comments and listed
1400 2001-01-23 Alan Modra <alan@linuxcare.com.au>
1402 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1403 default for the first section of a group of overlay sections.
1405 2001-01-22 Alan Modra <alan@linuxcare.com.au>
1407 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1408 * Makefile.in: Regenerate.
1409 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1410 Check for null tool_dir.
1412 2001-01-16 Jim Wilson <wilson@redhat.com>
1414 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1415 and IA_64.unwind.info.
1417 2001-01-16 H.J. Lu <hjl@gnu.org>
1419 * ldlang.c (lang_check): Merge the private data only if the
1420 input file has contents.
1422 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1424 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1426 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1427 enabling search for libmilli. On a relocatable link, make .text
1429 (LDEMUL_AFTER_PARSE): Define.
1430 (hppaelf_finish): Correct spelling of relocatable in comments.
1432 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1433 rummage through the script for sections on the unique list.
1434 Correct length of strncmp for ".note".
1435 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1437 * ldlang.c (unique_section_list): New var.
1438 (unique_section_p): New function.
1439 (walk_wild_section): Don't match sections on unique_section_list.
1440 (lang_add_unique): New function.
1441 Correct spelling of relocatable in comments.
1443 * ldlang.h (struct unique_sections): Declare.
1444 (unique_section_list): Declare.
1445 (unique_section_p): Declare.
1446 (lang_add_unique): Declare.
1448 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1449 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1451 * ld.texinfo (--unique): Update.
1453 2001-01-13 Nick Clifton <nickc@redhat.com>
1455 * lexsup.c (parse_args): Remove spurious white space.
1457 2001-01-12 Nick Clifton <nickc@redhat.com>
1459 * lexsup.c (parse_args): Update copyright date.
1461 2001-01-12 Philip Blundell <pb@futuretv.com>
1463 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1465 2001-01-10 Kazu Hirata <kazu@hxi.com>
1467 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1468 * scripttempl/h8300h.sc: Fix formatting.
1469 * scripttempl/h8300s.sc: Likewise.
1470 * scripttempl/h8500.sc: Likewise.
1471 * scripttempl/h8500b.sc: Likewise.
1472 * scripttempl/h8500c.sc: Likewise.
1473 * scripttempl/h8500m.sc: Likewise.
1474 * scripttempl/h8500s.sc: Likewise.
1476 2000-01-07 David O'Brien <obrien@BSDi.com>
1478 * emultempl/elf32.em: Only perform Linux ld hints processing when
1481 2001-01-07 Philip Blundell <philb@gnu.org>
1483 * ld.texinfo (Bug Reporting): Update email address for reports.
1485 2000-12-31 Nick Clifton <nickc@redhat.com>
1487 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1488 options by checking for a return value of '?' not -1.
1490 2000-12-28 Nick Clifton <nickc@redhat.com>
1492 * lexsup.c (struct ld_option): Add new enum value:
1494 (ld_options[]): Change -omagic, -output and -oformat options
1495 to be EXACTLY_TWO_DASHES.
1496 (OUTPUT_COUNT): Use ARRAY_SIZE.
1497 (parse_args): Change parameter 'argc' to unsigned.
1498 Place EXACTLY_TWO_DASHES options into new really_longopts
1500 If getopt_long_only fails, try calling getopt_long using the
1501 really_longopts array.
1502 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1505 * ldlex.h: Fix prototype of parse_args.
1507 * ld.texinfo: Document that long options starting with 'o'
1508 must be preceeded by two dashes. Change example of a single
1509 dashed long option from -oformat to -trace-symbol.
1511 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1513 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1514 (longopts[]): New --no-default-excludes option.
1515 (gld_${EMULATION_NAME}_list_options): Document.
1516 (gld_${EMULATION_NAME}_parse_args): Handle.
1518 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1520 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1521 whitespace, it breaks the K&R C preprocessor.
1523 2000-12-11 DJ Delorie <dj@redhat.com>
1525 * ld.texinfo: Add notes about --whole-archive and gcc.
1527 2000-11-18 Fred Fish <fnf@be.com>
1529 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1530 (ld_options): Entry for --allow-shlib-undefined.
1531 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1532 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1534 * ld.texinfo: Document new command line switch.
1536 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
1538 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1539 .fixup is actually read/write.
1540 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1541 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1542 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1544 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1546 * NEWS: Add note about x86_64 architecture.
1548 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1550 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1551 Set DWARF2 sections to a VMA of zero.
1553 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1555 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1557 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1558 (sparc*-*-rtems*): Switched from a.out to ELF.
1560 2000-11-30 Jan Hubicka <jh@suse.cz>
1562 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1563 (eelf_x86_64.c): New.
1564 * Makefile.in: Regenerate.
1565 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1566 * emulparams/elf_x86_64.sh: New.
1568 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
1570 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1571 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1573 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1574 merging non-a.out sections into CONSTRUCTING.
1576 2000-11-28 Nick Clifton <nickc@redhat.com>
1578 * ld.1 (COPYING): Mention that the GNU Free Documentation
1579 License is present in the sources, but not the output, and
1580 also available from the GNU website.
1581 (GNU Free Documentation License): Comment out this section.
1583 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1585 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1588 2000-11-25 David O'Brien <obrien@FreeBSD.org>
1590 * ld.1: Remove old date so it does not give the impression the manpage
1593 2000-11-24 Nick Clifton <nickc@redhat.com>
1595 * configure.tgt (xscale-coff): Add target.
1596 (xscale-elf): Add target.
1598 2000-11-24 Fred Fish <fnf@be.com>
1600 * ldmain.c (main): Remove redundant init of config.make_executable
1603 2000-11-15 Richard Henderson <rth@redhat.com>
1605 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1607 2000-11-14 Kazu Hirata <kazu@hxi.com>
1609 * scripttempl/h8300.sc: Fix formatting.
1610 * scripttempl/h8300h.sc: Likewise.
1611 * scripttempl/h8300s.sc: Likewise.
1613 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1615 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1617 2000-11-09 Philip Blundell <pb@futuretv.com>
1619 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1620 around orphan sections whose names can be represented in C.
1622 2000-11-07 Jim Wilson <wilson@redhat.com>
1624 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1625 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1627 2000-11-06 Nick Clifton <nickc@redhat.com>
1629 * ld.texinfo: Add GNU Free Documentation License.
1630 * ldint.texinfo: Add GNU Free Documentation License.
1631 * ld.1: Add GNU Free Documentation License.
1633 2000-11-05 Alan Modra <alan@linuxcare.com.au>
1635 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1636 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1638 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1639 Move 2000-11-02 Makefile.in changes to this file.
1640 * Makefile.in: Regenerate.
1642 2000-11-03 Nick Clifton <nickc@redhat.com>
1644 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1645 constructors and destructors.
1646 * scripttempl/h8300h.sc: Ditto.
1647 * scripttempl/h8300s.sc: Ditto.
1648 * scripttempl/h8500.sc: Ditto.
1649 * scripttempl/h8500b.sc: Ditto.
1650 * scripttempl/h8500c.sc: Ditto.
1651 * scripttempl/h8500m.sc: Ditto.
1652 * scripttempl/h8500s.sc: Ditto.
1653 * scripttempl/v850.sc: Ditto.
1654 * scripttempl/w65.sc: Ditto.
1655 * scripttempl/z8000.sc: Ditto.
1657 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1659 * Makefile.in (e_i386_chaos.c): New rule.
1660 (ALL_EMULATIONS): Added e_i386_chaos.o.
1661 * emulparams/elf_i386_chaos.sh: New file.
1662 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1664 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1666 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1667 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1668 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1669 library path suffix.
1670 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1672 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1674 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1675 for consecutive sections.
1677 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1679 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1681 * ld.texinfo: Added notes about this new option.
1683 2000-10-16 Nick Clifton <nickc@redhat.com>
1685 * emultempl/pe.em (_after_open): Add tests of return values from
1686 bfd functions. Emit appropriate error messages if necessary.
1688 2000-10-13 Nick Clifton <nickc@redhat.com>
1690 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1691 local variables - they are not used, but leave in the call to
1692 bfd_canonicalize_symtab.
1693 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1694 pe_dll_search_prefix.
1696 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
1698 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1699 (longopts): New --dll-search-prefix option.
1700 (gld_${EMULATION_NAME}_list_options): Document.
1701 (gld_${EMULATION_NAME}_parse_args): Handle.
1702 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1703 dynamically, search for a dll named '<prefix><basename>.dll'
1704 in preference to 'lib<basename>.dll' if --dll-search-prefix
1707 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1709 * ldlang.c (section_already_linked): Set kept_section instead of
1712 2000-10-10 Kazu Hirata <kazu@hxi.com>
1714 * deffile.h: Fix formatting.
1715 * lexsup.c: Likewise.
1718 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1720 * pe-dll.c (make_one): Do not generate code thunk for DATA
1722 (process_def_file): deduce DATA flag for auto-export sumbols.
1724 2000-10-09 Kazu Hirata <kazu@hxi.com>
1726 * ld.h: Fix formatting.
1727 * ldcref.c: Likewise.
1728 * ldctor.h: Likewise.
1729 * ldemul.c: Likewise.
1730 * ldemul.h: Likewise.
1731 * ldexp.c: Likewise.
1732 * ldexp.h: Likewise.
1733 * ldfile.c: Likewise.
1734 * ldfile.h: Likewise.
1735 * ldlang.c: Likewise.
1736 * ldlang.h: Likewise.
1737 * ldmain.c: Likewise.
1738 * pe-dll.c: Likewise.
1740 * pe-dll.c: Revert some formatting fixes.
1742 2000-10-08 Kazu Hirata <kazu@hxi.com>
1744 * pe-dll.c: Fix formatting.
1746 2000-10-05 Kazu Hirata <kazu@hxi.com>
1748 * ldlang.c: Fix formatting.
1750 2000-10-03 DJ Delorie <dj@redhat.com>
1752 * pe-dll.c (fill_edata): initialize entire block
1753 (make_one): fill in correct section.
1755 2000-10-03 Kazu Hirata <kazu@hxi.com>
1757 * ldexp.c: Fix formatting.
1759 2000-10-02 DJ Delorie <dj@redhat.com>
1761 * emultempl/pe.em (gld_*_after_open): detect case where there two
1762 import libraries for same dll; rename one to ensure proper link
1765 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1767 (generate_edata): fix typo
1769 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
1771 * scripttempl/crisaout.sc (ENTRY): Now __start.
1772 (.text): Add default setting for __start.
1773 Remove CONSTRUCTORS handling.
1774 (/DISCARD/): Add .gnu.warning.*.
1775 * emulparams/crislinux.sh (ENTRY): Now __start.
1776 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
1777 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
1778 (ENTRY): Now __start.
1779 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
1780 (EXECUTABLE_SYMBOLS): Add default setting for __start.
1782 2000-09-29 Kazu Hirata <kazu@hxi.com>
1784 * deffile.h: Fix formatting.
1786 * ldcref.c: Likewise.
1787 * ldctor.c: Likewise.
1788 * ldctor.h: Likewise.
1789 * ldemul.c: Likewise.
1790 * ldemul.h: Likewise.
1791 * ldexp.c: Likewise.
1792 * ldexp.h: Likewise.
1793 * ldfile.c: Likewise.
1794 * ldfile.h: Likewise.
1795 * ldlang.c: Likewise.
1796 * ldlang.h: Likewise.
1797 * lexsup.c: Likewise.
1799 * pe-dll.c: Likewise.
1801 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1803 * pe-dll.c (process_def_file): Uninitialized data wasn't
1804 exported with --export-all-symbols switch.
1806 2000-09-28 DJ Delorie <dj@redhat.com>
1808 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
1809 noname work properly.
1811 2000-09-28 Alan Modra <alan@linuxcare.com.au>
1813 * ld.texinfo (HPPA ELF32): New section.
1815 * emultempl/hppaelf.em (group_size): New.
1816 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
1817 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
1818 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
1819 options to prevent abbreviations matching.
1820 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
1821 (PARSE_AND_LIST_ARGS_CASES): Handle it.
1823 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1825 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
1826 on the m68*-*-elf target. Make it support COFF input objects.
1828 2000-09-21 Kazu Hirata <kazu@hxi.com>
1830 * ldmain.c: Fix formatting.
1831 * ldmisc.c: Likewise.
1832 * ldver.c: Likewise.
1833 * ldwrite.c: Likewise.
1835 2000-09-21 Alan Modra <alan@linuxcare.com.au>
1837 * ldwrite.c (clone_section): Silence gcc warnings.
1839 2000-09-20 Alan Modra <alan@linuxcare.com.au>
1841 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
1842 out of memory failure.
1844 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
1845 (clone_section): Handle out of memory failures. Rename var to
1846 avoid c++ reserved word.
1848 2000-09-18 Alan Modra <alan@linuxcare.com.au>
1850 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
1851 stub_name param to stub_sec_name.
1852 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
1854 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1856 * emultempl/m68kelf.em: New file.
1857 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
1858 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
1859 * Makefile.in: Regenerate.
1861 2000-09-15 Alan Modra <alan@linuxcare.com.au>
1863 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
1866 2000-09-13 Nick Clifton <nickc@redhat.com>
1868 * ldmain.c (multiple_definition): Disable relaxation if
1869 multiple symbol definitions are encountered - otherwise the
1870 linker could abort with an assertion failure.
1872 2000-09-10 Nick Clifton <nickc@redhat.com>
1874 * mri.c: Fix formatting.
1876 2000-09-07 H.J. Lu <hjl@gnu.org>
1878 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
1879 * configure: Rebuild.
1881 2000-09-07 H.J. Lu <hjl@gnu.org>
1883 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
1884 * Makefile.in: Rebuild.
1886 2000-09-07 Alan Modra <alan@linuxcare.com.au>
1888 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
1889 broken list handling. Create __start_SECNAME and __stop_SECNAME
1890 when no place-holder. Add some comments. Test both SEC_CODE and
1891 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
1892 Handle case where no output section statement created.
1894 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
1896 * configure.tgt (sh-*-linux*): Added.
1897 * Makefile.am: Added eshelf_linux and eshlelf_linux.
1898 * Makefile.in: Rebuilt.
1899 * emulparams/shelf_linux.sh: New file.
1900 * emulparams/shlelf_linux.sh: New file.
1902 2000-09-06 Alan Modra <alan@linuxcare.com.au>
1904 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1905 try shuffling sections when the orphan happens to be the place
1906 holder. Keep count of unique section names generated so we speed
1907 the search for a new name.
1909 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
1911 * configure: Rebuilt with new libtool.m4.
1913 2000-09-05 Nick Clifton <nickc@redhat.com>
1915 * Makefile.in: Regenerate.
1916 * aclocal.m4: Regenerate.
1917 * configure: Regenerate.
1918 * config.in: Regenerate.
1919 * po/ld.pot: Regenerate.
1921 * ldint.texinfo: Remove CVS revision marker - it foils local
1924 * emultempl/ticoff.em: Remove extraneous comma.
1926 2000-09-05 Alan Modra <alan@linuxcare.com.au>
1928 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
1929 to stub section flags.
1930 (hppa_for_each_input_file_wrapper): New.
1931 (hppa_lang_for_each_input_file): New.
1932 (lang_for_each_input_file): Define to call above.
1933 (multi_subspace): New.
1934 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
1935 (PARSE_AND_LIST_PROLOGUE): Define.
1936 (PARSE_AND_LIST_LONGOPTS): Define.
1937 (PARSE_AND_LIST_OPTIONS): Define.
1938 (PARSE_AND_LIST_ARGS_CASES): Define.
1939 (hppaelf_finish): Call elf32_hppa_set_gp.
1940 (hppaelf_set_output_arch): Remove.
1941 (LDEMUL_SET_OUTPUT_ARCH): Remove.
1943 * emulparams/hppalinux.sh (ELFSIZE): Define.
1945 (OTHER_READONLY_SECTIONS): Define.
1947 (GENERATE_SHLIB_SCRIPT): Define.
1949 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
1950 to const throughout. Change `void *' to `PTR' throughout.
1951 (lang_memory_default): Function is local to file, add `static'.
1953 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
1954 (ehppalinux.c): Likewise.
1955 (earmelf.c): Likewise.
1956 (earmelf_linux.c): Likewise.
1957 (earmelf_linux26.c): Likewise.
1958 * Makefile.in: Regenerate.
1960 * ld.h (ld_config_type): Add unique_orphan_sections.
1961 * lexsup.c (OPTION_UNIQUE): Define.
1962 (ld_options): Add "--unique".
1963 (parse_args): Handle it.
1964 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1965 search for an existing output section if unique_orphan_sections is
1966 set. Make use of bfd_get_unique_section_name rather than
1967 duplicating code here.
1968 * ld.texinfo: Describe --unique.
1970 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
1971 optional arg to split-by-file.
1972 (parse_args): Handle them.
1973 * ld.texinfo: Update description of these options.
1974 * ldwrite.c (clone_section): Pass in the section name. Replace
1975 local code with bfd_get_unique_section_name.
1976 (split_sections): Tidy code and comments. Use a list traversal
1977 more appropriate to the list construction. Handle cooked section
1978 sizes. Split when split_by_reloc reached rather than exceeded.
1979 Track section size and split when split_by_file reached. Fix
1980 link_order_tail (even though it's not used).
1981 (ldwrite): Modify condition for calling split_sections to suit
1982 changed split_by_reloc and split_by_file.
1983 * ldmain.c (main): Init config.split_by_reloc and
1984 config.split_by_file to -1.
1985 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
1986 Change split_by_file to bfd_size_type.
1988 2000-09-02 Nick Clifton <nickc@redhat.com>
1990 * configure.in: Increase version number to 2.10.91.
1991 * NEWS: Mention new ability to support removal of duplicate DWARF2
1993 * configure: Regenerate.
1994 * aclocal.m4: Regenerate.
1995 * config.in: Regenerate.
1997 2000-09-02 Daniel Berlin <dberlin@redhat.com>
1999 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2001 * scripttempl/elf32avr.sc: Ditto.
2002 * scripttempl/elfd10v.sc: Ditto.
2003 * scripttempl/elfd30v.sc: Ditto.
2004 * scripttempl/elfi370.sc: Ditto.
2005 * scripttempl/elfm68hc11.sc: Ditto.
2006 * scripttempl/elfm68hc12.sc: Ditto.
2007 * scripttempl/elfi386beos.sc: Ditto.
2008 * scripttempl/v850.sc: Ditto.
2010 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2012 * acinclude.m4: Include libtool and gettext macros from the
2014 * aclocal.m4, configure: Rebuilt.
2016 2000-08-25 Nick Clifton <nickc@redhat.com>
2018 * ldlang.c (open_output): When choosing the target for a
2019 particular endianness, do nothing if the target is not
2022 2000-08-25 H.J. Lu <hjl@gnu.org>
2024 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2025 check -rpath nor LD_RUN_PATH for cross link.
2026 * ld.texinfo: Document the change.
2028 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2030 * NEWS: Mention support for CRIS.
2032 2000-08-23 H.J. Lu <hjl@gnu.org>
2034 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2035 the current runpath list from bfd_elf_get_runpath_list ()
2038 2000-08-22 H.J. Lu <hjl@gnu.org>
2040 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2041 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2042 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2043 trace_file_tries is non-zero.
2044 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2045 if trace_file_tries is non-zero.
2047 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2050 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2052 * NEWS: Mention i860 support.
2054 2000-08-14 Andreas Schwab <schwab@suse.de>
2056 * scripttempl/elf.sc: Fix last change to use correct comment
2059 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2061 * scripttempl/elf.sc: Add a comment giving the correspondence
2062 between sections, per-datum sections, and linkonce sections. Make
2063 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2066 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2068 * emulparams/elf32_i860.sh: New file.
2069 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2070 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2071 (eelf32_i860.c): New rule.
2072 * Makefile.in: Regenerate.
2074 2000-08-10 Nick Clifton <nickc@cygnus.com>
2076 * emulparams/mipspe.sh (ENTRY): Add definition.
2078 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2080 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2083 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2085 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2086 the final size of .bss section.
2087 * scripttempl/elfm68hc12.sc: Likewise.
2089 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2091 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2092 gld${EMULATION_NAME}_parse_args for consistency. Combine
2093 lastoptind and prevoptind vars, and keep track of last optind.
2094 (gld_${EMULATION_NAME}_list_options): Rename to
2095 gld${EMULATION_NAME}_list_options.
2097 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2099 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2100 (i586-sco-sysv5uw7.1.0).
2102 2000-07-27 H.J. Lu <hjl@gnu.org>
2104 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2105 (PARSE_AND_LIST_PROLOGUE): New.
2106 (PARSE_AND_LIST_LONGOPTS): Likewise.
2107 (PARSE_AND_LIST_OPTIONS): Likewise.
2108 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2109 (PARSE_AND_LIST_EPILOGUE): Likewise.
2111 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2113 * emultempl/armelf.em: Elide functions common to elf32.em,
2114 ie. most of the file.
2115 (arm_elf_after_open): New. Do arm specific things then call
2116 gld${EMULATION_NAME}_after_open.
2117 (arm_elf_before_allocation): New. Call
2118 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2119 (PARSE_AND_LIST_PROLOGUE): Define.
2120 (PARSE_AND_LIST_SHORTOPTS): Define.
2121 (PARSE_AND_LIST_LONGOPTS): Define.
2122 (PARSE_AND_LIST_OPTIONS): Define.
2123 (PARSE_AND_LIST_ARGS_CASES): Define.
2124 (LDEMUL_AFTER_OPEN): Define.
2125 (LDEMUL_BEFORE_ALLOCATION): Define.
2126 (LDEMUL_BEFORE_PARSE): Define.
2127 (LDEMUL_FINISH): Define.
2129 * emultempl/hppaelf.em: Similarly zap most of this file.
2130 (hppaelf_add_stub_section): Prototype.
2131 (hppaelf_layaout_sections_again): Prototype.
2132 (hook_in_stub): Prototype.
2133 (LDEMUL_SET_OUTPUT_ARCH): Define.
2134 (LDEMUL_FINISH): Define.
2135 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2137 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2138 (EXTRA_EM_FILE): New.
2139 * emulparams/armelf_linux.sh: Likewise.
2140 * emulparams/armelf_linux26.sh: Likewise.
2141 * emulparams/hppalinux.sh: Likewise.
2142 * emulparams/hppaelf.sh: Likewise.
2145 * emultempl/elf32.em: Fix formatting.
2146 (EXTRA_EM_FILE): Source it.
2147 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2148 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2149 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2150 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2151 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2152 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2153 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2154 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2155 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2156 allow functions in this file to be overridden.
2157 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2159 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2161 * emultempl/elf32.em: Reorganize file.
2163 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2165 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2166 specific option to fit 64-bit executable in the lower
2167 31-bit address range. This is done by changing start
2168 address of .interp (the very first section of executable)
2169 and then setting EF_ALPHA_32BIT elf header flag.
2171 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2173 * emultempl/m68kcoff.em: New file.
2174 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2175 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2177 * Makefile.in: Regenerate.
2179 2000-07-20 H.J. Lu <hjl@gnu.org>
2181 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2182 and "disable-new-dtags" to stop getopt from treating -d/-e as
2183 abbreviations for these options.
2185 2000-07-20 H.J. Lu <hjl@gnu.org>
2187 * ld.texinfo: Add documentation for --disable-new-dtags and
2190 * ldmain.c (main): Initialize link_info.new_dtags to false.
2192 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2193 --disable-new-dtags and --enable-new-dtags.
2194 (gld_${EMULATION_NAME}_list_options): Likewise.
2196 2000-07-05 Kenneth Block <krblock@computer.org>
2198 * lexsup.c: Add optional style to demangle switch
2199 * ld.texinfo: Document optional style to demangle switch.
2201 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2203 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2205 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2206 Regenerate dependencies.
2207 * Makefile.in: Rebuild.
2208 * configure.tgt (cris-*-*): New target.
2209 * emulparams/crisaout.sh, emulparams/criself.sh,
2210 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2211 * po/POTFILES.in, po/ld.pot: Regenerate.
2213 2000-07-20 H.J. Lu <hjl@gnu.org>
2215 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2216 Print out ignored -z options.
2218 2000-07-19 H.J. Lu <hjl@gnu.org>
2220 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2221 (PARSE_AND_LIST_PROLOGUE): New.
2222 (PARSE_AND_LIST_LONGOPTS): Likewise.
2223 (PARSE_AND_LIST_OPTIONS): Likewise.
2224 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2226 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2228 * lexsup.c (ld_options): Comment out 'z'.
2229 (parse_args): Likewise.
2231 * emultempl/elf32.em: Include "elf/common.h".
2232 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2234 (gld_${EMULATION_NAME}_list_options): Likewise.
2236 * ld.texinfo: Add documentation for the recognized -z options.
2238 2000-07-19 H.J. Lu <hjl@gnu.org>
2240 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2241 bfd_elf_set_dt_needed_soname ().
2243 2000-07-18 DJ Delorie <dj@cygnus.com>
2245 * pe-dll.c (pe_dll_id_target): check object target name also
2247 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
2249 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2250 ${INIT_END} if relocating.
2251 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2253 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2255 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2256 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2257 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2258 errors introduced by the old dynamic lib search order.
2260 2000-07-17 DJ Delorie <dj@cygnus.com>
2262 * pe-dll.c (process_def_file): auto-export data items also
2263 (pe_process_import_defs): also see if _imp_ form needed
2265 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2267 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2268 for dll import libraries
2270 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2272 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2273 gcc 2.95.2 and later.
2275 2000-07-11 Kazu Hirata <kazu@hxi.com>
2277 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2280 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2282 * ldemul.h (struct lang_input_statement_struct): Remove forward
2284 (struct search_dirs): Likewise.
2285 * ldfile.h (struct lang_input_statement_struct): Likewise.
2286 Protect file from multiple inclusion.
2287 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2288 declaration from macro to file scope.
2290 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2291 * ldgram.y: Likewise here.
2292 * ldlang.c: And here.
2293 * ldmain.c: And here.
2294 * mpw-elfmips.c: And here.
2295 * mpw-eppcmac.c: And here.
2296 * emultempl/aix.em: And here.
2297 * emultempl/armcoff.em: And here.
2298 * emultempl/armelf.em: And here.
2299 * emultempl/armelf_oabi.em: And here.
2300 * emultempl/beos.em: And here.
2301 * emultempl/elf32.em: And here.
2302 * emultempl/hppaelf.em: And here.
2303 * emultempl/linux.em: And here.
2304 * emultempl/lnk960.em: And here.
2305 * emultempl/pe.em: And here.
2306 * emultempl/sunos.em: And here.
2307 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2308 * mpw-idtmips.c: Ditto.
2309 * emultempl/generic.em: Ditto.
2310 * emultempl/gld960.em: Ditto.
2311 * emultempl/gld960c.em: Ditto.
2312 * emultempl/mipsecoff.em: Ditto.
2313 * emultempl/ticoff.em: Ditto.
2314 * emultempl/vanilla.em: Ditto.
2316 * pe-dll.c: Include ldfile.h
2317 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2319 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2320 arguments to bfd_elf32_size_dynamic_sections call.
2321 (gldelf32ebmip_place_orphan): Add missing arguments to
2322 lang_leave_output_section_statement call.
2324 2000-07-10 H.J. Lu <hjl@gnu.org>
2326 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2328 (strhash): Likewise.
2329 (compute_dll_image_base): Likewise.
2330 (pe_undef_found_sym): Likewise.
2331 (pe_undef_cdecl_match): Likewise.
2332 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2333 argument "arch" with ATTRIBUTE_UNUSED.
2335 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2337 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2339 From Ryan Bradetich <rbradetich@uswest.net>
2340 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2342 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2344 Changes to create multiple linker stubs, positioned immediately
2345 before the section where they are required.
2346 * emultempl/hppaelf.em: Include elf32-hppa.h.
2347 (stub_sec, file_chain): Delete.
2348 (hppaelf_create_output_section_statements): Don't make a stub
2350 (hook_stub_info): New struct.
2351 (hook_in_stub): New function.
2352 (hppaelf_add_stub_section): New function.
2353 (hppaelf_finish): Do nothing for relocateable links. Modify the
2354 call to elf32_hppa_size_stubs. Move code for updating section
2356 (hppaelf_layaout_sections_again): ..to here, a new function.
2358 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2359 broken list handling. Pass in a pointer to the list.
2360 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2362 (hppaelf_before_parse): Prototype.
2363 (hppaelf_set_output_arch): Prototype.
2364 (hppaelf_create_output_section_statements): Prototype.
2365 (hppaelf_delete_padding_statements): Prototype.
2366 (hppaelf_finish): Prototype.
2369 * emultempl/hppaelf.em: Include ctype.h.
2370 (struct orphan_save): New.
2371 (gld${EMULATION_NAME}_place_orphan): New.
2372 (output_rel_find): New.
2373 (hppaelf_get_script): Update from elf32.em.
2374 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2375 Change emulation_name field to "${EMULATION_NAME}". Add
2376 gld${EMULATION_NAME}_place_orphan.
2378 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2379 ehppalinux.o, sort it. Regenerate dependencies.
2380 (ehppalinux.c): Depend on hppaelf.em
2381 * Makefile.in: Regenerate.
2383 * configure.tgt: targ_emul=hppalinux for hppa*linux
2385 * emulparams/hppalinux.sh: New.
2386 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2388 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2390 * lexsup.c (parse_args): Copy section name.
2392 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
2394 * emultempl/pe.em: institute the following search order for
2395 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2396 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2397 static lib (libfoo.a) if none of the above are found.
2399 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2401 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2402 (longopts): New --{enable,disable}-auto-image-base options.
2403 (gld_${EMULATION_NAME}_list_options): Document.
2404 (gld_${EMULATION_NAME}_parse): Handle.
2405 (strhash): New static function.
2406 (compute_dll_image_base): New static function.
2407 (gld_${EMULATION_NAME}_set_symbols): Use.
2409 2000-07-05 DJ Delorie <dj@redhat.com>
2413 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2415 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2416 * emulparams/elf32btsmip.sh: New file.
2417 * Makefile.am: Add traditional mips target.
2418 * Makefile.in: Rebuild.
2420 2000-07-01 H.J. Lu <hjl@gnu.org>
2422 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2423 automake to use YLWRAP.
2424 * Makefile.in: Rebuild.
2426 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2428 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2429 (CLEANFILES): Add DEPA.
2430 * Makefile.in: Regenerate.
2432 2000-06-30 Timothy Wall <twall@ppc>
2434 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2435 the page in the upper octet of the address.
2437 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2439 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2441 2000-06-24 Alan Modra <alan@linuxcare.com.au>
2443 * NEWS: arm-elf does --gc-sections too.
2445 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2447 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2449 * Makefile.in: Regenerate.
2451 2000-06-21 H.J. Lu <hjl@gnu.org>
2453 * Makefile.am: Rebuild dependency.
2454 * Makefile.in: Rebuild.
2456 2000-06-20 H.J. Lu <hjl@gnu.org>
2458 * Makefile.am: Rebuild dependency.
2459 * Makefile.in: Rebuild.
2461 2000-06-20 Timothy Wall <twall@cygnus.com>
2463 * scripttempl/tic54xcoff.sc: New.
2464 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2465 * gen-doc.texi: Add flag for TI COFF.
2466 * ld.texinfo: Add documentation for TI COFF handling switches.
2467 * emultempl/ticoff.em: New. TI COFF handling.
2468 * configure.tgt: Add tic54x target.
2469 * Makefile.am: Add tic54x target.
2470 * Makefile.in: Ditto.
2472 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2474 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2475 checking for backslashes.
2477 2000-06-19 Alan Modra <alan@linuxcare.com.au>
2479 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2481 2000-06-18 Alan Modra <alan@linuxcare.com.au>
2483 * NEWS: Update list of targets supporting --gc-sections.
2485 * scripttempl/elf.sc: KEEP .eh_frame contents.
2486 * scripttempl/elfd30v.sc: Same here.
2488 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2490 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2492 * Makefile.in: Rebuild.
2493 * configure.tgt: Recognize m68hc12 and m68hc11.
2494 * scripttempl/elfm68hc12.sc: New file.
2495 * emulparams/m68hc12elfb: New emulation.
2496 * emulparams/m68hc12elf: New emulation.
2497 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2498 (includes a memory.x script to define the ROM and RAM banks).
2499 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2500 New configuration files for support of Motorola 68hc11
2502 2000-06-15 Alan Modra <alan@linuxcare.com.au>
2504 * ldmain.c (main): Only change SEC_READONLY for final link.
2506 2000-06-13 H.J. Lu <hjl@gnu.org>
2508 * configure: Regenerate.
2510 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2512 * configure.in (VERSION): Update to show this is the CVS mainline.
2514 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2516 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2517 input objects to be ECOFF.
2518 (check_sections): einfo takes %B, not %P, to print a BFD name.
2520 2000-06-05 Michael Matz <matz@ifh.de>
2522 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2525 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2527 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2529 * emulparams/avr1200.sh (STACK): Define as 0.
2530 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2531 * emulparams/avr4433.sh (STACK): Likewise.
2532 * emulparams/avr44x4.sh (STACK): Likewise.
2533 * emulparams/avr85xx.sh (STACK): Likewise.
2534 * emulparams/avrmega103.sh (STACK): Likewise.
2535 * emulparams/avrmega161.sh (STACK): Likewise.
2536 * emulparams/avrmega603.sh (STACK): Likewise.
2537 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2538 (__stack): Define from ${STACK} for main().
2540 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2542 * Makefile.am: Update dependencies with "make dep-am"
2543 * Makefile.in: Regenerate.
2545 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2547 * ldmain.c: Include filenames.h.
2548 (set_scripts_dir): Support backslashes in program name.
2550 2000-05-22 Igor Shevlyakov <igor@windriver.com>
2552 * ldmain.c (main): When deciding if ".text" section should be
2553 read-only, don't forget to reset SEC_READONLY because it
2554 could be already set.
2556 2000-05-22 Thomas de Lellis <tdel@windriver.com>
2558 * ld.1: Add documentation for new command line option:
2559 --section-start <sectionname>=<sectionorg>
2560 This is a generic version of -Ttext etc. which accepts
2561 any section name as a parameter instead of just text/data/
2563 * ld.texinfo: More docs.
2565 * lexsup.c: (parse_args): Recognize new command line option.
2566 (ld_options): Add new option.
2568 2000-05-18 H.J. Lu <hjl@gnu.org>
2570 * lexsup.c (parse_args): `i' == `r', not `q'.
2572 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2574 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2576 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2577 Rick Gorton <gorton@scrugs.lkg.dec.com>
2579 Add support for '-q' == '--emit-relocs' switch.
2580 * ldmain.c (main): Default to false.
2581 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2582 * NEWS: Describe the emitrelocations switch.
2583 * ld.texinfo: Describe the emitrelocations switch.
2585 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2587 * emultempl/pe.em (_open_dynamic_archive): New function: Search
2588 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2589 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2592 2000-05-15 David O'Brien <obrien@FreeBSD.org>
2594 * lexsup.c (parse_args): Update the year in the copyright notice.
2596 2000-05-13 Alan Modra <alan@linuxcare.com.au>
2598 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2599 Replace defines with those from intl/libgettext.h to quieten gcc
2602 2000-05-10 H.J. Lu <hjl@gnu.org>
2604 * ldlang.c (open_input_bfds): Don't load the same file within
2605 a group again if the whole archive has been loaded already.
2607 2000-05-03 Alan Modra <alan@linuxcare.com.au>
2609 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2610 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2613 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2615 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2617 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2618 host "ia64-*-linux-gnu*".
2620 2000-04-29 Andreas Jaeger <aj@suse.de>
2622 * ld.h: Correctly check GCC version.
2624 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2626 * Makefile.am: Add PA64 support. Add missing dependencies for
2628 * Makefile.in: Rebuilt.
2629 * configure.tgt: Add PA64 support (currently disabled).
2631 2000-04-25 Alan Modra <alan@linuxcare.com.au>
2633 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2634 (output_rel_find): New function.
2635 (hold_section, hold_use): Delete.
2636 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2637 hold_interp): Make local to place_orphan.
2638 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2639 rather than place_section to find possible previous use of orphan.
2640 Similarly find the place-holder output sections. Use returned
2641 value from lang_enter_output_section_statement rather than calling
2642 lang_output_section_statement_lookup.
2643 * emultempl/armelf.em: Same here.
2644 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2646 * ldlang.c (lang_enter_output_section_statement): Return output
2648 * ldlang.h (lang_enter_output_section_statement): Change
2651 * ldlang.h (lang_output_section_statement): Export it.
2652 * ldlang.c (lang_output_section_statement): Ditto.
2654 2000-04-24 Nick Clifton <nickc@cygnus.com>
2656 * ld.texinfo (Output Section Data): Add note that section data
2657 commands cannot appear outside of section directives.
2659 2000-04-2 Matthew Green <mrg@cygnus.com>
2661 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2663 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2664 David Mosberger <davidm@hpl.hp.com>
2666 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2667 (eelf64_ia64.c): New rule.
2668 * Makefile.in: Rebuild.
2669 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2670 * emulparams/elf64_ia64.sh: New file.
2672 2000-04-21 Richard Henderson <rth@cygnus.com>
2674 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2676 2000-04-19 Alan Modra <alan@linuxcare.com.au>
2678 * dep-in.sed: Match space at start of file name, not at end.
2680 2000-04-18 H.J. Lu <hjl@gnu.org>
2682 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2683 lang_leave_output_section_statement () after calling
2684 lang_enter_output_section_statement ().
2685 * emultempl/armelf.em: Likewise.
2687 2000-04-18 Alan Modra <alan@linuxcare.com.au>
2689 * emultempl/elf32.em (struct orphan_save): Add section field.
2690 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2691 better order, and place first orphan section as we did before the
2692 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2693 Don't call make_bfd_section here, let wild_doit do the job for us.
2694 Don't build a statement list when we'll only throw it away.
2695 * emultempl/armelf.em: Ditto.
2696 * emultempl/pe.em: Similarly.
2698 2000-04-14 Geoff Keating <geoffk@cygnus.com>
2700 * scripttempl/elfppc.sc: Remove.
2701 * emulparams/elf32ppc.sh: Use elf.sc.
2702 * emulparams/elf32lppc.sh: Use elf.sc.
2703 * emulparams/elf32ppclinux.sh: Use elf.sc.
2704 * emulparams/elf32ppcsim.sh: New file.
2705 * emulparams/elf32lppcsim.sh: New file.
2706 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2707 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2708 * Makefile.in: Regenerate.
2709 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2711 2000-04-14 Alan Modra <alan@linuxcare.com.au>
2713 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
2714 ~SEC_ALLOC sections too. Init start address of debug sections.
2715 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2716 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2717 Also set all relocateable section start addresses.
2719 2000-04-13 Geoff Keating <geoffk@cygnus.com>
2721 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2722 Add new BSS_PLT variable for when .plt need not be contained in
2723 the file. Move _etext so that it is also after .fini, and provide
2724 both etext and _etext with a leading underscore. Mark the start
2727 2000-04-12 Alan Modra <alan@linuxcare.com.au>
2729 * emultempl/elf32.em (struct orphan_save): New.
2730 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2731 hold_interp): Make them struct orphan_save.
2732 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2733 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2734 the end of the relevant section list. Also add associated section
2735 statements to the end of any previous orphan statements.
2736 * emultempl/armelf.em: Similarly.
2737 * emultempl/pe.em: Similarly.
2739 2000-04-11 Alan Modra <alan@linuxcare.com.au>
2741 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2743 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
2745 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
2746 --enable-build-warnings option.
2747 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2748 * Makefile.in, configure: Re-generate.
2750 2000-04-04 Alan Modra <alan@linuxcare.com.au>
2752 * po/ld.pot: Regenerate.
2754 * lexsup.c (help): Restore translated part of bug string.
2756 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2757 (DEP): Quote when passing vars to sub-make. Add warning message
2759 (DEP1): Rewrite for "gcc -MM".
2760 (CLEANFILES): Add DEP2.
2761 Update dependencies.
2762 * Makefile.in: Regenerate.
2764 2000-04-03 Alan Modra <alan@linuxcare.com.au>
2766 * ld.h: #include "bin-bugs.h"
2767 * lexsup.c (help): Use REPORT_BUGS_TO.
2769 2000-03-27 Denis Chertykov <denisc@overta.ru>
2771 * configure.tgt (avr-*-*): New target support.
2772 * Makefile.am: Likewise.
2773 * scripttempl/elf32avr.sc: New script file.
2774 * emulparams/avr1200.sh: New file.
2775 * emulparams/avr23xx.sh: New file.
2776 * emulparams/avr4433.sh New file.
2777 * emulparams/avr44x4.sh New file.
2778 * emulparams/avr85xx.sh New file.
2779 * emulparams/avrmega103.sh New file.
2780 * emulparams/avrmega161.sh New file.
2781 * emulparams/avrmega603.sh New file.
2782 * Makefile.in: Regenerate.
2784 2000-03-09 Andreas Jaeger <aj@suse.de>
2786 * Makefile.am (check-DEJAGNU): Also unset LANG.
2787 * Makefile.in: Rebuild.
2789 2000-03-06 Ian Lance Taylor <ian@zembu.com>
2791 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
2794 2000-03-02 H.J. Lu <hjl@gnu.org>
2796 * emulparams/elf32mcore.sh: Include "getopt.h".
2798 2000-03-01 Ian Lance Taylor <ian@zembu.com>
2800 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
2802 2000-03-01 H.J. Lu <hjl@gnu.org>
2804 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
2805 * emulparams/shpe.sh: Likewise.
2807 2000-03-01 Nick Clifton <nickc@cygnus.com>
2809 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
2810 to unused parameters.
2812 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
2813 functions only used by DLL code.
2814 (_place_orphan): Initialise 'dollar'.
2816 2000-03-01 H.J. Lu <hjl@gnu.org>
2818 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
2819 indicate if the undefined symbol is a fatal error or not.
2820 Don't delete the output file if "fatal" is false.
2822 2000-02-29 H.J. Lu <hjl@gnu.org>
2824 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
2825 Set LC_COLLATE and LC_ALL to null and export them. It is for
2826 sort which expects the C locale.
2827 Add $(LIBS) to all $(HOSTING_LIBS).
2828 * Makefile.in: Rebuild.
2830 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
2832 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
2833 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
2834 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
2835 (ld_emulation_xfer_struct): Add missing NULL initialiser for
2836 find_potential_libraries.
2838 2000-02-28 Jim Blandy <jimb@redhat.com>
2840 * ldgram.y (exclude_name_list): Don't require a comma to separate
2841 list entries; the lexer considers commas to be valid part of a
2842 filename, so in something like `foo, bar' the comma is considered
2843 part of the first filename, `foo,'.
2844 * ld.texinfo: Update section on EXCLUDE_FILE lists.
2846 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
2848 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2849 host "i[3456]86-*-freebsdelf*".
2851 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
2853 * scripttempl/i386go32.sc: Move misplaced semicolons.
2855 2000-02-25 Ian Lance Taylor <ian@zembu.com>
2857 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
2858 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
2859 (eelf64hppa.c, ehppaelf.c): Remove targets.
2860 * Makefile.in: Rebuild.
2862 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
2864 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
2865 GNU/Linux/sparc, but keep the default as 32.
2867 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
2868 it default if sparcv9 or sparc64.
2870 2000-02-24 Nick Clifton <nickc@cygnus.com>
2872 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
2873 * Makefile.in: Regenerate.
2874 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
2876 * ldemul.h (ld_emulation_xfer_struct): Add new field:
2877 find_potential_libraries.
2878 * ldemul.c (ldemul_find_potential_libraries): New function.
2880 * ldfile.c (ldfile_open_file_search): Allow function to be
2882 (ldfile_open_file): Call ldemul_find_potential_libraries.
2883 * ldfile.h: Add prototype for ldfile_open_file_search.
2885 * pe-dll.c: Add support for ARM, MIPS and SH targets.
2887 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
2888 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
2890 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
2891 (gld_X_find_potential_libraries): New function. Search for
2892 libraries called "*.lib".
2894 * scripttempl/pe.sc: Add .pdata section.
2896 2000-02-23 Richard Henderson <rth@cygnus.com>
2898 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
2899 Add and use memory regions.
2901 2000-02-23 Linas Vepstas (linas@linas.org)
2903 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
2905 * Makefile.am: Add support for Linux/IBM 370.
2906 * configure.tgt: Likewise.
2908 * Makefile.in: Regenerate.
2910 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
2912 * ldlang.c (print_input_section, print_data_statement,
2913 print_reloc_statement, print_padding_statement, insert_pad,
2914 size_input_section, lang_check_section_addresses,
2915 lang_size_sections, lang_do_assignments, lang_set_startof,
2916 lang_one_common): Change `opb' to unsigned.
2917 (lang_do_assignments): Also change `size' to unsigned.
2919 2000-02-16 Richard Henderson <rth@cygnus.com>
2921 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
2923 2000-02-16 Timothy Wall <twall@cygnus.com>
2925 * mri.c (mri_draw_tree): Add default LMA region argument to call
2926 to lang_leave_output_section_statement.
2927 * ldlang.h: Update prototypes with LMA region arguments.
2928 * ldlang.c (lang_size_sections): Encapsulate region bounds
2929 checking in os_check_region call.
2930 (os_check_region): New function.
2931 (lang_output_section_statement_lookup): Initialize lma_region.
2932 (lang_leave_output_section_statement): Add LMA region argument.
2933 (lang_leave_overlay): Ditto.
2934 * ldgram.y: Handle LMA region syntax.
2935 * ld.texinfo (Output Section Description): Describe LMA region usage.
2936 * emultempl/armelf.em (gld$place_orphan): Add default value for
2937 lma region in call to lang_leave_output_section_statement.
2938 * emultempl/elf32.em (gld$place_orphan): Add default value for
2939 lma region in call to lang_leave_output_section_statement.
2940 * emultempl/pe.em (gld$place_orphan): Add default value for
2941 lma region in call to lang_leave_output_section_statement.
2944 2000-02-04 Timothy Wall <twall@redhat.com>
2946 * ldlang.c (lang_check_section_addresses): Use bytes instead of
2947 octets when calculating section end addresses.
2949 2000-02-04 Timothy Wall <twall@redhat.com>
2951 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
2953 2000-02-03 Timothy Wall <twall@redhat.com>
2955 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
2957 * ldlang.c (print_input_section, print_data_statement,
2958 print_reloc_statement, print_padding_statement): Print target
2959 address values and section sizes as bytes, not octets.
2960 (insert_pad) Calculate padding size in octets, and adjust "dot"
2962 (size_input_section) Always adjust "dot" by bytes, not octets.
2963 (lang_check_section_addresses, lang_do_assignments) Adjust
2964 "dot" by bytes, not octets. Use the larger of the directive size
2965 or octets_per_byte for the number of octets actually allocated in
2967 (lang_set_startof) Make sure STARTOF returns a target address.
2968 (lang_one_common) Record size changes in octets.
2969 (lang_abs_symbol_at_end_of) Section end symbol's value is
2970 recorded in target bytes.
2971 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
2972 to be clear about behavior when an octet is smaller than one byte.
2974 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
2976 * ldcref.c (output_cref): Don't pass message strings to printf
2980 * ldmisc.c (vfinfo): Same here.
2983 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
2985 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
2986 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
2987 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
2988 Add missing NULL initialisers, and comments.
2990 * testsuite/ld-srec/sr3.cc (__rethrow): New.
2992 2000-01-21 Nick Clifton <nickc@cygnus.com>
2994 * ldlang.c (lang_size_sections): Fix typo in comment.
2996 2000-01-18 H.J. Lu <hjl@gnu.org>
2998 * ldlang.c (lang_size_sections): Also update the current
2999 address of a region if the SEC_NEVER_LOAD bit is not set.
3001 2000-01-10 Philip Blundell <pb@futuretv.com>
3003 * configure.tgt (arm*-*-conix*): New target.
3005 2000-01-07 Nick Clifton <nickc@cygnus.com>
3007 * ld.texinfo (Options): Remind users to preceed linker command
3008 line switches with -Wl, (or whatever is appropriate) if it is
3009 being invoked by a comnpiler driver program.
3010 Fix description of the behaviour of the -n command line switch.
3012 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
3014 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3016 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3017 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3018 (exclude_name_list): New.
3019 ldlang.c (walk_wild_section): Support list of excluded files.
3020 (print_wild_statement): Likewise.
3021 (lang_add_wild): Likewise.
3022 * ldlang.h (lang_wild_statement_type): Likewise.
3023 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3025 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3027 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3028 (process_def_file): Use.
3029 (pe_dll_compat_implib): New variable.
3032 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3033 pe_dll_compat_implib.
3035 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3036 compat-implib options.
3037 (gld_${EMULATION_NAME}_list_options): List new options.
3038 (gld_${EMULATION_NAME}_parse_args): Handle.
3040 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3043 * deffilep.y (opt_name): Allow "." in name.
3045 For older changes see ChangeLog-9899
3051 version-control: never