1 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
3 * Makefile.am: Add DLX make target.
4 * configure.tgt: Add DLX configuration.
5 * Makefile.in: Regenerate.
6 * emulparams/elf32_dlx.sh: New file
7 * scripttempl/dlx.sc: New file
9 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
11 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
12 * Makefile.in: Regenerate.
13 * emulparams/elf_chaos.sh: Use elf_chaos script.
14 * scripttempl/elf_chaos.sc: New file.
16 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
18 * ldlang.c (lang_size_sections_1): Move check for conflicting load
19 addresses and regions from here...
20 (lang_get_regions): ...to this new function.
21 (lang_leave_output_section_statement): Use lang_get_regions.
22 (lang_leave_overlay): Likewise.
23 * mri.c (mri_draw_tree): Pass null as last argument to
24 lang_leave_output_section_statement.
25 * emultempl/elf32.em (gld*_place_orphan): Likewise.
26 * emultempl/mmo.em (mmo_place_orphan): Likewise.
27 * emultempl/pe.em (gld*_place_orphan): Likewise.
29 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
31 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
33 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
35 * ldemul.c: Fix formatting.
40 2002-05-25 Alan Modra <amodra@bigpond.net.au>
42 * ldlang.c (lang_process): Formatting, grammar.
44 * ldlex.l: Use #include "" instead of <> for local header files.
46 2002-05-24 TAMURA Kent <kent@netbsd.org>
48 * configure.tgt: Add a target for i386-netbsdpe.
50 2002-05-23 Jakub Jelinek <jakub@redhat.com>
52 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
53 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
54 output section if necessary. Handle .tbss.
55 (lang_size_sections): Clear _raw_size for .tbss section
56 (it allocates space in PT_TLS segment only).
57 * ldwrite.c (build_link_order): Build link order for .tbss too.
59 2002-05-23 Alan Modra <amodra@bigpond.net.au>
61 * configure.in: Correct spelling of AC_PREREQ.
63 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
65 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
67 (autofilter_objlist): Add crtbegin.o, crtend.o.
69 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
71 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
72 (longopts): Add new option --exclude-libs.
73 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
74 (gld_${EMULATION_NAME}_parse_args): Use it.
75 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
76 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
78 (pe_dll_add_excludes): Set excludes->type.
79 (auto_export): Add new variable libname and set to archive basename if
80 abfd. Use it when filtering default and user-specified libarary
81 excludes. Let string "ALL" mean all libs when filtering user-specified
83 * ld.texinfo: Document --exclude-libs.
85 2002-05-22 Alan Modra <amodra@bigpond.net.au>
87 * ldemul.c (ldemul_new_vers_pattern): New function.
88 * ldemul.h (ldemul_new_vers_pattern): Declare.
89 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
90 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
91 * emultempl/ppc64elf.em (dotsyms): New static var.
92 (gld${EMULATION_NAME}_new_vers_pattern): New function.
93 (LDEMUL_NEW_VERS_PATTERN): Define.
94 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
95 (PARSE_AND_LIST_LONGOPTS): Likewise.
96 (PARSE_AND_LIST_ARGS_CASES): Handle them.
97 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
99 * emultempl/armcoff.em: Likewise.
100 * emultempl/armelf_oabi.em: Likewise.
101 * emultempl/beos.em: Likewise.
102 * emultempl/elf32.em: Likewise.
103 * emultempl/generic.em: Likewise.
104 * emultempl/gld960.em: Likewise.
105 * emultempl/gld960c.em: Likewise.
106 * emultempl/linux.em: Likewise.
107 * emultempl/lnk960.em: Likewise.
108 * emultempl/m68kcoff.em: Likewise.
109 * emultempl/mipsecoff.em: Likewise.
110 * emultempl/pe.em: Likewise.
111 * emultempl/sunos.em: Likewise.
112 * emultempl/ticoff.em: Likewise.
113 * emultempl/vanilla.em: Likewise.
115 2002-05-22 Alan Modra <amodra@bigpond.net.au>
117 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
118 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
119 (LIB_SEARCH_DIRS): No need to use "tr".
120 (COMPILE_IN): Only set for native targets.
121 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
122 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
123 * configure.tgt (powerpc*): Set tdir_*.
124 (powerpcle*): Correct targ_extra_emuls.
125 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
126 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
128 2002-05-22 Alan Modra <amodra@bigpond.net.au>
130 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
131 calling lang_add_entry.
133 2002-05-21 H.J. Lu (hjl@gnu.org)
135 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
137 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
139 * ld.texinfo: Updated for --allow-multiple-definition and
142 * ldmain.c (main): Initialize the allow_multiple_definition
145 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
146 (ld_options): Add --allow-multiple-definition.
147 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
149 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
151 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
152 (earmelfb_nbsd.c): New rule.
153 * Makefile.in: Regenerate.
154 * configure.tgt (armeb-*-netbsdelf*): New target.
155 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
156 (arm-*-netbsd*): Likewise.
157 * emulparams/armelfb_nbsd.sh: New file.
159 2002-05-18 Tom Rix <trix@redhat.com>
161 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
164 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
166 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
167 * Makefile.in: Regenerate.
168 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
170 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
172 * emulparams/avr1.sh: New file.
173 * emulparams/avr2.sh: New file.
174 * emulparams/avr3.sh: New file.
175 * emulparams/avr4.sh: New file.
176 * emulparams/avr5.sh: New file.
177 * scripttempl/avr.sc: New file.
179 2002-05-15 Alan Modra <amodra@bigpond.net.au>
181 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
182 (lang_place_orphans): Abort if just_syms_flag.
184 2002-05-10 Tom Rix <trix@redhat.com>
186 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
187 architecture and machine information in the output bfd.
188 (gld*_before_parse): Remove old arch and machine code.
189 (choose_target): Rename to gld*_choose_target.
190 (rtld): Change type to int.
191 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
192 objects in XCOFF archives.
193 * ldfile.h: Update copyright date.
195 2002-05-10 Jakub Jelinek <jakub@redhat.com>
197 * ldmain.c (main): Enable -z combreloc by default.
199 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
201 * Makefile.am: Honour DESTDIR.
202 * Makefile.in: Regenerate.
204 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
206 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
207 (lang_enter_overlay): Remove the last two parameters.
208 (lang_leave_overlay): Take them here instead.
209 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
210 (section): Pass LMA and crossref flag to lang_leave_overlay rather
211 than lang_enter_overlay.
212 * ldlang.c (lang_memory_region_lookup): Return null for null names.
213 (lang_output_section_statement_lookup): Initialize update_dot_tree.
214 (lang_size_sections_1): Evaluate it.
215 (lang_leave_output_section_statement): Rework LMA lookup.
216 (overlay_lma, overlay_nocrossrefs): Remove.
217 (lang_enter_overlay): Remove LMA and crossref arguments.
218 (lang_enter_overlay_section): Don't set the LMA here.
219 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
220 assignment to the last section's update_dot_tree. Unconditionally
221 use the load and run-time regions specified in the OVERLAY statement.
222 Likewise the first section's LMA. Only set the other sections' LMAs
223 when no load region is given.
225 2002-05-06 Nick Clifton <nickc@redhat.com>
227 * po/sv.po: New translation.
229 2002-05-04 Alan Modra <amodra@bigpond.net.au>
231 * emultempl/hppaelf.em (build_section_lists): New function.
232 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
233 and build_section_lists.
235 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
237 * ld.h: Fix formatting.
239 * ldfile.c: Likewise.
240 * ldlang.c: Likewise.
241 * ldmain.c: Likewise.
242 * lexsup.c: Likewise.
243 * pe-dll.c: Likewise.
245 2002-05-02 Alan Modra <amodra@bigpond.net.au>
247 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
248 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
249 (build_section_lists): Do output_section tests here.
251 2002-04-30 Tom Rix <trix@redhat.com>
253 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
255 2002-05-01 Alan Modra <amodra@bigpond.net.au>
257 Long branch stubs, multiple stub sections.
258 * emultempl/ppc64elf.em: Include ldctor.h.
259 (stub_file): New var.
260 (group_size): New var.
261 (ppc_create_output_section_statements): New function.
262 (struct hook_stub_info): New.
263 (hook_in_stub): New function.
264 (ppc_add_stub_section): New function.
265 (ppc_layout_sections_again): New function.
266 (build_section_lists): New function.
267 (gld${EMULATION_NAME}_finish): Rewrite.
268 (real_func): New var.
269 (ppc_for_each_input_file_wrapper): New function.
270 (ppc_lang_for_each_input_file): New function.
271 (lang_for_each_input_file): Define.
272 (PARSE_AND_LIST_PROLOGUE): Define.
273 (PARSE_AND_LIST_LONGOPTS): Define.
274 (PARSE_AND_LIST_OPTIONS): Define.
275 (PARSE_AND_LIST_ARGS_CASES): Define.
276 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
278 2002-04-30 Tom Rix <trix@redhat.com>
280 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
281 -blibpath, -bnolibpath support.
283 2002-04-30 Mark Mitchell <mark@codesourcery.com>
285 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
286 (eelf32ppcwindiss.c): New target.
287 * Makefile.in: Regenerated.
288 * configure.tgt: Add support for powerpc-*-windiss.
289 * emulparams/elf32ppcwindiss.sh: New file.
291 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
293 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
294 * ldexp.c (exp_print_token): Add "infix_p" argument.
295 (exp_print_tree): Update accordingly.
297 2002-04-28 Alan Modra <amodra@bigpond.net.au>
299 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
300 * Makefile.in: Regenerate.
301 * mpw-elfmips.c: Delete.
302 * mpw-eppcmac.c: Delete.
304 * mpw-idtmips.c: Delete.
306 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
308 * emulparams/shelf32.sh (MACHINE): Now sh5.
310 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
312 * ldgram.y: Fix syntax warning.
314 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
316 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
317 to prevent "-n" from being taken as an abbreviation for
318 "--no-pipeline-knowledge".
320 2002-04-08 Alan Modra <amodra@bigpond.net.au>
322 * ldlang.c (lang_size_sections_1): Don't complain about
323 SEC_NEVER_LOAD sections having no memory region specified.
325 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
327 2002-04-07 matthew green <mrg@redhat.com>
329 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
331 2002-04-04 Alan Modra <amodra@bigpond.net.au>
333 * dep-in.sed: Cope with absolute paths.
334 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
336 * Makefile.in: Regenerate.
338 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
340 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
342 2002-04-03 Jakub Jelinek <jakub@redhat.com>
344 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
345 is smaller than maximum, round dot up to common page boundary.
347 2002-03-28 Alan Modra <amodra@bigpond.net.au>
349 * configure.host: Set up for generic hosts first, then tweak as
350 necessary in more specific targets.
351 (HOSTING_LIBS): Include libgcc_eh.a if found.
353 2002-03-23 Andreas Jaeger <aj@suse.de>
355 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
357 2002-03-21 Alan Modra <amodra@bigpond.net.au>
359 * Makefile.am: Run "make dep-am".
360 * Makefile.in: Regenerate.
362 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
364 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
366 2002-03-20 Alan Modra <amodra@bigpond.net.au>
368 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
369 add the symbol to the linker hash table immediately.
370 (lang_place_undefineds): Split symbol creation out..
371 (insert_undefined): ..to here.
373 2002-03-18 David O'Brien <obrien@FreeBSD.org>
375 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
376 the contents of the buffer returned from basename function will are
377 getting overwritten while still being used.
379 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
380 Andreas Jaeger <aj@suse.de>
381 Andreas Schwab <schwab@suse.de>
383 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
384 * elf_x86_64.sh (ARCH): Set to i386:x86-64
385 set libraries to default to lib64 paths.
387 2002-03-18 Tom Rix <trix@redhat.com>
389 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
390 * configure.tgt : Same.
391 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
392 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
393 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
394 emulation parameters for better -b32, -b64 support.
395 * emulparms/aixrs6.sh : Same.
396 * emulparms/ppcmacos.sh : Same.
397 * emultempl/aix.em (choose_target) : Use new emulation parameters
398 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
399 * Makefile.in : Regenerate.
401 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
403 * po/fr.po: Updated version.
405 2002-03-18 Alan Modra <amodra@bigpond.net.au>
407 * ldmain.c (main): Move .text readonly flag fudges from here..
408 * ldlang.c (lang_process): ..to here.
410 2002-03-14 Alan Modra <amodra@bigpond.net.au>
412 * ldlang.c (lang_check): Remove the word size check added in last
413 change. Treat emitrelocations case as for relocatable links.
415 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
417 * po/fr.po: Updated version.
419 2002-03-13 Alan Modra <amodra@bigpond.net.au>
421 * ldlang.c (lang_check): Do relocatable link checks first, so that
422 warn_mismatch can't override. Check compatible and word size too.
424 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
426 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
428 2002-03-05 Jakub Jelinek <jakub@redhat.com>
430 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
433 2002-03-04 H.J. Lu <hjl@gnu.org>
435 * scripttempl/elf.sc: Put .preinit_array, .init_array and
436 .fini_array in the data segment.
438 2002-03-04 Alan Modra <amodra@bigpond.net.au>
440 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
442 2002-03-01 David Mosberger <davidm@hpl.hp.com>
444 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
445 .init_array, and .fini_array.
447 2002-02-20 Andreas Schwab <schwab@suse.de>
449 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
450 .IA64_unwind* in a relocatable link.
452 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
454 * NEWS: Mark 2.12 branch.
456 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
458 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
459 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
461 2002-02-18 Tom Rix <trix@redhat.com>
463 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
464 (gld*_before_allocation): Same.
465 (gld*_create_output_section_statements): Generate
466 __rtinit if run time linking. Add librtl.a to the link.
467 (gld*_read_file): Clean.
469 2002-02-18 Alan Modra <amodra@bigpond.net.au>
471 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
473 2002-02-18 David O'Brien <obrien@FreeBSD.org>
475 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
476 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
477 and eelf64alpha_fbsd.
478 * Makefile.in: Regenerate.
479 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
480 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
481 use a FreeBSD-specific emulation rather than the psABI one.
482 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
483 for all FreeBSD ELF systems.
484 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
486 * emulparams/elf32ppc_fbsd.sh: Likewise.
487 * emulparams/elf64_ia64_fbsd.sh: Likewise.
488 * emulparams/elf64_sparc_fbsd.sh: Likewise.
489 * emulparams/elf64alpha_fbsd.sh: Likewise.
490 * emulparams/elf_i386_fbsd.sh: Likewise.
491 * emulparams/elf_x86_64_fbsd.sh: Likewise.
493 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
495 * po/tr.po: Updated version.
497 2002-02-18 Alan Modra <amodra@bigpond.net.au>
499 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
502 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
504 * emultempl/mmo.em (mmo_after_open): Don't call
505 _bfd_mmix_check_all_relocs when producing ELF output.
507 2002-02-15 Richard Henderson <rth@redhat.com>
509 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
510 definition. Emit a unop+nop pair.
512 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
514 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
515 for presence of .MMIX.reg_contents.linker_allocated before early
518 * NEWS: Mention support for MMIX.
520 2002-02-15 Alan Modra <amodra@bigpond.net.au>
522 Support arbitrary length fill patterns.
523 * ld.texinfo (Output Section Fill): Describe fill expressions.
524 (FILL): Refer to the above.
525 * ldexp.h (etree_value_type): Add "str" field.
526 (union etree_union): Add "str" to "value" struct.
527 (exp_bigintop): Declare.
528 (exp_get_fill): Declare.
529 * ldexp.c: Include "safe-ctype.h".
530 (exp_intop): Set value.str to NULL.
531 (exp_bigintop): New function.
532 (new_rel): Pass in "str", and set new.str from it.
533 (new_rel_from_section): Set new.str to NULL.
534 (fold_name): Adjust calls to new_rel.
535 (exp_fold_tree): Likewise.
536 (exp_get_fill): New function.
537 * ldgram.y (struct big_int bigint, fill_type *fill): New.
538 (INT): Returns a "bigint". Adjust all code handling INTs.
539 (fill_opt): Returns a "fill".
540 (fill_exp): Split out of fill_opt, use for FILL.
541 * ldlang.h (struct _fill_type): New.
542 (fill_type): Move typedef to ldexp.h.
543 (lang_output_section_statement_type): "fill" is now a pointer.
544 (lang_fill_statement_type): Likewise.
545 (lang_padding_statement_type): Likewise.
546 (lang_add_fill): Now takes a "fill_type *" param.
547 (lang_leave_output_section_statement): Likewise.
548 (lang_do_assignments): Likewise.
549 (lang_size_sections): Likewise.
550 (lang_leave_overlay_section): Likewise.
551 (lang_leave_overlay): Likewise.
552 * ldlang.c: Include ldgram.h after ldexp.h.
553 (lang_output_section_statement_lookup): Adjust for fill_type change.
554 (print_fill_statement): Likewise.
555 (print_padding_statement): Likewise.
556 (insert_pad): Now takes a "fill_type *" arg.
557 (size_input_section): Likewise.
558 (lang_size_sections_1): Likewise.
559 (lang_size_sections): Likewise.
560 (lang_do_assignments): Likewise.
561 (lang_add_fill): Likewise.
562 (lang_leave_output_section_statement): Likewise.
563 (lang_leave_overlay_section): Likewise.
564 (lang_leave_overlay): Likewise.
565 Adjust all callers of the above function.
566 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
567 starting with "0X" as well as "0x". Return bigint.str for hex
568 numbers starting with "0x" or "0X", zero bigint.str otherwise.
569 Always use base 16 for numbers starting with "$".
570 * ldmain.c: Include ldgram.h after ldexp.h.
571 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
572 of bfd_fill_link_order.
573 * pe-dll.c: Adjust lang_do_assignments calls.
574 * emultempl/elf32.em: Likewise.
575 * emultempl/hppaelf.em: Likewise.
576 * emultempl/ppc64elf.em: Likewise.
577 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
578 lang_add_assignment call.
579 * emultempl/pe.em: Likewise.
581 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
583 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
584 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
585 the pattern in question is not a regexp.
586 * ldlang.c: Likewise.
587 * ldlang.h: Likewise.
588 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
590 2002-02-12 Jakub Jelinek <jakub@redhat.com>
592 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
593 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
594 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
595 * ldexp.c (exp_data_seg): New variable.
596 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
597 (fold_binary): Handle DATA_SEGMENT_ALIGN.
598 (exp_fold_tree): Handle DATA_SEGMENT_END.
599 Pass allocation_done when recursing instead of hardcoding
600 lang_allocating_phase_enum.
601 * ldexp.h (exp_data_seg): New.
602 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
603 (lang_size_sections): New.
604 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
605 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
606 if COMMONPAGESIZE is defined.
607 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
608 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
609 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
610 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
611 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
614 2002-02-11 Alan Modra <amodra@bigpond.net.au>
616 * Makefile.in: Regenerate.
618 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
620 * lexsup.c: Remove strtoul declaration.
622 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
624 * ldmain.c: Add prototype for main ().
625 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
626 * emultempl/lnk960.em (lnk960_choose_target): Function should
629 2002-02-10 Alan Modra <amodra@bigpond.net.au>
631 * ldlang.c (entry_section): New initialised variable.
632 (lang_finish): Use it.
633 * ldlang.h (entry_section): Declare.
634 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
635 entry_section to ".opd".
637 2002-02-09 Chris Demetriou <cgd@broadcom.com>
639 * ld.texinfo (Options): Add back in -nostdlib documentation,
640 which had been inadvertently removed.
642 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
644 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
645 register section vma to a sane value after emitting error. Make
646 fatal conditions cause program exit when emitting message.
648 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
650 * configure.tgt: Add or32-*-rtems target.
652 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
655 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
656 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
657 in OTHER_RELOCATABLE_SECTIONS.
658 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
659 * emulparams/shelf32.sh (STACK_ADDR): Define.
660 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
661 (OTHER_SECTIONS): this. Removed stack settings.
662 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
663 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
664 2001-03-12 DJ Delorie <dj@redhat.com>
665 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
666 relaxing if any shmedia or mixed sections are found.
667 2001-03-07 DJ Delorie <dj@redhat.com>
668 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
669 einfo. Gracefully decline to output to non-elf formats.
670 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
671 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
672 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
673 * emulparams/shelf32.sh: Ditto.
674 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
675 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
677 2001-01-10 Ben Elliston <bje@redhat.com>
678 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
679 non-portable shell constructs. From Hans-Peter Nilsson.
680 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
681 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
682 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
683 dependencies to the shell script include chain.
684 * Makefile.in: Regenerate.
685 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
686 * emultempl/sh64elf.em: Update and tweak comments.
687 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
688 make a .cranges section SEC_IN_MEMORY.
689 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
690 * emultempl/sh64elf.em
691 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
692 .cranges section found to be necessary; continue and set stored
693 section contents flags for sections with non-mixed contents.
694 Use a struct sh64_section_data container and sh64_elf_section_data
695 to store contents-type flags.
696 Remove unused update of "isec".
697 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
698 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
699 access contents-type flags. Assert that the associated container
700 is initialized. Use that container, not elf_gp_size, to hold size
701 of linker-generated cranges contents.
702 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
703 * emultempl/sh64elf.em
704 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
705 there's already a .cranges section. When section flag difference
706 is found, don't NULL-check cranges a second time. Tweak comments.
707 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
708 merging, not max size, as size of ld-generated .cranges contents.
709 Don't set ELF section flags in output section. When checking for
710 needed .cranges descriptors, don't use a variable; compare
711 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
713 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
714 * emultempl/sh64elf.em: New file.
715 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
716 * Makefile.in: Regenerate.
717 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
718 (OTHER_RELOCATING_SECTIONS): Ditto.
719 (EXTRA_EM_FILE): New, set to sh64elf if not set.
720 * emulparams/shlelf32.sh: Stub out all settings except
721 OUTPUT_FORMAT. Source shelf32.sh.
722 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
723 OTHER_RELOCATING_SECTIONS.
724 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
725 * emulparams/shlelf64.sh: Stub out all settings except
726 OUTPUT_FORMAT. Source shelf64.sh.
727 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
728 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
730 (DATA_START_SYMBOLS): Define, provide ___data.
731 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
732 for consecutive .data section.
733 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
734 section after .data section.
735 * emulparams/shlelf64.sh: Ditto.
736 * emulparams/shelf32.sh: Ditto.
737 (ALIGNMENT): Define to 8.
738 * emulparams/shelf32.sh: Ditto.
739 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
740 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
741 built-in linker scripts.
742 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
743 * emulparams/shlelf64.sh: New.
744 * emulparams/shelf64.sh: New.
745 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
747 * Makefile.am: Add support for shlelf64 and shelf64.
748 * Makefile.in: Regenerate.
749 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
750 * configure.tgt (sh64-*-elf*): Add shelf as default.
751 Add shlelf to targ_extra_emuls.
752 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
753 * emulparams/shelf32.sh: New file.
754 * emulparams/shlelf32.sh: New file.
755 * Makefile.am: Add support for shlelf32 and shelf32.
756 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
757 * Makefile.in: Regenerate.
759 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
761 * ldlang.c (lang_reset_memory_regions): Rename from
762 reset_memory_regions. Change all callers. Make public.
763 * ldlang.h (lang_reset_memory_regions): Prototype.
764 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
765 lang_reset_memory_regions before lang_size_sections.
766 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
767 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
769 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
771 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
772 arithmetic when checking for too many global registers.
774 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
776 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
777 (ehppanbsd.c): New rule.
778 * Makefile.in: Regenerate.
779 * configure.tgt (hppa*-*-netbsd*): New target.
780 * emulparams/hppalinux.sh: Add comment to check other files
781 that source this file it is modified, and list which
783 * emulparams/hppanbsd.sh: New file.
785 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
787 * scripttempl/xstormy16.sc: Don't allocate extra space for the
790 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
792 Support on-demand global register allocation from
793 R_MMIX_BASE_PLUS_OFFSET relocs.
794 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
795 mmix_set_reg_section_vma. Call
796 _bfd_mmix_finalize_linker_allocated_gregs.
797 (mmix_before_allocation): New function.
798 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
799 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
800 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
801 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
802 before .MMIX.reg_contents.
803 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
804 (mmo_after_open): New function.
805 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
806 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
807 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
809 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
811 * emulparams/or32.sh: New file.
812 * emulparams/or32elf.sh: New file.
813 * scripttempl/or32.sc: New file.
814 * configure.tgt : Add support for or32.
815 * configure: Regenerate
816 * Makefile.am: Add support for or32.
817 * Makefile.in: Regenerate.
818 * NEWS: Mention support for or32.
819 * po/ld.pot: Regenerate.
821 2002-01-29 Chris Demetriou <cgd@broadcom.com>
822 Mitch Lichtenberg <mpl@broadcom.com>
824 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
825 * emultempl/mipself.em: New file to handle MIPS ELF embedded
826 reloc creation (ld --embedded-relocs).
828 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
830 * configure: Regenerated.
832 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
834 * Makefile.am (install): Depend on install-info.
835 * Makefile.in: Regenerate.
837 2002-01-26 Christian Rose <menthos@menthos.com>
839 * ldmain.c (main): Use full sentences to ease translation.
841 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
843 * po/fr.po: Updated version.
845 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
847 * po/es.po: Updated version.
849 2002-01-25 Andreas Jaeger <aj@suse.de>
851 * ldlex.l (yy_input): Correct error check.
853 2002-01-25 Alan Modra <amodra@bigpond.net.au>
855 * ldmisc.c (demangle): Put back dots when string not demangled.
857 2002-01-22 Richard Henderson <rth@redhat.com>
859 * emulparams/elf64alpha.sh (NOP): Use unop.
861 2002-01-21 Andreas Jaeger <aj@suse.de>
863 * ldlex.l: Use fread instead of read.
865 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
867 * configure.tgt (ia64-*-netbsd*): New target.
869 2002-01-21 H.J. Lu <hjl@gnu.org>
871 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
873 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
875 2002-01-18 Andreas Jaeger <aj@suse.de>
877 * ldver.c (ldversion): Update year.
879 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
881 * po/ld.pot: Regenerate.
883 2002-01-16 Alan Modra <amodra@bigpond.net.au>
885 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
886 * Makefile.in: Regenerate.
887 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
888 * emultempl/ppc64elf.em: New file.
890 2002-01-15 DJ Delorie <dj@redhat.com>
892 * scripttempl/pe.sc: Add support for constructor priorities.
894 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
896 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
897 * emulparams/avr23xx.sh: Likewise.
898 * emulparams/avr4433.sh: Likewise.
899 * emulparams/avr44x4.sh: Likewise.
900 * emulparams/avr85xx.sh: Likewise.
901 * emulparams/avrmega103.sh: Likewise.
902 * emulparams/avrmega161.sh: Likewise.
903 * emulparams/avrmega603.sh: Likewise.
904 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
906 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
908 * ldlang.c (walk_wild_section): Exclude object file if enclosing
911 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
913 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
914 (eshelf_nbsd.c): New rule.
915 (eshlelf_nbsd.c): New rule.
916 * Makefile.in: Regenerate.
917 * configure.tgt (sh*le-*-netbsdelf*): New target.
918 (sh*-*-netbsdelf*): New target.
919 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
920 * ld/emulparams/shelf_nbsd.sh: New emulation.
921 * ld/emulparams/shlelf_nbsd.sh: New emulation.
923 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
925 * po/es.po: New file: Spanish translation.
926 * configure.in (ALL_LINGUAS): Add es.
927 * configure: Regenerate.
929 2002-01-06 John Marshall <jmarshall@acm.org>
931 * ld.texinfo: Note that --emit-relocs is currently only
934 2002-01-05 Alan Modra <amodra@bigpond.net.au>
936 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
937 of bfd_section_list_remove and bfd_section_list_insert macros.
938 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
939 * emultempl/mmo.em (mmo_place_orphan): Likewise.
941 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
943 * configure.tgt (x86_64-*-netbsd*): New target.
945 2001-12-21 Tom Rix <trix@redhat.com>
947 (gld*_create_output_section_statements): New function.
948 For -binitfini support.
949 * emultempl/aix.em (gld*_before_parse): Fix comment.
950 * emultempl/aix.em (gld*_parse_args): Fix comment.
952 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
954 * configure.tgt (mips*-dec-netbsd*): Delete alias for
956 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
958 * configure.tgt (arm-*-netbsdelf*): Add target.
959 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
960 * emulparams/armelf_nbsd.sh: Added.
961 * Makefile.am: Add rules for earmelf_nbsd.
962 * Makefile.in: Regenerate.
964 2001-12-19 Andreas Jaeger <aj@suse.de>,
965 Susanne Oberhauser <froh@suse.de>
967 * configure.host: Add rules for x86_64-*linux-gnu. Change
968 s390x-linux entry to use gcc to report configuration, replace gcc
969 with $CC in s390-linux
971 2001-12-19 Andreas Jaeger <aj@suse.de>
973 * ld.texinfo (VERSION): Fix markup.
975 2001-12-18 matthew green <mrg@eterna.com.au>
977 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
978 (m68kelfnbsd.c): New rule.
979 * Makefile.in: Regenerate.
980 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
981 (m68*-*-netbsd*4k*): .. this.
982 (m68*-*-netbsdelf*): New target.
983 (m68*-*-netbsd*): Also include ELF support.
984 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
985 * emulparams/m68kelfnbsd.sh: New emulation.
987 2001-12-18 Jakub Jelinek <jakub@redhat.com>
989 * ldgram.y (vers_node): Support anonymous version tags.
990 * ldlang.c (lang_register_vers_node): Ensure anonymous version
991 tag is not defined together with non-anonymous versions.
992 * ld.texinfo: Document it.
994 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
996 * po/tr.po: New file: Turkish translation.
997 * configure.in (ALL_LINGUAS): Add tr.
998 * configure: Regenerate.
1000 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1002 * Makefile.am: Add rules for eelf64alpha_nbsd.
1003 * Makefile.in: Regenerate.
1004 * configure.tgt (alpha*-*-netbsd*): Set
1005 targ_emul to elf64alpha_nbsd.
1006 * emulparams/elf64alpha_nbsd.sh: Added.
1008 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1010 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1011 section_tail when fiddling with section list.
1012 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1013 broken into separate strings to make translation easier.
1014 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1015 fiddling with section list.
1016 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1018 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1020 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1022 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1024 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1026 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1028 * emultempl/elf32.em (finish): Supply output_bfd
1029 to bfd_elf*_discard_info.
1030 (OPTION_EH_FRAME_HDR): Define.
1031 (longopts): Add --eh-frame-hdr.
1032 (parse_args): Handle it.
1033 (list_options): Add --eh-frame-hdr to help.
1034 * emultempl/hppaelf.em (finish): Supply output_bfd
1035 to bfd_elf*_discard_info.
1036 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1038 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1040 * lexsup.c (parse_args): Don't pass shortopts to second call to
1041 getopt functions. Restore optind rather than decrementing before
1042 second call. Remove errind as it now duplicates last_optind.
1044 2001-12-11 Christopher Faylor <cgf@redhat.com>
1046 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1048 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1049 Richard Henderson <rth@redhat.com>
1051 * Makefile.am: Add support for xstormy16.
1052 * configure.tgt: Add support for xstormy16.
1053 * Makefile.in: Regenerate.
1054 * emulparams/elf32xstormy16.sh: New file.
1055 * scripttempl/xstormy16.sc: New file.
1057 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1059 * Makefile.in (LIB_PATH): Make configurable.
1060 (GENSCRIPTS): Set LIB_PATH in environment.
1061 * configure.in: Substitute LIB_PATH.
1062 * configure: Regenerate.
1063 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1064 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1066 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1068 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1069 describing the -N option so that it is easier to translate into
1072 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1074 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1075 statements describing a single option with a single, newline
1076 escaped fprintf. This allows better translation into other
1079 * ldmain.c (add_archive_element): Combine multiple strings
1080 into a single string to permit better translation into other
1083 2001-12-05 Tom Rix <trix@redhat.com>
1085 * Makefile.am: Remove eaixppc64.
1086 * Makefile.in: Regenerate.
1088 2001-12-04 Tom Rix <trix@redhat.com>
1090 * emultempl/aix.em (choose_target): Change default target to
1091 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1093 (gld*_read_file): Fix typo.
1094 (change_symbol_mode): Add prototype.
1097 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1098 * emulparams/aixrs6.sh : Same.
1099 * emulparams/ppcmacos.sh : Same.
1100 * emulparams/aixppc64.sh : Delete file.
1101 * emultempl/aix.em : Formatting changes.
1103 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1105 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1106 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1108 (OTHER_END_SYMBOLS): Fix formatting.
1109 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1110 (OTHER_END_SYMBOLS): Fix formatting.
1112 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1114 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1116 2001-12-02 Tom Rix <trix@redhat.com>
1118 * configure.tgt : Remove eaixppc64 emulations.
1119 * Makefile.in : Remove eaixppc64.c
1120 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1121 (ldemul_default_target): Same.
1122 * emultempl/gld960.em (gld960_choose_target): Same.
1123 * emultempl/gld960c.em (gld960_choose_target): Same.
1124 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1125 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1126 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1127 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1128 * emultempl/aix.em (choose_target): New function. Handle emulation of
1131 2001-11-27 H.J. Lu <hjl@gnu.org>
1133 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1134 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1135 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1136 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1137 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1138 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1139 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1140 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1142 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1145 (REL_SDATA): Likewise.
1146 (REL_SBSS): Likewise.
1147 (REL_SDATA2): Likewise.
1148 (REL_SBSS2): Likewise.
1149 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1152 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1154 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1156 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1158 2001-11-22 H.J. Lu <hjl@gnu.org>
1160 * Makefile.in: Regenerated with automake based on automake
1161 1.4-8 in RedHat 7.1.
1163 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1165 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1166 (config.status): Delete rule.
1167 Add extra dependencies to cover sourced emulparams files.
1168 * Makefile.in: Regenerate.
1170 * scripttempl/elf.sc: Order <section>, <section>.* and
1171 corresponding linkonce sections as seen in input files.
1172 Formatting fixes. Zero vma of all sections if not relocating.
1173 (STACK): Define and insert if STACK_ADDR defined.
1174 (OTHER_RELOCATING_SECTIONS): Delete.
1175 (OTHER_END_SYMBOLS): Define.
1176 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1177 (OTHER_READWRITE_SECTIONS): Likewise.
1178 (OTHER_GOT_SECTIONS): Likewise.
1179 (OTHER_SDATA_SECTIONS): Likewise.
1180 (OTHER_BSS_SECTIONS): Likewise.
1181 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1182 (OTHER_READWRITE_SECTIONS): Likewise.
1183 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1184 (OTHER_READWRITE_SECTIONS): Likewise
1186 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1187 (STACK_ADDR): Define.
1188 * emulparams/armelf_oabi.sh: As for armelf.sh.
1189 * emulparams/elf32mcore.sh: As for armelf.sh.
1190 * emulparams/h8300elf.sh: As for armelf.sh.
1191 * emulparams/mn10200.sh: As for armelf.sh.
1192 * emulparams/shelf.sh: As for armelf.sh.
1194 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1195 (OTHER_END_SYMBOLS): Define.
1196 * emulparams/m32relf.sh: As for elf32fr30.sh.
1197 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1198 * emulparams/h8300self.sh: As for elf32fr30.sh.
1200 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1201 defines with RELOCATING test.
1202 (OTHER_SDATA_SECTIONS): Likewise.
1203 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1204 (OTHER_END_SYMBOLS): ..this.
1205 * emulparams/crislinux.sh: As for criself.sh.
1207 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1209 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1210 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1211 normal and linkonce sections as seen in input files.
1212 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1213 (TEXT_DYNAMIC): Likewise.
1214 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1215 (OTHER_SDATA_SECTIONS): Likewise.
1216 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1217 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1218 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1219 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1220 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1221 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1222 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1223 sections as seen in input files.
1224 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1225 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1227 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1228 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1229 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1230 (OTHER_SECTIONS): Instead, use this..
1231 (OTHER_END_SYMBOLS): ..and this.
1233 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1234 * emulparams/elf32bsmip.sh: Likewise.
1235 * emulparams/elf32btsmip.sh: Likewise.
1236 * emulparams/elf32ebmip.sh: Likewise.
1237 * emulparams/elf32lmip.sh: Likewise.
1238 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1239 * emulparams/elf32lsmip.sh: Likewise.
1240 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1241 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1242 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1243 * emulparams/elf64btsmip.sh: Likewise.
1244 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1245 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1246 * emulparams/elf32ppclinux.sh: Likewise.
1247 * emulparams/elf32ppcsim.sh: Likewise.
1248 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1249 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1250 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1251 * emulparams/h8300self.sh: Likewise.
1252 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1253 * emulparams/sh.sh: Comment.
1254 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1255 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1256 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1258 2001-11-21 David Heine <dlheine@tensilica.com>
1259 Alan Modra <amodra@bigpond.net.au>
1261 * ldlang.c (map_input_to_output_sections): Replace "break"
1262 accidentally removed with 2001-08-03 change.
1263 (lang_gc_sections_1): Likewise.
1265 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1267 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1269 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1271 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1272 of false when calling lang_size_sections.
1273 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1275 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1277 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1278 function when LDEMUL_FINISH isn't set to the same name. Don't
1279 call ${LDEMUL_FINISH}.
1280 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1281 * emultempl/armelf.em (arm_elf_finish): Call
1282 gld${EMULATION_NAME}_finish.
1283 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1284 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1285 hppaelf_layout_sections_again if necessary.
1286 (need_laying_out): New var.
1287 (hppaelf_layaout_sections_again): Rename to
1288 hppaelf_layout_sections_again. Clear need_laying_out.
1289 (PARSE_AND_LIST_OPTIONS): Format text.
1291 2001-11-14 H.J. Lu <hjl@gnu.org>
1293 * emultempl/armelf.em (arm_elf_finish): Renamed from
1294 gld${EMULATION_NAME}_finish.
1295 (LDEMUL_FINISH): Set to arm_elf_finish.
1297 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1299 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1300 (struct ld_emulation_xfer_struct): Use it.
1302 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1304 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1305 additional symbols referenced by newer crt0.o files from HP.
1307 2001-11-12 Anthony Green <green@redhat.com>
1309 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1311 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1313 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1314 * Makefile.in: Regenerate.
1316 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1318 * ld.texinfo: Use @command for commands, @option for options.
1319 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1321 * Makefile.in: Rebuild.
1323 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1325 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1326 Add support for targets.
1328 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1330 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1331 * configure: Regernate.
1332 * po/fr.po: New file.
1333 * po/sv.po: New file.
1335 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1337 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1338 as little endian default and to support big endian.
1340 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1342 * ld.texinfo (Options): Document new option, -nostdlib.
1343 * lexsup.c (OPTION_NOSTDLIB): New definition.
1344 (ld_options): Add entry for "nostdlib".
1345 (parse_args): Handle OPTIONS_NOSTDLIB.
1346 * ldfile.c (ldfile_add_library_path): Don't add directories
1347 to the search path if they weren't specified on the command line
1348 and -nostdlib was specified.
1349 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1351 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1353 * lexsup.c (parse_args): Prevent infinite parsing loop when
1354 "-rpath.a" is specified on the command line.
1355 Replace calls to fprintf with calls to einfo.
1357 2001-10-31 John Marshall <jmarshall@acm.org>
1359 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1360 appear only once across all the linker scripts involved in a link
1361 invocation no longer applies. Make the documentation reflect
1364 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1366 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1368 (sh-*-linux*): Added targ_extra_libpath.
1370 2001-10-31 David Heine <dlheine@tensilica.com>
1372 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1373 for padding statements.
1375 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1377 * configure.tgt (mmix-*-*): New target.
1378 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1379 Add dependencies to match.
1380 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1381 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1382 scripttempl/mmo.sc: New files.
1383 * gen-doc.texi: @set MMIX.
1384 * ld.texinfo: Ditto.
1385 [MMIX] Add MMIX node.
1386 * Makefile.in: Regenerate.
1388 2001-10-29 Kazu Hirata <kazu@hxi.com>
1390 * ldlang.c: Fix a comment typo.
1392 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1394 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1395 entries, and match *-*-linux*.
1397 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1399 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1400 with ldlex_script, ldlex_popstate.
1401 (ifile_p1): Likewise.
1402 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1404 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1405 to 1. Don't BEGIN(SCRIPT).
1406 (lex_redirect): Similarly.
1407 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1409 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1411 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1412 __EH_FRAME_END__ and accept eh frames into data section.
1413 Add ctor and dtor sections.
1415 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1417 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1418 (auto-export): Fix indentation.
1420 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1422 * pe-dll.c (autofilter_objectlist): Add startup objects
1424 (auto-export): Constify char * p.
1425 Extract file basename and use strcmp rather than ststr
1428 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1430 * ldmain.c (get_emulation): Improve comment about the handling
1433 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1435 * po/POTFILES.in: Regenerate.
1437 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1439 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1440 -z nocopyreloc and -z nocombreloc usage strings.
1442 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1444 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1447 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1449 * scripttempl/armaout.sc: Place .bss section after end of aligned
1450 data section to match behaviour of aout code in constructrion of
1453 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1455 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1456 startup files for mingw32 dlls to list.
1458 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1460 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1462 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1464 * configure.tgt (targ): Add arm9e-*-elf.
1466 2001-10-05 H.J. Lu <hjl@gnu.org>
1468 * genscripts.sh: Fix a typo in the last change.
1470 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1472 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1473 -z nocombreloc in usage.
1475 2001-10-03 Jim Blandy <jimb@redhat.com>
1477 * genscripts.sh: Include a comment at the top of each generated
1478 script, explaining its purpose.
1480 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1482 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1483 * NEWS: Mention -z nocopyreloc.
1484 * ld.texinfo (Options): Describe nocopyreloc.
1486 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1488 * configure: Regenerate.
1490 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1492 * ldver.h (ld_program_version): Remove declaration.
1493 * lexsup.c (parse_args): Move printing of copyright message..
1494 * ldver.c (ldversion): .. to here.
1495 Use BFD_VERSION_STRING in place of BFD_VERSION.
1496 (ld_program_version): Remove.
1497 * Makefile.am (Makefile): Depend on bfd/configure.in.
1499 * Makefile.in: Regenerate.
1501 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1503 * Makefile.am: Update dependencies with "make dep-am".
1504 * Makefile.in: Regenerate.
1506 2001-09-29 John Reiser <jreiser@BitWagon.com>
1508 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1509 * lexsup.c: Add --no-define-common commandline option.
1510 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1511 * ldlex.l: Likewise.
1512 * ld.h: Add command_line.inhibit_common_definition.
1513 * ldmain.c (main): Initialize.
1514 * ld.texinfo: Document.
1516 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1518 * ldmisc.c (USE_STDARG): Remove.
1519 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1524 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1525 declarations. Update copyright.
1527 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1529 * pe-dll.c: Remove obsoleted declaration of
1530 pe_get_data_import_dll_name.
1531 (pe_create_import_fixup): Fix thinko.
1533 * ld.texinfo(enable-auto-import): Clarify the explanation.
1535 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1537 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1538 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1539 DLL_SUPPORT controlled code.
1541 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1543 * emultempl/pe.em(pe_data_import_dll): Make static.
1544 (pe_get_data_import_dll_name): New accessor function.
1545 * pe-dll.c(pe_create_import_fixup): call
1546 pe_get_data_import_dll_name() from pe.em, instead of
1547 directly accessing pe_data_import_dll variable from pe.em.
1549 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1551 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1552 (def_file_add_directive): Use ISSPACE instead of isspace.
1553 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1554 isdigit/isxdigit/isalpha/isalnum.
1555 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1556 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1557 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1558 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1560 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1561 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1563 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1564 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1565 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1566 (ctor_prio): Use ISDIGIT instead of isdigit.
1567 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1568 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1569 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1571 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1572 (stricpy): Use TOLOWER instead of isupper/tolower.
1573 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1574 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1575 (lex_warn_invalid): Use ISPRINT instead of isprint.
1576 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1577 (main): For gettext, also set the LC_CTYPE locate facet.
1578 (add_keepsyms_file): Use ISSPACE instead of isspace.
1579 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1580 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1581 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1582 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1583 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1584 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1585 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1586 (quoteput): Use ISSPACE instead of isspace.
1587 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1590 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1592 * deffilep.y (def_stash_module): Constify "name" param.
1594 * pe-dll.c: Replace CONST with const throughout.
1595 (quick_symbol): Constify "n1", "n2", "n3" params.
1596 (make_singleton_name_thunk): Constify "import" param. Make
1597 "buffer_len" a size_t.
1598 (make_import_fixup_entry): Constify "name", "fixup_name",
1599 "dll_symname" params.
1600 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1601 (pe_get32): Likewise.
1602 (pe_implied_import_dll): Likewise.
1604 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1605 (sort_by_section_name): Likewise.
1607 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1608 (make_import_fixup): Cast printf arg, rel->address to long rather
1610 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1612 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1614 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1615 defines BufferSize. Increase buffer size by one.
1617 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1619 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1621 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1623 * configure.tgt: Add arm-openbsd target.
1625 2001-09-12 H.J. Lu <hjl@gnu.org>
1627 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1629 (ALL_64_EMULATIONS): Here.
1630 * Makefile.in: Regenerated.
1632 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1634 * emultempl/pe.em(make_import_fixup): change signature to
1635 take asection as well as arelec; we need this for proper
1636 error reporting. Only call pe_create_import_fixup() if
1637 there is no attempt to add a constant addend to the reloc;
1638 otherwise, report error condition.
1639 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1640 since final argument is a pointer to make_import_fixup().
1641 Change call to cb() to match make_import_fixup() signature.
1642 (make_import_fixup_mark): make buffer_len unsigned.
1643 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1645 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1647 * ld.texinfo: add verbose documentation for auto-import
1648 direct-addressing workaround, to compliment the terse
1651 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1653 * scripttempl/v850.sc: Add gcc_except_table sections.
1655 2001-09-11 Jeffrey A Law (law@cygnus.com)
1657 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1658 * emulparams/h8300self.sh: Similarly.
1660 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1662 * ld.texinfo (Options, --stack): Correct default value for stack
1665 2001-09-05 Tom Rix <trix@redhat.com>
1667 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1669 2001-09-03 Andreas Jaeger <aj@suse.de>
1671 * emultempl/beos.em: Declare prototypes for comparions functions,
1674 2001-09-02 Andreas Jaeger <aj@suse.de>
1676 * emultempl/aix.em: Add missing prototype.
1677 * emultempl/lnk960.em: Likewise.
1678 * emultempl/vanilla.em: Likewise.
1679 * emultempl/armcoff.em: Likewise.
1680 * emultempl/armelf_oabi.em: Likewise.
1681 * emultempl/beos.em: Likewise.
1682 * emultempl/gld960c.em: Likewise.
1683 * emultempl/gld960.em: Likewise.
1685 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1686 for prototype declaration.
1688 2001-08-31 Eric Christopher <echristo@redhat.com>
1689 Jason Eckhardt <jle@redhat.com>
1691 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1693 2001-08-31 Andreas Jaeger <aj@suse.de>
1695 * emultempl/pe.em: Add missing prototypes.
1696 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1697 pe_find_data_imports.
1698 (pr_sym): Add unused attribute.
1700 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1702 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1703 default from coff to elf.
1705 2001-08-29 Jeff Law <law@redhat.com>
1707 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1709 * emulparams/h8300self.sh: Similarly.
1711 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1713 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1715 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1716 * configure.tgt (h8300-*-elf*): New case.
1717 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1718 * emulparams/h8300self.sh: New file.
1719 * Makefile.in: Regenerated.
1721 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1723 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1726 2001-08-27 Linus Nordberg <linus@swox.com>
1727 Alan Modra <amodra@bigpond.net.au>
1729 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1730 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1732 * Makefile.in: Regenerate.
1733 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1734 entries to correct alphabetical position.
1735 * emulparams/elf64ppc.sh: New.
1736 * emulparams/elf64lppc.sh: New.
1738 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1740 * ldmain.c (main): Declare BSIZE as static.
1742 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1744 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1745 into .rel.dyn resp. .rela.dyn if combreloc.
1746 (get_script): If .x linker script is equal to .xn, only put it
1747 once into the binary.
1748 Add .xc and .xsc scripts.
1749 (parse_args): Handle -z combreloc and -z nocombreloc.
1750 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1751 For .xc and .xsc scripts put all .rel* or .rela* input sections
1752 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1753 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1755 Strip trailing whitespace from script.
1756 Generate .xc and .xsc scripts if requested.
1757 * ldmain.c (main): Initialize link_info.combreloc and
1758 link_info.spare_dynamic_tags.
1759 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1760 (ld_options): Add --spare-dynamic-tags option.
1761 (parse_args): Likewise.
1762 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1763 * ldint.texinfo: Document .xc and .xsc linker scripts.
1764 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1766 2001-08-22 H.J. Lu <hjl@gnu.org>
1768 * emulparams/elf32fr30.sh: Add a newline.
1770 2001-08-21 Andreas Jaeger <aj@suse.de>
1772 * deffilep.y: Add missing prototypes.
1773 * pe-dll.c: Likewise.
1775 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1777 * ldlang.c (insert_pad): Fix typos in last patch.
1779 * ldlang.c: When traversing lang_statement_union_type lists,
1780 consistently use "header.next" rather than "next".
1781 * mpw-eppcmac.c: Likewise.
1782 * emultempl/beos.em: Likewise.
1783 * emultempl/hppaelf.em: Likewise.
1784 * emultempl/pe.em: Likewise.
1785 * ldlang.h (union lang_statement_union): Remove "next" field.
1787 * ldlang.c (insert_pad): Use offsetof macro.
1788 (lang_size_sections): Always neuter padding statements.
1789 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1791 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1792 passed to lang_size_sections.
1793 (pe_exe_fill_sections): Likewise.
1794 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1795 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1797 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1799 * emultempl/aix.em: Formatting fixes.
1801 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1803 * ldlang.c (insert_pad): Make use of an existing pad statement if
1804 available. Move code calculating alignment, adjusting section
1805 alignment power, and adjusting dot to ..
1806 (size_input_section): .. here. Remove unused relax param.
1807 (lang_size_sections): Change boolean `relax' param to boolean *.
1808 Adjust call to size_input_section. Make use of insert_pad to
1809 place pad after the assignment statement. If relaxing, zap
1811 (reset_memory_regions): Reset output_bfd section sizes too.
1812 (relax_again): Move to..
1813 (lang_process): ..here. Adjust call to lang_size_sections, and
1814 remove duplicated code.
1815 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1817 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1819 * ld.texinfo: Document that fill values now use the four least
1821 * emulparams/elf32fr30.sh (NOP): Update.
1822 * emulparams/elf32mcore.sh: Likewise.
1823 * emulparams/elf64_s390.sh: Likewise.
1824 * emulparams/elf_i386.sh: Likewise.
1825 * emulparams/elf_i386_be.sh: Likewise.
1826 * emulparams/elf_i386_chaos.sh: Likewise.
1827 * emulparams/elf_i386_ldso.sh: Likewise.
1828 * emulparams/elf_s390.sh: Likewise.
1829 * emulparams/elf_x86_64.sh: Likewise.
1830 * emulparams/i386moss.sh: Likewise.
1831 * emulparams/i386nw.sh: Likewise.
1832 * emulparams/m68kelf.sh: Likewise.
1833 * scripttempl/elf.sc: Update NOP comment.
1834 * scripttempl/elfi370.sc: Likewise.
1835 * scripttempl/elfm68hc11.sc: Likewise.
1836 * scripttempl/elfm68hc12.sc: Likewise.
1837 * scripttempl/nw.sc: Likewise.
1839 2001-08-15 Tom Rix <trix@redhat.com>
1841 * ldgram.y (saved_script_handle): Initialize to NULL.
1842 * ldmain.c (main): Change check on saved_script_handle.
1844 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1846 * emultempl/elf32.em: Formatting fixes.
1847 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1848 looking at sec->owner.
1849 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1850 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1851 unused code, and reorganize orphan section placement code.
1853 * ldlang.c (wild_doit): Rename to lang_add_section.
1854 * ldlang.h: Here too.
1855 * mpw-elfmips.c: And here.
1856 * emultempl/beos.em: And here.
1857 * emultempl/elf32.em: And here.
1858 * emultempl/hppaelf.em: And here.
1859 * emultempl/pe.em: And here.
1861 2001-08-13 Richard Henderson <rth@redhat.com>
1863 * emultempl/needrelax.em: New file.
1864 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1865 * Makefile.am (eelf64_ia64.c): Depend on it.
1866 * Makefile.in: Rebuild.
1868 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1870 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1871 output_section is set non-NULL.
1873 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1874 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1875 needlessly create an output_section_statement. Treat a correctly
1876 named output_section_statement with NULL bfd_section as compatible.
1878 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1880 * emultempl/generic.em: Support EXTRA_EM_FILE.
1881 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1882 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1883 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1884 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1885 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1886 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1887 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1888 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1889 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1890 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1892 2001-08-12 Richard Henderson <rth@redhat.com>
1894 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1895 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
1896 scripttempl/v850.sc: Keep .jcr data.
1898 2001-08-12 H.J. Lu <hjl@gnu.org>
1899 Andrew Haley <aph@cambridge.redhat.com>
1900 Nick Clifton <nickc@redhat.com>
1902 * ldgram.y (had_script): Change name to saved_script_handle.
1903 Change type to file handle.
1904 * ld.h (had_script): Rename and retype.
1905 * ldfile.c (ldfile_open_command_file): Save the file handle
1906 used in saved_script_handle.
1907 * lexsup.c (parse_args): Do not allow -c option to alter
1908 saved_script_handle.
1909 * ldmain.c (main): Print out the linker script used if
1910 --verbose is given. Check saved_script_handle to obtain the
1911 external linker script used, or if NULL, dump the builtin
1913 * ld.texinfo: Document that --verbose now dumps the linker
1914 script used, regardless of whether it was an internal or an
1917 2001-08-10 Andreas Jaeger <aj@suse.de>
1919 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1921 * configure: Regenerate.
1923 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1925 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
1927 * scripttempl/elf.sc: Move non-text .dynamic section before
1928 .plt/.got/.sdata* group.
1929 (OTHER_GOT_SECTIONS): Move to immediately after .got.
1930 (OTHER_SDATA_SECTIONS): Add.
1931 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
1933 * emulparams/crislinux.sh: Likewise.
1934 * emulparams/elf32b4300.sh: Likewise.
1935 * emulparams/elf32bmip.sh: Likewise.
1936 * emulparams/elf32bmipn32.sh: Likewise.
1937 * emulparams/elf32bsmip.sh: Likewise.
1938 * emulparams/elf32btsmip.sh: Likewise.
1939 * emulparams/elf32ebmip.sh: Likewise.
1940 * emulparams/elf32elmip.sh: Likewise.
1941 * emulparams/elf32l4300.sh: Likewise.
1942 * emulparams/elf32lmip.sh: Likewise.
1943 * emulparams/elf32lsmip.sh: Likewise.
1944 * emulparams/elf32ltsmip.sh: Likewise.
1945 * emulparams/elf64bmip.sh: Likewise.
1946 * emulparams/elf64btsmip.sh: Likewise.
1947 * emulparams/elf64ltsmip.sh: Likewise.
1949 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1951 * genscripts.sh: Source the emulparams script before each output
1952 script is generated so that variables like `RELOCATING' may affect
1953 variables defined in the emulparams script.
1955 2001-08-04 Alan Modra <amodra@bigpond.net.au>
1957 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
1960 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
1961 ie. iterate over wild_statement.section_list.
1962 (gld${EMULATION_NAME}_place_orphan): Likewise.
1964 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1966 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
1967 .fini[0-4] sections used by _exit
1968 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
1969 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
1970 * scripttempl/elfm68hc11.sc: Likewise.
1972 2001-08-03 H.J. Lu <hjl@gnu.org>
1974 * emultempl/beos.em (init): Add the missing initialization.
1976 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1978 * ld.texinfo (Input Section Basics): Clarify ordering of output
1980 * ldlang.c (callback_t): Add wildcard_list param.
1981 (walk_wild_section): Remove "section" param. Rewrite for
1982 lang_wild_statement_type change. Remove unique_section_p test.
1983 (walk_wild_file): Remove "section" param.
1984 (walk_wild): Remove "section" and "file" params.
1985 (lang_gc_wild): Likewise.
1986 (wild): Likewise. Modify for lang_wild_statement_type change.
1987 (wild_sort): Likewise. Add "sec" param.
1988 (gc_section_callback): Likewise.
1989 (output_section_callback): Likewise. Do unique_section_p test.
1990 (map_input_to_output_sections): Modify call to wild.
1991 (lang_gc_sections_1): Likewise.
1992 (print_wild_statement): Modify for lang_wild_statement_type
1994 (lang_add_wild): Replace filename, filenames_sorted param with
1995 filespec. Replace section_name, sections_sorted,
1996 exclude_filename_list with section_list.
1997 * ldlang.h (lang_add_wild): Here too.
1998 (lang_wild_statement_type): Replace section_name, sections_sorted,
1999 and exclude_filename_list with section_list.
2000 * ldgram.y (current_file): Delete.
2001 (%union): Add wildcard_list.
2002 (file_NAME_list): Set type to wildcard_list. Build a linked list
2003 rather than calling lang_add_wild for each entry.
2004 (input_section_spec_no_keep): Call lang_add_wild here instead.
2005 * ld.h (struct wildcard_list): Declare.
2006 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2008 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2010 * ldmain.c (main): initialize link_info.pei386_auto_import
2011 * pe-dll.c: new tables for auto-export filtering
2012 (auto_export): change API, pass abfd for contextual filtering.
2013 Loop thru tables of excluded symbols instead of comparing
2016 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2018 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2019 static variable current_sec (static struct sec *). Add
2020 forward declaration for add_bfd_to_link.
2021 (process_def_file): Don't export undefined symbols. Do not
2022 export symbols starting with "_imp__". Call auto_export()
2024 (pe_walk_relocs_of_symbol): New function.
2025 (generate_reloc): add optional extra debugging
2026 (pe_dll_generate_def_file): eliminate extraneous initial blank
2028 (make_one): enlarge symtab to make room for __nm__ symbols
2029 (DATA auto-import support).
2030 (make_singleton_name_thunk): New function.
2031 (make_import_fixup_mark): New function.
2032 (make_import_fixup_entry): New function.
2033 (pe_create_import_fixup): New function.
2034 (add_bfd_to_link): Specify that 'name' argument is a CONST
2036 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2037 declare new functions pe_walk_relocs_of_symbol and
2038 pe_create_import_fixup.
2039 * emultempl/pe.em: add new options --enable-auto-import,
2040 --disable-auto-import, and --enable-extra-pe-debug.
2041 (make_import_fixup): New function.
2042 (pe_find_data_imports): New function.
2043 (pr_sym): New function.
2044 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2045 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2048 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2050 * ld.texinfo: add additional documentation for
2051 --export-all-symbols. Document --out-implib,
2052 --enable-auto-image-base, --disable-auto-image-base,
2053 --dll-search-prefix, --enable-auto-import, and
2054 --disable-auto-import.
2055 * ldint.texinfo: Add detailed documentation on auto-import
2058 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2060 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2063 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2065 * Makefile.am: Update dependencies with "make dep-am".
2066 * Makefile.in: Regenerate
2068 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2070 * ldcref.c (check_section_sym_xref): New function.
2071 (check_nocrossrefs): Call it.
2072 (check_nocrossref): Interate over h->refs here instead of..
2073 (check_refs): ..here. Pass in the symbol name, section, and bfd
2074 rather than hash_entry pointers.
2075 (struct check_refs_info): Keep symbol name rather than hash entry.
2077 (check_reloc_refs): Tweak for above changes in check_refs_info.
2078 Only report references to section syms when symname is NULL to
2079 prevent duplicate messages for the same reloc.
2081 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2083 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2084 available. Do not print NULL trees.
2085 (exp_print_token): Print unknown tokens with values > 126 as
2086 decimal values not ASCII characters.
2088 * ldlang.c (lang_leave_overlay): If a region is specified assign
2089 it to all sections inside the overlay unless they have been
2090 assigned to the own, non-default, memory region.
2092 * README: Add header for consistency with other README files.
2094 2001-07-14 H.J. Lu <hjl@gnu.org>
2096 * emultempl/elf32.em (output_prev_sec_find): Never return
2097 bfd_abs_section_ptr, bfd_com_section_ptr nor
2098 bfd_und_section_ptr.
2100 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2102 * Makefile.am (em32relf.c): Change dependency from generic.em to
2104 * Makefile.in: Regenerate.
2106 2001-07-14 matthew green <mrg@eterna.com.au>
2108 * configure.tgt (i386-*-netbsdelf*): New target.
2109 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2111 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2113 * emultempl/elf32.em (output_prev_sec_find): New.
2114 (place_orphan): Use it.
2116 2001-07-11 H.J. Lu <hjl@gnu.org>
2118 * ldmain.c (main): Fix typos in the last change.
2120 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2122 * ldmain.c (main): Disallow -F and -f without -shared.
2124 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2126 * emultempl/pe.em (after_open): Check for the output_bfd not
2127 having any coff_data structure allocated to it.
2129 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2131 * emultempl/elf32.em: Do not assuming that contents of the buffer
2132 returned from basename function will remain unchanged accross other
2135 2001-07-03 H.J. Lu <hjl@gnu.org>
2137 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2138 2001-07-03. It creates dynamic entries even for static binaries.
2140 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2142 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2143 (DYNAMIC): Use it to reserve few dynamic entries for
2146 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2148 * emulparams/hppa64linux.sh: New file.
2149 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2150 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2151 (ehppa64linux.c): Add rule to make it.
2153 * Makefile.in: Regenerate.
2155 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2157 * ld.texinfo (Options, -r): Mention restrictions when using
2158 different object formats.
2160 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2162 * ldlang.c (lang_check): Emit fatal error if relocatable link
2163 between different object flavours with relocations in input.
2165 2001-06-19 H.J. Lu <hjl@gnu.org>
2167 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2168 (--version-script): Mention the language support.
2170 2001-06-19 H.J. Lu <hjl@gnu.org>
2172 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2174 2001-06-18 H.J. Lu <hjl@gnu.org>
2176 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2177 (diststuff): Add $(MANS).
2178 * Makefile.in: Regenerated.
2182 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2184 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2185 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2186 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2187 * ld.h (args_type): Remove member export_dynamic. All users
2188 changed to use struct bfd_link_info member.
2190 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2191 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2192 * Makefile.in: Regenerate.
2194 2001-06-18 H.J. Lu <hjl@gnu.org>
2196 * ldlang.c (init_os): Add the newline to the einfo call.
2197 (lang_check): Likewise.
2198 (lang_do_version_exports_section): Likewise.
2200 2001-06-15 H.J. Lu <hjl@gnu.org>
2202 * lexsup.c (parse_args); Save optind to report unrecognized
2205 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2207 * ldlang.c (lang_check): Emit fatal error if relocatable link
2208 between different object flavours.
2210 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2211 Set new link_info member export_dynamic.
2212 * ldmain.c (main): Initialize new link_info member export_dynamic.
2214 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2216 * ldlang.c (walk_wild): Only call walk_wild_file if
2217 lookup_name returns something.
2218 (lookup_name): If load_symbols fails, return NULL.
2219 (load_symbols): Change to a boolean function.
2220 (open_input_bfds): If load_symbols fails then do not make the
2223 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2225 * ldlang.c (record_bfd_errors): Remove.
2227 * emultempl/aix.em: Fix copyright dates.
2229 2001-06-07 Andreas Jaeger <aj@suse.de>
2231 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2232 (TEXT_START_ADDR): Likewise.
2234 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2236 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2238 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2240 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2242 2001-05-31 H.J. Lu <hjl@gnu.org>
2244 * ldlang.c (open_input_bfds): Don't change the bfd error
2245 handler whilst loading symbols.
2247 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2249 * configure.tgt: Remove i370-mvs architecture, it is not currently
2252 2001-05-25 H.J. Lu <hjl@gnu.org>
2254 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2255 like emulparams/aixppc.sh.
2257 2001-05-25 H.J. Lu <hjl@gnu.org>
2259 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2260 setting of output_filename after bfd_scan_arch.
2261 * emultempl/pe.em: Likewise.
2263 2001-05-25 H.J. Lu <hjl@gnu.org>
2265 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2266 like emulparams/aixppc.sh.
2268 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2269 instead of ${srcdir}/emultempl/stringify.sed.
2271 2001-05-25 Timothy Wall <twall@oculustech.com>
2273 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2276 2001-05-25 Alan Modra <amodra@one.net.au>
2278 * configure.host: Replace linuxoldld with linux*oldld.
2279 * configure.tgt: Likewise.
2281 2001-05-24 H.J. Lu <hjl@gnu.org>
2283 * emultempl/stringify.sed: Removed again.
2285 2001-05-24 H.J. Lu <hjl@gnu.org>
2287 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2288 (gld${EMULATION_NAME}_before_parse): Initialize
2289 ldfile_output_architecture, ldfile_output_machine and
2290 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2291 * emultempl/beos.em: Likewise.
2292 * emultempl/elf32.em: Likewise.
2293 * emultempl/linux.em: Likewise.
2294 * emultempl/mipsecoff.em: Likewise.
2295 * emultempl/pe.em: Likewise.
2296 * emultempl/sunos.em: Likewise.
2298 2001-05-24 Tom Rix <trix@redhat.com>
2300 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2301 udate import file format.
2302 (change_symbol_mode) New, same
2303 (is_syscall) New, same
2304 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2305 * emulparams/aixppc64.sh : same
2306 * emulparams/aixrs6.sh : same
2307 * emulparams/ppcmacos.sh : same
2308 * emultempl/aix.em : use strtoull to parse options
2309 * Makefile.am : add eaixppc64 emulation for xcoff64
2310 * Makefile.in : same
2311 * configure.tgt : same
2313 * scripttempl/aix.sc : default text section offset to 0x10000000
2314 default data section offset to 0x20000000
2315 add .sv3264 and .sv64 pseudo sections
2316 loader and debug sections use the currect section offset.
2318 * emultempl/aix.em : Add xcoff64 support
2319 Add -binitfini support
2320 (gld${EMULATION_NAME}_before_parse) -binitfini
2321 (gld${EMULATION_NAME}_parse_args) same
2322 (gld${EMULATION_NAME}_before_allocation) format change for special
2325 * emulparams/aixppc64.sh : New file for xcoff64 support
2327 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2329 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2330 variable to avoid non-portable shell construct.
2332 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2334 * ldmain.c (get_emulation): Add -mips5 command line argument.
2336 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2338 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2339 (ELF_INTERPRETER_NAME): Define it.
2340 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2342 * configure.tgt (targ_emul, targ_extra_emuls)
2343 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2344 as primary, elf_i386 as extra.
2345 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2346 (eelf_i386_ldso.c): New rule.
2347 * Makefile.in: Rebuilt.
2349 2001-05-22 Nick Clifton <nickc@redhat.com>
2351 * lexsup.c (ld_options): Allow -I to be an alias for
2352 --dynamic-linker. This is for Solaris compatability.
2353 * ld.texinfo: Document that -I can be used.
2356 2001-05-16 Alan Modra <amodra@one.net.au>
2358 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2359 whether an input section is the first one assigned to an output
2361 Assorted formatting fixes.
2363 2001-05-14 DJ Delorie <dj@delorie.com>
2365 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2366 * Makefile.in: Ditto.
2368 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2370 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2371 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2373 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2375 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2377 * ldlang.c (lang_process): Call bfd_merge_sections.
2379 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2381 * ldgram.y: Fix typo.
2383 2001-05-03 H.J. Lu <hjl@gnu.org>
2385 * emultempl/elf32.em: Include "libiberty.h".
2386 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2387 basename of the bfd filename.
2388 (gld${EMULATION_NAME}_stat_needed): Likewise.
2389 (gld${EMULATION_NAME}_try_needed): Likewise.
2390 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2392 2001-05-02 H.J. Lu <hjl@gnu.org>
2394 * emultempl/pe.em: Include <ctype.h>.
2396 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2398 * emulparams/elf32openrisc.sh: New file.
2400 * Makefile.am: Add OpenRISC target.
2401 * Makefile.in: Regenerated.
2403 * configure.tgt: Add openrisc-*-* mapping.
2405 2001-05-02 Nick Clifton <nickc@redhat.com>
2407 * emultempl/aix.em: Replace buystring with xstrdup.
2408 * emultempl/beos.em: Replace buystring with xstrdup.
2410 2001-05-02 H.J. Lu <hjl@gnu.org>
2412 * ldfile.c: Include "libiberty.h".
2413 * ldlex.l: Likewise.
2415 * ldmisc.c (buystring): Removed.
2416 * ldmisc.h: Likewise.
2418 * ldfile.c: Replace buystring with xstrdup.
2419 * ldlang.c: Likewise.
2420 * ldlex.l: Likewise.
2421 * ldmain.c: Likewise.
2422 * ldmisc.c: Likewise.
2423 * lexsup.c: Likewise.
2424 * mpw-eppcmac.c: Likewise.
2426 2001-04-30 Andreas Jaeger <aj@suse.de>
2428 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2430 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2432 * ldlang.c (load_symbols): Give emulation a chance
2433 to process unrecognized file before fatal error is
2434 reported, not after.
2436 2001-04-27 Sean McNeil <sean@mcneil.com>
2438 * configure.tgt: Add arm-vxworks target.
2439 * scripttempl/armcoff.sc: Support .text or .data as a section name
2443 2001-04-13 J.T. Conklin <jtc@redback.com>
2445 * ld.texinfo: Document --fatal-warnings.
2448 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2449 warnings have been turned into errors.
2450 * lexsup.c (OPTION_WARN_FATAL): Define.
2451 (ld_options): Entry for --fatal-warnings.
2452 (parse_args): Handle OPTION_WARN_FATAL.
2453 * ld.h (ld_config_type): Add fatal_warnings field.
2455 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2457 * ldmain.c (main): Default to discard_sec_merge.
2458 * lexsup.c (OPTION_DISCARD_NONE): Define.
2459 (ld_options): Add --discard-none.
2460 (parse_args): Handle OPTION_DISCARD_NONE.
2461 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2462 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2463 all its input sections match.
2465 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2467 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2468 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2469 (eelf32ltsmip.c): New target.
2470 (eelf64btsmip.c): Likewise.
2471 (eelf64ltsmip.c): Likewise.
2472 * Makefile.in: Regenerated.
2474 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2476 (mips*-*-linux-gnu*): Likewise.
2478 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2480 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2482 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2485 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2487 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2488 correct value of __Stext here.
2489 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2492 * emulparams/crislinux.sh: Remove FIXME.
2494 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2496 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2497 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2499 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2501 * configure.tgt (cris-*-*): Change default emulation to criself.
2502 (cris-*-*aout*): New rule.
2504 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2506 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2507 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2509 2001-03-26 Andreas Jaeger <aj@suse.de>
2511 * ld.texinfo (Overview): Fix syntax in texi code.
2513 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2515 * ld.texinfo: Put @c man indications to generate the ld man page.
2516 When generating man, define all the variables. Define SEEALSO
2517 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2518 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2519 (ld.1): Generate from ld.texinfo.
2520 * Makefile.in: Regenerate.
2522 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2524 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2525 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2527 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2529 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2530 is an absolute path look only for this file and not along the path.
2532 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2534 * emultempl/elf32.em (OPTION_GROUP): New macro.
2535 Add new option Bgroup to longopts.
2536 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2537 (gld*_list_options): Add -Bgroup and -z defs.
2538 * ld.1: Document -Bgroup and -z defs.
2539 * ld.texinfo: Likewise.
2541 2001-03-07 Michael Meissner <meissner@redhat.com>
2543 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2544 with sections created by -fdata-sections.
2545 (.dynbss,.bss): Ditto.
2547 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2549 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2550 after_allocation_default, not gld..._before_allocation.
2552 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2554 * configure.in (BFD_VERSION): New.
2555 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2556 * configure: Regenerate.
2557 * Makefile.am: Run "make dep-am"
2558 * Makefile.in: Regenerate.
2560 2001-02-26 Timothy Wall <twall@cygnus.com>
2562 * emulparams/elf64_aix.sh: Add additional read-only sections;
2563 uncomment lines which are now required.
2565 2001-02-26 H.J. Lu <hjl@gnu.org>
2567 * ldlang.c (open_input_bfds): Set the bfd error handler so
2568 that problems can be caught whilst loading symbols.
2569 (record_bfd_errors): New function: Report BFD errors and mark
2570 the executable output as being invalid.
2572 2001-02-22 Timothy Wall <twall@cygnus.com>
2574 * configure.host: Add configuration for ia64-*-aix*.
2575 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2576 Add dependencies for eelf64_aix.c.
2577 * Makefile.in: Regenerate.
2578 * configure.tgt: Add ia64-*-aix* mapping.
2579 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2580 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2583 2001-02-20 H.J. Lu <hjl@gnu.org>
2585 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2586 false if we found the file.
2588 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2590 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2591 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2593 2001-02-18 lars brinkhoff <lars@nocrew.org>
2595 * Makefile.am: Add PDP-11 target.
2596 * configure.tgt: Likewise.
2597 * emulparams/pdp11.sh: New file.
2599 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2601 * configure.host: Add a generic FreeBSD configuration entry such that
2602 all [modern] FreeBSD systems on all platforms will look the same.
2604 2001-02-14 H.J. Lu <hjl@gnu.org>
2606 * configure.tgt: Remove mention of earmelf_linux26.
2608 2001-02-13 Richard Henderson <rth@redhat.com>
2610 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2612 2001-02-13 H.J. Lu <hjl@gnu.org>
2614 * ldexp.h (node_type): Add etree_provided.
2615 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2616 type to etree_provided if defined by PROVIDE. Allow updating
2618 (exp_print_tree): Handle etree_provided.
2619 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2622 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2624 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2625 .IA_64.unwind.* pattern to unwind table section and
2626 .IA_64.unwind_info* pattern to unwind info section.
2628 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2630 * Makefile.am: Add linux target for S/390.
2631 * Makefile.in: Likewise.
2632 * configure.host: Likewise.
2633 * configure.tgt: Likewise.
2634 * emulparams/elf64_s390.sh: New file.
2635 * emulparams/elf_s390.sh: New file.
2637 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2639 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2641 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2643 2001-02-06 Philip Blundell <philb@gnu.org>
2645 * Makefile.am: Remove mention of earmelf_linux26.
2646 * Makefile.in: Regenerate.
2648 2001-02-04 Philip Blundell <philb@gnu.org>
2650 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2651 * emulparams/armelf_linux26.sh: Delete.
2652 * configure.tgt: Remove mention of armelf_linux26 emulation.
2654 2001-02-01 Nick Clifton <nickc@redhat.com>
2656 * ld.1: Replace occurances of -oformat with --oformat.
2658 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2660 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2661 load_base is specified.
2663 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2665 * emultempl/elf32.em: Correct spelling in comments and listed
2668 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2670 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2671 default for the first section of a group of overlay sections.
2673 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2675 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2676 * Makefile.in: Regenerate.
2677 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2678 Check for null tool_dir.
2680 2001-01-16 Jim Wilson <wilson@redhat.com>
2682 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2683 and IA_64.unwind.info.
2685 2001-01-16 H.J. Lu <hjl@gnu.org>
2687 * ldlang.c (lang_check): Merge the private data only if the
2688 input file has contents.
2690 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2692 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2694 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2695 enabling search for libmilli. On a relocatable link, make .text
2697 (LDEMUL_AFTER_PARSE): Define.
2698 (hppaelf_finish): Correct spelling of relocatable in comments.
2700 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2701 rummage through the script for sections on the unique list.
2702 Correct length of strncmp for ".note".
2703 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2705 * ldlang.c (unique_section_list): New var.
2706 (unique_section_p): New function.
2707 (walk_wild_section): Don't match sections on unique_section_list.
2708 (lang_add_unique): New function.
2709 Correct spelling of relocatable in comments.
2711 * ldlang.h (struct unique_sections): Declare.
2712 (unique_section_list): Declare.
2713 (unique_section_p): Declare.
2714 (lang_add_unique): Declare.
2716 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2717 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2719 * ld.texinfo (--unique): Update.
2721 2001-01-13 Nick Clifton <nickc@redhat.com>
2723 * lexsup.c (parse_args): Remove spurious white space.
2725 2001-01-12 Nick Clifton <nickc@redhat.com>
2727 * lexsup.c (parse_args): Update copyright date.
2729 2001-01-12 Philip Blundell <pb@futuretv.com>
2731 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2733 2001-01-10 Kazu Hirata <kazu@hxi.com>
2735 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2736 * scripttempl/h8300h.sc: Fix formatting.
2737 * scripttempl/h8300s.sc: Likewise.
2738 * scripttempl/h8500.sc: Likewise.
2739 * scripttempl/h8500b.sc: Likewise.
2740 * scripttempl/h8500c.sc: Likewise.
2741 * scripttempl/h8500m.sc: Likewise.
2742 * scripttempl/h8500s.sc: Likewise.
2744 2000-01-07 David O'Brien <obrien@BSDi.com>
2746 * emultempl/elf32.em: Only perform Linux ld hints processing when
2749 2001-01-07 Philip Blundell <philb@gnu.org>
2751 * ld.texinfo (Bug Reporting): Update email address for reports.
2753 2000-12-31 Nick Clifton <nickc@redhat.com>
2755 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2756 options by checking for a return value of '?' not -1.
2758 2000-12-28 Nick Clifton <nickc@redhat.com>
2760 * lexsup.c (struct ld_option): Add new enum value:
2762 (ld_options[]): Change -omagic, -output and -oformat options
2763 to be EXACTLY_TWO_DASHES.
2764 (OUTPUT_COUNT): Use ARRAY_SIZE.
2765 (parse_args): Change parameter 'argc' to unsigned.
2766 Place EXACTLY_TWO_DASHES options into new really_longopts
2768 If getopt_long_only fails, try calling getopt_long using the
2769 really_longopts array.
2770 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2773 * ldlex.h: Fix prototype of parse_args.
2775 * ld.texinfo: Document that long options starting with 'o'
2776 must be preceeded by two dashes. Change example of a single
2777 dashed long option from -oformat to -trace-symbol.
2779 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2781 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2782 (longopts[]): New --no-default-excludes option.
2783 (gld_${EMULATION_NAME}_list_options): Document.
2784 (gld_${EMULATION_NAME}_parse_args): Handle.
2786 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2788 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2789 whitespace, it breaks the K&R C preprocessor.
2791 2000-12-11 DJ Delorie <dj@redhat.com>
2793 * ld.texinfo: Add notes about --whole-archive and gcc.
2795 2000-11-18 Fred Fish <fnf@be.com>
2797 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2798 (ld_options): Entry for --allow-shlib-undefined.
2799 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2800 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2802 * ld.texinfo: Document new command line switch.
2804 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2806 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2807 .fixup is actually read/write.
2808 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2809 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2810 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2812 2000-12-11 Jan Hubicka <jh@suse.cz>
2814 * NEWS: Add note about x86_64 architecture.
2816 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2818 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2819 Set DWARF2 sections to a VMA of zero.
2821 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2823 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2825 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2826 (sparc*-*-rtems*): Switched from a.out to ELF.
2828 2000-11-30 Jan Hubicka <jh@suse.cz>
2830 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2831 (eelf_x86_64.c): New.
2832 * Makefile.in: Regenerate.
2833 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2834 * emulparams/elf_x86_64.sh: New.
2836 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2838 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2839 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2841 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2842 merging non-a.out sections into CONSTRUCTING.
2844 2000-11-28 Nick Clifton <nickc@redhat.com>
2846 * ld.1 (COPYING): Mention that the GNU Free Documentation
2847 License is present in the sources, but not the output, and
2848 also available from the GNU website.
2849 (GNU Free Documentation License): Comment out this section.
2851 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2853 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2856 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2858 * ld.1: Remove old date so it does not give the impression the manpage
2861 2000-11-24 Nick Clifton <nickc@redhat.com>
2863 * configure.tgt (xscale-coff): Add target.
2864 (xscale-elf): Add target.
2866 2000-11-24 Fred Fish <fnf@be.com>
2868 * ldmain.c (main): Remove redundant init of config.make_executable
2871 2000-11-15 Richard Henderson <rth@redhat.com>
2873 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2875 2000-11-14 Kazu Hirata <kazu@hxi.com>
2877 * scripttempl/h8300.sc: Fix formatting.
2878 * scripttempl/h8300h.sc: Likewise.
2879 * scripttempl/h8300s.sc: Likewise.
2881 2000-11-14 Denis Chertykov <denisc@overta.ru>
2883 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2885 2000-11-09 Philip Blundell <pb@futuretv.com>
2887 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2888 around orphan sections whose names can be represented in C.
2890 2000-11-07 Jim Wilson <wilson@redhat.com>
2892 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2893 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2895 2000-11-06 Nick Clifton <nickc@redhat.com>
2897 * ld.texinfo: Add GNU Free Documentation License.
2898 * ldint.texinfo: Add GNU Free Documentation License.
2899 * ld.1: Add GNU Free Documentation License.
2901 2000-11-05 Alan Modra <alan@linuxcare.com.au>
2903 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
2904 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
2906 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
2907 Move 2000-11-02 Makefile.in changes to this file.
2908 * Makefile.in: Regenerate.
2910 2000-11-03 Nick Clifton <nickc@redhat.com>
2912 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
2913 constructors and destructors.
2914 * scripttempl/h8300h.sc: Ditto.
2915 * scripttempl/h8300s.sc: Ditto.
2916 * scripttempl/h8500.sc: Ditto.
2917 * scripttempl/h8500b.sc: Ditto.
2918 * scripttempl/h8500c.sc: Ditto.
2919 * scripttempl/h8500m.sc: Ditto.
2920 * scripttempl/h8500s.sc: Ditto.
2921 * scripttempl/v850.sc: Ditto.
2922 * scripttempl/w65.sc: Ditto.
2923 * scripttempl/z8000.sc: Ditto.
2925 2000-11-02 Per Lundberg <plundis@chaosdev.org>
2927 * Makefile.in (e_i386_chaos.c): New rule.
2928 (ALL_EMULATIONS): Added e_i386_chaos.o.
2929 * emulparams/elf_i386_chaos.sh: New file.
2930 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
2932 2000-10-20 Jakub Jelinek <jakub@redhat.com>
2934 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
2935 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
2936 Fix sed invocation, so that it coped with '/' in Solaris 64bit
2937 library path suffix.
2938 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
2940 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
2942 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
2943 for consecutive sections.
2945 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
2947 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
2949 * ld.texinfo: Added notes about this new option.
2951 2000-10-16 Nick Clifton <nickc@redhat.com>
2953 * emultempl/pe.em (_after_open): Add tests of return values from
2954 bfd functions. Emit appropriate error messages if necessary.
2956 2000-10-13 Nick Clifton <nickc@redhat.com>
2958 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
2959 local variables - they are not used, but leave in the call to
2960 bfd_canonicalize_symtab.
2961 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
2962 pe_dll_search_prefix.
2964 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
2966 * emultempl/pe.em (pe_dll_search_prefix): New variable,
2967 (longopts): New --dll-search-prefix option.
2968 (gld_${EMULATION_NAME}_list_options): Document.
2969 (gld_${EMULATION_NAME}_parse_args): Handle.
2970 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
2971 dynamically, search for a dll named '<prefix><basename>.dll'
2972 in preference to 'lib<basename>.dll' if --dll-search-prefix
2975 2000-10-12 Alan Modra <alan@linuxcare.com.au>
2977 * ldlang.c (section_already_linked): Set kept_section instead of
2980 2000-10-10 Kazu Hirata <kazu@hxi.com>
2982 * deffile.h: Fix formatting.
2983 * lexsup.c: Likewise.
2986 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2988 * pe-dll.c (make_one): Do not generate code thunk for DATA
2990 (process_def_file): deduce DATA flag for auto-export sumbols.
2992 2000-10-09 Kazu Hirata <kazu@hxi.com>
2994 * ld.h: Fix formatting.
2995 * ldcref.c: Likewise.
2996 * ldctor.h: Likewise.
2997 * ldemul.c: Likewise.
2998 * ldemul.h: Likewise.
2999 * ldexp.c: Likewise.
3000 * ldexp.h: Likewise.
3001 * ldfile.c: Likewise.
3002 * ldfile.h: Likewise.
3003 * ldlang.c: Likewise.
3004 * ldlang.h: Likewise.
3005 * ldmain.c: Likewise.
3006 * pe-dll.c: Likewise.
3008 * pe-dll.c: Revert some formatting fixes.
3010 2000-10-08 Kazu Hirata <kazu@hxi.com>
3012 * pe-dll.c: Fix formatting.
3014 2000-10-05 Kazu Hirata <kazu@hxi.com>
3016 * ldlang.c: Fix formatting.
3018 2000-10-03 DJ Delorie <dj@redhat.com>
3020 * pe-dll.c (fill_edata): initialize entire block
3021 (make_one): fill in correct section.
3023 2000-10-03 Kazu Hirata <kazu@hxi.com>
3025 * ldexp.c: Fix formatting.
3027 2000-10-02 DJ Delorie <dj@redhat.com>
3029 * emultempl/pe.em (gld_*_after_open): detect case where there two
3030 import libraries for same dll; rename one to ensure proper link
3033 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3035 (generate_edata): fix typo
3037 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3039 * scripttempl/crisaout.sc (ENTRY): Now __start.
3040 (.text): Add default setting for __start.
3041 Remove CONSTRUCTORS handling.
3042 (/DISCARD/): Add .gnu.warning.*.
3043 * emulparams/crislinux.sh (ENTRY): Now __start.
3044 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3045 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3046 (ENTRY): Now __start.
3047 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3048 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3050 2000-09-29 Kazu Hirata <kazu@hxi.com>
3052 * deffile.h: Fix formatting.
3054 * ldcref.c: Likewise.
3055 * ldctor.c: Likewise.
3056 * ldctor.h: Likewise.
3057 * ldemul.c: Likewise.
3058 * ldemul.h: Likewise.
3059 * ldexp.c: Likewise.
3060 * ldexp.h: Likewise.
3061 * ldfile.c: Likewise.
3062 * ldfile.h: Likewise.
3063 * ldlang.c: Likewise.
3064 * ldlang.h: Likewise.
3065 * lexsup.c: Likewise.
3067 * pe-dll.c: Likewise.
3069 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3071 * pe-dll.c (process_def_file): Uninitialized data wasn't
3072 exported with --export-all-symbols switch.
3074 2000-09-28 DJ Delorie <dj@redhat.com>
3076 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3077 noname work properly.
3079 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3081 * ld.texinfo (HPPA ELF32): New section.
3083 * emultempl/hppaelf.em (group_size): New.
3084 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3085 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3086 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3087 options to prevent abbreviations matching.
3088 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3089 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3091 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3093 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3094 on the m68*-*-elf target. Make it support COFF input objects.
3096 2000-09-21 Kazu Hirata <kazu@hxi.com>
3098 * ldmain.c: Fix formatting.
3099 * ldmisc.c: Likewise.
3100 * ldver.c: Likewise.
3101 * ldwrite.c: Likewise.
3103 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3105 * ldwrite.c (clone_section): Silence gcc warnings.
3107 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3109 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3110 out of memory failure.
3112 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3113 (clone_section): Handle out of memory failures. Rename var to
3114 avoid c++ reserved word.
3116 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3118 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3119 stub_name param to stub_sec_name.
3120 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3122 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3124 * emultempl/m68kelf.em: New file.
3125 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3126 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3127 * Makefile.in: Regenerate.
3129 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3131 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3134 2000-09-13 Nick Clifton <nickc@redhat.com>
3136 * ldmain.c (multiple_definition): Disable relaxation if
3137 multiple symbol definitions are encountered - otherwise the
3138 linker could abort with an assertion failure.
3140 2000-09-10 Nick Clifton <nickc@redhat.com>
3142 * mri.c: Fix formatting.
3144 2000-09-07 H.J. Lu <hjl@gnu.org>
3146 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3147 * configure: Rebuild.
3149 2000-09-07 H.J. Lu <hjl@gnu.org>
3151 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3152 * Makefile.in: Rebuild.
3154 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3156 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3157 broken list handling. Create __start_SECNAME and __stop_SECNAME
3158 when no place-holder. Add some comments. Test both SEC_CODE and
3159 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3160 Handle case where no output section statement created.
3162 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3164 * configure.tgt (sh-*-linux*): Added.
3165 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3166 * Makefile.in: Rebuilt.
3167 * emulparams/shelf_linux.sh: New file.
3168 * emulparams/shlelf_linux.sh: New file.
3170 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3172 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3173 try shuffling sections when the orphan happens to be the place
3174 holder. Keep count of unique section names generated so we speed
3175 the search for a new name.
3177 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3179 * configure: Rebuilt with new libtool.m4.
3181 2000-09-05 Nick Clifton <nickc@redhat.com>
3183 * Makefile.in: Regenerate.
3184 * aclocal.m4: Regenerate.
3185 * configure: Regenerate.
3186 * config.in: Regenerate.
3187 * po/ld.pot: Regenerate.
3189 * ldint.texinfo: Remove CVS revision marker - it foils local
3192 * emultempl/ticoff.em: Remove extraneous comma.
3194 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3196 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3197 to stub section flags.
3198 (hppa_for_each_input_file_wrapper): New.
3199 (hppa_lang_for_each_input_file): New.
3200 (lang_for_each_input_file): Define to call above.
3201 (multi_subspace): New.
3202 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3203 (PARSE_AND_LIST_PROLOGUE): Define.
3204 (PARSE_AND_LIST_LONGOPTS): Define.
3205 (PARSE_AND_LIST_OPTIONS): Define.
3206 (PARSE_AND_LIST_ARGS_CASES): Define.
3207 (hppaelf_finish): Call elf32_hppa_set_gp.
3208 (hppaelf_set_output_arch): Remove.
3209 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3211 * emulparams/hppalinux.sh (ELFSIZE): Define.
3213 (OTHER_READONLY_SECTIONS): Define.
3215 (GENERATE_SHLIB_SCRIPT): Define.
3217 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3218 to const throughout. Change `void *' to `PTR' throughout.
3219 (lang_memory_default): Function is local to file, add `static'.
3221 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3222 (ehppalinux.c): Likewise.
3223 (earmelf.c): Likewise.
3224 (earmelf_linux.c): Likewise.
3225 (earmelf_linux26.c): Likewise.
3226 * Makefile.in: Regenerate.
3228 * ld.h (ld_config_type): Add unique_orphan_sections.
3229 * lexsup.c (OPTION_UNIQUE): Define.
3230 (ld_options): Add "--unique".
3231 (parse_args): Handle it.
3232 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3233 search for an existing output section if unique_orphan_sections is
3234 set. Make use of bfd_get_unique_section_name rather than
3235 duplicating code here.
3236 * ld.texinfo: Describe --unique.
3238 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3239 optional arg to split-by-file.
3240 (parse_args): Handle them.
3241 * ld.texinfo: Update description of these options.
3242 * ldwrite.c (clone_section): Pass in the section name. Replace
3243 local code with bfd_get_unique_section_name.
3244 (split_sections): Tidy code and comments. Use a list traversal
3245 more appropriate to the list construction. Handle cooked section
3246 sizes. Split when split_by_reloc reached rather than exceeded.
3247 Track section size and split when split_by_file reached. Fix
3248 link_order_tail (even though it's not used).
3249 (ldwrite): Modify condition for calling split_sections to suit
3250 changed split_by_reloc and split_by_file.
3251 * ldmain.c (main): Init config.split_by_reloc and
3252 config.split_by_file to -1.
3253 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3254 Change split_by_file to bfd_size_type.
3256 2000-09-02 Nick Clifton <nickc@redhat.com>
3258 * configure.in: Increase version number to 2.10.91.
3259 * NEWS: Mention new ability to support removal of duplicate DWARF2
3261 * configure: Regenerate.
3262 * aclocal.m4: Regenerate.
3263 * config.in: Regenerate.
3265 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3267 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3269 * scripttempl/elf32avr.sc: Ditto.
3270 * scripttempl/elfd10v.sc: Ditto.
3271 * scripttempl/elfd30v.sc: Ditto.
3272 * scripttempl/elfi370.sc: Ditto.
3273 * scripttempl/elfm68hc11.sc: Ditto.
3274 * scripttempl/elfm68hc12.sc: Ditto.
3275 * scripttempl/elfi386beos.sc: Ditto.
3276 * scripttempl/v850.sc: Ditto.
3278 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3280 * acinclude.m4: Include libtool and gettext macros from the
3282 * aclocal.m4, configure: Rebuilt.
3284 2000-08-25 Nick Clifton <nickc@redhat.com>
3286 * ldlang.c (open_output): When choosing the target for a
3287 particular endianness, do nothing if the target is not
3290 2000-08-25 H.J. Lu <hjl@gnu.org>
3292 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3293 check -rpath nor LD_RUN_PATH for cross link.
3294 * ld.texinfo: Document the change.
3296 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3298 * NEWS: Mention support for CRIS.
3300 2000-08-23 H.J. Lu <hjl@gnu.org>
3302 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3303 the current runpath list from bfd_elf_get_runpath_list ()
3306 2000-08-22 H.J. Lu <hjl@gnu.org>
3308 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3309 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3310 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3311 trace_file_tries is non-zero.
3312 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3313 if trace_file_tries is non-zero.
3315 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3318 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3320 * NEWS: Mention i860 support.
3322 2000-08-14 Andreas Schwab <schwab@suse.de>
3324 * scripttempl/elf.sc: Fix last change to use correct comment
3327 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3329 * scripttempl/elf.sc: Add a comment giving the correspondence
3330 between sections, per-datum sections, and linkonce sections. Make
3331 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3334 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3336 * emulparams/elf32_i860.sh: New file.
3337 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3338 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3339 (eelf32_i860.c): New rule.
3340 * Makefile.in: Regenerate.
3342 2000-08-10 Nick Clifton <nickc@cygnus.com>
3344 * emulparams/mipspe.sh (ENTRY): Add definition.
3346 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3348 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3351 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3353 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3354 the final size of .bss section.
3355 * scripttempl/elfm68hc12.sc: Likewise.
3357 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3359 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3360 gld${EMULATION_NAME}_parse_args for consistency. Combine
3361 lastoptind and prevoptind vars, and keep track of last optind.
3362 (gld_${EMULATION_NAME}_list_options): Rename to
3363 gld${EMULATION_NAME}_list_options.
3365 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3367 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3368 (i586-sco-sysv5uw7.1.0).
3370 2000-07-27 H.J. Lu <hjl@gnu.org>
3372 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3373 (PARSE_AND_LIST_PROLOGUE): New.
3374 (PARSE_AND_LIST_LONGOPTS): Likewise.
3375 (PARSE_AND_LIST_OPTIONS): Likewise.
3376 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3377 (PARSE_AND_LIST_EPILOGUE): Likewise.
3379 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3381 * emultempl/armelf.em: Elide functions common to elf32.em,
3382 ie. most of the file.
3383 (arm_elf_after_open): New. Do arm specific things then call
3384 gld${EMULATION_NAME}_after_open.
3385 (arm_elf_before_allocation): New. Call
3386 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3387 (PARSE_AND_LIST_PROLOGUE): Define.
3388 (PARSE_AND_LIST_SHORTOPTS): Define.
3389 (PARSE_AND_LIST_LONGOPTS): Define.
3390 (PARSE_AND_LIST_OPTIONS): Define.
3391 (PARSE_AND_LIST_ARGS_CASES): Define.
3392 (LDEMUL_AFTER_OPEN): Define.
3393 (LDEMUL_BEFORE_ALLOCATION): Define.
3394 (LDEMUL_BEFORE_PARSE): Define.
3395 (LDEMUL_FINISH): Define.
3397 * emultempl/hppaelf.em: Similarly zap most of this file.
3398 (hppaelf_add_stub_section): Prototype.
3399 (hppaelf_layaout_sections_again): Prototype.
3400 (hook_in_stub): Prototype.
3401 (LDEMUL_SET_OUTPUT_ARCH): Define.
3402 (LDEMUL_FINISH): Define.
3403 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3405 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3406 (EXTRA_EM_FILE): New.
3407 * emulparams/armelf_linux.sh: Likewise.
3408 * emulparams/armelf_linux26.sh: Likewise.
3409 * emulparams/hppalinux.sh: Likewise.
3410 * emulparams/hppaelf.sh: Likewise.
3413 * emultempl/elf32.em: Fix formatting.
3414 (EXTRA_EM_FILE): Source it.
3415 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3416 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3417 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3418 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3419 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3420 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3421 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3422 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3423 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3424 allow functions in this file to be overridden.
3425 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3427 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3429 * emultempl/elf32.em: Reorganize file.
3431 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3433 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3434 specific option to fit 64-bit executable in the lower
3435 31-bit address range. This is done by changing start
3436 address of .interp (the very first section of executable)
3437 and then setting EF_ALPHA_32BIT elf header flag.
3439 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3441 * emultempl/m68kcoff.em: New file.
3442 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3443 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3445 * Makefile.in: Regenerate.
3447 2000-07-20 H.J. Lu <hjl@gnu.org>
3449 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3450 and "disable-new-dtags" to stop getopt from treating -d/-e as
3451 abbreviations for these options.
3453 2000-07-20 H.J. Lu <hjl@gnu.org>
3455 * ld.texinfo: Add documentation for --disable-new-dtags and
3458 * ldmain.c (main): Initialize link_info.new_dtags to false.
3460 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3461 --disable-new-dtags and --enable-new-dtags.
3462 (gld_${EMULATION_NAME}_list_options): Likewise.
3464 2000-07-05 Kenneth Block <krblock@computer.org>
3466 * lexsup.c: Add optional style to demangle switch
3467 * ld.texinfo: Document optional style to demangle switch.
3469 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3471 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3473 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3474 Regenerate dependencies.
3475 * Makefile.in: Rebuild.
3476 * configure.tgt (cris-*-*): New target.
3477 * emulparams/crisaout.sh, emulparams/criself.sh,
3478 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3479 * po/POTFILES.in, po/ld.pot: Regenerate.
3481 2000-07-20 H.J. Lu <hjl@gnu.org>
3483 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3484 Print out ignored -z options.
3486 2000-07-19 H.J. Lu <hjl@gnu.org>
3488 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3489 (PARSE_AND_LIST_PROLOGUE): New.
3490 (PARSE_AND_LIST_LONGOPTS): Likewise.
3491 (PARSE_AND_LIST_OPTIONS): Likewise.
3492 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3494 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3496 * lexsup.c (ld_options): Comment out 'z'.
3497 (parse_args): Likewise.
3499 * emultempl/elf32.em: Include "elf/common.h".
3500 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3502 (gld_${EMULATION_NAME}_list_options): Likewise.
3504 * ld.texinfo: Add documentation for the recognized -z options.
3506 2000-07-19 H.J. Lu <hjl@gnu.org>
3508 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3509 bfd_elf_set_dt_needed_soname ().
3511 2000-07-18 DJ Delorie <dj@cygnus.com>
3513 * pe-dll.c (pe_dll_id_target): check object target name also
3515 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3517 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3518 ${INIT_END} if relocating.
3519 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3521 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3523 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3524 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3525 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3526 errors introduced by the old dynamic lib search order.
3528 2000-07-17 DJ Delorie <dj@cygnus.com>
3530 * pe-dll.c (process_def_file): auto-export data items also
3531 (pe_process_import_defs): also see if _imp_ form needed
3533 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3535 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3536 for dll import libraries
3538 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3540 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3541 gcc 2.95.2 and later.
3543 2000-07-11 Kazu Hirata <kazu@hxi.com>
3545 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3548 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3550 * ldemul.h (struct lang_input_statement_struct): Remove forward
3552 (struct search_dirs): Likewise.
3553 * ldfile.h (struct lang_input_statement_struct): Likewise.
3554 Protect file from multiple inclusion.
3555 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3556 declaration from macro to file scope.
3558 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3559 * ldgram.y: Likewise here.
3560 * ldlang.c: And here.
3561 * ldmain.c: And here.
3562 * mpw-elfmips.c: And here.
3563 * mpw-eppcmac.c: And here.
3564 * emultempl/aix.em: And here.
3565 * emultempl/armcoff.em: And here.
3566 * emultempl/armelf.em: And here.
3567 * emultempl/armelf_oabi.em: And here.
3568 * emultempl/beos.em: And here.
3569 * emultempl/elf32.em: And here.
3570 * emultempl/hppaelf.em: And here.
3571 * emultempl/linux.em: And here.
3572 * emultempl/lnk960.em: And here.
3573 * emultempl/pe.em: And here.
3574 * emultempl/sunos.em: And here.
3575 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3576 * mpw-idtmips.c: Ditto.
3577 * emultempl/generic.em: Ditto.
3578 * emultempl/gld960.em: Ditto.
3579 * emultempl/gld960c.em: Ditto.
3580 * emultempl/mipsecoff.em: Ditto.
3581 * emultempl/ticoff.em: Ditto.
3582 * emultempl/vanilla.em: Ditto.
3584 * pe-dll.c: Include ldfile.h
3585 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3587 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3588 arguments to bfd_elf32_size_dynamic_sections call.
3589 (gldelf32ebmip_place_orphan): Add missing arguments to
3590 lang_leave_output_section_statement call.
3592 2000-07-10 H.J. Lu <hjl@gnu.org>
3594 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3596 (strhash): Likewise.
3597 (compute_dll_image_base): Likewise.
3598 (pe_undef_found_sym): Likewise.
3599 (pe_undef_cdecl_match): Likewise.
3600 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3601 argument "arch" with ATTRIBUTE_UNUSED.
3603 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3605 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3607 From Ryan Bradetich <rbradetich@uswest.net>
3608 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3610 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3612 Changes to create multiple linker stubs, positioned immediately
3613 before the section where they are required.
3614 * emultempl/hppaelf.em: Include elf32-hppa.h.
3615 (stub_sec, file_chain): Delete.
3616 (hppaelf_create_output_section_statements): Don't make a stub
3618 (hook_stub_info): New struct.
3619 (hook_in_stub): New function.
3620 (hppaelf_add_stub_section): New function.
3621 (hppaelf_finish): Do nothing for relocateable links. Modify the
3622 call to elf32_hppa_size_stubs. Move code for updating section
3624 (hppaelf_layaout_sections_again): ..to here, a new function.
3626 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3627 broken list handling. Pass in a pointer to the list.
3628 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3630 (hppaelf_before_parse): Prototype.
3631 (hppaelf_set_output_arch): Prototype.
3632 (hppaelf_create_output_section_statements): Prototype.
3633 (hppaelf_delete_padding_statements): Prototype.
3634 (hppaelf_finish): Prototype.
3637 * emultempl/hppaelf.em: Include ctype.h.
3638 (struct orphan_save): New.
3639 (gld${EMULATION_NAME}_place_orphan): New.
3640 (output_rel_find): New.
3641 (hppaelf_get_script): Update from elf32.em.
3642 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3643 Change emulation_name field to "${EMULATION_NAME}". Add
3644 gld${EMULATION_NAME}_place_orphan.
3646 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3647 ehppalinux.o, sort it. Regenerate dependencies.
3648 (ehppalinux.c): Depend on hppaelf.em
3649 * Makefile.in: Regenerate.
3651 * configure.tgt: targ_emul=hppalinux for hppa*linux
3653 * emulparams/hppalinux.sh: New.
3654 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3656 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3658 * lexsup.c (parse_args): Copy section name.
3660 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3662 * emultempl/pe.em: institute the following search order for
3663 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3664 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3665 static lib (libfoo.a) if none of the above are found.
3667 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3669 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3670 (longopts): New --{enable,disable}-auto-image-base options.
3671 (gld_${EMULATION_NAME}_list_options): Document.
3672 (gld_${EMULATION_NAME}_parse): Handle.
3673 (strhash): New static function.
3674 (compute_dll_image_base): New static function.
3675 (gld_${EMULATION_NAME}_set_symbols): Use.
3677 2000-07-05 DJ Delorie <dj@redhat.com>
3681 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3683 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3684 * emulparams/elf32btsmip.sh: New file.
3685 * Makefile.am: Add traditional mips target.
3686 * Makefile.in: Rebuild.
3688 2000-07-01 H.J. Lu <hjl@gnu.org>
3690 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3691 automake to use YLWRAP.
3692 * Makefile.in: Rebuild.
3694 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3696 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3697 (CLEANFILES): Add DEPA.
3698 * Makefile.in: Regenerate.
3700 2000-06-30 Timothy Wall <twall@ppc>
3702 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3703 the page in the upper octet of the address.
3705 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3707 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3709 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3711 * NEWS: arm-elf does --gc-sections too.
3713 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3715 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3717 * Makefile.in: Regenerate.
3719 2000-06-21 H.J. Lu <hjl@gnu.org>
3721 * Makefile.am: Rebuild dependency.
3722 * Makefile.in: Rebuild.
3724 2000-06-20 H.J. Lu <hjl@gnu.org>
3726 * Makefile.am: Rebuild dependency.
3727 * Makefile.in: Rebuild.
3729 2000-06-20 Timothy Wall <twall@cygnus.com>
3731 * scripttempl/tic54xcoff.sc: New.
3732 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3733 * gen-doc.texi: Add flag for TI COFF.
3734 * ld.texinfo: Add documentation for TI COFF handling switches.
3735 * emultempl/ticoff.em: New. TI COFF handling.
3736 * configure.tgt: Add tic54x target.
3737 * Makefile.am: Add tic54x target.
3738 * Makefile.in: Ditto.
3740 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3742 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3743 checking for backslashes.
3745 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3747 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3749 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3751 * NEWS: Update list of targets supporting --gc-sections.
3753 * scripttempl/elf.sc: KEEP .eh_frame contents.
3754 * scripttempl/elfd30v.sc: Same here.
3756 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3758 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3760 * Makefile.in: Rebuild.
3761 * configure.tgt: Recognize m68hc12 and m68hc11.
3762 * scripttempl/elfm68hc12.sc: New file.
3763 * emulparams/m68hc12elfb: New emulation.
3764 * emulparams/m68hc12elf: New emulation.
3765 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3766 (includes a memory.x script to define the ROM and RAM banks).
3767 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3768 New configuration files for support of Motorola 68hc11
3770 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3772 * ldmain.c (main): Only change SEC_READONLY for final link.
3774 2000-06-13 H.J. Lu <hjl@gnu.org>
3776 * configure: Regenerate.
3778 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3780 * configure.in (VERSION): Update to show this is the CVS mainline.
3782 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3784 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3785 input objects to be ECOFF.
3786 (check_sections): einfo takes %B, not %P, to print a BFD name.
3788 2000-06-05 Michael Matz <matz@ifh.de>
3790 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3793 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3795 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3797 * emulparams/avr1200.sh (STACK): Define as 0.
3798 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3799 * emulparams/avr4433.sh (STACK): Likewise.
3800 * emulparams/avr44x4.sh (STACK): Likewise.
3801 * emulparams/avr85xx.sh (STACK): Likewise.
3802 * emulparams/avrmega103.sh (STACK): Likewise.
3803 * emulparams/avrmega161.sh (STACK): Likewise.
3804 * emulparams/avrmega603.sh (STACK): Likewise.
3805 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3806 (__stack): Define from ${STACK} for main().
3808 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3810 * Makefile.am: Update dependencies with "make dep-am"
3811 * Makefile.in: Regenerate.
3813 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3815 * ldmain.c: Include filenames.h.
3816 (set_scripts_dir): Support backslashes in program name.
3818 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3820 * ldmain.c (main): When deciding if ".text" section should be
3821 read-only, don't forget to reset SEC_READONLY because it
3822 could be already set.
3824 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3826 * ld.1: Add documentation for new command line option:
3827 --section-start <sectionname>=<sectionorg>
3828 This is a generic version of -Ttext etc. which accepts
3829 any section name as a parameter instead of just text/data/
3831 * ld.texinfo: More docs.
3833 * lexsup.c: (parse_args): Recognize new command line option.
3834 (ld_options): Add new option.
3836 2000-05-18 H.J. Lu <hjl@gnu.org>
3838 * lexsup.c (parse_args): `i' == `r', not `q'.
3840 2000-05-18 Jeffrey A Law (law@cygnus.com)
3842 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3844 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3845 Rick Gorton <gorton@scrugs.lkg.dec.com>
3847 Add support for '-q' == '--emit-relocs' switch.
3848 * ldmain.c (main): Default to false.
3849 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3850 * NEWS: Describe the emitrelocations switch.
3851 * ld.texinfo: Describe the emitrelocations switch.
3853 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3855 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3856 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3857 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3860 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3862 * lexsup.c (parse_args): Update the year in the copyright notice.
3864 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3866 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3867 Replace defines with those from intl/libgettext.h to quieten gcc
3870 2000-05-10 H.J. Lu <hjl@gnu.org>
3872 * ldlang.c (open_input_bfds): Don't load the same file within
3873 a group again if the whole archive has been loaded already.
3875 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3877 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3878 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3881 2000-05-01 Jim Wilson <wilson@cygnus.com>
3883 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3885 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3886 host "ia64-*-linux-gnu*".
3888 2000-04-29 Andreas Jaeger <aj@suse.de>
3890 * ld.h: Correctly check GCC version.
3892 2000-04-25 Jeffrey A Law (law@cygnus.com)
3894 * Makefile.am: Add PA64 support. Add missing dependencies for
3896 * Makefile.in: Rebuilt.
3897 * configure.tgt: Add PA64 support (currently disabled).
3899 2000-04-25 Alan Modra <alan@linuxcare.com.au>
3901 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
3902 (output_rel_find): New function.
3903 (hold_section, hold_use): Delete.
3904 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3905 hold_interp): Make local to place_orphan.
3906 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
3907 rather than place_section to find possible previous use of orphan.
3908 Similarly find the place-holder output sections. Use returned
3909 value from lang_enter_output_section_statement rather than calling
3910 lang_output_section_statement_lookup.
3911 * emultempl/armelf.em: Same here.
3912 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
3914 * ldlang.c (lang_enter_output_section_statement): Return output
3916 * ldlang.h (lang_enter_output_section_statement): Change
3919 * ldlang.h (lang_output_section_statement): Export it.
3920 * ldlang.c (lang_output_section_statement): Ditto.
3922 2000-04-24 Nick Clifton <nickc@cygnus.com>
3924 * ld.texinfo (Output Section Data): Add note that section data
3925 commands cannot appear outside of section directives.
3927 2000-04-2 Matthew Green <mrg@cygnus.com>
3929 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
3931 2000-04-21 Richard Henderson <rth@cygnus.com>
3932 David Mosberger <davidm@hpl.hp.com>
3934 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
3935 (eelf64_ia64.c): New rule.
3936 * Makefile.in: Rebuild.
3937 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
3938 * emulparams/elf64_ia64.sh: New file.
3940 2000-04-21 Richard Henderson <rth@cygnus.com>
3942 * scripttempl/elfd30v.sc: Place .gcc_except_table.
3944 2000-04-19 Alan Modra <alan@linuxcare.com.au>
3946 * dep-in.sed: Match space at start of file name, not at end.
3948 2000-04-18 H.J. Lu <hjl@gnu.org>
3950 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
3951 lang_leave_output_section_statement () after calling
3952 lang_enter_output_section_statement ().
3953 * emultempl/armelf.em: Likewise.
3955 2000-04-18 Alan Modra <alan@linuxcare.com.au>
3957 * emultempl/elf32.em (struct orphan_save): Add section field.
3958 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
3959 better order, and place first orphan section as we did before the
3960 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
3961 Don't call make_bfd_section here, let wild_doit do the job for us.
3962 Don't build a statement list when we'll only throw it away.
3963 * emultempl/armelf.em: Ditto.
3964 * emultempl/pe.em: Similarly.
3966 2000-04-14 Geoff Keating <geoffk@cygnus.com>
3968 * scripttempl/elfppc.sc: Remove.
3969 * emulparams/elf32ppc.sh: Use elf.sc.
3970 * emulparams/elf32lppc.sh: Use elf.sc.
3971 * emulparams/elf32ppclinux.sh: Use elf.sc.
3972 * emulparams/elf32ppcsim.sh: New file.
3973 * emulparams/elf32lppcsim.sh: New file.
3974 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
3975 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
3976 * Makefile.in: Regenerate.
3977 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
3979 2000-04-14 Alan Modra <alan@linuxcare.com.au>
3981 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
3982 ~SEC_ALLOC sections too. Init start address of debug sections.
3983 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3984 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
3985 Also set all relocateable section start addresses.
3987 2000-04-13 Geoff Keating <geoffk@cygnus.com>
3989 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
3990 Add new BSS_PLT variable for when .plt need not be contained in
3991 the file. Move _etext so that it is also after .fini, and provide
3992 both etext and _etext with a leading underscore. Mark the start
3995 2000-04-12 Alan Modra <alan@linuxcare.com.au>
3997 * emultempl/elf32.em (struct orphan_save): New.
3998 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
3999 hold_interp): Make them struct orphan_save.
4000 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4001 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4002 the end of the relevant section list. Also add associated section
4003 statements to the end of any previous orphan statements.
4004 * emultempl/armelf.em: Similarly.
4005 * emultempl/pe.em: Similarly.
4007 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4009 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4011 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4013 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4014 --enable-build-warnings option.
4015 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4016 * Makefile.in, configure: Re-generate.
4018 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4020 * po/ld.pot: Regenerate.
4022 * lexsup.c (help): Restore translated part of bug string.
4024 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4025 (DEP): Quote when passing vars to sub-make. Add warning message
4027 (DEP1): Rewrite for "gcc -MM".
4028 (CLEANFILES): Add DEP2.
4029 Update dependencies.
4030 * Makefile.in: Regenerate.
4032 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4034 * ld.h: #include "bin-bugs.h"
4035 * lexsup.c (help): Use REPORT_BUGS_TO.
4037 2000-03-27 Denis Chertykov <denisc@overta.ru>
4039 * configure.tgt (avr-*-*): New target support.
4040 * Makefile.am: Likewise.
4041 * scripttempl/elf32avr.sc: New script file.
4042 * emulparams/avr1200.sh: New file.
4043 * emulparams/avr23xx.sh: New file.
4044 * emulparams/avr4433.sh New file.
4045 * emulparams/avr44x4.sh New file.
4046 * emulparams/avr85xx.sh New file.
4047 * emulparams/avrmega103.sh New file.
4048 * emulparams/avrmega161.sh New file.
4049 * emulparams/avrmega603.sh New file.
4050 * Makefile.in: Regenerate.
4052 2000-03-09 Andreas Jaeger <aj@suse.de>
4054 * Makefile.am (check-DEJAGNU): Also unset LANG.
4055 * Makefile.in: Rebuild.
4057 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4059 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4062 2000-03-02 H.J. Lu <hjl@gnu.org>
4064 * emulparams/elf32mcore.sh: Include "getopt.h".
4066 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4068 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4070 2000-03-01 H.J. Lu <hjl@gnu.org>
4072 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4073 * emulparams/shpe.sh: Likewise.
4075 2000-03-01 Nick Clifton <nickc@cygnus.com>
4077 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4078 to unused parameters.
4080 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4081 functions only used by DLL code.
4082 (_place_orphan): Initialise 'dollar'.
4084 2000-03-01 H.J. Lu <hjl@gnu.org>
4086 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4087 indicate if the undefined symbol is a fatal error or not.
4088 Don't delete the output file if "fatal" is false.
4090 2000-02-29 H.J. Lu <hjl@gnu.org>
4092 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4093 Set LC_COLLATE and LC_ALL to null and export them. It is for
4094 sort which expects the C locale.
4095 Add $(LIBS) to all $(HOSTING_LIBS).
4096 * Makefile.in: Rebuild.
4098 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4100 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4101 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4102 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4103 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4104 find_potential_libraries.
4106 2000-02-28 Jim Blandy <jimb@redhat.com>
4108 * ldgram.y (exclude_name_list): Don't require a comma to separate
4109 list entries; the lexer considers commas to be valid part of a
4110 filename, so in something like `foo, bar' the comma is considered
4111 part of the first filename, `foo,'.
4112 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4114 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4116 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4117 host "i[3456]86-*-freebsdelf*".
4119 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4121 * scripttempl/i386go32.sc: Move misplaced semicolons.
4123 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4125 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4126 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4127 (eelf64hppa.c, ehppaelf.c): Remove targets.
4128 * Makefile.in: Rebuild.
4130 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4132 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4133 GNU/Linux/sparc, but keep the default as 32.
4135 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4136 it default if sparcv9 or sparc64.
4138 2000-02-24 Nick Clifton <nickc@cygnus.com>
4140 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4141 * Makefile.in: Regenerate.
4142 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4144 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4145 find_potential_libraries.
4146 * ldemul.c (ldemul_find_potential_libraries): New function.
4148 * ldfile.c (ldfile_open_file_search): Allow function to be
4150 (ldfile_open_file): Call ldemul_find_potential_libraries.
4151 * ldfile.h: Add prototype for ldfile_open_file_search.
4153 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4155 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4156 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4158 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4159 (gld_X_find_potential_libraries): New function. Search for
4160 libraries called "*.lib".
4162 * scripttempl/pe.sc: Add .pdata section.
4164 2000-02-23 Richard Henderson <rth@cygnus.com>
4166 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4167 Add and use memory regions.
4169 2000-02-23 Linas Vepstas (linas@linas.org)
4171 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4173 * Makefile.am: Add support for Linux/IBM 370.
4174 * configure.tgt: Likewise.
4176 * Makefile.in: Regenerate.
4178 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4180 * ldlang.c (print_input_section, print_data_statement,
4181 print_reloc_statement, print_padding_statement, insert_pad,
4182 size_input_section, lang_check_section_addresses,
4183 lang_size_sections, lang_do_assignments, lang_set_startof,
4184 lang_one_common): Change `opb' to unsigned.
4185 (lang_do_assignments): Also change `size' to unsigned.
4187 2000-02-16 Richard Henderson <rth@cygnus.com>
4189 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4191 2000-02-16 Timothy Wall <twall@cygnus.com>
4193 * mri.c (mri_draw_tree): Add default LMA region argument to call
4194 to lang_leave_output_section_statement.
4195 * ldlang.h: Update prototypes with LMA region arguments.
4196 * ldlang.c (lang_size_sections): Encapsulate region bounds
4197 checking in os_check_region call.
4198 (os_check_region): New function.
4199 (lang_output_section_statement_lookup): Initialize lma_region.
4200 (lang_leave_output_section_statement): Add LMA region argument.
4201 (lang_leave_overlay): Ditto.
4202 * ldgram.y: Handle LMA region syntax.
4203 * ld.texinfo (Output Section Description): Describe LMA region usage.
4204 * emultempl/armelf.em (gld$place_orphan): Add default value for
4205 lma region in call to lang_leave_output_section_statement.
4206 * emultempl/elf32.em (gld$place_orphan): Add default value for
4207 lma region in call to lang_leave_output_section_statement.
4208 * emultempl/pe.em (gld$place_orphan): Add default value for
4209 lma region in call to lang_leave_output_section_statement.
4212 2000-02-04 Timothy Wall <twall@redhat.com>
4214 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4215 octets when calculating section end addresses.
4217 2000-02-04 Timothy Wall <twall@redhat.com>
4219 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4221 2000-02-03 Timothy Wall <twall@redhat.com>
4223 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4225 * ldlang.c (print_input_section, print_data_statement,
4226 print_reloc_statement, print_padding_statement): Print target
4227 address values and section sizes as bytes, not octets.
4228 (insert_pad) Calculate padding size in octets, and adjust "dot"
4230 (size_input_section) Always adjust "dot" by bytes, not octets.
4231 (lang_check_section_addresses, lang_do_assignments) Adjust
4232 "dot" by bytes, not octets. Use the larger of the directive size
4233 or octets_per_byte for the number of octets actually allocated in
4235 (lang_set_startof) Make sure STARTOF returns a target address.
4236 (lang_one_common) Record size changes in octets.
4237 (lang_abs_symbol_at_end_of) Section end symbol's value is
4238 recorded in target bytes.
4239 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4240 to be clear about behavior when an octet is smaller than one byte.
4242 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4244 * ldcref.c (output_cref): Don't pass message strings to printf
4248 * ldmisc.c (vfinfo): Same here.
4251 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4253 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4254 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4255 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4256 Add missing NULL initialisers, and comments.
4258 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4260 2000-01-21 Nick Clifton <nickc@cygnus.com>
4262 * ldlang.c (lang_size_sections): Fix typo in comment.
4264 2000-01-18 H.J. Lu <hjl@gnu.org>
4266 * ldlang.c (lang_size_sections): Also update the current
4267 address of a region if the SEC_NEVER_LOAD bit is not set.
4269 2000-01-10 Philip Blundell <pb@futuretv.com>
4271 * configure.tgt (arm*-*-conix*): New target.
4273 2000-01-07 Nick Clifton <nickc@cygnus.com>
4275 * ld.texinfo (Options): Remind users to preceed linker command
4276 line switches with -Wl, (or whatever is appropriate) if it is
4277 being invoked by a comnpiler driver program.
4278 Fix description of the behaviour of the -n command line switch.
4280 2000-01-05 Catherine Moore <clm@cygnus.com>
4282 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4284 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4285 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4286 (exclude_name_list): New.
4287 ldlang.c (walk_wild_section): Support list of excluded files.
4288 (print_wild_statement): Likewise.
4289 (lang_add_wild): Likewise.
4290 * ldlang.h (lang_wild_statement_type): Likewise.
4291 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4293 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4295 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4296 (process_def_file): Use.
4297 (pe_dll_compat_implib): New variable.
4300 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4301 pe_dll_compat_implib.
4303 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4304 compat-implib options.
4305 (gld_${EMULATION_NAME}_list_options): List new options.
4306 (gld_${EMULATION_NAME}_parse_args): Handle.
4308 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4311 * deffilep.y (opt_name): Allow "." in name.
4313 For older changes see ChangeLog-9899
4319 version-control: never