1 2001-12-13 Alan Modra <amodra@bigpond.net.au>
3 * lexsup.c (parse_args): Don't pass shortopts to second call to
4 getopt functions. Restore optind rather than decrementing before
5 second call. Remove errind as it now duplicates last_optind.
7 2001-12-11 Christopher Faylor <cgf@redhat.com>
9 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
11 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
12 Richard Henderson <rth@redhat.com>
14 * Makefile.am: Add support for xstormy16.
15 * configure.tgt: Add support for xstormy16.
16 * Makefile.in: Regenerate.
17 * emulparams/elf32xstormy16.sh: New file.
18 * scripttempl/xstormy16.sc: New file.
20 2001-10-01 Christopher Faylor <cgf@cygnus.com>
22 * Makefile.in (LIB_PATH): Make configurable.
23 (GENSCRIPTS): Set LIB_PATH in environment.
24 * configure.in: Substitute LIB_PATH.
25 * configure: Regenerate.
26 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
27 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
29 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
31 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
32 describing the -N option so that it is easier to translate into
35 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
37 * emultempl/pe.em (..._list_options): Replace multiple fprintf
38 statements describing a single option with a single, newline
39 escaped fprintf. This allows better translation into other
42 * ldmain.c (add_archive_element): Combine multiple strings
43 into a single string to permit better translation into other
46 2001-12-05 Tom Rix <trix@redhat.com>
48 * Makefile.am: Remove eaixppc64.
49 * Makefile.in: Regenerate.
51 2001-12-04 Tom Rix <trix@redhat.com>
53 * emultempl/aix.em (choose_target): Change default target to
54 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
56 (gld*_read_file): Fix typo.
57 (change_symbol_mode): Add prototype.
60 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
61 * emulparams/aixrs6.sh : Same.
62 * emulparams/ppcmacos.sh : Same.
63 * emulparams/aixppc64.sh : Delete file.
64 * emultempl/aix.em : Formatting changes.
66 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
68 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
69 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
71 (OTHER_END_SYMBOLS): Fix formatting.
72 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
73 (OTHER_END_SYMBOLS): Fix formatting.
75 2001-12-04 Alan Modra <amodra@bigpond.net.au>
77 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
79 2001-12-02 Tom Rix <trix@redhat.com>
81 * configure.tgt : Remove eaixppc64 emulations.
82 * Makefile.in : Remove eaixppc64.c
83 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
84 (ldemul_default_target): Same.
85 * emultempl/gld960.em (gld960_choose_target): Same.
86 * emultempl/gld960c.em (gld960_choose_target): Same.
87 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
88 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
89 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
90 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
91 * emultempl/aix.em (choose_target): New function. Handle emulation of
94 2001-11-27 H.J. Lu <hjl@gnu.org>
96 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
97 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
98 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
99 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
100 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
101 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
102 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
103 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
105 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
108 (REL_SDATA): Likewise.
109 (REL_SBSS): Likewise.
110 (REL_SDATA2): Likewise.
111 (REL_SBSS2): Likewise.
112 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
115 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
117 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
119 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
121 2001-11-22 H.J. Lu <hjl@gnu.org>
123 * Makefile.in: Regenerated with automake based on automake
126 2001-11-22 Alan Modra <amodra@bigpond.net.au>
128 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
129 (config.status): Delete rule.
130 Add extra dependencies to cover sourced emulparams files.
131 * Makefile.in: Regenerate.
133 * scripttempl/elf.sc: Order <section>, <section>.* and
134 corresponding linkonce sections as seen in input files.
135 Formatting fixes. Zero vma of all sections if not relocating.
136 (STACK): Define and insert if STACK_ADDR defined.
137 (OTHER_RELOCATING_SECTIONS): Delete.
138 (OTHER_END_SYMBOLS): Define.
139 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
140 (OTHER_READWRITE_SECTIONS): Likewise.
141 (OTHER_GOT_SECTIONS): Likewise.
142 (OTHER_SDATA_SECTIONS): Likewise.
143 (OTHER_BSS_SECTIONS): Likewise.
144 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
145 (OTHER_READWRITE_SECTIONS): Likewise.
146 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
147 (OTHER_READWRITE_SECTIONS): Likewise
149 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
150 (STACK_ADDR): Define.
151 * emulparams/armelf_oabi.sh: As for armelf.sh.
152 * emulparams/elf32mcore.sh: As for armelf.sh.
153 * emulparams/h8300elf.sh: As for armelf.sh.
154 * emulparams/mn10200.sh: As for armelf.sh.
155 * emulparams/shelf.sh: As for armelf.sh.
157 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
158 (OTHER_END_SYMBOLS): Define.
159 * emulparams/m32relf.sh: As for elf32fr30.sh.
160 * emulparams/h8300helf.sh: As for elf32fr30.sh.
161 * emulparams/h8300self.sh: As for elf32fr30.sh.
163 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
164 defines with RELOCATING test.
165 (OTHER_SDATA_SECTIONS): Likewise.
166 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
167 (OTHER_END_SYMBOLS): ..this.
168 * emulparams/crislinux.sh: As for criself.sh.
170 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
172 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
173 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
174 normal and linkonce sections as seen in input files.
175 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
176 (TEXT_DYNAMIC): Likewise.
177 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
178 (OTHER_SDATA_SECTIONS): Likewise.
179 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
180 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
181 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
182 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
183 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
184 (OTHER_PLT_RELOC_SECTIONS): Likewise.
185 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
186 sections as seen in input files.
187 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
188 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
190 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
191 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
192 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
193 (OTHER_SECTIONS): Instead, use this..
194 (OTHER_END_SYMBOLS): ..and this.
196 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
197 * emulparams/elf32bsmip.sh: Likewise.
198 * emulparams/elf32btsmip.sh: Likewise.
199 * emulparams/elf32ebmip.sh: Likewise.
200 * emulparams/elf32lmip.sh: Likewise.
201 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
202 * emulparams/elf32lsmip.sh: Likewise.
203 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
204 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
205 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
206 * emulparams/elf64btsmip.sh: Likewise.
207 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
208 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
209 * emulparams/elf32ppclinux.sh: Likewise.
210 * emulparams/elf32ppcsim.sh: Likewise.
211 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
212 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
213 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
214 * emulparams/h8300self.sh: Likewise.
215 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
216 * emulparams/sh.sh: Comment.
217 * emulparams/shl.sh: Source sh.sh, remove duplicates.
218 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
219 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
221 2001-11-21 David Heine <dlheine@tensilica.com>
222 Alan Modra <amodra@bigpond.net.au>
224 * ldlang.c (map_input_to_output_sections): Replace "break"
225 accidentally removed with 2001-08-03 change.
226 (lang_gc_sections_1): Likewise.
228 2001-11-21 Alan Modra <amodra@bigpond.net.au>
230 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
232 2001-11-20 Angela Marie Thomas <angela@redhat.com>
234 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
235 of false when calling lang_size_sections.
236 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
238 2001-11-15 Alan Modra <amodra@bigpond.net.au>
240 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
241 function when LDEMUL_FINISH isn't set to the same name. Don't
242 call ${LDEMUL_FINISH}.
243 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
244 * emultempl/armelf.em (arm_elf_finish): Call
245 gld${EMULATION_NAME}_finish.
246 * emultempl/hppaelf.em (hppaelf_finish): Rename to
247 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
248 hppaelf_layout_sections_again if necessary.
249 (need_laying_out): New var.
250 (hppaelf_layaout_sections_again): Rename to
251 hppaelf_layout_sections_again. Clear need_laying_out.
252 (PARSE_AND_LIST_OPTIONS): Format text.
254 2001-11-14 H.J. Lu <hjl@gnu.org>
256 * emultempl/armelf.em (arm_elf_finish): Renamed from
257 gld${EMULATION_NAME}_finish.
258 (LDEMUL_FINISH): Set to arm_elf_finish.
260 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
262 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
263 (struct ld_emulation_xfer_struct): Use it.
265 Tue Nov 13 11:27:14 2001 Ross Alexander <ross.alexander@uk.neceur.com>
267 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
268 additional symbols referenced by newer crt0.o files from HP.
270 2001-11-12 Anthony Green <green@redhat.com>
272 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
274 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
276 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
277 * Makefile.in: Regenerate.
279 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
281 * ld.texinfo: Use @command for commands, @option for options.
282 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
284 * Makefile.in: Rebuild.
286 2001-11-04 Chris Demetriou <cgd@broadcom.com>
288 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
289 Add support for targets.
291 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
293 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
294 * configure: Regernate.
295 * po/fr.po: New file.
296 * po/sv.po: New file.
298 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
300 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
301 as little endian default and to support big endian.
303 2001-11-01 Chris Demetriou <cgd@broadcom.com>
305 * ld.texinfo (Options): Document new option, -nostdlib.
306 * lexsup.c (OPTION_NOSTDLIB): New definition.
307 (ld_options): Add entry for "nostdlib".
308 (parse_args): Handle OPTIONS_NOSTDLIB.
309 * ldfile.c (ldfile_add_library_path): Don't add directories
310 to the search path if they weren't specified on the command line
311 and -nostdlib was specified.
312 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
314 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
316 * lexsup.c (parse_args): Prevent infinite parsing loop when
317 "-rpath.a" is specified on the command line.
318 Replace calls to fprintf with calls to einfo.
320 2001-10-31 John Marshall <jmarshall@acm.org>
322 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
323 appear only once across all the linker scripts involved in a link
324 invocation no longer applies. Make the documentation reflect
327 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
329 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
331 (sh-*-linux*): Added targ_extra_libpath.
333 2001-10-31 David Heine <dlheine@tensilica.com>
335 * ldlang.c (lang_size_sections): Keep a valid output_offset field
336 for padding statements.
338 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
340 * configure.tgt (mmix-*-*): New target.
341 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
342 Add dependencies to match.
343 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
344 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
345 scripttempl/mmo.sc: New files.
346 * gen-doc.texi: @set MMIX.
348 [MMIX] Add MMIX node.
349 * Makefile.in: Regenerate.
351 2001-10-29 Kazu Hirata <kazu@hxi.com>
353 * ldlang.c: Fix a comment typo.
355 2001-10-23 Alan Modra <amodra@bigpond.net.au>
357 * configure.host: Move alpha*-*-linux-gnu* entry to generic
358 entries, and match *-*-linux*.
360 2001-10-20 Alan Modra <amodra@bigpond.net.au>
362 * ldgram.y (mri_script_command): Surround processing of INCLUDE
363 with ldlex_script, ldlex_popstate.
364 (ifile_p1): Likewise.
365 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
367 (lex_push_file): Save current lineno to lineno_stack. Set lineno
368 to 1. Don't BEGIN(SCRIPT).
369 (lex_redirect): Similarly.
370 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
372 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
374 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
375 __EH_FRAME_END__ and accept eh frames into data section.
376 Add ctor and dtor sections.
378 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
380 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
381 (auto-export): Fix indentation.
383 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
385 * pe-dll.c (autofilter_objectlist): Add startup objects
387 (auto-export): Constify char * p.
388 Extract file basename and use strcmp rather than ststr
391 2001-10-18 Chris Demetriou <cgd@broadcom.com>
393 * ldmain.c (get_emulation): Improve comment about the handling
396 2001-10-17 Alan Modra <amodra@bigpond.net.au>
398 * po/POTFILES.in: Regenerate.
400 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
402 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
403 -z nocopyreloc and -z nocombreloc usage strings.
405 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
407 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
410 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
412 * scripttempl/armaout.sc: Place .bss section after end of aligned
413 data section to match behaviour of aout code in constructrion of
416 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
418 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
419 startup files for mingw32 dlls to list.
421 2001-10-10 Chris Demetriou <cgd@broadcom.com>
423 * emultempl/elf32.em: Fix shell 'if' usage for portability.
425 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
427 * configure.tgt (targ): Add arm9e-*-elf.
429 2001-10-05 H.J. Lu <hjl@gnu.org>
431 * genscripts.sh: Fix a typo in the last change.
433 2001-10-05 Jakub Jelinek <jakub@redhat.com>
435 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
436 -z nocombreloc in usage.
438 2001-10-03 Jim Blandy <jimb@redhat.com>
440 * genscripts.sh: Include a comment at the top of each generated
441 script, explaining its purpose.
443 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
445 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
446 * NEWS: Mention -z nocopyreloc.
447 * ld.texinfo (Options): Describe nocopyreloc.
449 2001-10-03 Alan Modra <amodra@bigpond.net.au>
451 * configure: Regenerate.
453 2001-10-02 Alan Modra <amodra@bigpond.net.au>
455 * ldver.h (ld_program_version): Remove declaration.
456 * lexsup.c (parse_args): Move printing of copyright message..
457 * ldver.c (ldversion): .. to here.
458 Use BFD_VERSION_STRING in place of BFD_VERSION.
459 (ld_program_version): Remove.
460 * Makefile.am (Makefile): Depend on bfd/configure.in.
462 * Makefile.in: Regenerate.
464 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
466 * Makefile.am: Update dependencies with "make dep-am".
467 * Makefile.in: Regenerate.
469 2001-09-29 John Reiser <jreiser@BitWagon.com>
471 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
472 * lexsup.c: Add --no-define-common commandline option.
473 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
475 * ld.h: Add command_line.inhibit_common_definition.
476 * ldmain.c (main): Initialize.
477 * ld.texinfo: Document.
479 2001-09-26 Alan Modra <amodra@bigpond.net.au>
481 * ldmisc.c (USE_STDARG): Remove.
482 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
487 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
488 declarations. Update copyright.
490 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
492 * pe-dll.c: Remove obsoleted declaration of
493 pe_get_data_import_dll_name.
494 (pe_create_import_fixup): Fix thinko.
496 * ld.texinfo(enable-auto-import): Clarify the explanation.
498 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
500 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
501 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
502 DLL_SUPPORT controlled code.
504 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
506 * emultempl/pe.em(pe_data_import_dll): Make static.
507 (pe_get_data_import_dll_name): New accessor function.
508 * pe-dll.c(pe_create_import_fixup): call
509 pe_get_data_import_dll_name() from pe.em, instead of
510 directly accessing pe_data_import_dll variable from pe.em.
512 2001-09-18 Bruno Haible <haible@clisp.cons.org>
514 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
515 (def_file_add_directive): Use ISSPACE instead of isspace.
516 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
517 isdigit/isxdigit/isalpha/isalnum.
518 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
519 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
520 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
521 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
523 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
524 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
526 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
527 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
528 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
529 (ctor_prio): Use ISDIGIT instead of isdigit.
530 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
531 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
532 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
534 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
535 (stricpy): Use TOLOWER instead of isupper/tolower.
536 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
537 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
538 (lex_warn_invalid): Use ISPRINT instead of isprint.
539 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
540 (main): For gettext, also set the LC_CTYPE locate facet.
541 (add_keepsyms_file): Use ISSPACE instead of isspace.
542 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
543 (is_num, parse_args): Use ISDIGIT instead of isdigit.
544 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
545 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
546 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
547 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
548 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
549 (quoteput): Use ISSPACE instead of isspace.
550 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
553 2001-09-18 Alan Modra <amodra@bigpond.net.au>
555 * deffilep.y (def_stash_module): Constify "name" param.
557 * pe-dll.c: Replace CONST with const throughout.
558 (quick_symbol): Constify "n1", "n2", "n3" params.
559 (make_singleton_name_thunk): Constify "import" param. Make
560 "buffer_len" a size_t.
561 (make_import_fixup_entry): Constify "name", "fixup_name",
562 "dll_symname" params.
563 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
564 (pe_get32): Likewise.
565 (pe_implied_import_dll): Likewise.
567 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
568 (sort_by_section_name): Likewise.
570 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
571 (make_import_fixup): Cast printf arg, rel->address to long rather
573 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
575 2001-09-15 Alan Modra <amodra@bigpond.net.au>
577 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
578 defines BufferSize. Increase buffer size by one.
580 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
582 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
584 2001-09-14 Kevin Lo <kevlo@openbsd.org>
586 * configure.tgt: Add arm-openbsd target.
588 2001-09-12 H.J. Lu <hjl@gnu.org>
590 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
592 (ALL_64_EMULATIONS): Here.
593 * Makefile.in: Regenerated.
595 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
597 * emultempl/pe.em(make_import_fixup): change signature to
598 take asection as well as arelec; we need this for proper
599 error reporting. Only call pe_create_import_fixup() if
600 there is no attempt to add a constant addend to the reloc;
601 otherwise, report error condition.
602 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
603 since final argument is a pointer to make_import_fixup().
604 Change call to cb() to match make_import_fixup() signature.
605 (make_import_fixup_mark): make buffer_len unsigned.
606 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
608 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
610 * ld.texinfo: add verbose documentation for auto-import
611 direct-addressing workaround, to compliment the terse
614 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
616 * scripttempl/v850.sc: Add gcc_except_table sections.
618 Fri Sep 7 11:34:24 2001 Jeffrey A Law (law@cygnus.com)
620 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
621 * emulparams/h8300self.sh: Similarly.
623 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
625 * ld.texinfo (Options, --stack): Correct default value for stack
628 2001-09-05 Tom Rix <trix@redhat.com>
630 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
632 2001-09-03 Andreas Jaeger <aj@suse.de>
634 * emultempl/beos.em: Declare prototypes for comparions functions,
637 2001-09-02 Andreas Jaeger <aj@suse.de>
639 * emultempl/aix.em: Add missing prototype.
640 * emultempl/lnk960.em: Likewise.
641 * emultempl/vanilla.em: Likewise.
642 * emultempl/armcoff.em: Likewise.
643 * emultempl/armelf_oabi.em: Likewise.
644 * emultempl/beos.em: Likewise.
645 * emultempl/gld960c.em: Likewise.
646 * emultempl/gld960.em: Likewise.
648 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
649 for prototype declaration.
651 2001-08-31 Eric Christopher <echristo@redhat.com>
652 Jason Eckhardt <jle@redhat.com>
654 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
656 2001-08-31 Andreas Jaeger <aj@suse.de>
658 * emultempl/pe.em: Add missing prototypes.
659 (gld_${EMULATION_NAME}_after_open): Remove extra args to
660 pe_find_data_imports.
661 (pr_sym): Add unused attribute.
663 2001-08-29 Joel Sherrill <joel@OARcorp.com>
665 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
666 default from coff to elf.
668 2001-08-29 Jeff Law <law@redhat.com>
670 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
672 * emulparams/h8300self.sh: Similarly.
674 Wed Aug 28 13:37:20 2001 J"orn Rennecke <amylaar@redhat.com>
676 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
678 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
679 * configure.tgt (h8300-*-elf*): New case.
680 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
681 * emulparams/h8300self.sh: New file.
682 * Makefile.in: Regenerated.
684 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
686 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
689 2001-08-27 Linus Nordberg <linus@swox.com>
690 Alan Modra <amodra@bigpond.net.au>
692 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
693 (eelf64ppc.c, eelf64lppc.c): Add make targets.
695 * Makefile.in: Regenerate.
696 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
697 entries to correct alphabetical position.
698 * emulparams/elf64ppc.sh: New.
699 * emulparams/elf64lppc.sh: New.
701 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
703 * ldmain.c (main): Declare BSIZE as static.
705 2001-08-23 Jakub Jelinek <jakub@redhat.com>
707 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
708 into .rel.dyn resp. .rela.dyn if combreloc.
709 (get_script): If .x linker script is equal to .xn, only put it
710 once into the binary.
711 Add .xc and .xsc scripts.
712 (parse_args): Handle -z combreloc and -z nocombreloc.
713 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
714 For .xc and .xsc scripts put all .rel* or .rela* input sections
715 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
716 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
718 Strip trailing whitespace from script.
719 Generate .xc and .xsc scripts if requested.
720 * ldmain.c (main): Initialize link_info.combreloc and
721 link_info.spare_dynamic_tags.
722 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
723 (ld_options): Add --spare-dynamic-tags option.
724 (parse_args): Likewise.
725 * ld.texinfo: Document -z combreloc and -z nocombreloc.
726 * ldint.texinfo: Document .xc and .xsc linker scripts.
727 * NEWS: Add notes about -z combreloc and SHF_MERGE.
729 2001-08-22 H.J. Lu <hjl@gnu.org>
731 * emulparams/elf32fr30.sh: Add a newline.
733 2001-08-21 Andreas Jaeger <aj@suse.de>
735 * deffilep.y: Add missing prototypes.
736 * pe-dll.c: Likewise.
738 2001-08-20 Alan Modra <amodra@bigpond.net.au>
740 * ldlang.c (insert_pad): Fix typos in last patch.
742 * ldlang.c: When traversing lang_statement_union_type lists,
743 consistently use "header.next" rather than "next".
744 * mpw-eppcmac.c: Likewise.
745 * emultempl/beos.em: Likewise.
746 * emultempl/hppaelf.em: Likewise.
747 * emultempl/pe.em: Likewise.
748 * ldlang.h (union lang_statement_union): Remove "next" field.
750 * ldlang.c (insert_pad): Use offsetof macro.
751 (lang_size_sections): Always neuter padding statements.
752 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
754 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
755 passed to lang_size_sections.
756 (pe_exe_fill_sections): Likewise.
757 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
758 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
760 2001-08-18 Alan Modra <amodra@bigpond.net.au>
762 * emultempl/aix.em: Formatting fixes.
764 2001-08-18 Alan Modra <amodra@bigpond.net.au>
766 * ldlang.c (insert_pad): Make use of an existing pad statement if
767 available. Move code calculating alignment, adjusting section
768 alignment power, and adjusting dot to ..
769 (size_input_section): .. here. Remove unused relax param.
770 (lang_size_sections): Change boolean `relax' param to boolean *.
771 Adjust call to size_input_section. Make use of insert_pad to
772 place pad after the assignment statement. If relaxing, zap
774 (reset_memory_regions): Reset output_bfd section sizes too.
775 (relax_again): Move to..
776 (lang_process): ..here. Adjust call to lang_size_sections, and
777 remove duplicated code.
778 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
780 2001-08-17 Alan Modra <amodra@bigpond.net.au>
782 * ld.texinfo: Document that fill values now use the four least
784 * emulparams/elf32fr30.sh (NOP): Update.
785 * emulparams/elf32mcore.sh: Likewise.
786 * emulparams/elf64_s390.sh: Likewise.
787 * emulparams/elf_i386.sh: Likewise.
788 * emulparams/elf_i386_be.sh: Likewise.
789 * emulparams/elf_i386_chaos.sh: Likewise.
790 * emulparams/elf_i386_ldso.sh: Likewise.
791 * emulparams/elf_s390.sh: Likewise.
792 * emulparams/elf_x86_64.sh: Likewise.
793 * emulparams/i386moss.sh: Likewise.
794 * emulparams/i386nw.sh: Likewise.
795 * emulparams/m68kelf.sh: Likewise.
796 * scripttempl/elf.sc: Update NOP comment.
797 * scripttempl/elfi370.sc: Likewise.
798 * scripttempl/elfm68hc11.sc: Likewise.
799 * scripttempl/elfm68hc12.sc: Likewise.
800 * scripttempl/nw.sc: Likewise.
802 2001-08-15 Tom Rix <trix@redhat.com>
804 * ldgram.y (saved_script_handle): Initialize to NULL.
805 * ldmain.c (main): Change check on saved_script_handle.
807 2001-08-14 Alan Modra <amodra@bigpond.net.au>
809 * emultempl/elf32.em: Formatting fixes.
810 (output_prev_sec_find): Test for bfd_ind_section too; do so by
811 looking at sec->owner.
812 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
813 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
814 unused code, and reorganize orphan section placement code.
816 * ldlang.c (wild_doit): Rename to lang_add_section.
817 * ldlang.h: Here too.
818 * mpw-elfmips.c: And here.
819 * emultempl/beos.em: And here.
820 * emultempl/elf32.em: And here.
821 * emultempl/hppaelf.em: And here.
822 * emultempl/pe.em: And here.
824 2001-08-13 Richard Henderson <rth@redhat.com>
826 * emultempl/needrelax.em: New file.
827 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
828 * Makefile.am (eelf64_ia64.c): Depend on it.
829 * Makefile.in: Rebuild.
831 2001-08-13 Alan Modra <amodra@bigpond.net.au>
833 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
834 output_section is set non-NULL.
836 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
837 `true' for SEC_EXCLUDE sections so that the generic code doesn't
838 needlessly create an output_section_statement. Treat a correctly
839 named output_section_statement with NULL bfd_section as compatible.
841 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
843 * emultempl/generic.em: Support EXTRA_EM_FILE.
844 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
845 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
846 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
847 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
848 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
849 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
850 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
851 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
852 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
853 LDEMUL_FIND_POTENTIAL_LIBRARIES.
855 2001-08-12 Richard Henderson <rth@redhat.com>
857 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
858 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
859 scripttempl/v850.sc: Keep .jcr data.
861 2001-08-12 H.J. Lu <hjl@gnu.org>
862 Andrew Haley <aph@cambridge.redhat.com>
863 Nick Clifton <nickc@redhat.com>
865 * ldgram.y (had_script): Change name to saved_script_handle.
866 Change type to file handle.
867 * ld.h (had_script): Rename and retype.
868 * ldfile.c (ldfile_open_command_file): Save the file handle
869 used in saved_script_handle.
870 * lexsup.c (parse_args): Do not allow -c option to alter
872 * ldmain.c (main): Print out the linker script used if
873 --verbose is given. Check saved_script_handle to obtain the
874 external linker script used, or if NULL, dump the builtin
876 * ld.texinfo: Document that --verbose now dumps the linker
877 script used, regardless of whether it was an internal or an
880 2001-08-10 Andreas Jaeger <aj@suse.de>
882 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
884 * configure: Regenerate.
886 2001-08-09 Alan Modra <amodra@bigpond.net.au>
888 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
890 * scripttempl/elf.sc: Move non-text .dynamic section before
891 .plt/.got/.sdata* group.
892 (OTHER_GOT_SECTIONS): Move to immediately after .got.
893 (OTHER_SDATA_SECTIONS): Add.
894 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
896 * emulparams/crislinux.sh: Likewise.
897 * emulparams/elf32b4300.sh: Likewise.
898 * emulparams/elf32bmip.sh: Likewise.
899 * emulparams/elf32bmipn32.sh: Likewise.
900 * emulparams/elf32bsmip.sh: Likewise.
901 * emulparams/elf32btsmip.sh: Likewise.
902 * emulparams/elf32ebmip.sh: Likewise.
903 * emulparams/elf32elmip.sh: Likewise.
904 * emulparams/elf32l4300.sh: Likewise.
905 * emulparams/elf32lmip.sh: Likewise.
906 * emulparams/elf32lsmip.sh: Likewise.
907 * emulparams/elf32ltsmip.sh: Likewise.
908 * emulparams/elf64bmip.sh: Likewise.
909 * emulparams/elf64btsmip.sh: Likewise.
910 * emulparams/elf64ltsmip.sh: Likewise.
912 2001-08-08 Alan Modra <amodra@bigpond.net.au>
914 * genscripts.sh: Source the emulparams script before each output
915 script is generated so that variables like `RELOCATING' may affect
916 variables defined in the emulparams script.
918 2001-08-04 Alan Modra <amodra@bigpond.net.au>
920 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
923 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
924 ie. iterate over wild_statement.section_list.
925 (gld${EMULATION_NAME}_place_orphan): Likewise.
927 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
929 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
930 .fini[0-4] sections used by _exit
931 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
932 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
933 * scripttempl/elfm68hc11.sc: Likewise.
935 2001-08-03 H.J. Lu <hjl@gnu.org>
937 * emultempl/beos.em (init): Add the missing initialization.
939 2001-08-03 Alan Modra <amodra@bigpond.net.au>
941 * ld.texinfo (Input Section Basics): Clarify ordering of output
943 * ldlang.c (callback_t): Add wildcard_list param.
944 (walk_wild_section): Remove "section" param. Rewrite for
945 lang_wild_statement_type change. Remove unique_section_p test.
946 (walk_wild_file): Remove "section" param.
947 (walk_wild): Remove "section" and "file" params.
948 (lang_gc_wild): Likewise.
949 (wild): Likewise. Modify for lang_wild_statement_type change.
950 (wild_sort): Likewise. Add "sec" param.
951 (gc_section_callback): Likewise.
952 (output_section_callback): Likewise. Do unique_section_p test.
953 (map_input_to_output_sections): Modify call to wild.
954 (lang_gc_sections_1): Likewise.
955 (print_wild_statement): Modify for lang_wild_statement_type
957 (lang_add_wild): Replace filename, filenames_sorted param with
958 filespec. Replace section_name, sections_sorted,
959 exclude_filename_list with section_list.
960 * ldlang.h (lang_add_wild): Here too.
961 (lang_wild_statement_type): Replace section_name, sections_sorted,
962 and exclude_filename_list with section_list.
963 * ldgram.y (current_file): Delete.
964 (%union): Add wildcard_list.
965 (file_NAME_list): Set type to wildcard_list. Build a linked list
966 rather than calling lang_add_wild for each entry.
967 (input_section_spec_no_keep): Call lang_add_wild here instead.
968 * ld.h (struct wildcard_list): Declare.
969 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
971 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
973 * ldmain.c (main): initialize link_info.pei386_auto_import
974 * pe-dll.c: new tables for auto-export filtering
975 (auto_export): change API, pass abfd for contextual filtering.
976 Loop thru tables of excluded symbols instead of comparing
979 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
981 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
982 static variable current_sec (static struct sec *). Add
983 forward declaration for add_bfd_to_link.
984 (process_def_file): Don't export undefined symbols. Do not
985 export symbols starting with "_imp__". Call auto_export()
987 (pe_walk_relocs_of_symbol): New function.
988 (generate_reloc): add optional extra debugging
989 (pe_dll_generate_def_file): eliminate extraneous initial blank
991 (make_one): enlarge symtab to make room for __nm__ symbols
992 (DATA auto-import support).
993 (make_singleton_name_thunk): New function.
994 (make_import_fixup_mark): New function.
995 (make_import_fixup_entry): New function.
996 (pe_create_import_fixup): New function.
997 (add_bfd_to_link): Specify that 'name' argument is a CONST
999 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
1000 declare new functions pe_walk_relocs_of_symbol and
1001 pe_create_import_fixup.
1002 * emultempl/pe.em: add new options --enable-auto-import,
1003 --disable-auto-import, and --enable-extra-pe-debug.
1004 (make_import_fixup): New function.
1005 (pe_find_data_imports): New function.
1006 (pr_sym): New function.
1007 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
1008 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
1011 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
1013 * ld.texinfo: add additional documentation for
1014 --export-all-symbols. Document --out-implib,
1015 --enable-auto-image-base, --disable-auto-image-base,
1016 --dll-search-prefix, --enable-auto-import, and
1017 --disable-auto-import.
1018 * ldint.texinfo: Add detailed documentation on auto-import
1021 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
1023 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
1026 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1028 * Makefile.am: Update dependencies with "make dep-am".
1029 * Makefile.in: Regenerate
1031 2001-07-23 Alan Modra <amodra@bigpond.net.au>
1033 * ldcref.c (check_section_sym_xref): New function.
1034 (check_nocrossrefs): Call it.
1035 (check_nocrossref): Interate over h->refs here instead of..
1036 (check_refs): ..here. Pass in the symbol name, section, and bfd
1037 rather than hash_entry pointers.
1038 (struct check_refs_info): Keep symbol name rather than hash entry.
1040 (check_reloc_refs): Tweak for above changes in check_refs_info.
1041 Only report references to section syms when symname is NULL to
1042 prevent duplicate messages for the same reloc.
1044 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
1046 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
1047 available. Do not print NULL trees.
1048 (exp_print_token): Print unknown tokens with values > 126 as
1049 decimal values not ASCII characters.
1051 * ldlang.c (lang_leave_overlay): If a region is specified assign
1052 it to all sections inside the overlay unless they have been
1053 assigned to the own, non-default, memory region.
1055 * README: Add header for consistency with other README files.
1057 2001-07-14 H.J. Lu <hjl@gnu.org>
1059 * emultempl/elf32.em (output_prev_sec_find): Never return
1060 bfd_abs_section_ptr, bfd_com_section_ptr nor
1061 bfd_und_section_ptr.
1063 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
1065 * Makefile.am (em32relf.c): Change dependency from generic.em to
1067 * Makefile.in: Regenerate.
1069 2001-07-14 matthew green <mrg@eterna.com.au>
1071 * configure.tgt (i386-*-netbsdelf*): New target.
1072 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
1074 2001-07-13 Jakub Jelinek <jakub@redhat.com>
1076 * emultempl/elf32.em (output_prev_sec_find): New.
1077 (place_orphan): Use it.
1079 2001-07-11 H.J. Lu <hjl@gnu.org>
1081 * ldmain.c (main): Fix typos in the last change.
1083 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1085 * ldmain.c (main): Disallow -F and -f without -shared.
1087 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
1089 * emultempl/pe.em (after_open): Check for the output_bfd not
1090 having any coff_data structure allocated to it.
1092 2001-07-09 David O'Brien <obrien@FreeBSD.org>
1094 * emultempl/elf32.em: Do not assuming that contents of the buffer
1095 returned from basename function will remain unchanged accross other
1098 2001-07-03 H.J. Lu <hjl@gnu.org>
1100 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
1101 2001-07-03. It creates dynamic entries even for static binaries.
1103 2001-07-03 Jakub Jelinek <jakub@redhat.com>
1105 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
1106 (DYNAMIC): Use it to reserve few dynamic entries for
1109 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1111 * emulparams/hppa64linux.sh: New file.
1112 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
1113 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
1114 (ehppa64linux.c): Add rule to make it.
1116 * Makefile.in: Regenerate.
1118 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
1120 * ld.texinfo (Options, -r): Mention restrictions when using
1121 different object formats.
1123 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
1125 * ldlang.c (lang_check): Emit fatal error if relocatable link
1126 between different object flavours with relocations in input.
1128 2001-06-19 H.J. Lu <hjl@gnu.org>
1130 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
1131 (--version-script): Mention the language support.
1133 2001-06-19 H.J. Lu <hjl@gnu.org>
1135 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
1137 2001-06-18 H.J. Lu <hjl@gnu.org>
1139 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
1140 (diststuff): Add $(MANS).
1141 * Makefile.in: Regenerated.
1145 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
1147 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
1148 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
1149 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
1150 * ld.h (args_type): Remove member export_dynamic. All users
1151 changed to use struct bfd_link_info member.
1153 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
1154 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
1155 * Makefile.in: Regenerate.
1157 2001-06-18 H.J. Lu <hjl@gnu.org>
1159 * ldlang.c (init_os): Add the newline to the einfo call.
1160 (lang_check): Likewise.
1161 (lang_do_version_exports_section): Likewise.
1163 2001-06-15 H.J. Lu <hjl@gnu.org>
1165 * lexsup.c (parse_args); Save optind to report unrecognized
1168 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
1170 * ldlang.c (lang_check): Emit fatal error if relocatable link
1171 between different object flavours.
1173 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
1174 Set new link_info member export_dynamic.
1175 * ldmain.c (main): Initialize new link_info member export_dynamic.
1177 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
1179 * ldlang.c (walk_wild): Only call walk_wild_file if
1180 lookup_name returns something.
1181 (lookup_name): If load_symbols fails, return NULL.
1182 (load_symbols): Change to a boolean function.
1183 (open_input_bfds): If load_symbols fails then do not make the
1186 2001-06-08 Alan Modra <amodra@bigpond.net.au>
1188 * ldlang.c (record_bfd_errors): Remove.
1190 * emultempl/aix.em: Fix copyright dates.
1192 2001-06-07 Andreas Jaeger <aj@suse.de>
1194 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
1195 (TEXT_START_ADDR): Likewise.
1197 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
1199 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
1201 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1203 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
1205 2001-05-31 H.J. Lu <hjl@gnu.org>
1207 * ldlang.c (open_input_bfds): Don't change the bfd error
1208 handler whilst loading symbols.
1210 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
1212 * configure.tgt: Remove i370-mvs architecture, it is not currently
1215 2001-05-25 H.J. Lu <hjl@gnu.org>
1217 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1218 like emulparams/aixppc.sh.
1220 2001-05-25 H.J. Lu <hjl@gnu.org>
1222 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
1223 setting of output_filename after bfd_scan_arch.
1224 * emultempl/pe.em: Likewise.
1226 2001-05-25 H.J. Lu <hjl@gnu.org>
1228 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
1229 like emulparams/aixppc.sh.
1231 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
1232 instead of ${srcdir}/emultempl/stringify.sed.
1234 2001-05-25 Timothy Wall <twall@oculustech.com>
1236 * emulparams/elf64_aix.sh: Change settings to match IBM linker
1239 2001-05-25 Alan Modra <amodra@one.net.au>
1241 * configure.host: Replace linuxoldld with linux*oldld.
1242 * configure.tgt: Likewise.
1244 2001-05-24 H.J. Lu <hjl@gnu.org>
1246 * emultempl/stringify.sed: Removed again.
1248 2001-05-24 H.J. Lu <hjl@gnu.org>
1250 * emultempl/aix.em (OUTPUT_ARCH): Defined.
1251 (gld${EMULATION_NAME}_before_parse): Initialize
1252 ldfile_output_architecture, ldfile_output_machine and
1253 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
1254 * emultempl/beos.em: Likewise.
1255 * emultempl/elf32.em: Likewise.
1256 * emultempl/linux.em: Likewise.
1257 * emultempl/mipsecoff.em: Likewise.
1258 * emultempl/pe.em: Likewise.
1259 * emultempl/sunos.em: Likewise.
1261 2001-05-24 Tom Rix <trix@redhat.com>
1263 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
1264 udate import file format.
1265 (change_symbol_mode) New, same
1266 (is_syscall) New, same
1267 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
1268 * emulparams/aixppc64.sh : same
1269 * emulparams/aixrs6.sh : same
1270 * emulparams/ppcmacos.sh : same
1271 * emultempl/aix.em : use strtoull to parse options
1272 * Makefile.am : add eaixppc64 emulation for xcoff64
1273 * Makefile.in : same
1274 * configure.tgt : same
1276 * scripttempl/aix.sc : default text section offset to 0x10000000
1277 default data section offset to 0x20000000
1278 add .sv3264 and .sv64 pseudo sections
1279 loader and debug sections use the currect section offset.
1281 * emultempl/aix.em : Add xcoff64 support
1282 Add -binitfini support
1283 (gld${EMULATION_NAME}_before_parse) -binitfini
1284 (gld${EMULATION_NAME}_parse_args) same
1285 (gld${EMULATION_NAME}_before_allocation) format change for special
1288 * emulparams/aixppc64.sh : New file for xcoff64 support
1290 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
1292 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
1293 variable to avoid non-portable shell construct.
1295 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1297 * ldmain.c (get_emulation): Add -mips5 command line argument.
1299 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
1301 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
1302 (ELF_INTERPRETER_NAME): Define it.
1303 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
1305 * configure.tgt (targ_emul, targ_extra_emuls)
1306 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
1307 as primary, elf_i386 as extra.
1308 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
1309 (eelf_i386_ldso.c): New rule.
1310 * Makefile.in: Rebuilt.
1312 2001-05-22 Nick Clifton <nickc@redhat.com>
1314 * lexsup.c (ld_options): Allow -I to be an alias for
1315 --dynamic-linker. This is for Solaris compatability.
1316 * ld.texinfo: Document that -I can be used.
1319 2001-05-16 Alan Modra <amodra@one.net.au>
1321 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
1322 whether an input section is the first one assigned to an output
1324 Assorted formatting fixes.
1326 2001-05-14 DJ Delorie <dj@delorie.com>
1328 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
1329 * Makefile.in: Ditto.
1331 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1333 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
1334 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
1336 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
1338 2001-05-11 Jakub Jelinek <jakub@redhat.com>
1340 * ldlang.c (lang_process): Call bfd_merge_sections.
1342 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1344 * ldgram.y: Fix typo.
1346 2001-05-03 H.J. Lu <hjl@gnu.org>
1348 * emultempl/elf32.em: Include "libiberty.h".
1349 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
1350 basename of the bfd filename.
1351 (gld${EMULATION_NAME}_stat_needed): Likewise.
1352 (gld${EMULATION_NAME}_try_needed): Likewise.
1353 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
1355 2001-05-02 H.J. Lu <hjl@gnu.org>
1357 * emultempl/pe.em: Include <ctype.h>.
1359 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
1361 * emulparams/elf32openrisc.sh: New file.
1363 * Makefile.am: Add OpenRISC target.
1364 * Makefile.in: Regenerated.
1366 * configure.tgt: Add openrisc-*-* mapping.
1368 2001-05-02 Nick Clifton <nickc@redhat.com>
1370 * emultempl/aix.em: Replace buystring with xstrdup.
1371 * emultempl/beos.em: Replace buystring with xstrdup.
1373 2001-05-02 H.J. Lu <hjl@gnu.org>
1375 * ldfile.c: Include "libiberty.h".
1376 * ldlex.l: Likewise.
1378 * ldmisc.c (buystring): Removed.
1379 * ldmisc.h: Likewise.
1381 * ldfile.c: Replace buystring with xstrdup.
1382 * ldlang.c: Likewise.
1383 * ldlex.l: Likewise.
1384 * ldmain.c: Likewise.
1385 * ldmisc.c: Likewise.
1386 * lexsup.c: Likewise.
1387 * mpw-eppcmac.c: Likewise.
1389 2001-04-30 Andreas Jaeger <aj@suse.de>
1391 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
1393 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1395 * ldlang.c (load_symbols): Give emulation a chance
1396 to process unrecognized file before fatal error is
1397 reported, not after.
1399 2001-04-27 Sean McNeil <sean@mcneil.com>
1401 * configure.tgt: Add arm-vxworks target.
1402 * scripttempl/armcoff.sc: Support .text or .data as a section name
1406 2001-04-13 J.T. Conklin <jtc@redback.com>
1408 * ld.texinfo: Document --fatal-warnings.
1411 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
1412 warnings have been turned into errors.
1413 * lexsup.c (OPTION_WARN_FATAL): Define.
1414 (ld_options): Entry for --fatal-warnings.
1415 (parse_args): Handle OPTION_WARN_FATAL.
1416 * ld.h (ld_config_type): Add fatal_warnings field.
1418 2001-04-13 Jakub Jelinek <jakub@redhat.com>
1420 * ldmain.c (main): Default to discard_sec_merge.
1421 * lexsup.c (OPTION_DISCARD_NONE): Define.
1422 (ld_options): Add --discard-none.
1423 (parse_args): Handle OPTION_DISCARD_NONE.
1424 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
1425 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
1426 all its input sections match.
1428 2001-04-05 Steven J. Hill <sjhill@cotw.com>
1430 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
1431 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
1432 (eelf32ltsmip.c): New target.
1433 (eelf64btsmip.c): Likewise.
1434 (eelf64ltsmip.c): Likewise.
1435 * Makefile.in: Regenerated.
1437 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
1439 (mips*-*-linux-gnu*): Likewise.
1441 * emulparams/elf32ltsmip.sh: New. Traditional little endian
1443 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
1445 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
1448 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
1450 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
1451 correct value of __Stext here.
1452 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
1455 * emulparams/crislinux.sh: Remove FIXME.
1457 2001-04-02 Alan Modra <alan@linuxcare.com.au>
1459 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
1460 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
1462 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
1464 * configure.tgt (cris-*-*): Change default emulation to criself.
1465 (cris-*-*aout*): New rule.
1467 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
1469 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
1470 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
1472 2001-03-26 Andreas Jaeger <aj@suse.de>
1474 * ld.texinfo (Overview): Fix syntax in texi code.
1476 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1478 * ld.texinfo: Put @c man indications to generate the ld man page.
1479 When generating man, define all the variables. Define SEEALSO
1480 and SYNOPSIS. Re-organize some lines to avoid the cross references.
1481 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
1482 (ld.1): Generate from ld.texinfo.
1483 * Makefile.in: Regenerate.
1485 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
1487 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
1488 and '-fdata-sections'. Set the VMA of STABS sections to zero.
1490 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1492 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
1493 is an absolute path look only for this file and not along the path.
1495 2001-03-17 Ulrich Drepper <drepper@redhat.com>
1497 * emultempl/elf32.em (OPTION_GROUP): New macro.
1498 Add new option Bgroup to longopts.
1499 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
1500 (gld*_list_options): Add -Bgroup and -z defs.
1501 * ld.1: Document -Bgroup and -z defs.
1502 * ld.texinfo: Likewise.
1504 2001-03-07 Michael Meissner <meissner@redhat.com>
1506 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
1507 with sections created by -fdata-sections.
1508 (.dynbss,.bss): Ditto.
1510 2001-03-05 Alan Modra <alan@linuxcare.com.au>
1512 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
1513 after_allocation_default, not gld..._before_allocation.
1515 2001-02-27 Alan Modra <alan@linuxcare.com.au>
1517 * configure.in (BFD_VERSION): New.
1518 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
1519 * configure: Regenerate.
1520 * Makefile.am: Run "make dep-am"
1521 * Makefile.in: Regenerate.
1523 2001-02-26 Timothy Wall <twall@cygnus.com>
1525 * emulparams/elf64_aix.sh: Add additional read-only sections;
1526 uncomment lines which are now required.
1528 2001-02-26 H.J. Lu <hjl@gnu.org>
1530 * ldlang.c (open_input_bfds): Set the bfd error handler so
1531 that problems can be caught whilst loading symbols.
1532 (record_bfd_errors): New function: Report BFD errors and mark
1533 the executable output as being invalid.
1535 2001-02-22 Timothy Wall <twall@cygnus.com>
1537 * configure.host: Add configuration for ia64-*-aix*.
1538 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
1539 Add dependencies for eelf64_aix.c.
1540 * Makefile.in: Regenerate.
1541 * configure.tgt: Add ia64-*-aix* mapping.
1542 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
1543 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
1546 2001-02-20 H.J. Lu <hjl@gnu.org>
1548 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
1549 false if we found the file.
1551 2001-02-18 David O'Brien <obrien@FreeBSD.org>
1553 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
1554 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
1556 2001-02-18 lars brinkhoff <lars@nocrew.org>
1558 * Makefile.am: Add PDP-11 target.
1559 * configure.tgt: Likewise.
1560 * emulparams/pdp11.sh: New file.
1562 2001-02-17 David O'Brien <obrien@FreeBSD.org>
1564 * configure.host: Add a generic FreeBSD configuration entry such that
1565 all [modern] FreeBSD systems on all platforms will look the same.
1567 2001-02-14 H.J. Lu <hjl@gnu.org>
1569 * configure.tgt: Remove mention of earmelf_linux26.
1571 2001-02-13 Richard Henderson <rth@redhat.com>
1573 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
1575 2001-02-13 H.J. Lu <hjl@gnu.org>
1577 * ldexp.h (node_type): Add etree_provided.
1578 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
1579 type to etree_provided if defined by PROVIDE. Allow updating
1581 (exp_print_tree): Handle etree_provided.
1582 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
1585 2001-02-09 David Mosberger <davidm@hpl.hp.com>
1587 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
1588 .IA_64.unwind.* pattern to unwind table section and
1589 .IA_64.unwind_info* pattern to unwind info section.
1591 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
1593 * Makefile.am: Add linux target for S/390.
1594 * Makefile.in: Likewise.
1595 * configure.host: Likewise.
1596 * configure.tgt: Likewise.
1597 * emulparams/elf64_s390.sh: New file.
1598 * emulparams/elf_s390.sh: New file.
1600 2001-02-09 Jakub Jelinek <jakub@redhat.com>
1602 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
1604 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
1606 2001-02-06 Philip Blundell <philb@gnu.org>
1608 * Makefile.am: Remove mention of earmelf_linux26.
1609 * Makefile.in: Regenerate.
1611 2001-02-04 Philip Blundell <philb@gnu.org>
1613 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
1614 * emulparams/armelf_linux26.sh: Delete.
1615 * configure.tgt: Remove mention of armelf_linux26 emulation.
1617 2001-02-01 Nick Clifton <nickc@redhat.com>
1619 * ld.1: Replace occurances of -oformat with --oformat.
1621 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
1623 * ldlang.c (lang_leave_overlay): Don't set lma_region when
1624 load_base is specified.
1626 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
1628 * emultempl/elf32.em: Correct spelling in comments and listed
1631 2001-01-23 Alan Modra <alan@linuxcare.com.au>
1633 * ldlang.c (lang_leave_overlay): Only set lma_region from the
1634 default for the first section of a group of overlay sections.
1636 2001-01-22 Alan Modra <alan@linuxcare.com.au>
1638 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
1639 * Makefile.in: Regenerate.
1640 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
1641 Check for null tool_dir.
1643 2001-01-16 Jim Wilson <wilson@redhat.com>
1645 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
1646 and IA_64.unwind.info.
1648 2001-01-16 H.J. Lu <hjl@gnu.org>
1650 * ldlang.c (lang_check): Merge the private data only if the
1651 input file has contents.
1653 2001-01-14 Alan Modra <alan@linuxcare.com.au>
1655 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
1657 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
1658 enabling search for libmilli. On a relocatable link, make .text
1660 (LDEMUL_AFTER_PARSE): Define.
1661 (hppaelf_finish): Correct spelling of relocatable in comments.
1663 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
1664 rummage through the script for sections on the unique list.
1665 Correct length of strncmp for ".note".
1666 (gld${EMULATION_NAME}_check_needed): Rearrange function.
1668 * ldlang.c (unique_section_list): New var.
1669 (unique_section_p): New function.
1670 (walk_wild_section): Don't match sections on unique_section_list.
1671 (lang_add_unique): New function.
1672 Correct spelling of relocatable in comments.
1674 * ldlang.h (struct unique_sections): Declare.
1675 (unique_section_list): Declare.
1676 (unique_section_p): Declare.
1677 (lang_add_unique): Declare.
1679 * lexsup.c (ld_options): Allow --unique to take an optional arg.
1680 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
1682 * ld.texinfo (--unique): Update.
1684 2001-01-13 Nick Clifton <nickc@redhat.com>
1686 * lexsup.c (parse_args): Remove spurious white space.
1688 2001-01-12 Nick Clifton <nickc@redhat.com>
1690 * lexsup.c (parse_args): Update copyright date.
1692 2001-01-12 Philip Blundell <pb@futuretv.com>
1694 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
1696 2001-01-10 Kazu Hirata <kazu@hxi.com>
1698 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
1699 * scripttempl/h8300h.sc: Fix formatting.
1700 * scripttempl/h8300s.sc: Likewise.
1701 * scripttempl/h8500.sc: Likewise.
1702 * scripttempl/h8500b.sc: Likewise.
1703 * scripttempl/h8500c.sc: Likewise.
1704 * scripttempl/h8500m.sc: Likewise.
1705 * scripttempl/h8500s.sc: Likewise.
1707 2000-01-07 David O'Brien <obrien@BSDi.com>
1709 * emultempl/elf32.em: Only perform Linux ld hints processing when
1712 2001-01-07 Philip Blundell <philb@gnu.org>
1714 * ld.texinfo (Bug Reporting): Update email address for reports.
1716 2000-12-31 Nick Clifton <nickc@redhat.com>
1718 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
1719 options by checking for a return value of '?' not -1.
1721 2000-12-28 Nick Clifton <nickc@redhat.com>
1723 * lexsup.c (struct ld_option): Add new enum value:
1725 (ld_options[]): Change -omagic, -output and -oformat options
1726 to be EXACTLY_TWO_DASHES.
1727 (OUTPUT_COUNT): Use ARRAY_SIZE.
1728 (parse_args): Change parameter 'argc' to unsigned.
1729 Place EXACTLY_TWO_DASHES options into new really_longopts
1731 If getopt_long_only fails, try calling getopt_long using the
1732 really_longopts array.
1733 (help): Print a double dash for both EXACTLY_TWO_DASHES and
1736 * ldlex.h: Fix prototype of parse_args.
1738 * ld.texinfo: Document that long options starting with 'o'
1739 must be preceeded by two dashes. Change example of a single
1740 dashed long option from -oformat to -trace-symbol.
1742 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1744 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
1745 (longopts[]): New --no-default-excludes option.
1746 (gld_${EMULATION_NAME}_list_options): Document.
1747 (gld_${EMULATION_NAME}_parse_args): Handle.
1749 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
1751 * ldlang.c (new_stat): Revert the last beautification with "innocent"
1752 whitespace, it breaks the K&R C preprocessor.
1754 2000-12-11 DJ Delorie <dj@redhat.com>
1756 * ld.texinfo: Add notes about --whole-archive and gcc.
1758 2000-11-18 Fred Fish <fnf@be.com>
1760 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
1761 (ld_options): Entry for --allow-shlib-undefined.
1762 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
1763 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
1765 * ld.texinfo: Document new command line switch.
1767 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
1769 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
1770 .fixup is actually read/write.
1771 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1772 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1773 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
1775 Mon Dec 11 14:50:33 MET 2000 Jan Hubicka <jh@suse.cz>
1777 * NEWS: Add note about x86_64 architecture.
1779 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
1781 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
1782 Set DWARF2 sections to a VMA of zero.
1784 2000-12-01 Joel Sherrill <joel@OARcorp.com>
1786 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
1788 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
1789 (sparc*-*-rtems*): Switched from a.out to ELF.
1791 2000-11-30 Jan Hubicka <jh@suse.cz>
1793 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
1794 (eelf_x86_64.c): New.
1795 * Makefile.in: Regenerate.
1796 * configure.tgt: Add support for x86_64-*-linux-gnu*.
1797 * emulparams/elf_x86_64.sh: New.
1799 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
1801 * emulparams/crislinux.sh (ENTRY): Change back to _start.
1802 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
1804 * scripttempl/crisaout.sc: Change all RELOCATING not related to
1805 merging non-a.out sections into CONSTRUCTING.
1807 2000-11-28 Nick Clifton <nickc@redhat.com>
1809 * ld.1 (COPYING): Mention that the GNU Free Documentation
1810 License is present in the sources, but not the output, and
1811 also available from the GNU website.
1812 (GNU Free Documentation License): Comment out this section.
1814 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
1816 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
1819 2000-11-25 David O'Brien <obrien@FreeBSD.org>
1821 * ld.1: Remove old date so it does not give the impression the manpage
1824 2000-11-24 Nick Clifton <nickc@redhat.com>
1826 * configure.tgt (xscale-coff): Add target.
1827 (xscale-elf): Add target.
1829 2000-11-24 Fred Fish <fnf@be.com>
1831 * ldmain.c (main): Remove redundant init of config.make_executable
1834 2000-11-15 Richard Henderson <rth@redhat.com>
1836 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
1838 2000-11-14 Kazu Hirata <kazu@hxi.com>
1840 * scripttempl/h8300.sc: Fix formatting.
1841 * scripttempl/h8300h.sc: Likewise.
1842 * scripttempl/h8300s.sc: Likewise.
1844 Tue Nov 14 00:59:19 2000 Denis Chertykov <denisc@overta.ru>
1846 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
1848 2000-11-09 Philip Blundell <pb@futuretv.com>
1850 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
1851 around orphan sections whose names can be represented in C.
1853 2000-11-07 Jim Wilson <wilson@redhat.com>
1855 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
1856 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
1858 2000-11-06 Nick Clifton <nickc@redhat.com>
1860 * ld.texinfo: Add GNU Free Documentation License.
1861 * ldint.texinfo: Add GNU Free Documentation License.
1862 * ld.1: Add GNU Free Documentation License.
1864 2000-11-05 Alan Modra <alan@linuxcare.com.au>
1866 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
1867 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
1869 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
1870 Move 2000-11-02 Makefile.in changes to this file.
1871 * Makefile.in: Regenerate.
1873 2000-11-03 Nick Clifton <nickc@redhat.com>
1875 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
1876 constructors and destructors.
1877 * scripttempl/h8300h.sc: Ditto.
1878 * scripttempl/h8300s.sc: Ditto.
1879 * scripttempl/h8500.sc: Ditto.
1880 * scripttempl/h8500b.sc: Ditto.
1881 * scripttempl/h8500c.sc: Ditto.
1882 * scripttempl/h8500m.sc: Ditto.
1883 * scripttempl/h8500s.sc: Ditto.
1884 * scripttempl/v850.sc: Ditto.
1885 * scripttempl/w65.sc: Ditto.
1886 * scripttempl/z8000.sc: Ditto.
1888 2000-11-02 Per Lundberg <plundis@chaosdev.org>
1890 * Makefile.in (e_i386_chaos.c): New rule.
1891 (ALL_EMULATIONS): Added e_i386_chaos.o.
1892 * emulparams/elf_i386_chaos.sh: New file.
1893 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
1895 2000-10-20 Jakub Jelinek <jakub@redhat.com>
1897 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
1898 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
1899 Fix sed invocation, so that it coped with '/' in Solaris 64bit
1900 library path suffix.
1901 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
1903 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
1905 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
1906 for consecutive sections.
1908 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
1910 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
1912 * ld.texinfo: Added notes about this new option.
1914 2000-10-16 Nick Clifton <nickc@redhat.com>
1916 * emultempl/pe.em (_after_open): Add tests of return values from
1917 bfd functions. Emit appropriate error messages if necessary.
1919 2000-10-13 Nick Clifton <nickc@redhat.com>
1921 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
1922 local variables - they are not used, but leave in the call to
1923 bfd_canonicalize_symtab.
1924 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
1925 pe_dll_search_prefix.
1927 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
1929 * emultempl/pe.em (pe_dll_search_prefix): New variable,
1930 (longopts): New --dll-search-prefix option.
1931 (gld_${EMULATION_NAME}_list_options): Document.
1932 (gld_${EMULATION_NAME}_parse_args): Handle.
1933 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
1934 dynamically, search for a dll named '<prefix><basename>.dll'
1935 in preference to 'lib<basename>.dll' if --dll-search-prefix
1938 2000-10-12 Alan Modra <alan@linuxcare.com.au>
1940 * ldlang.c (section_already_linked): Set kept_section instead of
1943 2000-10-10 Kazu Hirata <kazu@hxi.com>
1945 * deffile.h: Fix formatting.
1946 * lexsup.c: Likewise.
1949 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1951 * pe-dll.c (make_one): Do not generate code thunk for DATA
1953 (process_def_file): deduce DATA flag for auto-export sumbols.
1955 2000-10-09 Kazu Hirata <kazu@hxi.com>
1957 * ld.h: Fix formatting.
1958 * ldcref.c: Likewise.
1959 * ldctor.h: Likewise.
1960 * ldemul.c: Likewise.
1961 * ldemul.h: Likewise.
1962 * ldexp.c: Likewise.
1963 * ldexp.h: Likewise.
1964 * ldfile.c: Likewise.
1965 * ldfile.h: Likewise.
1966 * ldlang.c: Likewise.
1967 * ldlang.h: Likewise.
1968 * ldmain.c: Likewise.
1969 * pe-dll.c: Likewise.
1971 * pe-dll.c: Revert some formatting fixes.
1973 2000-10-08 Kazu Hirata <kazu@hxi.com>
1975 * pe-dll.c: Fix formatting.
1977 2000-10-05 Kazu Hirata <kazu@hxi.com>
1979 * ldlang.c: Fix formatting.
1981 2000-10-03 DJ Delorie <dj@redhat.com>
1983 * pe-dll.c (fill_edata): initialize entire block
1984 (make_one): fill in correct section.
1986 2000-10-03 Kazu Hirata <kazu@hxi.com>
1988 * ldexp.c: Fix formatting.
1990 2000-10-02 DJ Delorie <dj@redhat.com>
1992 * emultempl/pe.em (gld_*_after_open): detect case where there two
1993 import libraries for same dll; rename one to ensure proper link
1996 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
1998 (generate_edata): fix typo
2000 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
2002 * scripttempl/crisaout.sc (ENTRY): Now __start.
2003 (.text): Add default setting for __start.
2004 Remove CONSTRUCTORS handling.
2005 (/DISCARD/): Add .gnu.warning.*.
2006 * emulparams/crislinux.sh (ENTRY): Now __start.
2007 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
2008 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
2009 (ENTRY): Now __start.
2010 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
2011 (EXECUTABLE_SYMBOLS): Add default setting for __start.
2013 2000-09-29 Kazu Hirata <kazu@hxi.com>
2015 * deffile.h: Fix formatting.
2017 * ldcref.c: Likewise.
2018 * ldctor.c: Likewise.
2019 * ldctor.h: Likewise.
2020 * ldemul.c: Likewise.
2021 * ldemul.h: Likewise.
2022 * ldexp.c: Likewise.
2023 * ldexp.h: Likewise.
2024 * ldfile.c: Likewise.
2025 * ldfile.h: Likewise.
2026 * ldlang.c: Likewise.
2027 * ldlang.h: Likewise.
2028 * lexsup.c: Likewise.
2030 * pe-dll.c: Likewise.
2032 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2034 * pe-dll.c (process_def_file): Uninitialized data wasn't
2035 exported with --export-all-symbols switch.
2037 2000-09-28 DJ Delorie <dj@redhat.com>
2039 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
2040 noname work properly.
2042 2000-09-28 Alan Modra <alan@linuxcare.com.au>
2044 * ld.texinfo (HPPA ELF32): New section.
2046 * emultempl/hppaelf.em (group_size): New.
2047 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
2048 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
2049 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
2050 options to prevent abbreviations matching.
2051 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
2052 (PARSE_AND_LIST_ARGS_CASES): Handle it.
2054 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2056 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
2057 on the m68*-*-elf target. Make it support COFF input objects.
2059 2000-09-21 Kazu Hirata <kazu@hxi.com>
2061 * ldmain.c: Fix formatting.
2062 * ldmisc.c: Likewise.
2063 * ldver.c: Likewise.
2064 * ldwrite.c: Likewise.
2066 2000-09-21 Alan Modra <alan@linuxcare.com.au>
2068 * ldwrite.c (clone_section): Silence gcc warnings.
2070 2000-09-20 Alan Modra <alan@linuxcare.com.au>
2072 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
2073 out of memory failure.
2075 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
2076 (clone_section): Handle out of memory failures. Rename var to
2077 avoid c++ reserved word.
2079 2000-09-18 Alan Modra <alan@linuxcare.com.au>
2081 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
2082 stub_name param to stub_sec_name.
2083 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
2085 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2087 * emultempl/m68kelf.em: New file.
2088 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
2089 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
2090 * Makefile.in: Regenerate.
2092 2000-09-15 Alan Modra <alan@linuxcare.com.au>
2094 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
2097 2000-09-13 Nick Clifton <nickc@redhat.com>
2099 * ldmain.c (multiple_definition): Disable relaxation if
2100 multiple symbol definitions are encountered - otherwise the
2101 linker could abort with an assertion failure.
2103 2000-09-10 Nick Clifton <nickc@redhat.com>
2105 * mri.c: Fix formatting.
2107 2000-09-07 H.J. Lu <hjl@gnu.org>
2109 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
2110 * configure: Rebuild.
2112 2000-09-07 H.J. Lu <hjl@gnu.org>
2114 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
2115 * Makefile.in: Rebuild.
2117 2000-09-07 Alan Modra <alan@linuxcare.com.au>
2119 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
2120 broken list handling. Create __start_SECNAME and __stop_SECNAME
2121 when no place-holder. Add some comments. Test both SEC_CODE and
2122 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
2123 Handle case where no output section statement created.
2125 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
2127 * configure.tgt (sh-*-linux*): Added.
2128 * Makefile.am: Added eshelf_linux and eshlelf_linux.
2129 * Makefile.in: Rebuilt.
2130 * emulparams/shelf_linux.sh: New file.
2131 * emulparams/shlelf_linux.sh: New file.
2133 2000-09-06 Alan Modra <alan@linuxcare.com.au>
2135 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2136 try shuffling sections when the orphan happens to be the place
2137 holder. Keep count of unique section names generated so we speed
2138 the search for a new name.
2140 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
2142 * configure: Rebuilt with new libtool.m4.
2144 2000-09-05 Nick Clifton <nickc@redhat.com>
2146 * Makefile.in: Regenerate.
2147 * aclocal.m4: Regenerate.
2148 * configure: Regenerate.
2149 * config.in: Regenerate.
2150 * po/ld.pot: Regenerate.
2152 * ldint.texinfo: Remove CVS revision marker - it foils local
2155 * emultempl/ticoff.em: Remove extraneous comma.
2157 2000-09-05 Alan Modra <alan@linuxcare.com.au>
2159 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
2160 to stub section flags.
2161 (hppa_for_each_input_file_wrapper): New.
2162 (hppa_lang_for_each_input_file): New.
2163 (lang_for_each_input_file): Define to call above.
2164 (multi_subspace): New.
2165 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
2166 (PARSE_AND_LIST_PROLOGUE): Define.
2167 (PARSE_AND_LIST_LONGOPTS): Define.
2168 (PARSE_AND_LIST_OPTIONS): Define.
2169 (PARSE_AND_LIST_ARGS_CASES): Define.
2170 (hppaelf_finish): Call elf32_hppa_set_gp.
2171 (hppaelf_set_output_arch): Remove.
2172 (LDEMUL_SET_OUTPUT_ARCH): Remove.
2174 * emulparams/hppalinux.sh (ELFSIZE): Define.
2176 (OTHER_READONLY_SECTIONS): Define.
2178 (GENERATE_SHLIB_SCRIPT): Define.
2180 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
2181 to const throughout. Change `void *' to `PTR' throughout.
2182 (lang_memory_default): Function is local to file, add `static'.
2184 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
2185 (ehppalinux.c): Likewise.
2186 (earmelf.c): Likewise.
2187 (earmelf_linux.c): Likewise.
2188 (earmelf_linux26.c): Likewise.
2189 * Makefile.in: Regenerate.
2191 * ld.h (ld_config_type): Add unique_orphan_sections.
2192 * lexsup.c (OPTION_UNIQUE): Define.
2193 (ld_options): Add "--unique".
2194 (parse_args): Handle it.
2195 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2196 search for an existing output section if unique_orphan_sections is
2197 set. Make use of bfd_get_unique_section_name rather than
2198 duplicating code here.
2199 * ld.texinfo: Describe --unique.
2201 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
2202 optional arg to split-by-file.
2203 (parse_args): Handle them.
2204 * ld.texinfo: Update description of these options.
2205 * ldwrite.c (clone_section): Pass in the section name. Replace
2206 local code with bfd_get_unique_section_name.
2207 (split_sections): Tidy code and comments. Use a list traversal
2208 more appropriate to the list construction. Handle cooked section
2209 sizes. Split when split_by_reloc reached rather than exceeded.
2210 Track section size and split when split_by_file reached. Fix
2211 link_order_tail (even though it's not used).
2212 (ldwrite): Modify condition for calling split_sections to suit
2213 changed split_by_reloc and split_by_file.
2214 * ldmain.c (main): Init config.split_by_reloc and
2215 config.split_by_file to -1.
2216 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
2217 Change split_by_file to bfd_size_type.
2219 2000-09-02 Nick Clifton <nickc@redhat.com>
2221 * configure.in: Increase version number to 2.10.91.
2222 * NEWS: Mention new ability to support removal of duplicate DWARF2
2224 * configure: Regenerate.
2225 * aclocal.m4: Regenerate.
2226 * config.in: Regenerate.
2228 2000-09-02 Daniel Berlin <dberlin@redhat.com>
2230 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
2232 * scripttempl/elf32avr.sc: Ditto.
2233 * scripttempl/elfd10v.sc: Ditto.
2234 * scripttempl/elfd30v.sc: Ditto.
2235 * scripttempl/elfi370.sc: Ditto.
2236 * scripttempl/elfm68hc11.sc: Ditto.
2237 * scripttempl/elfm68hc12.sc: Ditto.
2238 * scripttempl/elfi386beos.sc: Ditto.
2239 * scripttempl/v850.sc: Ditto.
2241 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
2243 * acinclude.m4: Include libtool and gettext macros from the
2245 * aclocal.m4, configure: Rebuilt.
2247 2000-08-25 Nick Clifton <nickc@redhat.com>
2249 * ldlang.c (open_output): When choosing the target for a
2250 particular endianness, do nothing if the target is not
2253 2000-08-25 H.J. Lu <hjl@gnu.org>
2255 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
2256 check -rpath nor LD_RUN_PATH for cross link.
2257 * ld.texinfo: Document the change.
2259 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
2261 * NEWS: Mention support for CRIS.
2263 2000-08-23 H.J. Lu <hjl@gnu.org>
2265 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
2266 the current runpath list from bfd_elf_get_runpath_list ()
2269 2000-08-22 H.J. Lu <hjl@gnu.org>
2271 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
2272 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
2273 LD_LIBRARY_PATH for native linker. Display the needed DSO if
2274 trace_file_tries is non-zero.
2275 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
2276 if trace_file_tries is non-zero.
2278 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
2281 2000-08-14 Jason Eckhardt <jle@cygnus.com>
2283 * NEWS: Mention i860 support.
2285 2000-08-14 Andreas Schwab <schwab@suse.de>
2287 * scripttempl/elf.sc: Fix last change to use correct comment
2290 2000-08-10 Geoff Keating <geoffk@cygnus.com>
2292 * scripttempl/elf.sc: Add a comment giving the correspondence
2293 between sections, per-datum sections, and linkonce sections. Make
2294 the comment true even for .bss, .sdata, .sdata2, .sbss, and
2297 2000-08-10 Jason Eckhardt <jle@cygnus.com>
2299 * emulparams/elf32_i860.sh: New file.
2300 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
2301 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
2302 (eelf32_i860.c): New rule.
2303 * Makefile.in: Regenerate.
2305 2000-08-10 Nick Clifton <nickc@cygnus.com>
2307 * emulparams/mipspe.sh (ENTRY): Add definition.
2309 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
2311 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
2314 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2316 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
2317 the final size of .bss section.
2318 * scripttempl/elfm68hc12.sc: Likewise.
2320 2000-08-04 Alan Modra <alan@linuxcare.com.au>
2322 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
2323 gld${EMULATION_NAME}_parse_args for consistency. Combine
2324 lastoptind and prevoptind vars, and keep track of last optind.
2325 (gld_${EMULATION_NAME}_list_options): Rename to
2326 gld${EMULATION_NAME}_list_options.
2328 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
2330 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
2331 (i586-sco-sysv5uw7.1.0).
2333 2000-07-27 H.J. Lu <hjl@gnu.org>
2335 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
2336 (PARSE_AND_LIST_PROLOGUE): New.
2337 (PARSE_AND_LIST_LONGOPTS): Likewise.
2338 (PARSE_AND_LIST_OPTIONS): Likewise.
2339 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2340 (PARSE_AND_LIST_EPILOGUE): Likewise.
2342 2000-07-28 Alan Modra <alan@linuxcare.com.au>
2344 * emultempl/armelf.em: Elide functions common to elf32.em,
2345 ie. most of the file.
2346 (arm_elf_after_open): New. Do arm specific things then call
2347 gld${EMULATION_NAME}_after_open.
2348 (arm_elf_before_allocation): New. Call
2349 gld${EMULATION_NAME}_before_allocation then do arm specifics.
2350 (PARSE_AND_LIST_PROLOGUE): Define.
2351 (PARSE_AND_LIST_SHORTOPTS): Define.
2352 (PARSE_AND_LIST_LONGOPTS): Define.
2353 (PARSE_AND_LIST_OPTIONS): Define.
2354 (PARSE_AND_LIST_ARGS_CASES): Define.
2355 (LDEMUL_AFTER_OPEN): Define.
2356 (LDEMUL_BEFORE_ALLOCATION): Define.
2357 (LDEMUL_BEFORE_PARSE): Define.
2358 (LDEMUL_FINISH): Define.
2360 * emultempl/hppaelf.em: Similarly zap most of this file.
2361 (hppaelf_add_stub_section): Prototype.
2362 (hppaelf_layaout_sections_again): Prototype.
2363 (hook_in_stub): Prototype.
2364 (LDEMUL_SET_OUTPUT_ARCH): Define.
2365 (LDEMUL_FINISH): Define.
2366 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
2368 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
2369 (EXTRA_EM_FILE): New.
2370 * emulparams/armelf_linux.sh: Likewise.
2371 * emulparams/armelf_linux26.sh: Likewise.
2372 * emulparams/hppalinux.sh: Likewise.
2373 * emulparams/hppaelf.sh: Likewise.
2376 * emultempl/elf32.em: Fix formatting.
2377 (EXTRA_EM_FILE): Source it.
2378 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
2379 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
2380 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
2381 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
2382 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
2383 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
2384 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
2385 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
2386 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
2387 allow functions in this file to be overridden.
2388 (PARSE_AND_LIST_SHORTOPTS): Handle it.
2390 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
2392 * emultempl/elf32.em: Reorganize file.
2394 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
2396 * emulparams/elf64alpha.sh: Implement "-taso" emulation
2397 specific option to fit 64-bit executable in the lower
2398 31-bit address range. This is done by changing start
2399 address of .interp (the very first section of executable)
2400 and then setting EF_ALPHA_32BIT elf header flag.
2402 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2404 * emultempl/m68kcoff.em: New file.
2405 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
2406 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
2408 * Makefile.in: Regenerate.
2410 2000-07-20 H.J. Lu <hjl@gnu.org>
2412 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
2413 and "disable-new-dtags" to stop getopt from treating -d/-e as
2414 abbreviations for these options.
2416 2000-07-20 H.J. Lu <hjl@gnu.org>
2418 * ld.texinfo: Add documentation for --disable-new-dtags and
2421 * ldmain.c (main): Initialize link_info.new_dtags to false.
2423 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
2424 --disable-new-dtags and --enable-new-dtags.
2425 (gld_${EMULATION_NAME}_list_options): Likewise.
2427 2000-07-05 Kenneth Block <krblock@computer.org>
2429 * lexsup.c: Add optional style to demangle switch
2430 * ld.texinfo: Document optional style to demangle switch.
2432 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
2434 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
2436 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
2437 Regenerate dependencies.
2438 * Makefile.in: Rebuild.
2439 * configure.tgt (cris-*-*): New target.
2440 * emulparams/crisaout.sh, emulparams/criself.sh,
2441 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
2442 * po/POTFILES.in, po/ld.pot: Regenerate.
2444 2000-07-20 H.J. Lu <hjl@gnu.org>
2446 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
2447 Print out ignored -z options.
2449 2000-07-19 H.J. Lu <hjl@gnu.org>
2451 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
2452 (PARSE_AND_LIST_PROLOGUE): New.
2453 (PARSE_AND_LIST_LONGOPTS): Likewise.
2454 (PARSE_AND_LIST_OPTIONS): Likewise.
2455 (PARSE_AND_LIST_ARGS_CASES): Likewise.
2457 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
2459 * lexsup.c (ld_options): Comment out 'z'.
2460 (parse_args): Likewise.
2462 * emultempl/elf32.em: Include "elf/common.h".
2463 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
2465 (gld_${EMULATION_NAME}_list_options): Likewise.
2467 * ld.texinfo: Add documentation for the recognized -z options.
2469 2000-07-19 H.J. Lu <hjl@gnu.org>
2471 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
2472 bfd_elf_set_dt_needed_soname ().
2474 2000-07-18 DJ Delorie <dj@cygnus.com>
2476 * pe-dll.c (pe_dll_id_target): check object target name also
2478 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
2480 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
2481 ${INIT_END} if relocating.
2482 (.fini): Likewise ${FINI_START} and ${FINI_END}.
2484 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
2486 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
2487 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
2488 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
2489 errors introduced by the old dynamic lib search order.
2491 2000-07-17 DJ Delorie <dj@cygnus.com>
2493 * pe-dll.c (process_def_file): auto-export data items also
2494 (pe_process_import_defs): also see if _imp_ form needed
2496 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
2498 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
2499 for dll import libraries
2501 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
2503 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
2504 gcc 2.95.2 and later.
2506 2000-07-11 Kazu Hirata <kazu@hxi.com>
2508 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
2511 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2513 * ldemul.h (struct lang_input_statement_struct): Remove forward
2515 (struct search_dirs): Likewise.
2516 * ldfile.h (struct lang_input_statement_struct): Likewise.
2517 Protect file from multiple inclusion.
2518 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
2519 declaration from macro to file scope.
2521 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
2522 * ldgram.y: Likewise here.
2523 * ldlang.c: And here.
2524 * ldmain.c: And here.
2525 * mpw-elfmips.c: And here.
2526 * mpw-eppcmac.c: And here.
2527 * emultempl/aix.em: And here.
2528 * emultempl/armcoff.em: And here.
2529 * emultempl/armelf.em: And here.
2530 * emultempl/armelf_oabi.em: And here.
2531 * emultempl/beos.em: And here.
2532 * emultempl/elf32.em: And here.
2533 * emultempl/hppaelf.em: And here.
2534 * emultempl/linux.em: And here.
2535 * emultempl/lnk960.em: And here.
2536 * emultempl/pe.em: And here.
2537 * emultempl/sunos.em: And here.
2538 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
2539 * mpw-idtmips.c: Ditto.
2540 * emultempl/generic.em: Ditto.
2541 * emultempl/gld960.em: Ditto.
2542 * emultempl/gld960c.em: Ditto.
2543 * emultempl/mipsecoff.em: Ditto.
2544 * emultempl/ticoff.em: Ditto.
2545 * emultempl/vanilla.em: Ditto.
2547 * pe-dll.c: Include ldfile.h
2548 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
2550 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
2551 arguments to bfd_elf32_size_dynamic_sections call.
2552 (gldelf32ebmip_place_orphan): Add missing arguments to
2553 lang_leave_output_section_statement call.
2555 2000-07-10 H.J. Lu <hjl@gnu.org>
2557 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
2559 (strhash): Likewise.
2560 (compute_dll_image_base): Likewise.
2561 (pe_undef_found_sym): Likewise.
2562 (pe_undef_cdecl_match): Likewise.
2563 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
2564 argument "arch" with ATTRIBUTE_UNUSED.
2566 2000-07-10 Alan Modra <alan@linuxcare.com.au>
2568 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
2570 From Ryan Bradetich <rbradetich@uswest.net>
2571 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
2573 2000-07-09 Alan Modra <alan@linuxcare.com.au>
2575 Changes to create multiple linker stubs, positioned immediately
2576 before the section where they are required.
2577 * emultempl/hppaelf.em: Include elf32-hppa.h.
2578 (stub_sec, file_chain): Delete.
2579 (hppaelf_create_output_section_statements): Don't make a stub
2581 (hook_stub_info): New struct.
2582 (hook_in_stub): New function.
2583 (hppaelf_add_stub_section): New function.
2584 (hppaelf_finish): Do nothing for relocateable links. Modify the
2585 call to elf32_hppa_size_stubs. Move code for updating section
2587 (hppaelf_layaout_sections_again): ..to here, a new function.
2589 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
2590 broken list handling. Pass in a pointer to the list.
2591 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
2593 (hppaelf_before_parse): Prototype.
2594 (hppaelf_set_output_arch): Prototype.
2595 (hppaelf_create_output_section_statements): Prototype.
2596 (hppaelf_delete_padding_statements): Prototype.
2597 (hppaelf_finish): Prototype.
2600 * emultempl/hppaelf.em: Include ctype.h.
2601 (struct orphan_save): New.
2602 (gld${EMULATION_NAME}_place_orphan): New.
2603 (output_rel_find): New.
2604 (hppaelf_get_script): Update from elf32.em.
2605 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
2606 Change emulation_name field to "${EMULATION_NAME}". Add
2607 gld${EMULATION_NAME}_place_orphan.
2609 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
2610 ehppalinux.o, sort it. Regenerate dependencies.
2611 (ehppalinux.c): Depend on hppaelf.em
2612 * Makefile.in: Regenerate.
2614 * configure.tgt: targ_emul=hppalinux for hppa*linux
2616 * emulparams/hppalinux.sh: New.
2617 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
2619 2000-07-08 Alan Modra <alan@linuxcare.com.au>
2621 * lexsup.c (parse_args): Copy section name.
2623 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
2625 * emultempl/pe.em: institute the following search order for
2626 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
2627 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
2628 static lib (libfoo.a) if none of the above are found.
2630 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
2632 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
2633 (longopts): New --{enable,disable}-auto-image-base options.
2634 (gld_${EMULATION_NAME}_list_options): Document.
2635 (gld_${EMULATION_NAME}_parse): Handle.
2636 (strhash): New static function.
2637 (compute_dll_image_base): New static function.
2638 (gld_${EMULATION_NAME}_set_symbols): Use.
2640 2000-07-05 DJ Delorie <dj@redhat.com>
2644 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
2646 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
2647 * emulparams/elf32btsmip.sh: New file.
2648 * Makefile.am: Add traditional mips target.
2649 * Makefile.in: Rebuild.
2651 2000-07-01 H.J. Lu <hjl@gnu.org>
2653 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
2654 automake to use YLWRAP.
2655 * Makefile.in: Rebuild.
2657 2000-07-01 Alan Modra <alan@linuxcare.com.au>
2659 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
2660 (CLEANFILES): Add DEPA.
2661 * Makefile.in: Regenerate.
2663 2000-06-30 Timothy Wall <twall@ppc>
2665 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
2666 the page in the upper octet of the address.
2668 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
2670 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
2672 2000-06-24 Alan Modra <alan@linuxcare.com.au>
2674 * NEWS: arm-elf does --gc-sections too.
2676 2000-06-22 Alan Modra <alan@linuxcare.com.au>
2678 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
2680 * Makefile.in: Regenerate.
2682 2000-06-21 H.J. Lu <hjl@gnu.org>
2684 * Makefile.am: Rebuild dependency.
2685 * Makefile.in: Rebuild.
2687 2000-06-20 H.J. Lu <hjl@gnu.org>
2689 * Makefile.am: Rebuild dependency.
2690 * Makefile.in: Rebuild.
2692 2000-06-20 Timothy Wall <twall@cygnus.com>
2694 * scripttempl/tic54xcoff.sc: New.
2695 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
2696 * gen-doc.texi: Add flag for TI COFF.
2697 * ld.texinfo: Add documentation for TI COFF handling switches.
2698 * emultempl/ticoff.em: New. TI COFF handling.
2699 * configure.tgt: Add tic54x target.
2700 * Makefile.am: Add tic54x target.
2701 * Makefile.in: Ditto.
2703 2000-06-20 Alan Modra <alan@linuxcare.com.au>
2705 * ldmain.c (set_scripts_dir): Correct pointer comparison when
2706 checking for backslashes.
2708 2000-06-19 Alan Modra <alan@linuxcare.com.au>
2710 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
2712 2000-06-18 Alan Modra <alan@linuxcare.com.au>
2714 * NEWS: Update list of targets supporting --gc-sections.
2716 * scripttempl/elf.sc: KEEP .eh_frame contents.
2717 * scripttempl/elfd30v.sc: Same here.
2719 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
2721 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
2723 * Makefile.in: Rebuild.
2724 * configure.tgt: Recognize m68hc12 and m68hc11.
2725 * scripttempl/elfm68hc12.sc: New file.
2726 * emulparams/m68hc12elfb: New emulation.
2727 * emulparams/m68hc12elf: New emulation.
2728 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
2729 (includes a memory.x script to define the ROM and RAM banks).
2730 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
2731 New configuration files for support of Motorola 68hc11
2733 2000-06-15 Alan Modra <alan@linuxcare.com.au>
2735 * ldmain.c (main): Only change SEC_READONLY for final link.
2737 2000-06-13 H.J. Lu <hjl@gnu.org>
2739 * configure: Regenerate.
2741 2000-06-08 David O'Brien <obrien@FreeBSD.org>
2743 * configure.in (VERSION): Update to show this is the CVS mainline.
2745 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2747 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
2748 input objects to be ECOFF.
2749 (check_sections): einfo takes %B, not %P, to print a BFD name.
2751 2000-06-05 Michael Matz <matz@ifh.de>
2753 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
2756 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
2758 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
2760 * emulparams/avr1200.sh (STACK): Define as 0.
2761 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
2762 * emulparams/avr4433.sh (STACK): Likewise.
2763 * emulparams/avr44x4.sh (STACK): Likewise.
2764 * emulparams/avr85xx.sh (STACK): Likewise.
2765 * emulparams/avrmega103.sh (STACK): Likewise.
2766 * emulparams/avrmega161.sh (STACK): Likewise.
2767 * emulparams/avrmega603.sh (STACK): Likewise.
2768 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
2769 (__stack): Define from ${STACK} for main().
2771 2000-05-26 Alan Modra <alan@linuxcare.com.au>
2773 * Makefile.am: Update dependencies with "make dep-am"
2774 * Makefile.in: Regenerate.
2776 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
2778 * ldmain.c: Include filenames.h.
2779 (set_scripts_dir): Support backslashes in program name.
2781 2000-05-22 Igor Shevlyakov <igor@windriver.com>
2783 * ldmain.c (main): When deciding if ".text" section should be
2784 read-only, don't forget to reset SEC_READONLY because it
2785 could be already set.
2787 2000-05-22 Thomas de Lellis <tdel@windriver.com>
2789 * ld.1: Add documentation for new command line option:
2790 --section-start <sectionname>=<sectionorg>
2791 This is a generic version of -Ttext etc. which accepts
2792 any section name as a parameter instead of just text/data/
2794 * ld.texinfo: More docs.
2796 * lexsup.c: (parse_args): Recognize new command line option.
2797 (ld_options): Add new option.
2799 2000-05-18 H.J. Lu <hjl@gnu.org>
2801 * lexsup.c (parse_args): `i' == `r', not `q'.
2803 Thu May 18 10:47:57 2000 Jeffrey A Law (law@cygnus.com)
2805 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
2807 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
2808 Rick Gorton <gorton@scrugs.lkg.dec.com>
2810 Add support for '-q' == '--emit-relocs' switch.
2811 * ldmain.c (main): Default to false.
2812 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
2813 * NEWS: Describe the emitrelocations switch.
2814 * ld.texinfo: Describe the emitrelocations switch.
2816 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
2818 * emultempl/pe.em (_open_dynamic_archive): New function: Search
2819 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
2820 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
2823 2000-05-15 David O'Brien <obrien@FreeBSD.org>
2825 * lexsup.c (parse_args): Update the year in the copyright notice.
2827 2000-05-13 Alan Modra <alan@linuxcare.com.au>
2829 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
2830 Replace defines with those from intl/libgettext.h to quieten gcc
2833 2000-05-10 H.J. Lu <hjl@gnu.org>
2835 * ldlang.c (open_input_bfds): Don't load the same file within
2836 a group again if the whole archive has been loaded already.
2838 2000-05-03 Alan Modra <alan@linuxcare.com.au>
2840 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
2841 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
2844 Mon May 1 17:34:34 2000 Jim Wilson <wilson@cygnus.com>
2846 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
2848 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
2849 host "ia64-*-linux-gnu*".
2851 2000-04-29 Andreas Jaeger <aj@suse.de>
2853 * ld.h: Correctly check GCC version.
2855 Tue Apr 25 11:20:43 2000 Jeffrey A Law (law@cygnus.com)
2857 * Makefile.am: Add PA64 support. Add missing dependencies for
2859 * Makefile.in: Rebuilt.
2860 * configure.tgt: Add PA64 support (currently disabled).
2862 2000-04-25 Alan Modra <alan@linuxcare.com.au>
2864 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
2865 (output_rel_find): New function.
2866 (hold_section, hold_use): Delete.
2867 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2868 hold_interp): Make local to place_orphan.
2869 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
2870 rather than place_section to find possible previous use of orphan.
2871 Similarly find the place-holder output sections. Use returned
2872 value from lang_enter_output_section_statement rather than calling
2873 lang_output_section_statement_lookup.
2874 * emultempl/armelf.em: Same here.
2875 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
2877 * ldlang.c (lang_enter_output_section_statement): Return output
2879 * ldlang.h (lang_enter_output_section_statement): Change
2882 * ldlang.h (lang_output_section_statement): Export it.
2883 * ldlang.c (lang_output_section_statement): Ditto.
2885 2000-04-24 Nick Clifton <nickc@cygnus.com>
2887 * ld.texinfo (Output Section Data): Add note that section data
2888 commands cannot appear outside of section directives.
2890 2000-04-2 Matthew Green <mrg@cygnus.com>
2892 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
2894 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
2895 David Mosberger <davidm@hpl.hp.com>
2897 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
2898 (eelf64_ia64.c): New rule.
2899 * Makefile.in: Rebuild.
2900 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
2901 * emulparams/elf64_ia64.sh: New file.
2903 2000-04-21 Richard Henderson <rth@cygnus.com>
2905 * scripttempl/elfd30v.sc: Place .gcc_except_table.
2907 2000-04-19 Alan Modra <alan@linuxcare.com.au>
2909 * dep-in.sed: Match space at start of file name, not at end.
2911 2000-04-18 H.J. Lu <hjl@gnu.org>
2913 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
2914 lang_leave_output_section_statement () after calling
2915 lang_enter_output_section_statement ().
2916 * emultempl/armelf.em: Likewise.
2918 2000-04-18 Alan Modra <alan@linuxcare.com.au>
2920 * emultempl/elf32.em (struct orphan_save): Add section field.
2921 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
2922 better order, and place first orphan section as we did before the
2923 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
2924 Don't call make_bfd_section here, let wild_doit do the job for us.
2925 Don't build a statement list when we'll only throw it away.
2926 * emultempl/armelf.em: Ditto.
2927 * emultempl/pe.em: Similarly.
2929 2000-04-14 Geoff Keating <geoffk@cygnus.com>
2931 * scripttempl/elfppc.sc: Remove.
2932 * emulparams/elf32ppc.sh: Use elf.sc.
2933 * emulparams/elf32lppc.sh: Use elf.sc.
2934 * emulparams/elf32ppclinux.sh: Use elf.sc.
2935 * emulparams/elf32ppcsim.sh: New file.
2936 * emulparams/elf32lppcsim.sh: New file.
2937 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
2938 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
2939 * Makefile.in: Regenerate.
2940 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
2942 2000-04-14 Alan Modra <alan@linuxcare.com.au>
2944 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
2945 ~SEC_ALLOC sections too. Init start address of debug sections.
2946 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2947 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
2948 Also set all relocateable section start addresses.
2950 2000-04-13 Geoff Keating <geoffk@cygnus.com>
2952 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
2953 Add new BSS_PLT variable for when .plt need not be contained in
2954 the file. Move _etext so that it is also after .fini, and provide
2955 both etext and _etext with a leading underscore. Mark the start
2958 2000-04-12 Alan Modra <alan@linuxcare.com.au>
2960 * emultempl/elf32.em (struct orphan_save): New.
2961 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
2962 hold_interp): Make them struct orphan_save.
2963 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
2964 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
2965 the end of the relevant section list. Also add associated section
2966 statements to the end of any previous orphan statements.
2967 * emultempl/armelf.em: Similarly.
2968 * emultempl/pe.em: Similarly.
2970 2000-04-11 Alan Modra <alan@linuxcare.com.au>
2972 * ld.texinfo (Simple Example): Remove extraneous paragraph.
2974 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
2976 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
2977 --enable-build-warnings option.
2978 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
2979 * Makefile.in, configure: Re-generate.
2981 2000-04-04 Alan Modra <alan@linuxcare.com.au>
2983 * po/ld.pot: Regenerate.
2985 * lexsup.c (help): Restore translated part of bug string.
2987 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
2988 (DEP): Quote when passing vars to sub-make. Add warning message
2990 (DEP1): Rewrite for "gcc -MM".
2991 (CLEANFILES): Add DEP2.
2992 Update dependencies.
2993 * Makefile.in: Regenerate.
2995 2000-04-03 Alan Modra <alan@linuxcare.com.au>
2997 * ld.h: #include "bin-bugs.h"
2998 * lexsup.c (help): Use REPORT_BUGS_TO.
3000 2000-03-27 Denis Chertykov <denisc@overta.ru>
3002 * configure.tgt (avr-*-*): New target support.
3003 * Makefile.am: Likewise.
3004 * scripttempl/elf32avr.sc: New script file.
3005 * emulparams/avr1200.sh: New file.
3006 * emulparams/avr23xx.sh: New file.
3007 * emulparams/avr4433.sh New file.
3008 * emulparams/avr44x4.sh New file.
3009 * emulparams/avr85xx.sh New file.
3010 * emulparams/avrmega103.sh New file.
3011 * emulparams/avrmega161.sh New file.
3012 * emulparams/avrmega603.sh New file.
3013 * Makefile.in: Regenerate.
3015 2000-03-09 Andreas Jaeger <aj@suse.de>
3017 * Makefile.am (check-DEJAGNU): Also unset LANG.
3018 * Makefile.in: Rebuild.
3020 2000-03-06 Ian Lance Taylor <ian@zembu.com>
3022 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
3025 2000-03-02 H.J. Lu <hjl@gnu.org>
3027 * emulparams/elf32mcore.sh: Include "getopt.h".
3029 2000-03-01 Ian Lance Taylor <ian@zembu.com>
3031 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
3033 2000-03-01 H.J. Lu <hjl@gnu.org>
3035 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
3036 * emulparams/shpe.sh: Likewise.
3038 2000-03-01 Nick Clifton <nickc@cygnus.com>
3040 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
3041 to unused parameters.
3043 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
3044 functions only used by DLL code.
3045 (_place_orphan): Initialise 'dollar'.
3047 2000-03-01 H.J. Lu <hjl@gnu.org>
3049 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
3050 indicate if the undefined symbol is a fatal error or not.
3051 Don't delete the output file if "fatal" is false.
3053 2000-02-29 H.J. Lu <hjl@gnu.org>
3055 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
3056 Set LC_COLLATE and LC_ALL to null and export them. It is for
3057 sort which expects the C locale.
3058 Add $(LIBS) to all $(HOSTING_LIBS).
3059 * Makefile.in: Rebuild.
3061 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
3063 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
3064 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
3065 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
3066 (ld_emulation_xfer_struct): Add missing NULL initialiser for
3067 find_potential_libraries.
3069 2000-02-28 Jim Blandy <jimb@redhat.com>
3071 * ldgram.y (exclude_name_list): Don't require a comma to separate
3072 list entries; the lexer considers commas to be valid part of a
3073 filename, so in something like `foo, bar' the comma is considered
3074 part of the first filename, `foo,'.
3075 * ld.texinfo: Update section on EXCLUDE_FILE lists.
3077 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
3079 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3080 host "i[3456]86-*-freebsdelf*".
3082 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
3084 * scripttempl/i386go32.sc: Move misplaced semicolons.
3086 2000-02-25 Ian Lance Taylor <ian@zembu.com>
3088 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
3089 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
3090 (eelf64hppa.c, ehppaelf.c): Remove targets.
3091 * Makefile.in: Rebuild.
3093 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
3095 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
3096 GNU/Linux/sparc, but keep the default as 32.
3098 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
3099 it default if sparcv9 or sparc64.
3101 2000-02-24 Nick Clifton <nickc@cygnus.com>
3103 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
3104 * Makefile.in: Regenerate.
3105 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
3107 * ldemul.h (ld_emulation_xfer_struct): Add new field:
3108 find_potential_libraries.
3109 * ldemul.c (ldemul_find_potential_libraries): New function.
3111 * ldfile.c (ldfile_open_file_search): Allow function to be
3113 (ldfile_open_file): Call ldemul_find_potential_libraries.
3114 * ldfile.h: Add prototype for ldfile_open_file_search.
3116 * pe-dll.c: Add support for ARM, MIPS and SH targets.
3118 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
3119 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
3121 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
3122 (gld_X_find_potential_libraries): New function. Search for
3123 libraries called "*.lib".
3125 * scripttempl/pe.sc: Add .pdata section.
3127 2000-02-23 Richard Henderson <rth@cygnus.com>
3129 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
3130 Add and use memory regions.
3132 2000-02-23 Linas Vepstas (linas@linas.org)
3134 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
3136 * Makefile.am: Add support for Linux/IBM 370.
3137 * configure.tgt: Likewise.
3139 * Makefile.in: Regenerate.
3141 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
3143 * ldlang.c (print_input_section, print_data_statement,
3144 print_reloc_statement, print_padding_statement, insert_pad,
3145 size_input_section, lang_check_section_addresses,
3146 lang_size_sections, lang_do_assignments, lang_set_startof,
3147 lang_one_common): Change `opb' to unsigned.
3148 (lang_do_assignments): Also change `size' to unsigned.
3150 2000-02-16 Richard Henderson <rth@cygnus.com>
3152 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
3154 2000-02-16 Timothy Wall <twall@cygnus.com>
3156 * mri.c (mri_draw_tree): Add default LMA region argument to call
3157 to lang_leave_output_section_statement.
3158 * ldlang.h: Update prototypes with LMA region arguments.
3159 * ldlang.c (lang_size_sections): Encapsulate region bounds
3160 checking in os_check_region call.
3161 (os_check_region): New function.
3162 (lang_output_section_statement_lookup): Initialize lma_region.
3163 (lang_leave_output_section_statement): Add LMA region argument.
3164 (lang_leave_overlay): Ditto.
3165 * ldgram.y: Handle LMA region syntax.
3166 * ld.texinfo (Output Section Description): Describe LMA region usage.
3167 * emultempl/armelf.em (gld$place_orphan): Add default value for
3168 lma region in call to lang_leave_output_section_statement.
3169 * emultempl/elf32.em (gld$place_orphan): Add default value for
3170 lma region in call to lang_leave_output_section_statement.
3171 * emultempl/pe.em (gld$place_orphan): Add default value for
3172 lma region in call to lang_leave_output_section_statement.
3175 2000-02-04 Timothy Wall <twall@redhat.com>
3177 * ldlang.c (lang_check_section_addresses): Use bytes instead of
3178 octets when calculating section end addresses.
3180 2000-02-04 Timothy Wall <twall@redhat.com>
3182 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
3184 2000-02-03 Timothy Wall <twall@redhat.com>
3186 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
3188 * ldlang.c (print_input_section, print_data_statement,
3189 print_reloc_statement, print_padding_statement): Print target
3190 address values and section sizes as bytes, not octets.
3191 (insert_pad) Calculate padding size in octets, and adjust "dot"
3193 (size_input_section) Always adjust "dot" by bytes, not octets.
3194 (lang_check_section_addresses, lang_do_assignments) Adjust
3195 "dot" by bytes, not octets. Use the larger of the directive size
3196 or octets_per_byte for the number of octets actually allocated in
3198 (lang_set_startof) Make sure STARTOF returns a target address.
3199 (lang_one_common) Record size changes in octets.
3200 (lang_abs_symbol_at_end_of) Section end symbol's value is
3201 recorded in target bytes.
3202 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
3203 to be clear about behavior when an octet is smaller than one byte.
3205 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
3207 * ldcref.c (output_cref): Don't pass message strings to printf
3211 * ldmisc.c (vfinfo): Same here.
3214 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
3216 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
3217 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
3218 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
3219 Add missing NULL initialisers, and comments.
3221 * testsuite/ld-srec/sr3.cc (__rethrow): New.
3223 2000-01-21 Nick Clifton <nickc@cygnus.com>
3225 * ldlang.c (lang_size_sections): Fix typo in comment.
3227 2000-01-18 H.J. Lu <hjl@gnu.org>
3229 * ldlang.c (lang_size_sections): Also update the current
3230 address of a region if the SEC_NEVER_LOAD bit is not set.
3232 2000-01-10 Philip Blundell <pb@futuretv.com>
3234 * configure.tgt (arm*-*-conix*): New target.
3236 2000-01-07 Nick Clifton <nickc@cygnus.com>
3238 * ld.texinfo (Options): Remind users to preceed linker command
3239 line switches with -Wl, (or whatever is appropriate) if it is
3240 being invoked by a comnpiler driver program.
3241 Fix description of the behaviour of the -n command line switch.
3243 Wed Jan 5 08:02:12 2000 Catherine Moore <clm@cygnus.com>
3245 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
3247 * ld.texinfo (EXCLUDE_FILE): Update documentation.
3248 * ldgram.y (wildcard_spec): Support a list of excluded_files.
3249 (exclude_name_list): New.
3250 ldlang.c (walk_wild_section): Support list of excluded files.
3251 (print_wild_statement): Likewise.
3252 (lang_add_wild): Likewise.
3253 * ldlang.h (lang_wild_statement_type): Likewise.
3254 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
3256 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
3258 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
3259 (process_def_file): Use.
3260 (pe_dll_compat_implib): New variable.
3263 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
3264 pe_dll_compat_implib.
3266 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
3267 compat-implib options.
3268 (gld_${EMULATION_NAME}_list_options): List new options.
3269 (gld_${EMULATION_NAME}_parse_args): Handle.
3271 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
3274 * deffilep.y (opt_name): Allow "." in name.
3276 For older changes see ChangeLog-9899
3282 version-control: never