1 2002-06-07 Alan Modra <amodra@bigpond.net.au>
3 * emultempl/ppc64elf.em (new_vers_pattern): Warning fix.
5 2002-06-07 Charles Wilson <cwilson@ece.gatech.edu>
7 * ld/ldmain.c (main): initialize link_info.pei386_auto_import
8 to -1 == implicit enable.
9 * ld/emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
10 initialize link_info.pei386_auto_import to -1 == implicit
12 (gld_${EMULATION_NAME}_parse_args): When processing
13 --enable-auto-import and --disable-auto-import options, use
14 '1' and '0' instead of 'true' and 'false'.
15 (pe_find_data_imports): Only issue message about auto-import
16 when the feature is implicitly enabled. Downgrade message to
17 informational instead of warning.
19 2002-06-07 Alan Modra <amodra@bigpond.net.au>
21 * scripttempl/elf.sc (.tbss): Fix mismatched parentheses/braces.
23 2002-06-06 John David Anglin <dave@hiauly1.hia.nrc.ca>
25 * configure.host (hppa*64*-*-hpux11*): Define NATIVE_LIB_DIRS,
26 HOSTING_CRT0 and HOSTING_LIBS.
28 2002-06-05 J"orn Rennecke <joern.rennecke@superh.com>
30 * configure.tgt (shle*-*-elf*, sh64le-*-elf*): New configurations.
32 2002-06-05 Jason Thorpe <thorpej@wasabisystems.com>
34 * emulparams/ns32knbsd.sh (EXECUTABLE_SYMBOLS): Set _DYNAMIC to 0.
35 (NONPAGED_TEXT_START_ADDR): Set to 0x1000.
37 2002-06-05 Alan Modra <amodra@bigpond.net.au>
39 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Place
40 SEC_EXCLUDE sections when doing a relocatable link.
42 2002-06-04 Jason Thorpe <thorpej@wasabisystems.com>
44 * Makefile.am (ALL_EMULATIONS): Add eshelf32_nbsd.o,
45 eshlelf32_nbsd.o, eshelf64_nbsd.o, and eshlelf64_nbsd.o.
46 (eshelf32_nbsd.c, eshelf64_nbsd.c, eshlelf32_nbsd.c)
47 (eshlelf64_nbsd.c): New rules.
48 * Makefile.in: Regenerate.
49 * configure.tgt (sh5le-*-netbsd*, sh5-*-netbsd*, sh64le-*-netbsd*)
50 (sh64-*-netbsd*): New targets.
51 * emulparams/shelf32_nbsd.sh: New file.
52 * emulparams/shelf64_nbsd.sh: New file.
53 * emulparams/shlelf32_nbsd.sh: New file.
54 * emulparams/shlelf64_nbsd.sh: New file.
56 2002-06-04 Alan Modra <amodra@bigpond.net.au>
58 * ldlang.c (section_already_linked): Call bfd_discard_group. Typo fix.
60 2002-06-02 Marek Michalkiewicz <marekm@amelek.gda.pl>
62 * scripttempl/avr.sc: Changes to support current GCC and avr-libc,
63 C++ constructors/destructors, loosely based on the m68hc11 port.
65 2002-05-31 Alan Modra <amodra@bigpond.net.au>
67 * Makefile.in: Regenerate.
68 * aclocal.m4: Regenerate.
69 * config.in: Regenerate.
70 * configure: Regenerate.
72 2002-05-31 Graeme Peterson <gp@qnx.com>
74 * Makefile.am (ALL_EMULATIONS): Add ei386nto.o.
75 (ei386nto.c): Add rule.
76 * Makefile.in: Regenerate.
77 * configure.tgt: Add i[3456]86-*-nto-qnx*.
78 * emulparams/i386nto.sh: New file.
80 2002-05-29 Jason Thorpe <thorpej@wasabisystems.com>
82 * NEWS: Add entry for VAX ELF support.
84 2002-05-29 Matt Thomas <matt@3am-software.com>
85 Jason Thorpe <thorpej@wasabisystems.com>
87 * Makefile.am (ALL_EMULATIONS): Add eelf32vax.o and evaxnbsd.o.
89 (evaxnbsd.c): New rules.
90 * Makefile.in: Regenerate.
91 * configure.tgt (vax-*-netbsdelf*)
93 (vax-*-netbsd*): New targets.
94 * emulparams/elf32vax.sh: New file.
95 * emulparams/vaxnbsd.sh: New file.
97 2002-05-29 Adam Nemet <anemet@lnxw.com>
99 * emultempl/armelf.em (arm_elf_after_open): Don't determine
100 bfd_for_interwork, instead add glue sections to each input bfd.
101 (bfd_for_interwork): New global.
102 (arm_elf_set_bfd_for_interworking): New function.
103 (arm_elf_before_allocation): Use it.
105 2002-05-28 Kuang Hwa Lin <kuang@sbcglobal.net>
107 * Makefile.am: Add DLX make target.
108 * configure.tgt: Add DLX configuration.
109 * Makefile.in: Regenerate.
110 * emulparams/elf32_dlx.sh: New file
111 * scripttempl/dlx.sc: New file
113 2002-05-27 Per Lundberg <per@caleb.dnsalias.org>
115 * Makefile.am (eelf_i386_chaos): Use elf_chaos.sc script.
116 * Makefile.in: Regenerate.
117 * emulparams/elf_chaos.sh: Use elf_chaos script.
118 * scripttempl/elf_chaos.sc: New file.
120 2002-05-27 Richard Sandiford <rsandifo@redhat.com>
122 * ldlang.c (lang_size_sections_1): Move check for conflicting load
123 addresses and regions from here...
124 (lang_get_regions): ...to this new function.
125 (lang_leave_output_section_statement): Use lang_get_regions.
126 (lang_leave_overlay): Likewise.
127 * mri.c (mri_draw_tree): Pass null as last argument to
128 lang_leave_output_section_statement.
129 * emultempl/elf32.em (gld*_place_orphan): Likewise.
130 * emultempl/mmo.em (mmo_place_orphan): Likewise.
131 * emultempl/pe.em (gld*_place_orphan): Likewise.
133 2002-05-26 Jason Thorpe <thorpej@wasabisystems.com>
135 * configure.tgt: Use ns32k-*-netbsd* instead of ns32k-pc532-netbsd*.
137 2002-05-25 Kazu Hirata <kazu@cs.umass.edu>
139 * ldemul.c: Fix formatting.
140 * ldfile.c: Likewise.
141 * pe-dll.c: Likewise.
142 * pe-dll.h: Likewise.
144 2002-05-25 Alan Modra <amodra@bigpond.net.au>
146 * ldlang.c (lang_process): Formatting, grammar.
148 * ldlex.l: Use #include "" instead of <> for local header files.
150 2002-05-24 TAMURA Kent <kent@netbsd.org>
152 * configure.tgt: Add a target for i386-netbsdpe.
154 2002-05-23 Jakub Jelinek <jakub@redhat.com>
156 * scripttempl/elf.sc: Add .rel{,a}.t{bss,data}, .tdata and .tbss.
157 * ldlang.c (lang_add_section): Set SEC_THREAD_LOCAL for
158 output section if necessary. Handle .tbss.
159 (lang_size_sections): Clear _raw_size for .tbss section
160 (it allocates space in PT_TLS segment only).
161 * ldwrite.c (build_link_order): Build link order for .tbss too.
163 2002-05-23 Alan Modra <amodra@bigpond.net.au>
165 * configure.in: Correct spelling of AC_PREREQ.
167 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
169 * pe-dll.c (autofilter_liblist): Add more system libs excluded by
171 (autofilter_objlist): Add crtbegin.o, crtend.o.
173 2002-05-21 Danny Smith <dannysmith@users.sourceforge.net>
175 * emultempl/pe.em (OPTION_EXCLUDE_LIBS): Add new define.
176 (longopts): Add new option --exclude-libs.
177 (gld_${EMULATION_NAME}_list_options): Give quick help about it.
178 (gld_${EMULATION_NAME}_parse_args): Use it.
179 * pe-dll.h (pe_dll_add_excludes): Add second param to prototype.
180 * pe-dll.c (exclude_list_struct): Add field type to distinguish symbols
182 (pe_dll_add_excludes): Set excludes->type.
183 (auto_export): Add new variable libname and set to archive basename if
184 abfd. Use it when filtering default and user-specified libarary
185 excludes. Let string "ALL" mean all libs when filtering user-specified
187 * ld.texinfo: Document --exclude-libs.
189 2002-05-22 Alan Modra <amodra@bigpond.net.au>
191 * ldemul.c (ldemul_new_vers_pattern): New function.
192 * ldemul.h (ldemul_new_vers_pattern): Declare.
193 (struct ld_emulation_xfer_struct): Add new_vers_pattern.
194 * ldlang.c (lang_new_vers_pattern): Call ldemul_new_vers_pattern.
195 * emultempl/ppc64elf.em (dotsyms): New static var.
196 (gld${EMULATION_NAME}_new_vers_pattern): New function.
197 (LDEMUL_NEW_VERS_PATTERN): Define.
198 (PARSE_AND_LIST_PROLOGUE): Add OPTION_DOTSYMS, OPTION_NO_DOTSYMS.
199 (PARSE_AND_LIST_LONGOPTS): Likewise.
200 (PARSE_AND_LIST_ARGS_CASES): Handle them.
201 * emultempl/aix.em (ld_${EMULATION_NAME}_emulation): Update
203 * emultempl/armcoff.em: Likewise.
204 * emultempl/armelf_oabi.em: Likewise.
205 * emultempl/beos.em: Likewise.
206 * emultempl/elf32.em: Likewise.
207 * emultempl/generic.em: Likewise.
208 * emultempl/gld960.em: Likewise.
209 * emultempl/gld960c.em: Likewise.
210 * emultempl/linux.em: Likewise.
211 * emultempl/lnk960.em: Likewise.
212 * emultempl/m68kcoff.em: Likewise.
213 * emultempl/mipsecoff.em: Likewise.
214 * emultempl/pe.em: Likewise.
215 * emultempl/sunos.em: Likewise.
216 * emultempl/ticoff.em: Likewise.
217 * emultempl/vanilla.em: Likewise.
219 2002-05-22 Alan Modra <amodra@bigpond.net.au>
221 * genscripts.sh (LIB_PATH): For native targets, concatenate $libdir
222 and $NATIVE_LIB_DIRS. Add $tool_lib before other libs.
223 (LIB_SEARCH_DIRS): No need to use "tr".
224 (COMPILE_IN): Only set for native targets.
225 * configure.host (NATIVE_LIB_DIRS): Specify all native search dirs
226 here, rather than adding lib:/usr/lib:/usr/local/lib in genscripts.sh.
227 * configure.tgt (powerpc*): Set tdir_*.
228 (powerpcle*): Correct targ_extra_emuls.
229 * emulparams/elf32ppc.sh (LIB_PATH): Set up native 64 bit dirs.
230 * emulparams/elf64ppc.sh (LIB_PATH): Likewise.
232 2002-05-22 Alan Modra <amodra@bigpond.net.au>
234 * emultempl/pe.em (set_pe_subsystem): Don't set "cmdline" when
235 calling lang_add_entry.
237 2002-05-21 H.J. Lu (hjl@gnu.org)
239 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_args): Handle
241 (gld${EMULATION_NAME}_list_options): Add "-z muldefs".
243 * ld.texinfo: Updated for --allow-multiple-definition and
246 * ldmain.c (main): Initialize the allow_multiple_definition
249 * lexsup.c (OPTION_ALLOW_MULTIPLE_DEFINITION): New.
250 (ld_options): Add --allow-multiple-definition.
251 (parse_args): Support OPTION_ALLOW_MULTIPLE_DEFINITION.
253 2002-05-21 Jason Thorpe <thorpej@wasabisystems.com>
255 * Makefile.am (ALL_EMULATIONS): Add earmelfb_nbsd.o.
256 (earmelfb_nbsd.c): New rule.
257 * Makefile.in: Regenerate.
258 * configure.tgt (armeb-*-netbsdelf*): New target.
259 (arm-*-netbsdelf*): Add armelfb_nbsd to targ_extra_emuls.
260 (arm-*-netbsd*): Likewise.
261 * emulparams/armelfb_nbsd.sh: New file.
263 2002-05-18 Tom Rix <trix@redhat.com>
265 * emultempl/aix.em (gld*_parse_args): Add -bnortl and -bnortllib
268 2002-05-17 Marek Michalkiewicz <marekm@amelek.gda.pl>
270 * Makefile.am: Add new emulations avr1, avr2, avr3, avr4, avr5.
271 * Makefile.in: Regenerate.
272 * configure.tgt (avr-*-*): Add avr[1-5] to targ_extra_emuls.
274 2002-05-16 Marek Michalkiewicz <marekm@amelek.gda.pl>
276 * emulparams/avr1.sh: New file.
277 * emulparams/avr2.sh: New file.
278 * emulparams/avr3.sh: New file.
279 * emulparams/avr4.sh: New file.
280 * emulparams/avr5.sh: New file.
281 * scripttempl/avr.sc: New file.
283 2002-05-15 Alan Modra <amodra@bigpond.net.au>
285 * ldlang.c (section_already_linked): Call bfd_link_just_syms.
286 (lang_place_orphans): Abort if just_syms_flag.
288 2002-05-10 Tom Rix <trix@redhat.com>
290 * emultempl/aix.em: (gld*_set_output_arch): New function. Use
291 architecture and machine information in the output bfd.
292 (gld*_before_parse): Remove old arch and machine code.
293 (choose_target): Rename to gld*_choose_target.
294 (rtld): Change type to int.
295 * ldfile.c (ldfile_try_open_bfd): Disable compatiblity check for
296 objects in XCOFF archives.
297 * ldfile.h: Update copyright date.
299 2002-05-10 Jakub Jelinek <jakub@redhat.com>
301 * ldmain.c (main): Enable -z combreloc by default.
303 2002-05-07 Federico G. Schwindt <fgsch@olimpo.com.br>
305 * Makefile.am: Honour DESTDIR.
306 * Makefile.in: Regenerate.
308 2002-05-07 Richard Sandiford <rsandifo@redhat.com>
310 * ldlang.h (lang_output_section_statement_type): Add update_dot_tree.
311 (lang_enter_overlay): Remove the last two parameters.
312 (lang_leave_overlay): Take them here instead.
313 * ldgram.y (memspec_at_opt): Set $$ to null if no region is given.
314 (section): Pass LMA and crossref flag to lang_leave_overlay rather
315 than lang_enter_overlay.
316 * ldlang.c (lang_memory_region_lookup): Return null for null names.
317 (lang_output_section_statement_lookup): Initialize update_dot_tree.
318 (lang_size_sections_1): Evaluate it.
319 (lang_leave_output_section_statement): Rework LMA lookup.
320 (overlay_lma, overlay_nocrossrefs): Remove.
321 (lang_enter_overlay): Remove LMA and crossref arguments.
322 (lang_enter_overlay_section): Don't set the LMA here.
323 (lang_leave_overlay): Take LMA and crossref arguments. Move the '.'
324 assignment to the last section's update_dot_tree. Unconditionally
325 use the load and run-time regions specified in the OVERLAY statement.
326 Likewise the first section's LMA. Only set the other sections' LMAs
327 when no load region is given.
329 2002-05-06 Nick Clifton <nickc@redhat.com>
331 * po/sv.po: New translation.
333 2002-05-04 Alan Modra <amodra@bigpond.net.au>
335 * emultempl/hppaelf.em (build_section_lists): New function.
336 (gld${EMULATION_NAME}_finish): Call elf32_hppa_setup_section_lists
337 and build_section_lists.
339 2002-05-03 Kazu Hirata <kazu@cs.umass.edu>
341 * ld.h: Fix formatting.
343 * ldfile.c: Likewise.
344 * ldlang.c: Likewise.
345 * ldmain.c: Likewise.
346 * lexsup.c: Likewise.
347 * pe-dll.c: Likewise.
349 2002-05-02 Alan Modra <amodra@bigpond.net.au>
351 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation):
352 Adjust for ppc64_elf_set_toc change. #include libbfd.h.
353 (build_section_lists): Do output_section tests here.
355 2002-04-30 Tom Rix <trix@redhat.com>
357 * emultempl/aix.em : (gld*_parse_arge): Formatting changes.
359 2002-05-01 Alan Modra <amodra@bigpond.net.au>
361 Long branch stubs, multiple stub sections.
362 * emultempl/ppc64elf.em: Include ldctor.h.
363 (stub_file): New var.
364 (group_size): New var.
365 (ppc_create_output_section_statements): New function.
366 (struct hook_stub_info): New.
367 (hook_in_stub): New function.
368 (ppc_add_stub_section): New function.
369 (ppc_layout_sections_again): New function.
370 (build_section_lists): New function.
371 (gld${EMULATION_NAME}_finish): Rewrite.
372 (real_func): New var.
373 (ppc_for_each_input_file_wrapper): New function.
374 (ppc_lang_for_each_input_file): New function.
375 (lang_for_each_input_file): Define.
376 (PARSE_AND_LIST_PROLOGUE): Define.
377 (PARSE_AND_LIST_LONGOPTS): Define.
378 (PARSE_AND_LIST_OPTIONS): Define.
379 (PARSE_AND_LIST_ARGS_CASES): Define.
380 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
382 2002-04-30 Tom Rix <trix@redhat.com>
384 * emultempl/aix.em (gld*_parse_arge, gld*_before_allocation): Add
385 -blibpath, -bnolibpath support.
387 2002-04-30 Mark Mitchell <mark@codesourcery.com>
389 * Makefile.am (ALL_EMULATIONS): Add elf32ppcwindiss.o.
390 (eelf32ppcwindiss.c): New target.
391 * Makefile.in: Regenerated.
392 * configure.tgt: Add support for powerpc-*-windiss.
393 * emulparams/elf32ppcwindiss.sh: New file.
395 2002-04-30 Richard Sandiford <rsandifo@redhat.com>
397 * ldlang.c (print_assignment): Update print_dot for assignments to ".".
398 * ldexp.c (exp_print_token): Add "infix_p" argument.
399 (exp_print_tree): Update accordingly.
401 2002-04-28 Alan Modra <amodra@bigpond.net.au>
403 * Makefile.am (mpw): New maintainer mode rule to make mpw-*.c files.
404 * Makefile.in: Regenerate.
405 * mpw-elfmips.c: Delete.
406 * mpw-eppcmac.c: Delete.
408 * mpw-idtmips.c: Delete.
410 Wed Apr 17 19:23:14 2002 J"orn Rennecke <joern.rennecke@superh.com>
412 * emulparams/shelf32.sh (MACHINE): Now sh5.
414 2002-04-17 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
416 * ldgram.y: Fix syntax warning.
418 2002-04-11 Nick Clifton <nickc@cambridge.redhat.com>
420 * emultempl/armelf.em (PARSE_AND_LIST_SHORTOPTS): Add 'n' in order
421 to prevent "-n" from being taken as an abbreviation for
422 "--no-pipeline-knowledge".
424 2002-04-08 Alan Modra <amodra@bigpond.net.au>
426 * ldlang.c (lang_size_sections_1): Don't complain about
427 SEC_NEVER_LOAD sections having no memory region specified.
429 * ld.texinfo (Format Commands <OUTPUT_FORMAT>): Typo fix.
431 2002-04-07 matthew green <mrg@redhat.com>
433 * ld/configure.host (*-*-netbsd*): Add support for NetBSD/ELF.
435 2002-04-04 Alan Modra <amodra@bigpond.net.au>
437 * dep-in.sed: Cope with absolute paths.
438 * Makefile.am (dep.sed): Subst TOPDIR and BFDDIR.
440 * Makefile.in: Regenerate.
442 2002-04-04 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
444 * emulparams/elf64btsmip.sh: n64 replaces .reginfo with .MIPS.options.
446 2002-04-03 Jakub Jelinek <jakub@redhat.com>
448 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: If common page size
449 is smaller than maximum, round dot up to common page boundary.
451 2002-03-28 Alan Modra <amodra@bigpond.net.au>
453 * configure.host: Set up for generic hosts first, then tweak as
454 necessary in more specific targets.
455 (HOSTING_LIBS): Include libgcc_eh.a if found.
457 2002-03-23 Andreas Jaeger <aj@suse.de>
459 * emulparams/elf_x86_64.sh (COMMONPAGESIZE): Set it.
461 2002-03-21 Alan Modra <amodra@bigpond.net.au>
463 * Makefile.am: Run "make dep-am".
464 * Makefile.in: Regenerate.
466 2002-03-21 Albert Chin-A-Young <china@thewrittenword.com>
468 * genscripts.sh (LIB_SEARCH_DIRS): Quote path.
470 2002-03-20 Alan Modra <amodra@bigpond.net.au>
472 * ldlang.c (ldlang_add_undef): If the output bfd has been opened,
473 add the symbol to the linker hash table immediately.
474 (lang_place_undefineds): Split symbol creation out..
475 (insert_undefined): ..to here.
477 2002-03-18 David O'Brien <obrien@FreeBSD.org>
479 * emultempl/elf32.em: Use lbasename vs. basename to fix problem where
480 the contents of the buffer returned from basename function will are
481 getting overwritten while still being used.
483 Mon Mar 18 17:38:39 CET 2002 Jan Hubicka <jh@suse.cz>
484 Andreas Jaeger <aj@suse.de>
485 Andreas Schwab <schwab@suse.de>
487 * configure.tgt (x86_64-*-linux-gnu*): Configure i386 as native.
488 * elf_x86_64.sh (ARCH): Set to i386:x86-64
489 set libraries to default to lib64 paths.
491 2002-03-18 Tom Rix <trix@redhat.com>
493 * Makefile.am : Add eaix5ppc and eaix5rs6, AIX 5 support.
494 * configure.tgt : Same.
495 * emulparms/aix5ppc.sh : New file. For eaix5ppc.
496 * emulparms/aix5rs6.sh : New file. For eaix5rs6.
497 * emulparms/aixppc.sh : OUPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT
498 emulation parameters for better -b32, -b64 support.
499 * emulparms/aixrs6.sh : Same.
500 * emulparms/ppcmacos.sh : Same.
501 * emultempl/aix.em (choose_target) : Use new emulation parameters
502 OUTPUT_FORMAT_32BIT and OUTPUT_FORMAT_64BIT.
503 * Makefile.in : Regenerate.
505 2002-03-18 Nick Clifton <nickc@cambridge.redhat.com>
507 * po/fr.po: Updated version.
509 2002-03-18 Alan Modra <amodra@bigpond.net.au>
511 * ldmain.c (main): Move .text readonly flag fudges from here..
512 * ldlang.c (lang_process): ..to here.
514 2002-03-14 Alan Modra <amodra@bigpond.net.au>
516 * ldlang.c (lang_check): Remove the word size check added in last
517 change. Treat emitrelocations case as for relocatable links.
519 2002-03-13 Nick Clifton <nickc@cambridge.redhat.com>
521 * po/fr.po: Updated version.
523 2002-03-13 Alan Modra <amodra@bigpond.net.au>
525 * ldlang.c (lang_check): Do relocatable link checks first, so that
526 warn_mismatch can't override. Check compatible and word size too.
528 2002-03-07 Daniel Jacobowitz <drow@mvista.com>
530 * ld.texinfo: Wrap @menu in @ifnottex, not @ifinfo.
532 2002-03-05 Jakub Jelinek <jakub@redhat.com>
534 * scripttempl/elf.sc: Only use DATA_SEGMENT_END() together with
537 2002-03-04 H.J. Lu <hjl@gnu.org>
539 * scripttempl/elf.sc: Put .preinit_array, .init_array and
540 .fini_array in the data segment.
542 2002-03-04 Alan Modra <amodra@bigpond.net.au>
544 * scripttempl/elf.sc: Correct syntax errors in 2002-03-01 commit.
546 2002-03-01 David Mosberger <davidm@hpl.hp.com>
548 * scripttempl/elf.sc (SECTIONS): Add entries for .preinit_array,
549 .init_array, and .fini_array.
551 2002-02-20 Andreas Schwab <schwab@suse.de>
553 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Don't fold
554 .IA64_unwind* in a relocatable link.
556 2002-02-20 Nick Clifton <nickc@cambridge.redhat.com>
558 * NEWS: Mark 2.12 branch.
560 2002-02-19 Martin Schwidefsky <schwidefsky@de.ibm.com>
562 * emulparams/elf64_s390.sh (ARCH): Change to "s390:64-bit".
563 * emulparams/elf_s390.sh (ARCH): Change to "s390:31-bit".
565 2002-02-18 Tom Rix <trix@redhat.com>
567 * emultempl/aix.em (gld*_parse_args): Add -brtl support.
568 (gld*_before_allocation): Same.
569 (gld*_create_output_section_statements): Generate
570 __rtinit if run time linking. Add librtl.a to the link.
571 (gld*_read_file): Clean.
573 2002-02-18 Alan Modra <amodra@bigpond.net.au>
575 * emulparams/elf64ppc.sh (OTHER_TEXT_SECTIONS): Define.
577 2002-02-18 David O'Brien <obrien@FreeBSD.org>
579 * Makefile.am: Add new files earmelf_fbsd, eelf32ppc_fbsd,
580 eelf_i386_fbsd, eelf64_ia64_fbsd, eelf_x86_64_fbsd, eelf64_sparc_fbsd,
581 and eelf64alpha_fbsd.
582 * Makefile.in: Regenerate.
583 * configure.tgt(sparc64-*-freebsd, ia64-*-freebsd, i[3456]86-*-freebsd,
584 x86_64-*-freebsd, arm-*-freebsd, alpha*-*-freebsd, powerpc-*-freebsd):
585 use a FreeBSD-specific emulation rather than the psABI one.
586 * emulparams/elf_fbsd.sh (ELF_INTERPRETER_NAME): Set appropriate value
587 for all FreeBSD ELF systems.
588 * emulparams/armelf_fbsd.sh: Bridge elf_fbsd.sh and the "native" psABI
590 * emulparams/elf32ppc_fbsd.sh: Likewise.
591 * emulparams/elf64_ia64_fbsd.sh: Likewise.
592 * emulparams/elf64_sparc_fbsd.sh: Likewise.
593 * emulparams/elf64alpha_fbsd.sh: Likewise.
594 * emulparams/elf_i386_fbsd.sh: Likewise.
595 * emulparams/elf_x86_64_fbsd.sh: Likewise.
597 2002-02-18 Nick Clifton <nickc@cambridge.redhat.com>
599 * po/tr.po: Updated version.
601 2002-02-18 Alan Modra <amodra@bigpond.net.au>
603 * ld.texinfo (Output Section Fill): Fix amateur texinfo.
606 2002-02-17 Hans-Peter Nilsson <hp@bitrange.com>
608 * emultempl/mmo.em (mmo_after_open): Don't call
609 _bfd_mmix_check_all_relocs when producing ELF output.
611 2002-02-15 Richard Henderson <rth@redhat.com>
613 * emulparams/elf64alpha.sh (NOP): Adjust for big-endian
614 definition. Emit a unop+nop pair.
616 2002-02-15 Hans-Peter Nilsson <hp@bitrange.com>
618 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Also check
619 for presence of .MMIX.reg_contents.linker_allocated before early
622 * NEWS: Mention support for MMIX.
624 2002-02-15 Alan Modra <amodra@bigpond.net.au>
626 Support arbitrary length fill patterns.
627 * ld.texinfo (Output Section Fill): Describe fill expressions.
628 (FILL): Refer to the above.
629 * ldexp.h (etree_value_type): Add "str" field.
630 (union etree_union): Add "str" to "value" struct.
631 (exp_bigintop): Declare.
632 (exp_get_fill): Declare.
633 * ldexp.c: Include "safe-ctype.h".
634 (exp_intop): Set value.str to NULL.
635 (exp_bigintop): New function.
636 (new_rel): Pass in "str", and set new.str from it.
637 (new_rel_from_section): Set new.str to NULL.
638 (fold_name): Adjust calls to new_rel.
639 (exp_fold_tree): Likewise.
640 (exp_get_fill): New function.
641 * ldgram.y (struct big_int bigint, fill_type *fill): New.
642 (INT): Returns a "bigint". Adjust all code handling INTs.
643 (fill_opt): Returns a "fill".
644 (fill_exp): Split out of fill_opt, use for FILL.
645 * ldlang.h (struct _fill_type): New.
646 (fill_type): Move typedef to ldexp.h.
647 (lang_output_section_statement_type): "fill" is now a pointer.
648 (lang_fill_statement_type): Likewise.
649 (lang_padding_statement_type): Likewise.
650 (lang_add_fill): Now takes a "fill_type *" param.
651 (lang_leave_output_section_statement): Likewise.
652 (lang_do_assignments): Likewise.
653 (lang_size_sections): Likewise.
654 (lang_leave_overlay_section): Likewise.
655 (lang_leave_overlay): Likewise.
656 * ldlang.c: Include ldgram.h after ldexp.h.
657 (lang_output_section_statement_lookup): Adjust for fill_type change.
658 (print_fill_statement): Likewise.
659 (print_padding_statement): Likewise.
660 (insert_pad): Now takes a "fill_type *" arg.
661 (size_input_section): Likewise.
662 (lang_size_sections_1): Likewise.
663 (lang_size_sections): Likewise.
664 (lang_do_assignments): Likewise.
665 (lang_add_fill): Likewise.
666 (lang_leave_output_section_statement): Likewise.
667 (lang_leave_overlay_section): Likewise.
668 (lang_leave_overlay): Likewise.
669 Adjust all callers of the above function.
670 * ldlex.l: Include ldgram.h after ldexp.h. Allow hex numbers
671 starting with "0X" as well as "0x". Return bigint.str for hex
672 numbers starting with "0x" or "0X", zero bigint.str otherwise.
673 Always use base 16 for numbers starting with "$".
674 * ldmain.c: Include ldgram.h after ldexp.h.
675 * ldwrite.c (build_link_order): Use bfd_data_link_order in place
676 of bfd_fill_link_order.
677 * pe-dll.c: Adjust lang_do_assignments calls.
678 * emultempl/elf32.em: Likewise.
679 * emultempl/hppaelf.em: Likewise.
680 * emultempl/ppc64elf.em: Likewise.
681 * emultempl/beos.em: Include ldgram.h after ldexp.h, adjust
682 lang_add_assignment call.
683 * emultempl/pe.em: Likewise.
685 2002-02-14 Phil Edwards <pme@gcc.gnu.org>
687 * ld.texinfo (VERSION scripts): Symbol names are globbing patterns.
688 * ldgram.y (lang_new_vers_regex): Rename to lang_new_vers_pattern;
689 the pattern in question is not a regexp.
690 * ldlang.c: Likewise.
691 * ldlang.h: Likewise.
692 * ldlex.l (V_IDENTIFIER): Allow '[', ']', '-', '!', and '^' also.
694 2002-02-12 Jakub Jelinek <jakub@redhat.com>
696 * ldlex.l (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
697 * ldgram.y (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): New tokens.
698 (exp): Add DATA_SEGMENT_ALIGN (exp, exp) and DATA_SEGMENT_END (exp).
699 * ldexp.c (exp_data_seg): New variable.
700 (exp_print_token): Handle DATA_SEGMENT_ALIGN and DATA_SEGMENT_END.
701 (fold_binary): Handle DATA_SEGMENT_ALIGN.
702 (exp_fold_tree): Handle DATA_SEGMENT_END.
703 Pass allocation_done when recursing instead of hardcoding
704 lang_allocating_phase_enum.
705 * ldexp.h (exp_data_seg): New.
706 * ldlang.c (lang_size_sections_1): Renamed from lang_size_sections.
707 (lang_size_sections): New.
708 * ld.texinfo (DATA_SEGMENT_ALIGN, DATA_SEGMENT_END): Document.
709 * scripttempl/elf.sc: Use DATA_SEGMENT_ALIGN and DATA_SEGMENT_END
710 if COMMONPAGESIZE is defined.
711 * emulparams/elf_i386.sh (COMMONPAGESIZE): Set to 4K.
712 * emulparams/elf32_sparc.sh (COMMONPAGESIZE): Set to 8K.
713 * emulparams/elf64_sparc.sh (COMMONPAGESIZE): Set to 8K.
714 * emulparams/elf64alpha.sh (COMMONPAGESIZE): Set to 8K.
715 * emulparams/elf64_ia64.sh (COMMONPAGESIZE): Set to 16K for shared
718 2002-02-11 Alan Modra <amodra@bigpond.net.au>
720 * Makefile.in: Regenerate.
722 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
724 * lexsup.c: Remove strtoul declaration.
726 2002-02-10 Daniel Jacobowitz <drow@mvista.com>
728 * ldmain.c: Add prototype for main ().
729 * lexsup.c: Guard declaration of strtoul with HAVE_STDLIB_H.
730 * emultempl/lnk960.em (lnk960_choose_target): Function should
733 2002-02-10 Alan Modra <amodra@bigpond.net.au>
735 * ldlang.c (entry_section): New initialised variable.
736 (lang_finish): Use it.
737 * ldlang.h (entry_section): Declare.
738 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Set
739 entry_section to ".opd".
741 2002-02-09 Chris Demetriou <cgd@broadcom.com>
743 * ld.texinfo (Options): Add back in -nostdlib documentation,
744 which had been inadvertently removed.
746 2002-02-09 Hans-Peter Nilsson <hp@bitrange.com>
748 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Adjust
749 register section vma to a sane value after emitting error. Make
750 fatal conditions cause program exit when emitting message.
752 2002-02-08 Ivan Guzvinec <ivang@opencores.org>
754 * configure.tgt: Add or32-*-rtems target.
756 2002-02-08 Alexandre Oliva <aoliva@redhat.com>
759 2002-01-24 Alexandre Oliva <aoliva@redhat.com>
760 * emulparams/shelf32.sh (STACK_ADDR): Define as formerly defined
761 in OTHER_RELOCATABLE_SECTIONS.
762 2002-01-18 Alexandre Oliva <aoliva@redhat.com>
763 * emulparams/shelf32.sh (STACK_ADDR): Define.
764 (OTHER_RELOCATABLE_SECTIONS): Renamed to...
765 (OTHER_SECTIONS): this. Removed stack settings.
766 * emulparams/shelf64.sh (OTHER_RELOCATABLE_SECTIONS): Do not set.
767 (OTHER_SECTIONS): Reset after sourcing shelf32.sh.
768 2001-03-12 DJ Delorie <dj@redhat.com>
769 * emultempl/sh64elf.em (sh64_elf_$_before_allocation): Disable
770 relaxing if any shmedia or mixed sections are found.
771 2001-03-07 DJ Delorie <dj@redhat.com>
772 * emultempl/sh64elf.em (sh64_elf_before_allocation): Pass f to
773 einfo. Gracefully decline to output to non-elf formats.
774 2001-03-06 Hans-Peter Nilsson <hpn@redhat.com>
775 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS) <.stack>:
776 Default to _end aligned to next multiple of 0x40000, plus 0x40000.
777 * emulparams/shelf32.sh: Ditto.
778 2001-01-14 Hans-Peter Nilsson <hpn@cygnus.com>
779 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Tweak
781 2001-01-10 Ben Elliston <bje@redhat.com>
782 * emulparams/shelf32.sh (OTHER_RELOCATING_SECTIONS): Avoid
783 non-portable shell constructs. From Hans-Peter Nilsson.
784 2001-01-09 Hans-Peter Nilsson <hpn@cygnus.com>
785 * emulparams/shelf64.sh (EXTRA_EM_FILE): Define empty.
786 * Makefile.am (eshelf64.c, eshlelf64.c, eshlelf32.c): Adjust
787 dependencies to the shell script include chain.
788 * Makefile.in: Regenerate.
789 2001-01-06 Hans-Peter Nilsson <hpn@cygnus.com>
790 * emultempl/sh64elf.em: Update and tweak comments.
791 (sh64_elf_${EMULATION_NAME}_after_allocation): Always allocate and
792 make a .cranges section SEC_IN_MEMORY.
793 2000-12-30 Hans-Peter Nilsson <hpn@cygnus.com>
794 * emultempl/sh64elf.em
795 (sh64_elf_${EMULATION_NAME}_before_allocation): Don't stop when
796 .cranges section found to be necessary; continue and set stored
797 section contents flags for sections with non-mixed contents.
798 Use a struct sh64_section_data container and sh64_elf_section_data
799 to store contents-type flags.
800 Remove unused update of "isec".
801 (sh64_elf_${EMULATION_NAME}_after_allocation): Only process
802 sections marked SHF_SH5_ISA32_MIXED. Use sh64_elf_section_data to
803 access contents-type flags. Assert that the associated container
804 is initialized. Use that container, not elf_gp_size, to hold size
805 of linker-generated cranges contents.
806 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
807 * emultempl/sh64elf.em
808 (sh64_elf_${EMULATION_NAME}_before_allocation): Exit early if
809 there's already a .cranges section. When section flag difference
810 is found, don't NULL-check cranges a second time. Tweak comments.
811 (sh64_elf_${EMULATION_NAME}_after_allocation): Use size after
812 merging, not max size, as size of ld-generated .cranges contents.
813 Don't set ELF section flags in output section. When checking for
814 needed .cranges descriptors, don't use a variable; compare
815 incoming ELF section flags directly to SHF_SH5_ISA32_MIXED. Tweak
817 2000-12-18 Hans-Peter Nilsson <hpn@cygnus.com>
818 * emultempl/sh64elf.em: New file.
819 * Makefile.am (eshelf32.c, eshlelf32.c): Adjust dependencies.
820 * Makefile.in: Regenerate.
821 * emulparams/shelf32.sh (OUTPUT_FORMAT): Only set if not set.
822 (OTHER_RELOCATING_SECTIONS): Ditto.
823 (EXTRA_EM_FILE): New, set to sh64elf if not set.
824 * emulparams/shlelf32.sh: Stub out all settings except
825 OUTPUT_FORMAT. Source shelf32.sh.
826 * emulparams/shelf64.sh: Similar, but also keep ELF_SIZE and
827 OTHER_RELOCATING_SECTIONS.
828 (OTHER_RELOCATING_SECTIONS): Remove .cranges.
829 * emulparams/shlelf64.sh: Stub out all settings except
830 OUTPUT_FORMAT. Source shelf64.sh.
831 2000-12-15 Hans-Peter Nilsson <hpn@cygnus.com>
832 * emulparams/shelf64.sh (OTHER_RELOCATING_SECTIONS): Include
834 (DATA_START_SYMBOLS): Define, provide ___data.
835 (OTHER_READONLY_SYMBOLS): Define, provide ___rodata and align to 8
836 for consecutive .data section.
837 (OTHER_GOT_SECTIONS): Define, align to 8 for consecutive .bss
838 section after .data section.
839 * emulparams/shlelf64.sh: Ditto.
840 * emulparams/shelf32.sh: Ditto.
841 (ALIGNMENT): Define to 8.
842 * emulparams/shelf32.sh: Ditto.
843 2000-12-12 Hans-Peter Nilsson <hpn@cygnus.com>
844 * configure.tgt (sh64-*-elf*): Assign targ_extra_libpath to get
845 built-in linker scripts.
846 2000-11-30 Hans-Peter Nilsson <hpn@cygnus.com>
847 * emulparams/shlelf64.sh: New.
848 * emulparams/shelf64.sh: New.
849 * configure.tgt (sh64-*-elf*): Add shelf64 and shlelf64 to
851 * Makefile.am: Add support for shlelf64 and shelf64.
852 * Makefile.in: Regenerate.
853 2000-11-29 Hans-Peter Nilsson <hpn@cygnus.com>
854 * configure.tgt (sh64-*-elf*): Add shelf as default.
855 Add shlelf to targ_extra_emuls.
856 2000-11-24 Hans-Peter Nilsson <hpn@cygnus.com>
857 * emulparams/shelf32.sh: New file.
858 * emulparams/shlelf32.sh: New file.
859 * Makefile.am: Add support for shlelf32 and shelf32.
860 * configure.tgt: Map sh64-*-elf* to shlelf32 and shelf32.
861 * Makefile.in: Regenerate.
863 2002-02-05 Hans-Peter Nilsson <hp@axis.com>
865 * ldlang.c (lang_reset_memory_regions): Rename from
866 reset_memory_regions. Change all callers. Make public.
867 * ldlang.h (lang_reset_memory_regions): Prototype.
868 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Call
869 lang_reset_memory_regions before lang_size_sections.
870 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
871 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Likewise.
873 2002-02-04 Hans-Peter Nilsson <hp@bitrange.com>
875 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Use signed
876 arithmetic when checking for too many global registers.
878 2002-02-02 Jason Thorpe <thorpej@wasabisystems.com>
880 * Makefile.am (ALL_EMULATIONS): Add ehppanbsd.o.
881 (ehppanbsd.c): New rule.
882 * Makefile.in: Regenerate.
883 * configure.tgt (hppa*-*-netbsd*): New target.
884 * emulparams/hppalinux.sh: Add comment to check other files
885 that source this file it is modified, and list which
887 * emulparams/hppanbsd.sh: New file.
889 2002-02-01 Geoffrey Keating <geoffk@redhat.com>
891 * scripttempl/xstormy16.sc: Don't allocate extra space for the
894 2002-02-01 Hans-Peter Nilsson <hp@bitrange.com>
896 Support on-demand global register allocation from
897 R_MMIX_BASE_PLUS_OFFSET relocs.
898 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Rename from
899 mmix_set_reg_section_vma. Call
900 _bfd_mmix_finalize_linker_allocated_gregs.
901 (mmix_before_allocation): New function.
902 (LDEMUL_AFTER_ALLOCATION): Set to mmix_after_allocation.
903 (LDEMUL_BEFORE_ALLOCATION): Define to mmix_before_allocation.
904 * scripttempl/mmo.sc (.text): Mark .init, .fini as KEEP.
905 (.MMIX.reg_contents): Add .MMIX.reg_contents.linker_allocated
906 before .MMIX.reg_contents.
907 * emultempl/mmo.em (gldmmo_before_allocation): Define to default.
908 (mmo_after_open): New function.
909 (LDEMUL_AFTER_OPEN): Define to mmo_after_open.
910 * emulparams/elf64mmix.sh (OTHER_SECTIONS): Tweak formatting. Add
911 .MMIX.reg_contents.linker_allocated before .MMIX.reg_contents.
913 2002-01-31 Ivan Guzvinec <ivang@opencores.org>
915 * emulparams/or32.sh: New file.
916 * emulparams/or32elf.sh: New file.
917 * scripttempl/or32.sc: New file.
918 * configure.tgt : Add support for or32.
919 * configure: Regenerate
920 * Makefile.am: Add support for or32.
921 * Makefile.in: Regenerate.
922 * NEWS: Mention support for or32.
923 * po/ld.pot: Regenerate.
925 2002-01-29 Chris Demetriou <cgd@broadcom.com>
926 Mitch Lichtenberg <mpl@broadcom.com>
928 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Define to be mipself.
929 * emultempl/mipself.em: New file to handle MIPS ELF embedded
930 reloc creation (ld --embedded-relocs).
932 2002-01-27 Daniel Jacobowitz <drow@mvista.com>
934 * configure: Regenerated.
936 2002-01-26 Hans-Peter Nilsson <hp@bitrange.com>
938 * Makefile.am (install): Depend on install-info.
939 * Makefile.in: Regenerate.
941 2002-01-26 Christian Rose <menthos@menthos.com>
943 * ldmain.c (main): Use full sentences to ease translation.
945 2002-01-26 Nick Clifton <nickc@cambridge.redhat.com>
947 * po/fr.po: Updated version.
949 2002-01-25 Nick Clifton <nickc@cambridge.redhat.com>
951 * po/es.po: Updated version.
953 2002-01-25 Andreas Jaeger <aj@suse.de>
955 * ldlex.l (yy_input): Correct error check.
957 2002-01-25 Alan Modra <amodra@bigpond.net.au>
959 * ldmisc.c (demangle): Put back dots when string not demangled.
961 2002-01-22 Richard Henderson <rth@redhat.com>
963 * emulparams/elf64alpha.sh (NOP): Use unop.
965 2002-01-21 Andreas Jaeger <aj@suse.de>
967 * ldlex.l: Use fread instead of read.
969 2002-01-21 Jason Thorpe <thorpej@wasabisystems.com>
971 * configure.tgt (ia64-*-netbsd*): New target.
973 2002-01-21 H.J. Lu <hjl@gnu.org>
975 * emulparams/elf32btsmip.sh (SHLIB_TEXT_START_ADDR): Change to
977 * emulparams/elf64btsmip.sh (SHLIB_TEXT_START_ADDR): Likewise.
979 2002-01-18 Andreas Jaeger <aj@suse.de>
981 * ldver.c (ldversion): Update year.
983 2002-01-17 Nick Clifton <nickc@cambridge.redhat.com>
985 * po/ld.pot: Regenerate.
987 2002-01-16 Alan Modra <amodra@bigpond.net.au>
989 * Makefile.am (eelf64ppc.c, eelf64lppc.c): Depend on ppc64elf.em.
990 * Makefile.in: Regenerate.
991 * emulparams/elf64ppc.sh (EXTRA_EM_FILE): Define.
992 * emultempl/ppc64elf.em: New file.
994 2002-01-15 DJ Delorie <dj@redhat.com>
996 * scripttempl/pe.sc: Add support for constructor priorities.
998 2002-01-07 Marek Michalkiewicz <marekm@amelek.gda.pl>
1000 * emulparams/avr1200.sh (DATA_START): Define as 0x60.
1001 * emulparams/avr23xx.sh: Likewise.
1002 * emulparams/avr4433.sh: Likewise.
1003 * emulparams/avr44x4.sh: Likewise.
1004 * emulparams/avr85xx.sh: Likewise.
1005 * emulparams/avrmega103.sh: Likewise.
1006 * emulparams/avrmega161.sh: Likewise.
1007 * emulparams/avrmega603.sh: Likewise.
1008 * scripttempl/elf32avr.sc: Use DATA_START instead of 0x60.
1010 2002-01-08 Alexandre Oliva <aoliva@redhat.com>
1012 * ldlang.c (walk_wild_section): Exclude object file if enclosing
1013 archive is excluded.
1015 2002-01-07 Jason Thorpe <thorpej@wasabisystems.com>
1017 * Makefile.am (ALL_EMULATIONS): Add eshelf_nbsd.o and eshlelf_nbsd.o.
1018 (eshelf_nbsd.c): New rule.
1019 (eshlelf_nbsd.c): New rule.
1020 * Makefile.in: Regenerate.
1021 * configure.tgt (sh*le-*-netbsdelf*): New target.
1022 (sh*-*-netbsdelf*): New target.
1023 * emulparams/shelf.sh: Document that shelf_nbsd.sh sources this file.
1024 * ld/emulparams/shelf_nbsd.sh: New emulation.
1025 * ld/emulparams/shlelf_nbsd.sh: New emulation.
1027 2002-01-07 Nick Clifton <nickc@cambridge.redhat.com>
1029 * po/es.po: New file: Spanish translation.
1030 * configure.in (ALL_LINGUAS): Add es.
1031 * configure: Regenerate.
1033 2002-01-06 John Marshall <jmarshall@acm.org>
1035 * ld.texinfo: Note that --emit-relocs is currently only
1036 implemented for ELF.
1038 2002-01-05 Alan Modra <amodra@bigpond.net.au>
1040 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Make use
1041 of bfd_section_list_remove and bfd_section_list_insert macros.
1042 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1043 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1045 2002-01-04 Jason Thorpe <thorpej@wasabisystems.com>
1047 * configure.tgt (x86_64-*-netbsd*): New target.
1049 2001-12-21 Tom Rix <trix@redhat.com>
1051 (gld*_create_output_section_statements): New function.
1052 For -binitfini support.
1053 * emultempl/aix.em (gld*_before_parse): Fix comment.
1054 * emultempl/aix.em (gld*_parse_args): Fix comment.
1056 2001-12-20 Jason Thorpe <thorpej@wasabisystems.com>
1058 * configure.tgt (mips*-dec-netbsd*): Delete alias for
1060 (sparc64-*-netbsd*): Add elf32_sparc to targ_extra_emuls.
1062 * configure.tgt (arm-*-netbsdelf*): Add target.
1063 (arm-*-netbsd*): Add armelf and armelf_nbsd to targ_extra_emuls.
1064 * emulparams/armelf_nbsd.sh: Added.
1065 * Makefile.am: Add rules for earmelf_nbsd.
1066 * Makefile.in: Regenerate.
1068 2001-12-19 Andreas Jaeger <aj@suse.de>,
1069 Susanne Oberhauser <froh@suse.de>
1071 * configure.host: Add rules for x86_64-*linux-gnu. Change
1072 s390x-linux entry to use gcc to report configuration, replace gcc
1073 with $CC in s390-linux
1075 2001-12-19 Andreas Jaeger <aj@suse.de>
1077 * ld.texinfo (VERSION): Fix markup.
1079 2001-12-18 matthew green <mrg@eterna.com.au>
1081 * Makefile.am (ALL_EMULATIONS): Add m68kelfnbsd.o.
1082 (m68kelfnbsd.c): New rule.
1083 * Makefile.in: Regenerate.
1084 * configure.tgt (m68*-hp-netbsd*): Renamed to ..
1085 (m68*-*-netbsd*4k*): .. this.
1086 (m68*-*-netbsdelf*): New target.
1087 (m68*-*-netbsd*): Also include ELF support.
1088 (m68*-*-netbsdaout*): New alias for m68*-*-netbsd*.
1089 * emulparams/m68kelfnbsd.sh: New emulation.
1091 2001-12-18 Jakub Jelinek <jakub@redhat.com>
1093 * ldgram.y (vers_node): Support anonymous version tags.
1094 * ldlang.c (lang_register_vers_node): Ensure anonymous version
1095 tag is not defined together with non-anonymous versions.
1096 * ld.texinfo: Document it.
1098 2001-12-18 Nick Clifton <nickc@cambridge.redhat.com>
1100 * po/tr.po: New file: Turkish translation.
1101 * configure.in (ALL_LINGUAS): Add tr.
1102 * configure: Regenerate.
1104 2001-12-17 Jason Thorpe <thorpej@wasabisystems.com>
1106 * Makefile.am: Add rules for eelf64alpha_nbsd.
1107 * Makefile.in: Regenerate.
1108 * configure.tgt (alpha*-*-netbsd*): Set
1109 targ_emul to elf64alpha_nbsd.
1110 * emulparams/elf64alpha_nbsd.sh: Added.
1112 2001-12-17 Alan Modra <amodra@bigpond.net.au>
1114 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust
1115 section_tail when fiddling with section list.
1116 (gld${EMULATION_NAME}_list_options): Ensure sentences aren't
1117 broken into separate strings to make translation easier.
1118 * emultempl/mmo.em (mmo_place_orphan): Adjust section_tail when
1119 fiddling with section list.
1120 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
1122 2001-12-16 Hans-Peter Nilsson <hp@bitrange.com>
1124 * scripttempl/mmo.sc: Add .debug_ranges to listed sections.
1126 2001-12-15 Alan Modra <amodra@bigpond.net.au>
1128 * ldmain.c (main): Initialise link_info.eh_frame_hdr.
1130 2001-12-13 Jakub Jelinek <jakub@redhat.com>
1132 * emultempl/elf32.em (finish): Supply output_bfd
1133 to bfd_elf*_discard_info.
1134 (OPTION_EH_FRAME_HDR): Define.
1135 (longopts): Add --eh-frame-hdr.
1136 (parse_args): Handle it.
1137 (list_options): Add --eh-frame-hdr to help.
1138 * emultempl/hppaelf.em (finish): Supply output_bfd
1139 to bfd_elf*_discard_info.
1140 * scripttempl/elf.sc (.eh_frame_hdr): Add.
1142 2001-12-13 Alan Modra <amodra@bigpond.net.au>
1144 * lexsup.c (parse_args): Don't pass shortopts to second call to
1145 getopt functions. Restore optind rather than decrementing before
1146 second call. Remove errind as it now duplicates last_optind.
1148 2001-12-11 Christopher Faylor <cgf@redhat.com>
1150 * emultempl/pe.em (gld_${EMULATION_NAME}_list_options): Fix typo.
1152 2001-12-07 Geoffrey Keating <geoffk@redhat.com>
1153 Richard Henderson <rth@redhat.com>
1155 * Makefile.am: Add support for xstormy16.
1156 * configure.tgt: Add support for xstormy16.
1157 * Makefile.in: Regenerate.
1158 * emulparams/elf32xstormy16.sh: New file.
1159 * scripttempl/xstormy16.sc: New file.
1161 2001-10-01 Christopher Faylor <cgf@cygnus.com>
1163 * Makefile.in (LIB_PATH): Make configurable.
1164 (GENSCRIPTS): Set LIB_PATH in environment.
1165 * configure.in: Substitute LIB_PATH.
1166 * configure: Regenerate.
1167 * configure.tgt (*cygwin): Set LIB_PATH for cross build.
1168 * configure.host (*cygwin): Add /usr/lib/w32api to NATIVE_LIB_DIRS.
1170 2001-12-07 Nick Clifton <nickc@cambridge.redhat.com>
1172 * lexsup.c (ld_options): Insert 'PROGRAM' into the text string
1173 describing the -N option so that it is easier to translate into
1176 2001-12-05 Nick Clifton <nickc@cambridge.redhat.com>
1178 * emultempl/pe.em (..._list_options): Replace multiple fprintf
1179 statements describing a single option with a single, newline
1180 escaped fprintf. This allows better translation into other
1183 * ldmain.c (add_archive_element): Combine multiple strings
1184 into a single string to permit better translation into other
1187 2001-12-05 Tom Rix <trix@redhat.com>
1189 * Makefile.am: Remove eaixppc64.
1190 * Makefile.in: Regenerate.
1192 2001-12-04 Tom Rix <trix@redhat.com>
1194 * emultempl/aix.em (choose_target): Change default target to
1195 OUTPUT_FORMAT for ppcmacos. Add braces to remove compiler
1197 (gld*_read_file): Fix typo.
1198 (change_symbol_mode): Add prototype.
1201 * emulparams/aixppc.sh (SYSCALL_MASK, SYMBOL_MODE_MASK): Delete.
1202 * emulparams/aixrs6.sh : Same.
1203 * emulparams/ppcmacos.sh : Same.
1204 * emulparams/aixppc64.sh : Delete file.
1205 * emultempl/aix.em : Formatting changes.
1207 2001-12-04 Hans-Peter Nilsson <hp@axis.com>
1209 * emulparams/criself.sh (NO_SMALL_DATA): Set, to yes.
1210 (OTHER_BSS_END_SYMBOLS): Don't refer to .sbss when setting
1212 (OTHER_END_SYMBOLS): Fix formatting.
1213 * emulparams/crislinux.sh (NO_SMALL_DATA): Set, to yes.
1214 (OTHER_END_SYMBOLS): Fix formatting.
1216 2001-12-04 Alan Modra <amodra@bigpond.net.au>
1218 * ldexp.c (exp_print_token): Correct "table" entry for RSHIFT.
1220 2001-12-02 Tom Rix <trix@redhat.com>
1222 * configure.tgt : Remove eaixppc64 emulations.
1223 * Makefile.in : Remove eaixppc64.c
1224 * ldemul.c (ldemul_choose_target): New parameters argc, argv.
1225 (ldemul_default_target): Same.
1226 * emultempl/gld960.em (gld960_choose_target): Same.
1227 * emultempl/gld960c.em (gld960_choose_target): Same.
1228 * scripttempl/aix.sc: Remove OUTPUT_FORMAT.
1229 * emultempl/aix.em (is_syscall): syscall_mask now a variable.
1230 * emultempl/aix.em (gld*_read_file): symbol_mode_mask now a variable.
1231 * emultempl/aix.em (gld*_parse_args): Handle -b32 -b64 emulation.
1232 * emultempl/aix.em (choose_target): New function. Handle emulation of
1235 2001-11-27 H.J. Lu <hjl@gnu.org>
1237 * emulparams/elf_i386.sh (NO_SMALL_DATA): Set to yes.
1238 * emulparams/elf_i386_be.sh (NO_SMALL_DATA): Likewise.
1239 * emulparams/elf_i386_chaos.sh (NO_SMALL_DATA): Likewise.
1240 * emulparams/elf_i386_ldso.sh (NO_SMALL_DATA): Likewise.
1241 * emulparams/elf_x86_64.sh (NO_SMALL_DATA): Likewise.
1242 * emulparams/m68kelf.sh (NO_SMALL_DATA): Likewise.
1243 * emulparams/elf32_sparc.sh (NO_SMALL_DATA): Likewise.
1244 * emulparams/elf64_sparc.sh (NO_SMALL_DATA): Likewise.
1246 * scripttempl/elf.sc (SBSS): New. Define if ${NO_SMALL_DATA}
1249 (REL_SDATA): Likewise.
1250 (REL_SBSS): Likewise.
1251 (REL_SDATA2): Likewise.
1252 (REL_SBSS2): Likewise.
1253 (SBSS2): Define if ${NO_SMALL_DATA} is not empty.
1256 2001-11-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1258 * scripttempl/elfm68hc11.sc (CTOR, DTOR): Put constructor and
1260 * scripttempl/elfm68hc12.sc (CTOR, DTOR): Likewise.
1262 2001-11-22 H.J. Lu <hjl@gnu.org>
1264 * Makefile.in: Regenerated with automake based on automake
1265 1.4-8 in RedHat 7.1.
1267 2001-11-22 Alan Modra <amodra@bigpond.net.au>
1269 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Define.
1270 (config.status): Delete rule.
1271 Add extra dependencies to cover sourced emulparams files.
1272 * Makefile.in: Regenerate.
1274 * scripttempl/elf.sc: Order <section>, <section>.* and
1275 corresponding linkonce sections as seen in input files.
1276 Formatting fixes. Zero vma of all sections if not relocating.
1277 (STACK): Define and insert if STACK_ADDR defined.
1278 (OTHER_RELOCATING_SECTIONS): Delete.
1279 (OTHER_END_SYMBOLS): Define.
1280 (OTHER_READONLY_SECTIONS): Always insert, not just when relocating.
1281 (OTHER_READWRITE_SECTIONS): Likewise.
1282 (OTHER_GOT_SECTIONS): Likewise.
1283 (OTHER_SDATA_SECTIONS): Likewise.
1284 (OTHER_BSS_SECTIONS): Likewise.
1285 * scripttempl/elfi370.sc (OTHER_READONLY_SECTIONS): Likewise.
1286 (OTHER_READWRITE_SECTIONS): Likewise.
1287 * scripttempl/nw.sc (OTHER_READONLY_SECTIONS): Likewise.
1288 (OTHER_READWRITE_SECTIONS): Likewise
1290 * emulparams/armelf.sh (OTHER_RELOCATING_SECTIONS): Delete.
1291 (STACK_ADDR): Define.
1292 * emulparams/armelf_oabi.sh: As for armelf.sh.
1293 * emulparams/elf32mcore.sh: As for armelf.sh.
1294 * emulparams/h8300elf.sh: As for armelf.sh.
1295 * emulparams/mn10200.sh: As for armelf.sh.
1296 * emulparams/shelf.sh: As for armelf.sh.
1298 * emulparams/elf32fr30.sh (OTHER_RELOCATING_SECTIONS): Delete.
1299 (OTHER_END_SYMBOLS): Define.
1300 * emulparams/m32relf.sh: As for elf32fr30.sh.
1301 * emulparams/h8300helf.sh: As for elf32fr30.sh.
1302 * emulparams/h8300self.sh: As for elf32fr30.sh.
1304 * emulparams/criself.sh (OTHER_READONLY_SECTIONS): Protect symbol
1305 defines with RELOCATING test.
1306 (OTHER_SDATA_SECTIONS): Likewise.
1307 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1308 (OTHER_END_SYMBOLS): ..this.
1309 * emulparams/crislinux.sh: As for criself.sh.
1311 * emulparams/elf32bmipn32.sh (OTHER_SDATA_SECTIONS): Zero vma
1313 (OTHER_RELOCATING_SECTIONS): Delete, replacing with..
1314 (OTHER_SECTIONS): ..this. Zero vma if not relocating. Order
1315 normal and linkonce sections as seen in input files.
1316 * emulparams/elf32bmip.sh (DATA_ADDR): Don't define if EMBEDDED.
1317 (TEXT_DYNAMIC): Likewise.
1318 (INITIAL_READONLY_SECTIONS): Zero vma if not relocating.
1319 (OTHER_SDATA_SECTIONS): Likewise.
1320 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
1321 * emulparams/shlelf_linux.sh (OTHER_READWRITE_SECTIONS): Likewise.
1322 * emulparams/elf64alpha.sh (OTHER_READONLY_SECTIONS): Likewise.
1323 * emulparams/hppalinux.sh (OTHER_READONLY_SECTIONS): Likewise.
1324 * emulparams/elf64_aix.sh (OTHER_GOT_SECTIONS): Likewise.
1325 (OTHER_PLT_RELOC_SECTIONS): Likewise.
1326 (OTHER_READONLY_SECTIONS): Likewise. Order normal and linkonce
1327 sections as seen in input files.
1328 * emulparams/elf64_ia64.sh: As for emulparams/elf64_aix.sh.
1329 * emulparams/hppa64linux.sh (OTHER_READONLY_SECTIONS): Zero vma
1331 (OTHER_READWRITE_SECTIONS, OTHER_BSS_SECTIONS): Likewise.
1332 (OTHER_BSS_END_SYMBOLS): Merge from elf64hppa.sh.
1333 * emulparams/elf64mmix.sh (OTHER_RELOCATING_SECTIONS): Delete.
1334 (OTHER_SECTIONS): Instead, use this..
1335 (OTHER_END_SYMBOLS): ..and this.
1337 * emulparams/elf32b4300.sh: Source elf32bmip.sh, remove duplicates.
1338 * emulparams/elf32bsmip.sh: Likewise.
1339 * emulparams/elf32btsmip.sh: Likewise.
1340 * emulparams/elf32ebmip.sh: Likewise.
1341 * emulparams/elf32lmip.sh: Likewise.
1342 * emulparams/elf32elmip.sh: Source elf32lmip.sh, remove duplicates.
1343 * emulparams/elf32lsmip.sh: Likewise.
1344 * emulparams/elf32ltsmip.sh: Source elf32btsmip.sh, remove duplicates.
1345 * emulparams/elf32l4300.sh: Source elf32b4300.sh, remove duplicates.
1346 * emulparams/elf64bmip.sh: Source elf32bmipn32.sh, remove duplicates.
1347 * emulparams/elf64btsmip.sh: Likewise.
1348 * emulparams/elf64ltsmip.sh: Source elf64btsmip.sh, remove duplicates.
1349 * emulparams/elf32lppc.sh: Source elf32ppc.sh, remove duplicates.
1350 * emulparams/elf32ppclinux.sh: Likewise.
1351 * emulparams/elf32ppcsim.sh: Likewise.
1352 * emulparams/elf32lppcsim.sh: Source elf32lppc.sh, remove duplicates.
1353 * emulparams/elf64hppa.sh: Source hppa64linux.sh, remove duplicates.
1354 * emulparams/h8300helf.sh: Source h8300elf.sh, remove duplicates.
1355 * emulparams/h8300self.sh: Likewise.
1356 * emulparams/mn10300.sh: Source mn10200.sh, remove duplicates.
1357 * emulparams/sh.sh: Comment.
1358 * emulparams/shl.sh: Source sh.sh, remove duplicates.
1359 * emulparams/shlelf.sh: Source shelf.sh, remove duplicates.
1360 * emulparams/shelf_linux.sh: Source shlelf_linux.sh, remove duplicates.
1362 2001-11-21 David Heine <dlheine@tensilica.com>
1363 Alan Modra <amodra@bigpond.net.au>
1365 * ldlang.c (map_input_to_output_sections): Replace "break"
1366 accidentally removed with 2001-08-03 change.
1367 (lang_gc_sections_1): Likewise.
1369 2001-11-21 Alan Modra <amodra@bigpond.net.au>
1371 * ldlang.c (walk_wild_section): Move sec == NULL case out of loop.
1373 2001-11-20 Angela Marie Thomas <angela@redhat.com>
1375 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
1376 of false when calling lang_size_sections.
1377 * emultempl/hppaelf.em (hppaelf_layout_sections_again): Likewise.
1379 2001-11-15 Alan Modra <amodra@bigpond.net.au>
1381 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Only emit this
1382 function when LDEMUL_FINISH isn't set to the same name. Don't
1383 call ${LDEMUL_FINISH}.
1384 (ld_${EMULATION_NAME}_emulation): Call $LDEMUL_FINISH if defined.
1385 * emultempl/armelf.em (arm_elf_finish): Call
1386 gld${EMULATION_NAME}_finish.
1387 * emultempl/hppaelf.em (hppaelf_finish): Rename to
1388 gld${EMULATION_NAME}_finish. Call bfd_elf32_discard_info and
1389 hppaelf_layout_sections_again if necessary.
1390 (need_laying_out): New var.
1391 (hppaelf_layaout_sections_again): Rename to
1392 hppaelf_layout_sections_again. Clear need_laying_out.
1393 (PARSE_AND_LIST_OPTIONS): Format text.
1395 2001-11-14 H.J. Lu <hjl@gnu.org>
1397 * emultempl/armelf.em (arm_elf_finish): Renamed from
1398 gld${EMULATION_NAME}_finish.
1399 (LDEMUL_FINISH): Set to arm_elf_finish.
1401 2001-11-14 Daniel Jacobowitz <drow@mvista.com>
1403 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): New.
1404 (struct ld_emulation_xfer_struct): Use it.
1406 2001-11-13 Ross Alexander <ross.alexander@uk.neceur.com>
1408 * emulparams/elf64hppa.sh (OTHER_BSS_END_SYMBOLS): Add
1409 additional symbols referenced by newer crt0.o files from HP.
1411 2001-11-12 Anthony Green <green@redhat.com>
1413 * emulparams/armelf.sh (DATA_START_SYMBOLS): New symbol.
1415 2001-11-12 Alfred M. Szmidt <ams@kemisten.nu>
1417 * Makefile.am (GENSCRIPTS): Quote ${exec_prefix}.
1418 * Makefile.in: Regenerate.
1420 2001-11-02 Stephane Carrez <Stephane.Carrez@worldnet.fr>
1422 * ld.texinfo: Use @command for commands, @option for options.
1423 * Makefile.am (POD2MAN): Use 'GNU Development Tools' for
1425 * Makefile.in: Rebuild.
1427 2001-11-04 Chris Demetriou <cgd@broadcom.com>
1429 * configure.tgt (mips*el-*-netbsd*, mips*-*-netbsd*):
1430 Add support for targets.
1432 2001-11-02 Nick Clifton <nickc@cambridge.redhat.com>
1434 * configure.in (ALL_LINGUAS): Add "fr" and "sv"
1435 * configure: Regernate.
1436 * po/fr.po: New file.
1437 * po/sv.po: New file.
1439 2001-11-01 NIIBE Yutaka <gniibe@m17n.org>
1441 * configure.tgt (sh-*-linux): Set targ_emul, targ_extra_emuls
1442 as little endian default and to support big endian.
1444 2001-11-01 Chris Demetriou <cgd@broadcom.com>
1446 * ld.texinfo (Options): Document new option, -nostdlib.
1447 * lexsup.c (OPTION_NOSTDLIB): New definition.
1448 (ld_options): Add entry for "nostdlib".
1449 (parse_args): Handle OPTIONS_NOSTDLIB.
1450 * ldfile.c (ldfile_add_library_path): Don't add directories
1451 to the search path if they weren't specified on the command line
1452 and -nostdlib was specified.
1453 * ld.h (ld_config_type): New member only_cmd_line_lib_dirs.
1455 2001-10-31 Nick Clifton <nickc@cambridge.redhat.com>
1457 * lexsup.c (parse_args): Prevent infinite parsing loop when
1458 "-rpath.a" is specified on the command line.
1459 Replace calls to fprintf with calls to einfo.
1461 2001-10-31 John Marshall <jmarshall@acm.org>
1463 * ld.texinfo: A historical requirement that MEMORY and SECTIONS
1464 appear only once across all the linker scripts involved in a link
1465 invocation no longer applies. Make the documentation reflect
1468 2001-10-31 NIIBE Yutaka <gniibe@m17n.org>
1470 * configure.tgt: Supports sh3/sh4/sh3eb/sh4eb-unknown-linux-gnu
1472 (sh-*-linux*): Added targ_extra_libpath.
1474 2001-10-31 David Heine <dlheine@tensilica.com>
1476 * ldlang.c (lang_size_sections): Keep a valid output_offset field
1477 for padding statements.
1479 2001-10-30 Hans-Peter Nilsson <hp@bitrange.com>
1481 * configure.tgt (mmix-*-*): New target.
1482 * Makefile.am (ALL_EMULATIONS): Add eelf64mmix.o and emmo.o.
1483 Add dependencies to match.
1484 * emulparams/mmo.sh, emulparams/elf64mmix.sh, emultempl/mmo.em,
1485 emultempl/mmix-elfnmmo.em, emultempl/mmixelf.em,
1486 scripttempl/mmo.sc: New files.
1487 * gen-doc.texi: @set MMIX.
1488 * ld.texinfo: Ditto.
1489 [MMIX] Add MMIX node.
1490 * Makefile.in: Regenerate.
1492 2001-10-29 Kazu Hirata <kazu@hxi.com>
1494 * ldlang.c: Fix a comment typo.
1496 2001-10-23 Alan Modra <amodra@bigpond.net.au>
1498 * configure.host: Move alpha*-*-linux-gnu* entry to generic
1499 entries, and match *-*-linux*.
1501 2001-10-20 Alan Modra <amodra@bigpond.net.au>
1503 * ldgram.y (mri_script_command): Surround processing of INCLUDE
1504 with ldlex_script, ldlex_popstate.
1505 (ifile_p1): Likewise.
1506 * ldlex.l (EOF): Don't BEGIN(SCRIPT). Restore lineno from the
1508 (lex_push_file): Save current lineno to lineno_stack. Set lineno
1509 to 1. Don't BEGIN(SCRIPT).
1510 (lex_redirect): Similarly.
1511 * ldmain.c (main): Set yydebug non-zero if YYDEBUG.
1513 2001-10-20 Nick Clifton <nickc@cambridge.redhat.com>
1515 * scripttempl/armcoff.sc: Define __EH_FRAME_BEGIN__ and
1516 __EH_FRAME_END__ and accept eh frames into data section.
1517 Add ctor and dtor sections.
1519 2001-10-19 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1521 * pe-dll.c (autofilter_objectlist): Add gcrt0.o.
1522 (auto-export): Fix indentation.
1524 2001-10-18 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1526 * pe-dll.c (autofilter_objectlist): Add startup objects
1528 (auto-export): Constify char * p.
1529 Extract file basename and use strcmp rather than ststr
1532 2001-10-18 Chris Demetriou <cgd@broadcom.com>
1534 * ldmain.c (get_emulation): Improve comment about the handling
1537 2001-10-17 Alan Modra <amodra@bigpond.net.au>
1539 * po/POTFILES.in: Regenerate.
1541 2001-10-16 Vassili Karpov <malc@pulsesoft.com>
1543 * emultempl/elf32.em (gld*_list_options): Remove extra '\t' from
1544 -z nocopyreloc and -z nocombreloc usage strings.
1546 2001-10-12 Vassili Karpov <malc@pulsesoft.com>
1548 * emultempl/elf32.em (gld*_list_options): Include -z nocopyreloc
1551 2001-10-11 Aleksey Romanov <aromanov@ennovatenetworks.com>
1553 * scripttempl/armaout.sc: Place .bss section after end of aligned
1554 data section to match behaviour of aout code in constructrion of
1557 2001-10-11 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
1559 * pe-dll.c (autofilter_entry_type autofilter_liblist: Add
1560 startup files for mingw32 dlls to list.
1562 2001-10-10 Chris Demetriou <cgd@broadcom.com>
1564 * emultempl/elf32.em: Fix shell 'if' usage for portability.
1566 2001-10-08 Aldy Hernandez <aldyh@redhat.com>
1568 * configure.tgt (targ): Add arm9e-*-elf.
1570 2001-10-05 H.J. Lu <hjl@gnu.org>
1572 * genscripts.sh: Fix a typo in the last change.
1574 2001-10-05 Jakub Jelinek <jakub@redhat.com>
1576 * emultempl/elf32.em (gld_*_list_options): Include -z combreloc and
1577 -z nocombreloc in usage.
1579 2001-10-03 Jim Blandy <jimb@redhat.com>
1581 * genscripts.sh: Include a comment at the top of each generated
1582 script, explaining its purpose.
1584 2001-10-03 Vassili Karpov <malc@pulsesoft.com>
1586 * emultempl/elf32.em (parse_args): Handle -z nocopyreloc.
1587 * NEWS: Mention -z nocopyreloc.
1588 * ld.texinfo (Options): Describe nocopyreloc.
1590 2001-10-03 Alan Modra <amodra@bigpond.net.au>
1592 * configure: Regenerate.
1594 2001-10-02 Alan Modra <amodra@bigpond.net.au>
1596 * ldver.h (ld_program_version): Remove declaration.
1597 * lexsup.c (parse_args): Move printing of copyright message..
1598 * ldver.c (ldversion): .. to here.
1599 Use BFD_VERSION_STRING in place of BFD_VERSION.
1600 (ld_program_version): Remove.
1601 * Makefile.am (Makefile): Depend on bfd/configure.in.
1603 * Makefile.in: Regenerate.
1605 2001-09-30 Hans-Peter Nilsson <hp@bitrange.com>
1607 * Makefile.am: Update dependencies with "make dep-am".
1608 * Makefile.in: Regenerate.
1610 2001-09-29 John Reiser <jreiser@BitWagon.com>
1612 * ldlang.c (lang_common): Conditionally inhibit Common allocation.
1613 * lexsup.c: Add --no-define-common commandline option.
1614 * ldgram.y: Add INHIBIT_COMMON_ALLOCATION script command.
1615 * ldlex.l: Likewise.
1616 * ld.h: Add command_line.inhibit_common_definition.
1617 * ldmain.c (main): Initialize.
1618 * ld.texinfo: Document.
1620 2001-09-26 Alan Modra <amodra@bigpond.net.au>
1622 * ldmisc.c (USE_STDARG): Remove.
1623 (info_msg): Define using VPARAMS, VA_OPEN, VA_FIXEDARG, VA_CLOSE.
1628 * ldmisc.h: Remove #ifdef ANSI_PROTOTYPES and non-ansi
1629 declarations. Update copyright.
1631 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1633 * pe-dll.c: Remove obsoleted declaration of
1634 pe_get_data_import_dll_name.
1635 (pe_create_import_fixup): Fix thinko.
1637 * ld.texinfo(enable-auto-import): Clarify the explanation.
1639 2001-09-24 Nick Clifton <nickc@cambridge.redhat.com>
1641 * pe-dll.c (pe_create_import_fixup): Revert previous patch.
1642 * emultemp/pe.em (pe_data_import_dll): Move definition outside of
1643 DLL_SUPPORT controlled code.
1645 2001-09-24 Charles Wilson <cwilson@ece.gatech.edu>
1647 * emultempl/pe.em(pe_data_import_dll): Make static.
1648 (pe_get_data_import_dll_name): New accessor function.
1649 * pe-dll.c(pe_create_import_fixup): call
1650 pe_get_data_import_dll_name() from pe.em, instead of
1651 directly accessing pe_data_import_dll variable from pe.em.
1653 2001-09-18 Bruno Haible <haible@clisp.cons.org>
1655 * deffilep.y: Include "safe-ctype.h" instead of <ctype.h>.
1656 (def_file_add_directive): Use ISSPACE instead of isspace.
1657 (def_lex): Use ISDIGIT/ISXDIGIT/ISALPHA/ISALNUM instead of
1658 isdigit/isxdigit/isalpha/isalnum.
1659 * emultempl/aix.em: Include "safe-ctype.h" instead of <ctype.h>.
1660 (gld${EMULATION_NAME}_read_file): Use ISSPACE instead of isspace.
1661 * emultempl/elf32.em: Include "safe-ctype.h" instead of <ctype.h>.
1662 (gld${EMULATION_NAME}_place_orphan): Use ISALNUM instead of
1664 * emultempl/gld960c.em: Include "safe-ctype.h" instead of <ctype.h>.
1665 (gld960_set_output_arch): Use ISUPPER/TOLOWER instead of
1667 * emultempl/sunos.em: Include "safe-ctype.h" instead of <ctype.h>.
1668 (gld${EMULATION_NAME}_search_dir): Use ISDIGIT instead of isdigit.
1669 * ldctor.c: Include "safe-ctype.h" instead of <ctype.h>.
1670 (ctor_prio): Use ISDIGIT instead of isdigit.
1671 * ldfile.c: Include "safe-ctype.h" instead of <ctype.h>.
1672 (ldfile_open_file_search): Use ISALPHA instead of isalpha.
1673 (ldfile_add_arch): Use ISUPPER/TOLOWER instead of
1675 * ldlang.c: Include "safe-ctype.h" instead of <ctype.h>.
1676 (stricpy): Use TOLOWER instead of isupper/tolower.
1677 (lang_leave_overlay_section): Use ISALNUM instead of isalnum.
1678 * ldlex.l: Include "safe-ctype.h" instead of <ctype.h>.
1679 (lex_warn_invalid): Use ISPRINT instead of isprint.
1680 * ldmain.c: Include "safe-ctype.h" instead of <ctype.h>.
1681 (main): For gettext, also set the LC_CTYPE locate facet.
1682 (add_keepsyms_file): Use ISSPACE instead of isspace.
1683 * lexsup.c: Include "safe-ctype.h" instead of <ctype.h>.
1684 (is_num, parse_args): Use ISDIGIT instead of isdigit.
1685 * mpw-elfmips.c: Include "safe-ctype.h" instead of <ctype.h>.
1686 (gldelf32ebmip_place_orphan): Use ISALNUM instead of isalnum.
1687 * mpw-eppcmac.c: Include "safe-ctype.h" instead of <ctype.h>.
1688 (gldppcmacos_read_file): Use ISSPACE instead of isspace.
1689 * pe-dll.c: Include "safe-ctype.h" instead of <ctype.h>.
1690 (quoteput): Use ISSPACE instead of isspace.
1691 (pe_dll_generate_implib, pe_process_import_defs): Use ISALNUM
1694 2001-09-18 Alan Modra <amodra@bigpond.net.au>
1696 * deffilep.y (def_stash_module): Constify "name" param.
1698 * pe-dll.c: Replace CONST with const throughout.
1699 (quick_symbol): Constify "n1", "n2", "n3" params.
1700 (make_singleton_name_thunk): Constify "import" param. Make
1701 "buffer_len" a size_t.
1702 (make_import_fixup_entry): Constify "name", "fixup_name",
1703 "dll_symname" params.
1704 (pe_get16): Cast args of bfd_seek. Replace bfd_read with bfd_bread.
1705 (pe_get32): Likewise.
1706 (pe_implied_import_dll): Likewise.
1708 * emultempl/beos.em (sort_by_file_name): Constify "ra", "rb".
1709 (sort_by_section_name): Likewise.
1711 * emultempl/pe.em: Move defines for arm_epoc_pe before bfd.h included.
1712 (make_import_fixup): Cast printf arg, rel->address to long rather
1714 (gld_${EMULATION_NAME}_after_open): Don't compare NULL against int.
1716 2001-09-15 Alan Modra <amodra@bigpond.net.au>
1718 * ldmain.c (main): Rename BufferSize to ld_bufsz because HPUX
1719 defines BufferSize. Increase buffer size by one.
1721 2001-09-14 Ralf Habacker <Ralf.Habacker@freenet.de>
1723 * pe-dll.c (pe_walk_relocs_of_symbol): Fix memory leak.
1725 2001-09-14 Kevin Lo <kevlo@openbsd.org>
1727 * configure.tgt: Add arm-openbsd target.
1729 2001-09-12 H.J. Lu <hjl@gnu.org>
1731 * Makefile.am (ALL_EMULATIONS): Move eelf64ppc.o and
1733 (ALL_64_EMULATIONS): Here.
1734 * Makefile.in: Regenerated.
1736 2001-09-12 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
1738 * emultempl/pe.em(make_import_fixup): change signature to
1739 take asection as well as arelec; we need this for proper
1740 error reporting. Only call pe_create_import_fixup() if
1741 there is no attempt to add a constant addend to the reloc;
1742 otherwise, report error condition.
1743 * pe-dll.c(pe_walk_relocs_of_symbol): change signature,
1744 since final argument is a pointer to make_import_fixup().
1745 Change call to cb() to match make_import_fixup() signature.
1746 (make_import_fixup_mark): make buffer_len unsigned.
1747 * pe-dll.h: change signature of pe_walk_relocs_of_symbol.
1749 2001-09-12 Charles Wilson <cwilson@ece.gatech.edu>
1751 * ld.texinfo: add verbose documentation for auto-import
1752 direct-addressing workaround, to compliment the terse
1755 2001-09-12 Andrew MacLeod <amacleod@redhat.com>
1757 * scripttempl/v850.sc: Add gcc_except_table sections.
1759 2001-09-11 Jeffrey A Law (law@cygnus.com)
1761 * emulparams/h8300helf.sh: Move stack to a much higher memory address.
1762 * emulparams/h8300self.sh: Similarly.
1764 2001-09-05 Danny Smith <dannysmith@users.souceforge.net>
1766 * ld.texinfo (Options, --stack): Correct default value for stack
1769 2001-09-05 Tom Rix <trix@redhat.com>
1771 * emultempl/aix.em : Handle import file XMC_XO and syscall symbols.
1773 2001-09-03 Andreas Jaeger <aj@suse.de>
1775 * emultempl/beos.em: Declare prototypes for comparions functions,
1778 2001-09-02 Andreas Jaeger <aj@suse.de>
1780 * emultempl/aix.em: Add missing prototype.
1781 * emultempl/lnk960.em: Likewise.
1782 * emultempl/vanilla.em: Likewise.
1783 * emultempl/armcoff.em: Likewise.
1784 * emultempl/armelf_oabi.em: Likewise.
1785 * emultempl/beos.em: Likewise.
1786 * emultempl/gld960c.em: Likewise.
1787 * emultempl/gld960.em: Likewise.
1789 * emulparams/elf64alpha.sh (PARSE_AND_LIST_PROLOGUE): Add parameter
1790 for prototype declaration.
1792 2001-08-31 Eric Christopher <echristo@redhat.com>
1793 Jason Eckhardt <jle@redhat.com>
1795 * ldmain.c (get_emulation): Add support for -mips32 and -mips64.
1797 2001-08-31 Andreas Jaeger <aj@suse.de>
1799 * emultempl/pe.em: Add missing prototypes.
1800 (gld_${EMULATION_NAME}_after_open): Remove extra args to
1801 pe_find_data_imports.
1802 (pr_sym): Add unused attribute.
1804 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1806 * configure.tgt (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1807 default from coff to elf.
1809 2001-08-29 Jeff Law <law@redhat.com>
1811 * emulparams/h8300helf.sh: Resync with h8300elf.sh. Update
1813 * emulparams/h8300self.sh: Similarly.
1815 2001-08-28 J"orn Rennecke <amylaar@redhat.com>
1817 * Makefile.am (ALL_EMULATIONS): Add eh8300elf.o, eh8300elf.o and
1819 (eh8300elf.c, eh8300helf.c, eh8300self.c): New targets.
1820 * configure.tgt (h8300-*-elf*): New case.
1821 * emulparams/h8300elf.sh, emulparams/h8300helf.sh: New files.
1822 * emulparams/h8300self.sh: New file.
1823 * Makefile.in: Regenerated.
1825 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1827 * ldmain.c (main): Rename BSIZE to BufferSize to avoid collision
1830 2001-08-27 Linus Nordberg <linus@swox.com>
1831 Alan Modra <amodra@bigpond.net.au>
1833 * Makefile.am (ALL_EMULATIONS): Add eelf64ppc.o and eelf64lppc.o.
1834 (eelf64ppc.c, eelf64lppc.c): Add make targets.
1836 * Makefile.in: Regenerate.
1837 * configure.tgt: Add powerpc64 support. Move pdp11, pjl, pj
1838 entries to correct alphabetical position.
1839 * emulparams/elf64ppc.sh: New.
1840 * emulparams/elf64lppc.sh: New.
1842 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1844 * ldmain.c (main): Declare BSIZE as static.
1846 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1848 * emultempl/elf32.em (place_orphan): Place orphan .rel* sections
1849 into .rel.dyn resp. .rela.dyn if combreloc.
1850 (get_script): If .x linker script is equal to .xn, only put it
1851 once into the binary.
1852 Add .xc and .xsc scripts.
1853 (parse_args): Handle -z combreloc and -z nocombreloc.
1854 * scripttempl/elf.sc (.rela.sbss): Fix a typo.
1855 For .xc and .xsc scripts put all .rel* or .rela* input sections
1856 but .rel*.plt and PLT-like sections into .rel.dyn resp. .rela.dyn.
1857 * genscripts.sh (GENERATE_COMBRELOC_SCRIPT): Set if SCRIPT_NAME
1859 Strip trailing whitespace from script.
1860 Generate .xc and .xsc scripts if requested.
1861 * ldmain.c (main): Initialize link_info.combreloc and
1862 link_info.spare_dynamic_tags.
1863 * lexsup.c (OPTION_SPARE_DYNAMIC_TAGS): Define.
1864 (ld_options): Add --spare-dynamic-tags option.
1865 (parse_args): Likewise.
1866 * ld.texinfo: Document -z combreloc and -z nocombreloc.
1867 * ldint.texinfo: Document .xc and .xsc linker scripts.
1868 * NEWS: Add notes about -z combreloc and SHF_MERGE.
1870 2001-08-22 H.J. Lu <hjl@gnu.org>
1872 * emulparams/elf32fr30.sh: Add a newline.
1874 2001-08-21 Andreas Jaeger <aj@suse.de>
1876 * deffilep.y: Add missing prototypes.
1877 * pe-dll.c: Likewise.
1879 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1881 * ldlang.c (insert_pad): Fix typos in last patch.
1883 * ldlang.c: When traversing lang_statement_union_type lists,
1884 consistently use "header.next" rather than "next".
1885 * mpw-eppcmac.c: Likewise.
1886 * emultempl/beos.em: Likewise.
1887 * emultempl/hppaelf.em: Likewise.
1888 * emultempl/pe.em: Likewise.
1889 * ldlang.h (union lang_statement_union): Remove "next" field.
1891 * ldlang.c (insert_pad): Use offsetof macro.
1892 (lang_size_sections): Always neuter padding statements.
1893 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Delete.
1895 * pe-dll.c (pe_dll_fill_sections): Correct type of "relax" param
1896 passed to lang_size_sections.
1897 (pe_exe_fill_sections): Likewise.
1898 * emultempl/pe.em (output_prev_sec_find): Copied from elf32.em.
1899 (gld_${EMULATION_NAME}_place_orphan): Merge from elf32.em.
1901 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1903 * emultempl/aix.em: Formatting fixes.
1905 2001-08-18 Alan Modra <amodra@bigpond.net.au>
1907 * ldlang.c (insert_pad): Make use of an existing pad statement if
1908 available. Move code calculating alignment, adjusting section
1909 alignment power, and adjusting dot to ..
1910 (size_input_section): .. here. Remove unused relax param.
1911 (lang_size_sections): Change boolean `relax' param to boolean *.
1912 Adjust call to size_input_section. Make use of insert_pad to
1913 place pad after the assignment statement. If relaxing, zap
1915 (reset_memory_regions): Reset output_bfd section sizes too.
1916 (relax_again): Move to..
1917 (lang_process): ..here. Adjust call to lang_size_sections, and
1918 remove duplicated code.
1919 * ldlang.h (lang_size_sections): Change `relax' param to boolean *.
1921 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1923 * ld.texinfo: Document that fill values now use the four least
1925 * emulparams/elf32fr30.sh (NOP): Update.
1926 * emulparams/elf32mcore.sh: Likewise.
1927 * emulparams/elf64_s390.sh: Likewise.
1928 * emulparams/elf_i386.sh: Likewise.
1929 * emulparams/elf_i386_be.sh: Likewise.
1930 * emulparams/elf_i386_chaos.sh: Likewise.
1931 * emulparams/elf_i386_ldso.sh: Likewise.
1932 * emulparams/elf_s390.sh: Likewise.
1933 * emulparams/elf_x86_64.sh: Likewise.
1934 * emulparams/i386moss.sh: Likewise.
1935 * emulparams/i386nw.sh: Likewise.
1936 * emulparams/m68kelf.sh: Likewise.
1937 * scripttempl/elf.sc: Update NOP comment.
1938 * scripttempl/elfi370.sc: Likewise.
1939 * scripttempl/elfm68hc11.sc: Likewise.
1940 * scripttempl/elfm68hc12.sc: Likewise.
1941 * scripttempl/nw.sc: Likewise.
1943 2001-08-15 Tom Rix <trix@redhat.com>
1945 * ldgram.y (saved_script_handle): Initialize to NULL.
1946 * ldmain.c (main): Change check on saved_script_handle.
1948 2001-08-14 Alan Modra <amodra@bigpond.net.au>
1950 * emultempl/elf32.em: Formatting fixes.
1951 (output_prev_sec_find): Test for bfd_ind_section too; do so by
1952 looking at sec->owner.
1953 (output_rel_find): Move function inside LDEMUL_PLACE_ORPHAN test.
1954 (gld${EMULATION_NAME}_place_orphan): Add a few comments. Remove
1955 unused code, and reorganize orphan section placement code.
1957 * ldlang.c (wild_doit): Rename to lang_add_section.
1958 * ldlang.h: Here too.
1959 * mpw-elfmips.c: And here.
1960 * emultempl/beos.em: And here.
1961 * emultempl/elf32.em: And here.
1962 * emultempl/hppaelf.em: And here.
1963 * emultempl/pe.em: And here.
1965 2001-08-13 Richard Henderson <rth@redhat.com>
1967 * emultempl/needrelax.em: New file.
1968 * emulparams/elf64_ia64.sh (EXTRA_EM_FILE): Reference it.
1969 * Makefile.am (eelf64_ia64.c): Depend on it.
1970 * Makefile.in: Rebuild.
1972 2001-08-13 Alan Modra <amodra@bigpond.net.au>
1974 * emultempl/elf32.em: For SEC_EXCLUDE sections, ensure that
1975 output_section is set non-NULL.
1977 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Return
1978 `true' for SEC_EXCLUDE sections so that the generic code doesn't
1979 needlessly create an output_section_statement. Treat a correctly
1980 named output_section_statement with NULL bfd_section as compatible.
1982 2001-08-13 Hans-Peter Nilsson <hp@bitrange.com>
1984 * emultempl/generic.em: Support EXTRA_EM_FILE.
1985 (ld_${EMULATION_NAME}_emulation): Support emulation parameters
1986 LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
1987 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
1988 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
1989 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
1990 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
1991 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
1992 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
1993 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
1994 LDEMUL_FIND_POTENTIAL_LIBRARIES.
1996 2001-08-12 Richard Henderson <rth@redhat.com>
1998 * scripttempl/elf.sc, scripttempl/elfd30v.sc,
1999 scripttempl/elfm68hc11.sc, scripttempl/elfm68hc12.sc,
2000 scripttempl/v850.sc: Keep .jcr data.
2002 2001-08-12 H.J. Lu <hjl@gnu.org>
2003 Andrew Haley <aph@cambridge.redhat.com>
2004 Nick Clifton <nickc@redhat.com>
2006 * ldgram.y (had_script): Change name to saved_script_handle.
2007 Change type to file handle.
2008 * ld.h (had_script): Rename and retype.
2009 * ldfile.c (ldfile_open_command_file): Save the file handle
2010 used in saved_script_handle.
2011 * lexsup.c (parse_args): Do not allow -c option to alter
2012 saved_script_handle.
2013 * ldmain.c (main): Print out the linker script used if
2014 --verbose is given. Check saved_script_handle to obtain the
2015 external linker script used, or if NULL, dump the builtin
2017 * ld.texinfo: Document that --verbose now dumps the linker
2018 script used, regardless of whether it was an internal or an
2021 2001-08-10 Andreas Jaeger <aj@suse.de>
2023 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
2025 * configure: Regenerate.
2027 2001-08-09 Alan Modra <amodra@bigpond.net.au>
2029 * emultempl/elf32.em (output_prev_sec_find): Add missing prototype.
2031 * scripttempl/elf.sc: Move non-text .dynamic section before
2032 .plt/.got/.sdata* group.
2033 (OTHER_GOT_SECTIONS): Move to immediately after .got.
2034 (OTHER_SDATA_SECTIONS): Add.
2035 * emulparams/criself.sh: Use OTHER_SDATA_SECTIONS rather than
2037 * emulparams/crislinux.sh: Likewise.
2038 * emulparams/elf32b4300.sh: Likewise.
2039 * emulparams/elf32bmip.sh: Likewise.
2040 * emulparams/elf32bmipn32.sh: Likewise.
2041 * emulparams/elf32bsmip.sh: Likewise.
2042 * emulparams/elf32btsmip.sh: Likewise.
2043 * emulparams/elf32ebmip.sh: Likewise.
2044 * emulparams/elf32elmip.sh: Likewise.
2045 * emulparams/elf32l4300.sh: Likewise.
2046 * emulparams/elf32lmip.sh: Likewise.
2047 * emulparams/elf32lsmip.sh: Likewise.
2048 * emulparams/elf32ltsmip.sh: Likewise.
2049 * emulparams/elf64bmip.sh: Likewise.
2050 * emulparams/elf64btsmip.sh: Likewise.
2051 * emulparams/elf64ltsmip.sh: Likewise.
2053 2001-08-08 Alan Modra <amodra@bigpond.net.au>
2055 * genscripts.sh: Source the emulparams script before each output
2056 script is generated so that variables like `RELOCATING' may affect
2057 variables defined in the emulparams script.
2059 2001-08-04 Alan Modra <amodra@bigpond.net.au>
2061 * emultempl/aix.em: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this
2064 * emultempl/beos.em (sort_sections): Modify for 2001-08-03 change,
2065 ie. iterate over wild_statement.section_list.
2066 (gld${EMULATION_NAME}_place_orphan): Likewise.
2068 2001-08-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2070 * scripttempl/elfm68hc12.sc (FINISH_CODE, FINISH_RELOC): New to handle
2071 .fini[0-4] sections used by _exit
2072 (CTOR, DTOR): Export ctor/dtor symbols; move them to ROM.
2073 (*.text,*.data,*.bss): Take into account .text.*, .data.*, .bss.*.
2074 * scripttempl/elfm68hc11.sc: Likewise.
2076 2001-08-03 H.J. Lu <hjl@gnu.org>
2078 * emultempl/beos.em (init): Add the missing initialization.
2080 2001-08-03 Alan Modra <amodra@bigpond.net.au>
2082 * ld.texinfo (Input Section Basics): Clarify ordering of output
2084 * ldlang.c (callback_t): Add wildcard_list param.
2085 (walk_wild_section): Remove "section" param. Rewrite for
2086 lang_wild_statement_type change. Remove unique_section_p test.
2087 (walk_wild_file): Remove "section" param.
2088 (walk_wild): Remove "section" and "file" params.
2089 (lang_gc_wild): Likewise.
2090 (wild): Likewise. Modify for lang_wild_statement_type change.
2091 (wild_sort): Likewise. Add "sec" param.
2092 (gc_section_callback): Likewise.
2093 (output_section_callback): Likewise. Do unique_section_p test.
2094 (map_input_to_output_sections): Modify call to wild.
2095 (lang_gc_sections_1): Likewise.
2096 (print_wild_statement): Modify for lang_wild_statement_type
2098 (lang_add_wild): Replace filename, filenames_sorted param with
2099 filespec. Replace section_name, sections_sorted,
2100 exclude_filename_list with section_list.
2101 * ldlang.h (lang_add_wild): Here too.
2102 (lang_wild_statement_type): Replace section_name, sections_sorted,
2103 and exclude_filename_list with section_list.
2104 * ldgram.y (current_file): Delete.
2105 (%union): Add wildcard_list.
2106 (file_NAME_list): Set type to wildcard_list. Build a linked list
2107 rather than calling lang_add_wild for each entry.
2108 (input_section_spec_no_keep): Call lang_add_wild here instead.
2109 * ld.h (struct wildcard_list): Declare.
2110 * mri.c (mri_draw_tree): Modify to suit new lang_add_wild.
2112 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2114 * ldmain.c (main): initialize link_info.pei386_auto_import
2115 * pe-dll.c: new tables for auto-export filtering
2116 (auto_export): change API, pass abfd for contextual filtering.
2117 Loop thru tables of excluded symbols instead of comparing
2120 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
2122 * pe-dll.c: new variable pe_dll_enable_extra_debug. New
2123 static variable current_sec (static struct sec *). Add
2124 forward declaration for add_bfd_to_link.
2125 (process_def_file): Don't export undefined symbols. Do not
2126 export symbols starting with "_imp__". Call auto_export()
2128 (pe_walk_relocs_of_symbol): New function.
2129 (generate_reloc): add optional extra debugging
2130 (pe_dll_generate_def_file): eliminate extraneous initial blank
2132 (make_one): enlarge symtab to make room for __nm__ symbols
2133 (DATA auto-import support).
2134 (make_singleton_name_thunk): New function.
2135 (make_import_fixup_mark): New function.
2136 (make_import_fixup_entry): New function.
2137 (pe_create_import_fixup): New function.
2138 (add_bfd_to_link): Specify that 'name' argument is a CONST
2140 * pe-dll.h: declare new variable pe_dll_extra_pe_debug;
2141 declare new functions pe_walk_relocs_of_symbol and
2142 pe_create_import_fixup.
2143 * emultempl/pe.em: add new options --enable-auto-import,
2144 --disable-auto-import, and --enable-extra-pe-debug.
2145 (make_import_fixup): New function.
2146 (pe_find_data_imports): New function.
2147 (pr_sym): New function.
2148 (gld_${EMULATION_NAME}_after_open): Add optional extra pe
2149 debugging. Call pe_find_data_imports. Mark .idata as DATA, not
2152 2001-08-02 Charles Wilson <cwilson@ece.gatech.edu>
2154 * ld.texinfo: add additional documentation for
2155 --export-all-symbols. Document --out-implib,
2156 --enable-auto-image-base, --disable-auto-image-base,
2157 --dll-search-prefix, --enable-auto-import, and
2158 --disable-auto-import.
2159 * ldint.texinfo: Add detailed documentation on auto-import
2162 2001-07-30 Nick Clifton <nickc@cambridge.redhat.com>
2164 * ld.texinfo (Simple Assignments): Fix computation in SECTIONS
2167 2001-07-24 Alan Modra <amodra@bigpond.net.au>
2169 * Makefile.am: Update dependencies with "make dep-am".
2170 * Makefile.in: Regenerate
2172 2001-07-23 Alan Modra <amodra@bigpond.net.au>
2174 * ldcref.c (check_section_sym_xref): New function.
2175 (check_nocrossrefs): Call it.
2176 (check_nocrossref): Interate over h->refs here instead of..
2177 (check_refs): ..here. Pass in the symbol name, section, and bfd
2178 rather than hash_entry pointers.
2179 (struct check_refs_info): Keep symbol name rather than hash entry.
2181 (check_reloc_refs): Tweak for above changes in check_refs_info.
2182 Only report references to section syms when symname is NULL to
2183 prevent duplicate messages for the same reloc.
2185 2001-07-19 Nick Clifton <nickc@cambridge.redhat.com>
2187 * ldexp.c (exp_print_tree): Use stderr if config.map_file is not
2188 available. Do not print NULL trees.
2189 (exp_print_token): Print unknown tokens with values > 126 as
2190 decimal values not ASCII characters.
2192 * ldlang.c (lang_leave_overlay): If a region is specified assign
2193 it to all sections inside the overlay unless they have been
2194 assigned to the own, non-default, memory region.
2196 * README: Add header for consistency with other README files.
2198 2001-07-14 H.J. Lu <hjl@gnu.org>
2200 * emultempl/elf32.em (output_prev_sec_find): Never return
2201 bfd_abs_section_ptr, bfd_com_section_ptr nor
2202 bfd_und_section_ptr.
2204 2001-07-14 Nick Clifton <nickc@cambridge.redhat.com>
2206 * Makefile.am (em32relf.c): Change dependency from generic.em to
2208 * Makefile.in: Regenerate.
2210 2001-07-14 matthew green <mrg@eterna.com.au>
2212 * configure.tgt (i386-*-netbsdelf*): New target.
2213 (i386-*-netbsd*): Set targ_extra_emuls to `elf_i386'
2215 2001-07-13 Jakub Jelinek <jakub@redhat.com>
2217 * emultempl/elf32.em (output_prev_sec_find): New.
2218 (place_orphan): Use it.
2220 2001-07-11 H.J. Lu <hjl@gnu.org>
2222 * ldmain.c (main): Fix typos in the last change.
2224 2001-07-11 Jakub Jelinek <jakub@redhat.com>
2226 * ldmain.c (main): Disallow -F and -f without -shared.
2228 2001-07-11 Nick Clifton <nickc@cambridge.redhat.com>
2230 * emultempl/pe.em (after_open): Check for the output_bfd not
2231 having any coff_data structure allocated to it.
2233 2001-07-09 David O'Brien <obrien@FreeBSD.org>
2235 * emultempl/elf32.em: Do not assuming that contents of the buffer
2236 returned from basename function will remain unchanged accross other
2239 2001-07-03 H.J. Lu <hjl@gnu.org>
2241 * scripttempl/elf.sc (DYNAMIC_PAD): Revert the change made on
2242 2001-07-03. It creates dynamic entries even for static binaries.
2244 2001-07-03 Jakub Jelinek <jakub@redhat.com>
2246 * scripttempl/elf.sc (DYNAMIC_PAD): New variable.
2247 (DYNAMIC): Use it to reserve few dynamic entries for
2250 2001-06-27 Alan Modra <amodra@bigpond.net.au>
2252 * emulparams/hppa64linux.sh: New file.
2253 * configure.tgt: hppa*64*-*-linux* uses hppa64linux.sh
2254 * Makefile.am (ALL_64_EMULATIONS): Add ehppa64linux.o
2255 (ehppa64linux.c): Add rule to make it.
2257 * Makefile.in: Regenerate.
2259 2001-06-21 Hans-Peter Nilsson <hp@axis.com>
2261 * ld.texinfo (Options, -r): Mention restrictions when using
2262 different object formats.
2264 2001-06-19 Hans-Peter Nilsson <hp@axis.com>
2266 * ldlang.c (lang_check): Emit fatal error if relocatable link
2267 between different object flavours with relocations in input.
2269 2001-06-19 H.J. Lu <hjl@gnu.org>
2271 * ld.texinfo (-E, --export-dynamic): Mention --version-script.
2272 (--version-script): Mention the language support.
2274 2001-06-19 H.J. Lu <hjl@gnu.org>
2276 * ldlang.c (lang_check): Revert the change mode on 2001-06-15.
2278 2001-06-18 H.J. Lu <hjl@gnu.org>
2280 * Makefile.am (ld.1): Remove the prefix `$(srcdir)/'.
2281 (diststuff): Add $(MANS).
2282 * Makefile.in: Regenerated.
2286 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2288 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
2289 Update for API change in bfd_elf${ELFSIZE}_size_dynamic_sections.
2290 * mpw-elfmips.c (gldelf32ebmip_before_allocation): Ditto.
2291 * ld.h (args_type): Remove member export_dynamic. All users
2292 changed to use struct bfd_link_info member.
2294 * Makefile.am (ecriself.c, ed10velf.c, ei386moss.c): Depend on
2295 $(srcdir)/emultempl/elf32.em, not $(srcdir)/emultempl/generic.em.
2296 * Makefile.in: Regenerate.
2298 2001-06-18 H.J. Lu <hjl@gnu.org>
2300 * ldlang.c (init_os): Add the newline to the einfo call.
2301 (lang_check): Likewise.
2302 (lang_do_version_exports_section): Likewise.
2304 2001-06-15 H.J. Lu <hjl@gnu.org>
2306 * lexsup.c (parse_args); Save optind to report unrecognized
2309 2001-06-15 Hans-Peter Nilsson <hp@axis.com>
2311 * ldlang.c (lang_check): Emit fatal error if relocatable link
2312 between different object flavours.
2314 * lexsup.c (parse_args) <case OPTION_EXPORT_DYNAMIC, case 'E'>:
2315 Set new link_info member export_dynamic.
2316 * ldmain.c (main): Initialize new link_info member export_dynamic.
2318 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2320 * ldlang.c (walk_wild): Only call walk_wild_file if
2321 lookup_name returns something.
2322 (lookup_name): If load_symbols fails, return NULL.
2323 (load_symbols): Change to a boolean function.
2324 (open_input_bfds): If load_symbols fails then do not make the
2327 2001-06-08 Alan Modra <amodra@bigpond.net.au>
2329 * ldlang.c (record_bfd_errors): Remove.
2331 * emultempl/aix.em: Fix copyright dates.
2333 2001-06-07 Andreas Jaeger <aj@suse.de>
2335 * elf_x86_64.sh (NONPAGED_TEXT_START_ADDR): Increase.
2336 (TEXT_START_ADDR): Likewise.
2338 2001-06-06 Martin Schwidefsky <schwidefsky@de.ibm.com>
2340 * configure.host: Set HOSTING_CRT0/HOSTING_LIBS correctly for s/390.
2342 2001-06-05 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2344 * emultempl/pe.em (init): Reduce default stack reserve to 0x200000.
2346 2001-05-31 H.J. Lu <hjl@gnu.org>
2348 * ldlang.c (open_input_bfds): Don't change the bfd error
2349 handler whilst loading symbols.
2351 2001-05-28 Nick Clifton <nickc@cambridge.redhat.com>
2353 * configure.tgt: Remove i370-mvs architecture, it is not currently
2356 2001-05-25 H.J. Lu <hjl@gnu.org>
2358 * emulparams/ppcmacos.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2359 like emulparams/aixppc.sh.
2361 2001-05-25 H.J. Lu <hjl@gnu.org>
2363 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Move
2364 setting of output_filename after bfd_scan_arch.
2365 * emultempl/pe.em: Likewise.
2367 2001-05-25 H.J. Lu <hjl@gnu.org>
2369 * emulparams/aixrs6.sh: Add SYSCALL_MASK and SYMBOL_MODE_MASK
2370 like emulparams/aixppc.sh.
2372 * emultempl/aix.em (sc): Use ${srcdir}/emultempl/ostring.sed
2373 instead of ${srcdir}/emultempl/stringify.sed.
2375 2001-05-25 Timothy Wall <twall@oculustech.com>
2377 * emulparams/elf64_aix.sh: Change settings to match IBM linker
2380 2001-05-25 Alan Modra <amodra@one.net.au>
2382 * configure.host: Replace linuxoldld with linux*oldld.
2383 * configure.tgt: Likewise.
2385 2001-05-24 H.J. Lu <hjl@gnu.org>
2387 * emultempl/stringify.sed: Removed again.
2389 2001-05-24 H.J. Lu <hjl@gnu.org>
2391 * emultempl/aix.em (OUTPUT_ARCH): Defined.
2392 (gld${EMULATION_NAME}_before_parse): Initialize
2393 ldfile_output_architecture, ldfile_output_machine and
2394 ldfile_output_machine_name from ${OUTPUT_ARCH} if possible.
2395 * emultempl/beos.em: Likewise.
2396 * emultempl/elf32.em: Likewise.
2397 * emultempl/linux.em: Likewise.
2398 * emultempl/mipsecoff.em: Likewise.
2399 * emultempl/pe.em: Likewise.
2400 * emultempl/sunos.em: Likewise.
2402 2001-05-24 Tom Rix <trix@redhat.com>
2404 * emultempl/aix.em : (gld${EMULATION_NAME}_read_file)
2405 udate import file format.
2406 (change_symbol_mode) New, same
2407 (is_syscall) New, same
2408 * emulparams/aixppc.sh : add SYSCALL_MASK and SYMBOL_MODE_MASK
2409 * emulparams/aixppc64.sh : same
2410 * emulparams/aixrs6.sh : same
2411 * emulparams/ppcmacos.sh : same
2412 * emultempl/aix.em : use strtoull to parse options
2413 * Makefile.am : add eaixppc64 emulation for xcoff64
2414 * Makefile.in : same
2415 * configure.tgt : same
2417 * scripttempl/aix.sc : default text section offset to 0x10000000
2418 default data section offset to 0x20000000
2419 add .sv3264 and .sv64 pseudo sections
2420 loader and debug sections use the currect section offset.
2422 * emultempl/aix.em : Add xcoff64 support
2423 Add -binitfini support
2424 (gld${EMULATION_NAME}_before_parse) -binitfini
2425 (gld${EMULATION_NAME}_parse_args) same
2426 (gld${EMULATION_NAME}_before_allocation) format change for special
2429 * emulparams/aixppc64.sh : New file for xcoff64 support
2431 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2433 * emultempl/elf32.em (ELF_INTERPRETER_SET_DEFAULT): Use this new
2434 variable to avoid non-portable shell construct.
2436 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2438 * ldmain.c (get_emulation): Add -mips5 command line argument.
2440 2001-05-22 Alexandre Oliva <aoliva@redhat.com>
2442 * emulparams/elf_i386_ldso.sh: New, copied from elf_i386.sh.
2443 (ELF_INTERPRETER_NAME): Define it.
2444 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Use
2446 * configure.tgt (targ_emul, targ_extra_emuls)
2447 [i[3456]86-*-solaris2*, i[3456]86-*-solaris*]: Use elf_i386_ldso
2448 as primary, elf_i386 as extra.
2449 * Makefile.am (ALL_EMULATIONS): Added eelf_i386_ldso.o.
2450 (eelf_i386_ldso.c): New rule.
2451 * Makefile.in: Rebuilt.
2453 2001-05-22 Nick Clifton <nickc@redhat.com>
2455 * lexsup.c (ld_options): Allow -I to be an alias for
2456 --dynamic-linker. This is for Solaris compatability.
2457 * ld.texinfo: Document that -I can be used.
2460 2001-05-16 Alan Modra <amodra@one.net.au>
2462 * ldlang.c (wild_doit): Use linker_has_input to reliably determine
2463 whether an input section is the first one assigned to an output
2465 Assorted formatting fixes.
2467 2001-05-14 DJ Delorie <dj@delorie.com>
2469 * Makefile.am (ld.dvi): Search bfd/doc for texinfo files.
2470 * Makefile.in: Ditto.
2472 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2474 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Put
2475 .gnu.linkonce.ia64unw{,i} sections into corresponding .IA_64.unwind*
2477 * emulparams/elf64_aix.sh (OTHER_READONLY_SECTIONS): Likewise.
2479 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2481 * ldlang.c (lang_process): Call bfd_merge_sections.
2483 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2485 * ldgram.y: Fix typo.
2487 2001-05-03 H.J. Lu <hjl@gnu.org>
2489 * emultempl/elf32.em: Include "libiberty.h".
2490 (gld${EMULATION_NAME}_vercheck): Call basename () to get the
2491 basename of the bfd filename.
2492 (gld${EMULATION_NAME}_stat_needed): Likewise.
2493 (gld${EMULATION_NAME}_try_needed): Likewise.
2494 (gld${EMULATION_NAME}_open_dynamic_archive): Likewise.
2496 2001-05-02 H.J. Lu <hjl@gnu.org>
2498 * emultempl/pe.em: Include <ctype.h>.
2500 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2502 * emulparams/elf32openrisc.sh: New file.
2504 * Makefile.am: Add OpenRISC target.
2505 * Makefile.in: Regenerated.
2507 * configure.tgt: Add openrisc-*-* mapping.
2509 2001-05-02 Nick Clifton <nickc@redhat.com>
2511 * emultempl/aix.em: Replace buystring with xstrdup.
2512 * emultempl/beos.em: Replace buystring with xstrdup.
2514 2001-05-02 H.J. Lu <hjl@gnu.org>
2516 * ldfile.c: Include "libiberty.h".
2517 * ldlex.l: Likewise.
2519 * ldmisc.c (buystring): Removed.
2520 * ldmisc.h: Likewise.
2522 * ldfile.c: Replace buystring with xstrdup.
2523 * ldlang.c: Likewise.
2524 * ldlex.l: Likewise.
2525 * ldmain.c: Likewise.
2526 * ldmisc.c: Likewise.
2527 * lexsup.c: Likewise.
2528 * mpw-eppcmac.c: Likewise.
2530 2001-04-30 Andreas Jaeger <aj@suse.de>
2532 * emulparms/elf_x86_64.sh (MAXPAGESIZE): Fix value.
2534 2001-04-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
2536 * ldlang.c (load_symbols): Give emulation a chance
2537 to process unrecognized file before fatal error is
2538 reported, not after.
2540 2001-04-27 Sean McNeil <sean@mcneil.com>
2542 * configure.tgt: Add arm-vxworks target.
2543 * scripttempl/armcoff.sc: Support .text or .data as a section name
2547 2001-04-13 J.T. Conklin <jtc@redback.com>
2549 * ld.texinfo: Document --fatal-warnings.
2552 * ldmisc.c (vfinfo): Set flag to inhibit making executable if
2553 warnings have been turned into errors.
2554 * lexsup.c (OPTION_WARN_FATAL): Define.
2555 (ld_options): Entry for --fatal-warnings.
2556 (parse_args): Handle OPTION_WARN_FATAL.
2557 * ld.h (ld_config_type): Add fatal_warnings field.
2559 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2561 * ldmain.c (main): Default to discard_sec_merge.
2562 * lexsup.c (OPTION_DISCARD_NONE): Define.
2563 (ld_options): Add --discard-none.
2564 (parse_args): Handle OPTION_DISCARD_NONE.
2565 * ldlang.c (wild_doit): SEC_MERGE should be set in the output
2566 section only if SEC_MERGE and SEC_STRINGS flags and entsize of
2567 all its input sections match.
2569 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2571 * Makefile.am (ALL_EMULATIONS): Add eelf32ltsmip.o.
2572 (ALL_64_EMULATIONS): Add eelf64btsmip.o and eelf64ltsmip.o.
2573 (eelf32ltsmip.c): New target.
2574 (eelf64btsmip.c): Likewise.
2575 (eelf64ltsmip.c): Likewise.
2576 * Makefile.in: Regenerated.
2578 * configure.tgt (mips*el-*-linux-gnu): Uses traditional MIPS
2580 (mips*-*-linux-gnu*): Likewise.
2582 * emulparams/elf32ltsmip.sh: New. Traditional little endian
2584 * emulparams/elf64btsmip.sh: New. Traditional 64bit big endian
2586 * emulparams/elf64ltsmip.sh: New. Traditional 64bit little
2589 2001-04-05 Hans-Peter Nilsson <hp@axis.com>
2591 * emulparams/criself.sh (EXECUTABLE_SYMBOLS): Cannot provide
2592 correct value of __Stext here.
2593 (TEXT_START_SYMBOLS): Define; always define __Stext, to start of
2596 * emulparams/crislinux.sh: Remove FIXME.
2598 2001-04-02 Alan Modra <alan@linuxcare.com.au>
2600 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 64k.
2601 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Likewise.
2603 2001-03-27 Hans-Peter Nilsson <hp@axis.com>
2605 * configure.tgt (cris-*-*): Change default emulation to criself.
2606 (cris-*-*aout*): New rule.
2608 2001-03-27 Matthew Wilcox <willy@ldl.fc.hp.com>
2610 * emulparams/hppalinux.sh (MAXPAGESIZE): Set to 0x4000.
2611 (TEXT_START_ADDR, TARGET_PAGE_SIZE): Ditto.
2613 2001-03-26 Andreas Jaeger <aj@suse.de>
2615 * ld.texinfo (Overview): Fix syntax in texi code.
2617 2001-03-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>
2619 * ld.texinfo: Put @c man indications to generate the ld man page.
2620 When generating man, define all the variables. Define SEEALSO
2621 and SYNOPSIS. Re-organize some lines to avoid the cross references.
2622 * Makefile.am (MANCONF, TEXI2POD, POD2MAN): New variables.
2623 (ld.1): Generate from ld.texinfo.
2624 * Makefile.in: Regenerate.
2626 2001-03-23 Mark Elbrecht <snowball3@bigfoot.com>
2628 * scripttempl/i386go32.sc: Support the GCC flags '-ffunction-sections'
2629 and '-fdata-sections'. Set the VMA of STABS sections to zero.
2631 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2633 * emultmpl/elf32.em (gld${EMULATION_NAME}_search_needed): If NAME
2634 is an absolute path look only for this file and not along the path.
2636 2001-03-17 Ulrich Drepper <drepper@redhat.com>
2638 * emultempl/elf32.em (OPTION_GROUP): New macro.
2639 Add new option Bgroup to longopts.
2640 (gld*_parse_args): Handle GROUP_OPTION and recognize -z defs.
2641 (gld*_list_options): Add -Bgroup and -z defs.
2642 * ld.1: Document -Bgroup and -z defs.
2643 * ld.texinfo: Likewise.
2645 2001-03-07 Michael Meissner <meissner@redhat.com>
2647 * scripttempl/elfd10v.sc (.rodata,.rodata1,.data1,.sdata): Deal
2648 with sections created by -fdata-sections.
2649 (.dynbss,.bss): Ditto.
2651 2001-03-05 Alan Modra <alan@linuxcare.com.au>
2653 * emultempl/m68kelf.em (m68k_elf_after_allocation): Call
2654 after_allocation_default, not gld..._before_allocation.
2656 2001-02-27 Alan Modra <alan@linuxcare.com.au>
2658 * configure.in (BFD_VERSION): New.
2659 (AM_INIT_AUTOMAKE): Use $BFD_VERSION.
2660 * configure: Regenerate.
2661 * Makefile.am: Run "make dep-am"
2662 * Makefile.in: Regenerate.
2664 2001-02-26 Timothy Wall <twall@cygnus.com>
2666 * emulparams/elf64_aix.sh: Add additional read-only sections;
2667 uncomment lines which are now required.
2669 2001-02-26 H.J. Lu <hjl@gnu.org>
2671 * ldlang.c (open_input_bfds): Set the bfd error handler so
2672 that problems can be caught whilst loading symbols.
2673 (record_bfd_errors): New function: Report BFD errors and mark
2674 the executable output as being invalid.
2676 2001-02-22 Timothy Wall <twall@cygnus.com>
2678 * configure.host: Add configuration for ia64-*-aix*.
2679 * Makefile.am (ALL_64_EMULATIONS): Add emulation for ia64-*-aix*.
2680 Add dependencies for eelf64_aix.c.
2681 * Makefile.in: Regenerate.
2682 * configure.tgt: Add ia64-*-aix* mapping.
2683 * emulparams/elf64_aix.sh: Add settings for elf64 on aix5.
2684 * testsuite/ld-bootstrap/bootstrap.exp: Exclude ia64 flavor from
2687 2001-02-20 H.J. Lu <hjl@gnu.org>
2689 * ldfile.c (ldfile_open_file): Set entry->search_dirs_flag to
2690 false if we found the file.
2692 2001-02-18 David O'Brien <obrien@FreeBSD.org>
2694 * configure.tgt: Add FreeBSD/Alpha, FreeBSD/x86-64, FreeBSD/ia64,
2695 FreeBSD/PowerPC, FreeBSD/arm, and FreeBSD/sparc64 entries.
2697 2001-02-18 lars brinkhoff <lars@nocrew.org>
2699 * Makefile.am: Add PDP-11 target.
2700 * configure.tgt: Likewise.
2701 * emulparams/pdp11.sh: New file.
2703 2001-02-17 David O'Brien <obrien@FreeBSD.org>
2705 * configure.host: Add a generic FreeBSD configuration entry such that
2706 all [modern] FreeBSD systems on all platforms will look the same.
2708 2001-02-14 H.J. Lu <hjl@gnu.org>
2710 * configure.tgt: Remove mention of earmelf_linux26.
2712 2001-02-13 Richard Henderson <rth@redhat.com>
2714 * emulparams/elf64_ia64.sh (OTHER_GOT_SYMBOLS): Remove.
2716 2001-02-13 H.J. Lu <hjl@gnu.org>
2718 * ldexp.h (node_type): Add etree_provided.
2719 * ldexp.c (exp_fold_tree): Handle etree_provided. Set the node
2720 type to etree_provided if defined by PROVIDE. Allow updating
2722 (exp_print_tree): Handle etree_provided.
2723 * mpw-elfmips.c (gldelf32ebmip_find_exp_assignment): Handle
2726 2001-02-09 David Mosberger <davidm@hpl.hp.com>
2728 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add
2729 .IA_64.unwind.* pattern to unwind table section and
2730 .IA_64.unwind_info* pattern to unwind info section.
2732 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
2734 * Makefile.am: Add linux target for S/390.
2735 * Makefile.in: Likewise.
2736 * configure.host: Likewise.
2737 * configure.tgt: Likewise.
2738 * emulparams/elf64_s390.sh: New file.
2739 * emulparams/elf_s390.sh: New file.
2741 2001-02-09 Jakub Jelinek <jakub@redhat.com>
2743 * configure.tgt (sparc64-*-linux-gnu*): Add elf32_sparc into
2745 (sparc-*-linux-gnu*): Add elf64_sparc into targ_extra_libpath.
2747 2001-02-06 Philip Blundell <philb@gnu.org>
2749 * Makefile.am: Remove mention of earmelf_linux26.
2750 * Makefile.in: Regenerate.
2752 2001-02-04 Philip Blundell <philb@gnu.org>
2754 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Set to 0x8000.
2755 * emulparams/armelf_linux26.sh: Delete.
2756 * configure.tgt: Remove mention of armelf_linux26 emulation.
2758 2001-02-01 Nick Clifton <nickc@redhat.com>
2760 * ld.1: Replace occurances of -oformat with --oformat.
2762 2001-01-25 Jim Driftmyer <jdrift@stny.rr.com>
2764 * ldlang.c (lang_leave_overlay): Don't set lma_region when
2765 load_base is specified.
2767 2001-01-24 Hans-Peter Nilsson <hp@axis.com>
2769 * emultempl/elf32.em: Correct spelling in comments and listed
2772 2001-01-23 Alan Modra <alan@linuxcare.com.au>
2774 * ldlang.c (lang_leave_overlay): Only set lma_region from the
2775 default for the first section of a group of overlay sections.
2777 2001-01-22 Alan Modra <alan@linuxcare.com.au>
2779 * Makefile.am (GENSCRIPTS): Pass exec_prefix.
2780 * Makefile.in: Regenerate.
2781 * genscripts.sh: Use exec_prefix parameter to specify tool lib.
2782 Check for null tool_dir.
2784 2001-01-16 Jim Wilson <wilson@redhat.com>
2786 * emulparams/elf64_ia64.sh (OTHER_READONLY_SECTIONS): Add IA_64.unwind
2787 and IA_64.unwind.info.
2789 2001-01-16 H.J. Lu <hjl@gnu.org>
2791 * ldlang.c (lang_check): Merge the private data only if the
2792 input file has contents.
2794 2001-01-14 Alan Modra <alan@linuxcare.com.au>
2796 * emulparams/hppalinux.sh (OUTPUT_FORMAT): Set to elf32-hppa-linux.
2798 * emultempl/hppaelf.em (hppaelf_after_parse): New function,
2799 enabling search for libmilli. On a relocatable link, make .text
2801 (LDEMUL_AFTER_PARSE): Define.
2802 (hppaelf_finish): Correct spelling of relocatable in comments.
2804 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
2805 rummage through the script for sections on the unique list.
2806 Correct length of strncmp for ".note".
2807 (gld${EMULATION_NAME}_check_needed): Rearrange function.
2809 * ldlang.c (unique_section_list): New var.
2810 (unique_section_p): New function.
2811 (walk_wild_section): Don't match sections on unique_section_list.
2812 (lang_add_unique): New function.
2813 Correct spelling of relocatable in comments.
2815 * ldlang.h (struct unique_sections): Declare.
2816 (unique_section_list): Declare.
2817 (unique_section_p): Declare.
2818 (lang_add_unique): Declare.
2820 * lexsup.c (ld_options): Allow --unique to take an optional arg.
2821 (parse_args [OPTION_UNIQUE]): Call lang_add_unique.
2823 * ld.texinfo (--unique): Update.
2825 2001-01-13 Nick Clifton <nickc@redhat.com>
2827 * lexsup.c (parse_args): Remove spurious white space.
2829 2001-01-12 Nick Clifton <nickc@redhat.com>
2831 * lexsup.c (parse_args): Update copyright date.
2833 2001-01-12 Philip Blundell <pb@futuretv.com>
2835 * configure.host: Set HOSTING_LIBS appropriately for ix86-cygwin.
2837 2001-01-10 Kazu Hirata <kazu@hxi.com>
2839 * scripttempl/h8300.sc: Fix formatting. Fix a comment typo.
2840 * scripttempl/h8300h.sc: Fix formatting.
2841 * scripttempl/h8300s.sc: Likewise.
2842 * scripttempl/h8500.sc: Likewise.
2843 * scripttempl/h8500b.sc: Likewise.
2844 * scripttempl/h8500c.sc: Likewise.
2845 * scripttempl/h8500m.sc: Likewise.
2846 * scripttempl/h8500s.sc: Likewise.
2848 2000-01-07 David O'Brien <obrien@BSDi.com>
2850 * emultempl/elf32.em: Only perform Linux ld hints processing when
2853 2001-01-07 Philip Blundell <philb@gnu.org>
2855 * ld.texinfo (Bug Reporting): Update email address for reports.
2857 2000-12-31 Nick Clifton <nickc@redhat.com>
2859 * lexsup.c (parse_args): Set opterr to 0 and detect unparsed long
2860 options by checking for a return value of '?' not -1.
2862 2000-12-28 Nick Clifton <nickc@redhat.com>
2864 * lexsup.c (struct ld_option): Add new enum value:
2866 (ld_options[]): Change -omagic, -output and -oformat options
2867 to be EXACTLY_TWO_DASHES.
2868 (OUTPUT_COUNT): Use ARRAY_SIZE.
2869 (parse_args): Change parameter 'argc' to unsigned.
2870 Place EXACTLY_TWO_DASHES options into new really_longopts
2872 If getopt_long_only fails, try calling getopt_long using the
2873 really_longopts array.
2874 (help): Print a double dash for both EXACTLY_TWO_DASHES and
2877 * ldlex.h: Fix prototype of parse_args.
2879 * ld.texinfo: Document that long options starting with 'o'
2880 must be preceeded by two dashes. Change example of a single
2881 dashed long option from -oformat to -trace-symbol.
2883 2000-12-26 Danny Smith <danny_r_smith_2001@yahoo.co.nz>
2885 * emultempl/pe.em (OPTION_NO_DEFAULT_EXCLUDES): Define.
2886 (longopts[]): New --no-default-excludes option.
2887 (gld_${EMULATION_NAME}_list_options): Document.
2888 (gld_${EMULATION_NAME}_parse_args): Handle.
2890 2000-12-13 Michael Sokolov <msokolov@ivan.Harhan.ORG>
2892 * ldlang.c (new_stat): Revert the last beautification with "innocent"
2893 whitespace, it breaks the K&R C preprocessor.
2895 2000-12-11 DJ Delorie <dj@redhat.com>
2897 * ld.texinfo: Add notes about --whole-archive and gcc.
2899 2000-11-18 Fred Fish <fnf@be.com>
2901 * lexsup.c (OPTION_ALLOW_SHLIB_UNDEFINED): Define.
2902 (ld_options): Entry for --allow-shlib-undefined.
2903 (parse_args): Handle OPTION_ALLOW_SHLIB_UNDEFINED.
2904 * ldmain.c (main): Initialize link_info.allow_shlib_undefined
2906 * ld.texinfo: Document new command line switch.
2908 2000-12-12 Geoffrey Keating <geoffk@redhat.com>
2910 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS):
2911 .fixup is actually read/write.
2912 * emulparams/elf32lppc.sh (OTHER_READWRITE_SECTIONS): Likewise.
2913 * emulparams/elf32ppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2914 * emulparams/elf32lppcsim.sh (OTHER_READWRITE_SECTIONS): Likewise.
2916 2000-12-11 Jan Hubicka <jh@suse.cz>
2918 * NEWS: Add note about x86_64 architecture.
2920 2000-12-06 Mark Elbrecht <snowball3@bigfoot.com>
2922 * scripttempl/i386go32.sc: Use PROVIDE with _etext, _edata, _end.
2923 Set DWARF2 sections to a VMA of zero.
2925 2000-12-01 Joel Sherrill <joel@OARcorp.com>
2927 * configure.tgt (arm-*-rtems*, a29k-*rtems*, h8300-*-rtems*):
2929 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
2930 (sparc*-*-rtems*): Switched from a.out to ELF.
2932 2000-11-30 Jan Hubicka <jh@suse.cz>
2934 * Makefile.am (ALL_EMULATIONS): Add eelf_x86_64.o
2935 (eelf_x86_64.c): New.
2936 * Makefile.in: Regenerate.
2937 * configure.tgt: Add support for x86_64-*-linux-gnu*.
2938 * emulparams/elf_x86_64.sh: New.
2940 2000-11-30 Hans-Peter Nilsson <hp@axis.com>
2942 * emulparams/crislinux.sh (ENTRY): Change back to _start.
2943 (TEXT_START_SYMBOLS): Remove conditional setting of __start.
2945 * scripttempl/crisaout.sc: Change all RELOCATING not related to
2946 merging non-a.out sections into CONSTRUCTING.
2948 2000-11-28 Nick Clifton <nickc@redhat.com>
2950 * ld.1 (COPYING): Mention that the GNU Free Documentation
2951 License is present in the sources, but not the output, and
2952 also available from the GNU website.
2953 (GNU Free Documentation License): Comment out this section.
2955 2000-11-28 David O'Brien <obrien@dragon.nuxi.com>
2957 * emulparams/elf64alpha.sh (ENTRY): Remove leading underscore as ELF
2960 2000-11-25 David O'Brien <obrien@FreeBSD.org>
2962 * ld.1: Remove old date so it does not give the impression the manpage
2965 2000-11-24 Nick Clifton <nickc@redhat.com>
2967 * configure.tgt (xscale-coff): Add target.
2968 (xscale-elf): Add target.
2970 2000-11-24 Fred Fish <fnf@be.com>
2972 * ldmain.c (main): Remove redundant init of config.make_executable
2975 2000-11-15 Richard Henderson <rth@redhat.com>
2977 * emulparams/elf64alpha.sh (MAXPAGESIZE): Typo -- 64k, not 1M.
2979 2000-11-14 Kazu Hirata <kazu@hxi.com>
2981 * scripttempl/h8300.sc: Fix formatting.
2982 * scripttempl/h8300h.sc: Likewise.
2983 * scripttempl/h8300s.sc: Likewise.
2985 2000-11-14 Denis Chertykov <denisc@overta.ru>
2987 * scripttempl/elf32avr.sc: Fix bug in .eeprom segment.
2989 2000-11-09 Philip Blundell <pb@futuretv.com>
2991 * emultempl/pe.em: Define ___start_SECNAME and ___stop_SECNAME
2992 around orphan sections whose names can be represented in C.
2994 2000-11-07 Jim Wilson <wilson@redhat.com>
2996 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): New local
2997 hold_sdata. If SEC_SMALL_DATA set, set place to hold_sdata.
2999 2000-11-06 Nick Clifton <nickc@redhat.com>
3001 * ld.texinfo: Add GNU Free Documentation License.
3002 * ldint.texinfo: Add GNU Free Documentation License.
3003 * ld.1: Add GNU Free Documentation License.
3005 2000-11-05 Alan Modra <alan@linuxcare.com.au>
3007 * ldlex.l (yy_create_string_buffer): Init yy_is_our_buffer,
3008 yy_is_interactive, yy_at_bol, and yy_fill_buffer.
3010 * Makefile.am (DISTCLEANFILES): Add stringify.sed.
3011 Move 2000-11-02 Makefile.in changes to this file.
3012 * Makefile.in: Regenerate.
3014 2000-11-03 Nick Clifton <nickc@redhat.com>
3016 * scripttempl/h8300.sc: Use ${CONSTRUCTING...} to enclose
3017 constructors and destructors.
3018 * scripttempl/h8300h.sc: Ditto.
3019 * scripttempl/h8300s.sc: Ditto.
3020 * scripttempl/h8500.sc: Ditto.
3021 * scripttempl/h8500b.sc: Ditto.
3022 * scripttempl/h8500c.sc: Ditto.
3023 * scripttempl/h8500m.sc: Ditto.
3024 * scripttempl/h8500s.sc: Ditto.
3025 * scripttempl/v850.sc: Ditto.
3026 * scripttempl/w65.sc: Ditto.
3027 * scripttempl/z8000.sc: Ditto.
3029 2000-11-02 Per Lundberg <plundis@chaosdev.org>
3031 * Makefile.in (e_i386_chaos.c): New rule.
3032 (ALL_EMULATIONS): Added e_i386_chaos.o.
3033 * emulparams/elf_i386_chaos.sh: New file.
3034 * configure.tgt: Recognise i[3456]86-chaosdev-storm-chaos.
3036 2000-10-20 Jakub Jelinek <jakub@redhat.com>
3038 * emulparams/elf64_sparc.sh (TEXT_START_ADDR,
3039 NONPAGED_TEXT_START_ADDR): Set to 4GB for Solaris targets.
3040 Fix sed invocation, so that it coped with '/' in Solaris 64bit
3041 library path suffix.
3042 Based on patch by Andrew Macleod <amacleod@cygnus.com>.
3044 2000-10-18 Hans-Peter Nilsson <hp@axis.com>
3046 * scripttempl/crisaout.sc (.text, .data): Pad, with ALIGN (32),
3047 for consecutive sections.
3049 2000-10-17 Chandrakala Chavva <cchavva@redhat.com>
3051 * lexsup.c: New option OPTION_TARGET_HELP. Prints all target specific
3053 * ld.texinfo: Added notes about this new option.
3055 2000-10-16 Nick Clifton <nickc@redhat.com>
3057 * emultempl/pe.em (_after_open): Add tests of return values from
3058 bfd functions. Emit appropriate error messages if necessary.
3060 2000-10-13 Nick Clifton <nickc@redhat.com>
3062 * emultempl/pe.em (_after_open): Delete 'is2' and 'nsyms'
3063 local variables - they are not used, but leave in the call to
3064 bfd_canonicalize_symtab.
3065 (_open_dynamic_archive): Add #ifdef DLL_SUPPORT around use of
3066 pe_dll_search_prefix.
3068 2000-10-12 Charles Wilson <cwilson@ece.gatech.edu>
3070 * emultempl/pe.em (pe_dll_search_prefix): New variable,
3071 (longopts): New --dll-search-prefix option.
3072 (gld_${EMULATION_NAME}_list_options): Document.
3073 (gld_${EMULATION_NAME}_parse_args): Handle.
3074 (gld_${EMULATION_NAME}_open_dynamic_archive): When linking
3075 dynamically, search for a dll named '<prefix><basename>.dll'
3076 in preference to 'lib<basename>.dll' if --dll-search-prefix
3079 2000-10-12 Alan Modra <alan@linuxcare.com.au>
3081 * ldlang.c (section_already_linked): Set kept_section instead of
3084 2000-10-10 Kazu Hirata <kazu@hxi.com>
3086 * deffile.h: Fix formatting.
3087 * lexsup.c: Likewise.
3090 2000-10-09 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3092 * pe-dll.c (make_one): Do not generate code thunk for DATA
3094 (process_def_file): deduce DATA flag for auto-export sumbols.
3096 2000-10-09 Kazu Hirata <kazu@hxi.com>
3098 * ld.h: Fix formatting.
3099 * ldcref.c: Likewise.
3100 * ldctor.h: Likewise.
3101 * ldemul.c: Likewise.
3102 * ldemul.h: Likewise.
3103 * ldexp.c: Likewise.
3104 * ldexp.h: Likewise.
3105 * ldfile.c: Likewise.
3106 * ldfile.h: Likewise.
3107 * ldlang.c: Likewise.
3108 * ldlang.h: Likewise.
3109 * ldmain.c: Likewise.
3110 * pe-dll.c: Likewise.
3112 * pe-dll.c: Revert some formatting fixes.
3114 2000-10-08 Kazu Hirata <kazu@hxi.com>
3116 * pe-dll.c: Fix formatting.
3118 2000-10-05 Kazu Hirata <kazu@hxi.com>
3120 * ldlang.c: Fix formatting.
3122 2000-10-03 DJ Delorie <dj@redhat.com>
3124 * pe-dll.c (fill_edata): initialize entire block
3125 (make_one): fill in correct section.
3127 2000-10-03 Kazu Hirata <kazu@hxi.com>
3129 * ldexp.c: Fix formatting.
3131 2000-10-02 DJ Delorie <dj@redhat.com>
3133 * emultempl/pe.em (gld_*_after_open): detect case where there two
3134 import libraries for same dll; rename one to ensure proper link
3137 * pe-dll.c (process_def_file): compare ordinals to -1, not 0; fix
3139 (generate_edata): fix typo
3141 2000-09-29 Hans-Peter Nilsson <hp@axis.com>
3143 * scripttempl/crisaout.sc (ENTRY): Now __start.
3144 (.text): Add default setting for __start.
3145 Remove CONSTRUCTORS handling.
3146 (/DISCARD/): Add .gnu.warning.*.
3147 * emulparams/crislinux.sh (ENTRY): Now __start.
3148 (TEXT_START_SYMBOLS): New; provide __Stext and __start default.
3149 * emulparams/criself.sh (OUTPUT_FORMAT): Now elf32-us-cris.
3150 (ENTRY): Now __start.
3151 (INITIAL_READONLY_SECTIONS): Add KEEP for .startup.
3152 (EXECUTABLE_SYMBOLS): Add default setting for __start.
3154 2000-09-29 Kazu Hirata <kazu@hxi.com>
3156 * deffile.h: Fix formatting.
3158 * ldcref.c: Likewise.
3159 * ldctor.c: Likewise.
3160 * ldctor.h: Likewise.
3161 * ldemul.c: Likewise.
3162 * ldemul.h: Likewise.
3163 * ldexp.c: Likewise.
3164 * ldexp.h: Likewise.
3165 * ldfile.c: Likewise.
3166 * ldfile.h: Likewise.
3167 * ldlang.c: Likewise.
3168 * ldlang.h: Likewise.
3169 * lexsup.c: Likewise.
3171 * pe-dll.c: Likewise.
3173 2000-09-28 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
3175 * pe-dll.c (process_def_file): Uninitialized data wasn't
3176 exported with --export-all-symbols switch.
3178 2000-09-28 DJ Delorie <dj@redhat.com>
3180 * pe-dll.c (fill_edata): rearrange the data so that ordinals and
3181 noname work properly.
3183 2000-09-28 Alan Modra <alan@linuxcare.com.au>
3185 * ld.texinfo (HPPA ELF32): New section.
3187 * emultempl/hppaelf.em (group_size): New.
3188 (hppaelf_finish): Pass group_size to elf32_hppa_size_stubs.
3189 (PARSE_AND_LIST_PROLOGUE): Add OPTION_STUBGROUP_SIZE.
3190 (PARSE_AND_LIST_LONGOPTS): Add --stub-group-size. Duplicate
3191 options to prevent abbreviations matching.
3192 (PARSE_AND_LIST_OPTIONS): Describe the above. Reformat.
3193 (PARSE_AND_LIST_ARGS_CASES): Handle it.
3195 2000-09-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3197 * emultempl/m68kelf.em: Conditionalise the embedded relocs feature
3198 on the m68*-*-elf target. Make it support COFF input objects.
3200 2000-09-21 Kazu Hirata <kazu@hxi.com>
3202 * ldmain.c: Fix formatting.
3203 * ldmisc.c: Likewise.
3204 * ldver.c: Likewise.
3205 * ldwrite.c: Likewise.
3207 2000-09-21 Alan Modra <alan@linuxcare.com.au>
3209 * ldwrite.c (clone_section): Silence gcc warnings.
3211 2000-09-20 Alan Modra <alan@linuxcare.com.au>
3213 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Handle
3214 out of memory failure.
3216 * ldwrite.c (ldwrite): Remove unnecessary einfo arg.
3217 (clone_section): Handle out of memory failures. Rename var to
3218 avoid c++ reserved word.
3220 2000-09-18 Alan Modra <alan@linuxcare.com.au>
3222 * emultempl/hppaelf.em (hppaelf_add_stub_section): Rename
3223 stub_name param to stub_sec_name.
3224 (hppaelf_finish): Modify call to elf32_hppa_size_stubs.
3226 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3228 * emultempl/m68kelf.em: New file.
3229 * emulparams/m68kelf.sh (EXTRA_EM_FILE): Use it.
3230 * Makefile.am (em68kelf.c): Add dependency on m68kelf.em.
3231 * Makefile.in: Regenerate.
3233 2000-09-15 Alan Modra <alan@linuxcare.com.au>
3235 * emulparams/hppalinux.sh (DATA_START_SYMBOLS): Provide $global$
3238 2000-09-13 Nick Clifton <nickc@redhat.com>
3240 * ldmain.c (multiple_definition): Disable relaxation if
3241 multiple symbol definitions are encountered - otherwise the
3242 linker could abort with an assertion failure.
3244 2000-09-10 Nick Clifton <nickc@redhat.com>
3246 * mri.c: Fix formatting.
3248 2000-09-07 H.J. Lu <hjl@gnu.org>
3250 * configure.in (AC_ISC_POSIX): Put after AC_CANONICAL_SYSTEM.
3251 * configure: Rebuild.
3253 2000-09-07 H.J. Lu <hjl@gnu.org>
3255 * Makefile.am (lexsup.o): Also depend on $(INCDIR)/demangle.h.
3256 * Makefile.in: Rebuild.
3258 2000-09-07 Alan Modra <alan@linuxcare.com.au>
3260 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Fix
3261 broken list handling. Create __start_SECNAME and __stop_SECNAME
3262 when no place-holder. Add some comments. Test both SEC_CODE and
3263 SEC_READONLY for hold_text to prevent .rodata orphan poisoning.
3264 Handle case where no output section statement created.
3266 2000-09-07 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
3268 * configure.tgt (sh-*-linux*): Added.
3269 * Makefile.am: Added eshelf_linux and eshlelf_linux.
3270 * Makefile.in: Rebuilt.
3271 * emulparams/shelf_linux.sh: New file.
3272 * emulparams/shlelf_linux.sh: New file.
3274 2000-09-06 Alan Modra <alan@linuxcare.com.au>
3276 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3277 try shuffling sections when the orphan happens to be the place
3278 holder. Keep count of unique section names generated so we speed
3279 the search for a new name.
3281 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
3283 * configure: Rebuilt with new libtool.m4.
3285 2000-09-05 Nick Clifton <nickc@redhat.com>
3287 * Makefile.in: Regenerate.
3288 * aclocal.m4: Regenerate.
3289 * configure: Regenerate.
3290 * config.in: Regenerate.
3291 * po/ld.pot: Regenerate.
3293 * ldint.texinfo: Remove CVS revision marker - it foils local
3296 * emultempl/ticoff.em: Remove extraneous comma.
3298 2000-09-05 Alan Modra <alan@linuxcare.com.au>
3300 * emultempl/hppaelf.em (hppaelf_add_stub_section): Add SEC_RELOC
3301 to stub section flags.
3302 (hppa_for_each_input_file_wrapper): New.
3303 (hppa_lang_for_each_input_file): New.
3304 (lang_for_each_input_file): Define to call above.
3305 (multi_subspace): New.
3306 (hppaelf_finish): Pass multi_subspace to elf32_hppa_size_stubs.
3307 (PARSE_AND_LIST_PROLOGUE): Define.
3308 (PARSE_AND_LIST_LONGOPTS): Define.
3309 (PARSE_AND_LIST_OPTIONS): Define.
3310 (PARSE_AND_LIST_ARGS_CASES): Define.
3311 (hppaelf_finish): Call elf32_hppa_set_gp.
3312 (hppaelf_set_output_arch): Remove.
3313 (LDEMUL_SET_OUTPUT_ARCH): Remove.
3315 * emulparams/hppalinux.sh (ELFSIZE): Define.
3317 (OTHER_READONLY_SECTIONS): Define.
3319 (GENERATE_SHLIB_SCRIPT): Define.
3321 * ldlang.c: Add missing prototypes, and tidy others. Change CONST
3322 to const throughout. Change `void *' to `PTR' throughout.
3323 (lang_memory_default): Function is local to file, add `static'.
3325 * Makefile.am (ehppaelf.c): Depend on emultempl/elf32.em.
3326 (ehppalinux.c): Likewise.
3327 (earmelf.c): Likewise.
3328 (earmelf_linux.c): Likewise.
3329 (earmelf_linux26.c): Likewise.
3330 * Makefile.in: Regenerate.
3332 * ld.h (ld_config_type): Add unique_orphan_sections.
3333 * lexsup.c (OPTION_UNIQUE): Define.
3334 (ld_options): Add "--unique".
3335 (parse_args): Handle it.
3336 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Don't
3337 search for an existing output section if unique_orphan_sections is
3338 set. Make use of bfd_get_unique_section_name rather than
3339 duplicating code here.
3340 * ld.texinfo: Describe --unique.
3342 * lexsup.c (ld_options): Make split-by-reloc arg optional. Add
3343 optional arg to split-by-file.
3344 (parse_args): Handle them.
3345 * ld.texinfo: Update description of these options.
3346 * ldwrite.c (clone_section): Pass in the section name. Replace
3347 local code with bfd_get_unique_section_name.
3348 (split_sections): Tidy code and comments. Use a list traversal
3349 more appropriate to the list construction. Handle cooked section
3350 sizes. Split when split_by_reloc reached rather than exceeded.
3351 Track section size and split when split_by_file reached. Fix
3352 link_order_tail (even though it's not used).
3353 (ldwrite): Modify condition for calling split_sections to suit
3354 changed split_by_reloc and split_by_file.
3355 * ldmain.c (main): Init config.split_by_reloc and
3356 config.split_by_file to -1.
3357 * ld.h (ld_config_type): Change split_by_reloc to unsigned.
3358 Change split_by_file to bfd_size_type.
3360 2000-09-02 Nick Clifton <nickc@redhat.com>
3362 * configure.in: Increase version number to 2.10.91.
3363 * NEWS: Mention new ability to support removal of duplicate DWARF2
3365 * configure: Regenerate.
3366 * aclocal.m4: Regenerate.
3367 * config.in: Regenerate.
3369 2000-09-02 Daniel Berlin <dberlin@redhat.com>
3371 * scripttempl/elf.sc: Add .gnu.linkonce.wi.* to .debug_info
3373 * scripttempl/elf32avr.sc: Ditto.
3374 * scripttempl/elfd10v.sc: Ditto.
3375 * scripttempl/elfd30v.sc: Ditto.
3376 * scripttempl/elfi370.sc: Ditto.
3377 * scripttempl/elfm68hc11.sc: Ditto.
3378 * scripttempl/elfm68hc12.sc: Ditto.
3379 * scripttempl/elfi386beos.sc: Ditto.
3380 * scripttempl/v850.sc: Ditto.
3382 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
3384 * acinclude.m4: Include libtool and gettext macros from the
3386 * aclocal.m4, configure: Rebuilt.
3388 2000-08-25 Nick Clifton <nickc@redhat.com>
3390 * ldlang.c (open_output): When choosing the target for a
3391 particular endianness, do nothing if the target is not
3394 2000-08-25 H.J. Lu <hjl@gnu.org>
3396 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Don't
3397 check -rpath nor LD_RUN_PATH for cross link.
3398 * ld.texinfo: Document the change.
3400 2000-08-24 Hans-Peter Nilsson <hp@axis.com>
3402 * NEWS: Mention support for CRIS.
3404 2000-08-23 H.J. Lu <hjl@gnu.org>
3406 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Get
3407 the current runpath list from bfd_elf_get_runpath_list ()
3410 2000-08-22 H.J. Lu <hjl@gnu.org>
3412 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Search
3413 the DT_RPATH/DT_RUNPATH entries for DT_NEEDED after
3414 LD_LIBRARY_PATH for native linker. Display the needed DSO if
3415 trace_file_tries is non-zero.
3416 (gld${EMULATION_NAME}_try_needed): Report the needed DSO found
3417 if trace_file_tries is non-zero.
3419 * ld.texinfo: Document the usage of DT_RPATH/DT_RUNPATH.
3422 2000-08-14 Jason Eckhardt <jle@cygnus.com>
3424 * NEWS: Mention i860 support.
3426 2000-08-14 Andreas Schwab <schwab@suse.de>
3428 * scripttempl/elf.sc: Fix last change to use correct comment
3431 2000-08-10 Geoff Keating <geoffk@cygnus.com>
3433 * scripttempl/elf.sc: Add a comment giving the correspondence
3434 between sections, per-datum sections, and linkonce sections. Make
3435 the comment true even for .bss, .sdata, .sdata2, .sbss, and
3438 2000-08-10 Jason Eckhardt <jle@cygnus.com>
3440 * emulparams/elf32_i860.sh: New file.
3441 * configure.tgt: Recognize new target i860-stardent-{sysv4*|elf*}.
3442 * Makefile.am (ALL_EMULATIONS): Add eelf32_i860.o.
3443 (eelf32_i860.c): New rule.
3444 * Makefile.in: Regenerate.
3446 2000-08-10 Nick Clifton <nickc@cygnus.com>
3448 * emulparams/mipspe.sh (ENTRY): Add definition.
3450 2000-08-08 Peter Jeremy <peter.jeremy@alcatel.com.au>
3452 * emultempl/elf32.em (_after_close): Refer to -rpath not --rpath
3455 2000-08-08 Stephane Carrez <Stephane.Carrez@worldnet.fr>
3457 * scripttempl/elfm68hc11.sc: Define __bss_size symbol to indicate
3458 the final size of .bss section.
3459 * scripttempl/elfm68hc12.sc: Likewise.
3461 2000-08-04 Alan Modra <alan@linuxcare.com.au>
3463 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Rename to
3464 gld${EMULATION_NAME}_parse_args for consistency. Combine
3465 lastoptind and prevoptind vars, and keep track of last optind.
3466 (gld_${EMULATION_NAME}_list_options): Rename to
3467 gld${EMULATION_NAME}_list_options.
3469 2000-08-03 Rodney Brown <RodneyBrown@pmsc.com>
3471 * configure.tgt: Select targ_emul=elf_i386 for Unixware 7
3472 (i586-sco-sysv5uw7.1.0).
3474 2000-07-27 H.J. Lu <hjl@gnu.org>
3476 * emulparams/elf64alpha.sh (PARSE_AND_LIST_ARGS): Removed.
3477 (PARSE_AND_LIST_PROLOGUE): New.
3478 (PARSE_AND_LIST_LONGOPTS): Likewise.
3479 (PARSE_AND_LIST_OPTIONS): Likewise.
3480 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3481 (PARSE_AND_LIST_EPILOGUE): Likewise.
3483 2000-07-28 Alan Modra <alan@linuxcare.com.au>
3485 * emultempl/armelf.em: Elide functions common to elf32.em,
3486 ie. most of the file.
3487 (arm_elf_after_open): New. Do arm specific things then call
3488 gld${EMULATION_NAME}_after_open.
3489 (arm_elf_before_allocation): New. Call
3490 gld${EMULATION_NAME}_before_allocation then do arm specifics.
3491 (PARSE_AND_LIST_PROLOGUE): Define.
3492 (PARSE_AND_LIST_SHORTOPTS): Define.
3493 (PARSE_AND_LIST_LONGOPTS): Define.
3494 (PARSE_AND_LIST_OPTIONS): Define.
3495 (PARSE_AND_LIST_ARGS_CASES): Define.
3496 (LDEMUL_AFTER_OPEN): Define.
3497 (LDEMUL_BEFORE_ALLOCATION): Define.
3498 (LDEMUL_BEFORE_PARSE): Define.
3499 (LDEMUL_FINISH): Define.
3501 * emultempl/hppaelf.em: Similarly zap most of this file.
3502 (hppaelf_add_stub_section): Prototype.
3503 (hppaelf_layaout_sections_again): Prototype.
3504 (hook_in_stub): Prototype.
3505 (LDEMUL_SET_OUTPUT_ARCH): Define.
3506 (LDEMUL_FINISH): Define.
3507 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
3509 * emulparams/armelf.sh (TEMPLATE_NAME): Use elf32.
3510 (EXTRA_EM_FILE): New.
3511 * emulparams/armelf_linux.sh: Likewise.
3512 * emulparams/armelf_linux26.sh: Likewise.
3513 * emulparams/hppalinux.sh: Likewise.
3514 * emulparams/hppaelf.sh: Likewise.
3517 * emultempl/elf32.em: Fix formatting.
3518 (EXTRA_EM_FILE): Source it.
3519 (LDEMUL_BEFORE_PARSE, LDEMUL_SYSLIB, LDEMUL_HLL,
3520 LDEMUL_AFTER_PARSE, LDEMUL_AFTER_OPEN, LDEMUL_AFTER_ALLOCATION,
3521 LDEMUL_SET_OUTPUT_ARCH, LDEMUL_CHOOSE_TARGET,
3522 LDEMUL_BEFORE_ALLOCATION, LDEMUL_GET_SCRIPT, LDEMUL_FINISH,
3523 LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS,
3524 LDEMUL_OPEN_DYNAMIC_ARCHIVE, LDEMUL_PLACE_ORPHAN,
3525 LDEMUL_SET_SYMBOLS, LDEMUL_PARSE_ARGS, LDEMUL_UNRECOGNIZED_FILE,
3526 LDEMUL_LIST_OPTIONS, LDEMUL_RECOGNIZED_FILE,
3527 LDEMUL_FIND_POTENTIAL_LIBRARIES): New shell vars. Add code to
3528 allow functions in this file to be overridden.
3529 (PARSE_AND_LIST_SHORTOPTS): Handle it.
3531 * emultempl/m68kcoff.em: Include ldfile.h before ldemul.h.
3533 * emultempl/elf32.em: Reorganize file.
3535 2000-07-27 Ivan Kokshaysky <ink@jurassic.park.msu.ru>
3537 * emulparams/elf64alpha.sh: Implement "-taso" emulation
3538 specific option to fit 64-bit executable in the lower
3539 31-bit address range. This is done by changing start
3540 address of .interp (the very first section of executable)
3541 and then setting EF_ALPHA_32BIT elf header flag.
3543 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3545 * emultempl/m68kcoff.em: New file.
3546 * emulparams/m68kcoff.sh (TEMPLATE_NAME): Use m68kcoff template.
3547 * Makefile.am (em68kcoff.c): Depend on m68kcoff.em rather than
3549 * Makefile.in: Regenerate.
3551 2000-07-20 H.J. Lu <hjl@gnu.org>
3553 * emultempl/elf32.em (longopts): Duplicate "disable-new-dtags"
3554 and "disable-new-dtags" to stop getopt from treating -d/-e as
3555 abbreviations for these options.
3557 2000-07-20 H.J. Lu <hjl@gnu.org>
3559 * ld.texinfo: Add documentation for --disable-new-dtags and
3562 * ldmain.c (main): Initialize link_info.new_dtags to false.
3564 * emultempl/elf32.em (gld_${EMULATION_NAME}_parse_args): Add
3565 --disable-new-dtags and --enable-new-dtags.
3566 (gld_${EMULATION_NAME}_list_options): Likewise.
3568 2000-07-05 Kenneth Block <krblock@computer.org>
3570 * lexsup.c: Add optional style to demangle switch
3571 * ld.texinfo: Document optional style to demangle switch.
3573 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
3575 * Makefile.am (ALL_EMULATIONS): Add ecrisaout.o, ecriself.o,
3577 (ecrisaout.c, ecriself.c, ecrislinux.c): New rules.
3578 Regenerate dependencies.
3579 * Makefile.in: Rebuild.
3580 * configure.tgt (cris-*-*): New target.
3581 * emulparams/crisaout.sh, emulparams/criself.sh,
3582 emulparams/crislinux.sh, scripttempl/crisaout.sc: New files.
3583 * po/POTFILES.in, po/ld.pot: Regenerate.
3585 2000-07-20 H.J. Lu <hjl@gnu.org>
3587 * emultempl/elf32.em (gld_${EMULATION_NAME}_list_options):
3588 Print out ignored -z options.
3590 2000-07-19 H.J. Lu <hjl@gnu.org>
3592 * emulparams/elf32mcore.sh (PARSE_AND_LIST_ARGS): Removed.
3593 (PARSE_AND_LIST_PROLOGUE): New.
3594 (PARSE_AND_LIST_LONGOPTS): Likewise.
3595 (PARSE_AND_LIST_OPTIONS): Likewise.
3596 (PARSE_AND_LIST_ARGS_CASES): Likewise.
3598 * ldmain.c (main): Clear link_info.flags and link_info.flags_1.
3600 * lexsup.c (ld_options): Comment out 'z'.
3601 (parse_args): Likewise.
3603 * emultempl/elf32.em: Include "elf/common.h".
3604 (gld_${EMULATION_NAME}_parse_args): Defined. Handle some -z
3606 (gld_${EMULATION_NAME}_list_options): Likewise.
3608 * ld.texinfo: Add documentation for the recognized -z options.
3610 2000-07-19 H.J. Lu <hjl@gnu.org>
3612 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Call
3613 bfd_elf_set_dt_needed_soname ().
3615 2000-07-18 DJ Delorie <dj@cygnus.com>
3617 * pe-dll.c (pe_dll_id_target): check object target name also
3619 2000-07-18 Hans-Peter Nilsson <hp@axis.com>
3621 * scripttempl/elf.sc (.init): Only do ${INIT_START} and
3622 ${INIT_END} if relocating.
3623 (.fini): Likewise ${FINI_START} and ${FINI_END}.
3625 2000-07-16 Charles Wilson <cwilson@ece.gatech.edu>
3627 * emultempl/pe.em (gld_*_open_dynamic_archive): New search
3628 order for dynamic library '-lfoo' on pei386: libfoo.dll.a,
3629 foo.dll.a, libfoo.a, libfoo.dll, foo.dll. This fixes compatibility
3630 errors introduced by the old dynamic lib search order.
3632 2000-07-17 DJ Delorie <dj@cygnus.com>
3634 * pe-dll.c (process_def_file): auto-export data items also
3635 (pe_process_import_defs): also see if _imp_ form needed
3637 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
3639 * pe-dll.c (make_one): fix a typo in the __imp_ name decoration
3640 for dll import libraries
3642 2000-07-12 Mark Elbrecht <snowball3@bigfoot.com>
3644 * scripttempl/i386go32.sc: Support the g++ attribute init_priority in
3645 gcc 2.95.2 and later.
3647 2000-07-11 Kazu Hirata <kazu@hxi.com>
3649 * ldfile.c (ldfile_try_open_bfd): Output '\n' after an error
3652 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3654 * ldemul.h (struct lang_input_statement_struct): Remove forward
3656 (struct search_dirs): Likewise.
3657 * ldfile.h (struct lang_input_statement_struct): Likewise.
3658 Protect file from multiple inclusion.
3659 * ldlang.h (LANG_FOR_EACH_INPUT_STATEMENT): Move file_chain
3660 declaration from macro to file scope.
3662 * ldemul.c: ldexp.h,ldlang.h,ldfile.h,ldemul.h go in this order.
3663 * ldgram.y: Likewise here.
3664 * ldlang.c: And here.
3665 * ldmain.c: And here.
3666 * mpw-elfmips.c: And here.
3667 * mpw-eppcmac.c: And here.
3668 * emultempl/aix.em: And here.
3669 * emultempl/armcoff.em: And here.
3670 * emultempl/armelf.em: And here.
3671 * emultempl/armelf_oabi.em: And here.
3672 * emultempl/beos.em: And here.
3673 * emultempl/elf32.em: And here.
3674 * emultempl/hppaelf.em: And here.
3675 * emultempl/linux.em: And here.
3676 * emultempl/lnk960.em: And here.
3677 * emultempl/pe.em: And here.
3678 * emultempl/sunos.em: And here.
3679 * mpw-esh.c: And here. Include ldexp.h and ldlang.h too.
3680 * mpw-idtmips.c: Ditto.
3681 * emultempl/generic.em: Ditto.
3682 * emultempl/gld960.em: Ditto.
3683 * emultempl/gld960c.em: Ditto.
3684 * emultempl/mipsecoff.em: Ditto.
3685 * emultempl/ticoff.em: Ditto.
3686 * emultempl/vanilla.em: Ditto.
3688 * pe-dll.c: Include ldfile.h
3689 * ldver.c: Include ldexp.h, ldlang.h, ldfile.h
3691 * mpw-elfmips.c: (gldelf32ebmip_before_allocation): Add missing
3692 arguments to bfd_elf32_size_dynamic_sections call.
3693 (gldelf32ebmip_place_orphan): Add missing arguments to
3694 lang_leave_output_section_statement call.
3696 2000-07-10 H.J. Lu <hjl@gnu.org>
3698 * emultempl/pe.em (pe_enable_stdcall_fixup): Protect with
3700 (strhash): Likewise.
3701 (compute_dll_image_base): Likewise.
3702 (pe_undef_found_sym): Likewise.
3703 (pe_undef_cdecl_match): Likewise.
3704 (gld_${EMULATION_NAME}_open_dynamic_archive): Mark the
3705 argument "arch" with ATTRIBUTE_UNUSED.
3707 2000-07-10 Alan Modra <alan@linuxcare.com.au>
3709 * configure.tgt: Remove extraneous hppa*-*-linux-gnu*.
3711 From Ryan Bradetich <rbradetich@uswest.net>
3712 * ldwrite.c (SSIZE): Remove to cure macro redefinition warning.
3714 2000-07-09 Alan Modra <alan@linuxcare.com.au>
3716 Changes to create multiple linker stubs, positioned immediately
3717 before the section where they are required.
3718 * emultempl/hppaelf.em: Include elf32-hppa.h.
3719 (stub_sec, file_chain): Delete.
3720 (hppaelf_create_output_section_statements): Don't make a stub
3722 (hook_stub_info): New struct.
3723 (hook_in_stub): New function.
3724 (hppaelf_add_stub_section): New function.
3725 (hppaelf_finish): Do nothing for relocateable links. Modify the
3726 call to elf32_hppa_size_stubs. Move code for updating section
3728 (hppaelf_layaout_sections_again): ..to here, a new function.
3730 * emultempl/hppaelf.em (hppaelf_delete_padding_statements): Fix
3731 broken list handling. Pass in a pointer to the list.
3732 (hppaelf_finish): Update call to hppaelf_delete_padding_statements
3734 (hppaelf_before_parse): Prototype.
3735 (hppaelf_set_output_arch): Prototype.
3736 (hppaelf_create_output_section_statements): Prototype.
3737 (hppaelf_delete_padding_statements): Prototype.
3738 (hppaelf_finish): Prototype.
3741 * emultempl/hppaelf.em: Include ctype.h.
3742 (struct orphan_save): New.
3743 (gld${EMULATION_NAME}_place_orphan): New.
3744 (output_rel_find): New.
3745 (hppaelf_get_script): Update from elf32.em.
3746 (ld_hppaelf_emulation): Rename to ld_${EMULATION_NAME}_emulation.
3747 Change emulation_name field to "${EMULATION_NAME}". Add
3748 gld${EMULATION_NAME}_place_orphan.
3750 * Makefile.am (ALL_EMULATIONS): Reinstate ehppaelf.o, add
3751 ehppalinux.o, sort it. Regenerate dependencies.
3752 (ehppalinux.c): Depend on hppaelf.em
3753 * Makefile.in: Regenerate.
3755 * configure.tgt: targ_emul=hppalinux for hppa*linux
3757 * emulparams/hppalinux.sh: New.
3758 * emulparams/hppaelf.sh (TARGET_PAGE_SIZE): Write in hex.
3760 2000-07-08 Alan Modra <alan@linuxcare.com.au>
3762 * lexsup.c (parse_args): Copy section name.
3764 2000-07-07 Charles Wilson <cwilson@ece.gatech.edu>
3766 * emultempl/pe.em: institute the following search order for
3767 dynamic libraries on pei386: libfoo.dll.a, foo.dll.a (import
3768 libs), libfoo.dll, foo.dll (link direct to dll). Fall back to
3769 static lib (libfoo.a) if none of the above are found.
3771 2000-07-07 Mumit Khan <khan@xraylith.wisc.edu>
3773 * emultempl/pe.em (pe_enable_auto_image_base): New variable.
3774 (longopts): New --{enable,disable}-auto-image-base options.
3775 (gld_${EMULATION_NAME}_list_options): Document.
3776 (gld_${EMULATION_NAME}_parse): Handle.
3777 (strhash): New static function.
3778 (compute_dll_image_base): New static function.
3779 (gld_${EMULATION_NAME}_set_symbols): Use.
3781 2000-07-05 DJ Delorie <dj@redhat.com>
3785 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
3787 * configure.tgt: Add traditional mips (mips*-*-sysv4*) target.
3788 * emulparams/elf32btsmip.sh: New file.
3789 * Makefile.am: Add traditional mips target.
3790 * Makefile.in: Rebuild.
3792 2000-07-01 H.J. Lu <hjl@gnu.org>
3794 * Makefile.am (EXTRA_ld_new_SOURCES): Set to deffilep.y for
3795 automake to use YLWRAP.
3796 * Makefile.in: Rebuild.
3798 2000-07-01 Alan Modra <alan@linuxcare.com.au>
3800 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
3801 (CLEANFILES): Add DEPA.
3802 * Makefile.in: Regenerate.
3804 2000-06-30 Timothy Wall <twall@ppc>
3806 * scripttempl/tic54xcoff.sc: PAGE N is not implemented, so encode
3807 the page in the upper octet of the address.
3809 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
3811 * emulparams/avrmega161.sh (ARCH): Change to avr:5.
3813 2000-06-24 Alan Modra <alan@linuxcare.com.au>
3815 * NEWS: arm-elf does --gc-sections too.
3817 2000-06-22 Alan Modra <alan@linuxcare.com.au>
3819 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
3821 * Makefile.in: Regenerate.
3823 2000-06-21 H.J. Lu <hjl@gnu.org>
3825 * Makefile.am: Rebuild dependency.
3826 * Makefile.in: Rebuild.
3828 2000-06-20 H.J. Lu <hjl@gnu.org>
3830 * Makefile.am: Rebuild dependency.
3831 * Makefile.in: Rebuild.
3833 2000-06-20 Timothy Wall <twall@cygnus.com>
3835 * scripttempl/tic54xcoff.sc: New.
3836 * ldlang.c (wild_doit): Propagate SEC_BLOCK flag.
3837 * gen-doc.texi: Add flag for TI COFF.
3838 * ld.texinfo: Add documentation for TI COFF handling switches.
3839 * emultempl/ticoff.em: New. TI COFF handling.
3840 * configure.tgt: Add tic54x target.
3841 * Makefile.am: Add tic54x target.
3842 * Makefile.in: Ditto.
3844 2000-06-20 Alan Modra <alan@linuxcare.com.au>
3846 * ldmain.c (set_scripts_dir): Correct pointer comparison when
3847 checking for backslashes.
3849 2000-06-19 Alan Modra <alan@linuxcare.com.au>
3851 * NEWS: Move entries not in 2.10 above "Changes in version 2.10".
3853 2000-06-18 Alan Modra <alan@linuxcare.com.au>
3855 * NEWS: Update list of targets supporting --gc-sections.
3857 * scripttempl/elf.sc: KEEP .eh_frame contents.
3858 * scripttempl/elfd30v.sc: Same here.
3860 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
3862 * Makefile.am (ALL_EMULATIONS): Added new emulation for m68hc12
3864 * Makefile.in: Rebuild.
3865 * configure.tgt: Recognize m68hc12 and m68hc11.
3866 * scripttempl/elfm68hc12.sc: New file.
3867 * emulparams/m68hc12elfb: New emulation.
3868 * emulparams/m68hc12elf: New emulation.
3869 * emulparams/m68hc11elfb.sh: New file. User configurable emulation
3870 (includes a memory.x script to define the ROM and RAM banks).
3871 * scripttempl/elfm68hc11.sc, emulparams/m68hc11elf.sh:
3872 New configuration files for support of Motorola 68hc11
3874 2000-06-15 Alan Modra <alan@linuxcare.com.au>
3876 * ldmain.c (main): Only change SEC_READONLY for final link.
3878 2000-06-13 H.J. Lu <hjl@gnu.org>
3880 * configure: Regenerate.
3882 2000-06-08 David O'Brien <obrien@FreeBSD.org>
3884 * configure.in (VERSION): Update to show this is the CVS mainline.
3886 2000-06-07 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3888 * emultempl/mipsecoff.em (gld{EMULATION_NAME}_after_open): Require all
3889 input objects to be ECOFF.
3890 (check_sections): einfo takes %B, not %P, to print a BFD name.
3892 2000-06-05 Michael Matz <matz@ifh.de>
3894 * ldgram.y (vers_defns): Handle 'extern "C++" { ... }' in
3897 * ldlex.l (V_IDENTIFIER): Accept `::' in symbols.
3899 2000-05-23 Marek Michalkiewicz <marekm@linux.org.pl>
3901 * emulparams/avr1200.sh (STACK): Define as 0.
3902 * emulparams/avr23xx.sh (STACK): Define as last internal SRAM address.
3903 * emulparams/avr4433.sh (STACK): Likewise.
3904 * emulparams/avr44x4.sh (STACK): Likewise.
3905 * emulparams/avr85xx.sh (STACK): Likewise.
3906 * emulparams/avrmega103.sh (STACK): Likewise.
3907 * emulparams/avrmega161.sh (STACK): Likewise.
3908 * emulparams/avrmega603.sh (STACK): Likewise.
3909 * scripttempl/elf32avr.sc (__data_start): Define for gcrt1.
3910 (__stack): Define from ${STACK} for main().
3912 2000-05-26 Alan Modra <alan@linuxcare.com.au>
3914 * Makefile.am: Update dependencies with "make dep-am"
3915 * Makefile.in: Regenerate.
3917 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
3919 * ldmain.c: Include filenames.h.
3920 (set_scripts_dir): Support backslashes in program name.
3922 2000-05-22 Igor Shevlyakov <igor@windriver.com>
3924 * ldmain.c (main): When deciding if ".text" section should be
3925 read-only, don't forget to reset SEC_READONLY because it
3926 could be already set.
3928 2000-05-22 Thomas de Lellis <tdel@windriver.com>
3930 * ld.1: Add documentation for new command line option:
3931 --section-start <sectionname>=<sectionorg>
3932 This is a generic version of -Ttext etc. which accepts
3933 any section name as a parameter instead of just text/data/
3935 * ld.texinfo: More docs.
3937 * lexsup.c: (parse_args): Recognize new command line option.
3938 (ld_options): Add new option.
3940 2000-05-18 H.J. Lu <hjl@gnu.org>
3942 * lexsup.c (parse_args): `i' == `r', not `q'.
3944 2000-05-18 Jeffrey A Law (law@cygnus.com)
3946 * configure.tgt (hppa*64*-*-*): Enable PA64 target.
3948 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
3949 Rick Gorton <gorton@scrugs.lkg.dec.com>
3951 Add support for '-q' == '--emit-relocs' switch.
3952 * ldmain.c (main): Default to false.
3953 * lexsup.c (parse_args): Turn on emitrelocations flag if set.
3954 * NEWS: Describe the emitrelocations switch.
3955 * ld.texinfo: Describe the emitrelocations switch.
3957 2000-05-16 Charles Wilson <cwilson@ece.gatech.edu>
3959 * emultempl/pe.em (_open_dynamic_archive): New function: Search
3960 the library path for "foo.dll" and "libfoo.dll" dynamic libraries
3961 before searching for 'libfoo.a' in response to a '-Bdynamic -lfoo'
3964 2000-05-15 David O'Brien <obrien@FreeBSD.org>
3966 * lexsup.c (parse_args): Update the year in the copyright notice.
3968 2000-05-13 Alan Modra <alan@linuxcare.com.au>
3970 * ld.h (gettext, dgettext, dcgettext, textdomain, bindtextdomain):
3971 Replace defines with those from intl/libgettext.h to quieten gcc
3974 2000-05-10 H.J. Lu <hjl@gnu.org>
3976 * ldlang.c (open_input_bfds): Don't load the same file within
3977 a group again if the whole archive has been loaded already.
3979 2000-05-03 Alan Modra <alan@linuxcare.com.au>
3981 From Ulf Carlsson <ulfc@engr.sgi.com> and Andreas Jaeger <aj@suse.de>
3982 * lexsup.c (set_section_start): Use bfd_scan_vma rather than
3985 2000-05-01 Jim Wilson <wilson@cygnus.com>
3987 * configure.host (ia64-*-linux-gnu*): Change gcc to ${CC}.
3989 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
3990 host "ia64-*-linux-gnu*".
3992 2000-04-29 Andreas Jaeger <aj@suse.de>
3994 * ld.h: Correctly check GCC version.
3996 2000-04-25 Jeffrey A Law (law@cygnus.com)
3998 * Makefile.am: Add PA64 support. Add missing dependencies for
4000 * Makefile.in: Rebuilt.
4001 * configure.tgt: Add PA64 support (currently disabled).
4003 2000-04-25 Alan Modra <alan@linuxcare.com.au>
4005 * emultempl/elf32.em (gld${EMULATION_NAME}_place_section): Delete.
4006 (output_rel_find): New function.
4007 (hold_section, hold_use): Delete.
4008 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4009 hold_interp): Make local to place_orphan.
4010 (gld${EMULATION_NAME}_place_orphan): Use lang_output_section_find
4011 rather than place_section to find possible previous use of orphan.
4012 Similarly find the place-holder output sections. Use returned
4013 value from lang_enter_output_section_statement rather than calling
4014 lang_output_section_statement_lookup.
4015 * emultempl/armelf.em: Same here.
4016 * emultempl/pe.em: Similar to above, but no need for output_rel_find.
4018 * ldlang.c (lang_enter_output_section_statement): Return output
4020 * ldlang.h (lang_enter_output_section_statement): Change
4023 * ldlang.h (lang_output_section_statement): Export it.
4024 * ldlang.c (lang_output_section_statement): Ditto.
4026 2000-04-24 Nick Clifton <nickc@cygnus.com>
4028 * ld.texinfo (Output Section Data): Add note that section data
4029 commands cannot appear outside of section directives.
4031 2000-04-2 Matthew Green <mrg@cygnus.com>
4033 * configure.tgt: Add NetBSD/sparc ELF, and NetBSD/sparc64 support.
4035 2000-04-21 Richard Henderson <rth@cygnus.com>
4036 David Mosberger <davidm@hpl.hp.com>
4038 * Makefile.am (ALL_64_EMULATIONS): Add eelf64_ia64.o.
4039 (eelf64_ia64.c): New rule.
4040 * Makefile.in: Rebuild.
4041 * configure.tgt (ia64-*-elf*, ia64-*-linux*): New targets.
4042 * emulparams/elf64_ia64.sh: New file.
4044 2000-04-21 Richard Henderson <rth@cygnus.com>
4046 * scripttempl/elfd30v.sc: Place .gcc_except_table.
4048 2000-04-19 Alan Modra <alan@linuxcare.com.au>
4050 * dep-in.sed: Match space at start of file name, not at end.
4052 2000-04-18 H.J. Lu <hjl@gnu.org>
4054 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Call
4055 lang_leave_output_section_statement () after calling
4056 lang_enter_output_section_statement ().
4057 * emultempl/armelf.em: Likewise.
4059 2000-04-18 Alan Modra <alan@linuxcare.com.au>
4061 * emultempl/elf32.em (struct orphan_save): Add section field.
4062 (gld${EMULATION_NAME}_place_orphan): Use above to keep sections in
4063 better order, and place first orphan section as we did before the
4064 2000-04-12 patch. Ignore ~SEC_ALLOC sections when choosing place.
4065 Don't call make_bfd_section here, let wild_doit do the job for us.
4066 Don't build a statement list when we'll only throw it away.
4067 * emultempl/armelf.em: Ditto.
4068 * emultempl/pe.em: Similarly.
4070 2000-04-14 Geoff Keating <geoffk@cygnus.com>
4072 * scripttempl/elfppc.sc: Remove.
4073 * emulparams/elf32ppc.sh: Use elf.sc.
4074 * emulparams/elf32lppc.sh: Use elf.sc.
4075 * emulparams/elf32ppclinux.sh: Use elf.sc.
4076 * emulparams/elf32ppcsim.sh: New file.
4077 * emulparams/elf32lppcsim.sh: New file.
4078 * Makefile.am: Update dependencies. Add elf32ppcsim ad elf32lppcsim.
4079 (ALL_EMULATIONS): Add elf32ppcsim ad elf32lppcsim.
4080 * Makefile.in: Regenerate.
4081 * configure.tgt (powerpc-*): Add elf32ppcsim and elf32lppcsim.
4083 2000-04-14 Alan Modra <alan@linuxcare.com.au>
4085 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Process
4086 ~SEC_ALLOC sections too. Init start address of debug sections.
4087 * emultempl/armelf.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4088 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Ditto.
4089 Also set all relocateable section start addresses.
4091 2000-04-13 Geoff Keating <geoffk@cygnus.com>
4093 * scripttempl/elf.sc: Add support for .sbss2 and .sdata2 sections.
4094 Add new BSS_PLT variable for when .plt need not be contained in
4095 the file. Move _etext so that it is also after .fini, and provide
4096 both etext and _etext with a leading underscore. Mark the start
4099 2000-04-12 Alan Modra <alan@linuxcare.com.au>
4101 * emultempl/elf32.em (struct orphan_save): New.
4102 (hold_text, hold_rodata, hold_data, hold_bss, hold_rel,
4103 hold_interp): Make them struct orphan_save.
4104 (gld${EMULATION_NAME}_place_section): Modify for new hold_*.
4105 (gld${EMULATION_NAME}_place_orphan): Add new orphan sections to
4106 the end of the relevant section list. Also add associated section
4107 statements to the end of any previous orphan statements.
4108 * emultempl/armelf.em: Similarly.
4109 * emultempl/pe.em: Similarly.
4111 2000-04-11 Alan Modra <alan@linuxcare.com.au>
4113 * ld.texinfo (Simple Example): Remove extraneous paragraph.
4115 2000-04-07 Andrew Cagney <cagney@b1.cygnus.com>
4117 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
4118 --enable-build-warnings option.
4119 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
4120 * Makefile.in, configure: Re-generate.
4122 2000-04-04 Alan Modra <alan@linuxcare.com.au>
4124 * po/ld.pot: Regenerate.
4126 * lexsup.c (help): Restore translated part of bug string.
4128 * Makefile.am (MKDEP): Use gcc -MM rather than mkdep.
4129 (DEP): Quote when passing vars to sub-make. Add warning message
4131 (DEP1): Rewrite for "gcc -MM".
4132 (CLEANFILES): Add DEP2.
4133 Update dependencies.
4134 * Makefile.in: Regenerate.
4136 2000-04-03 Alan Modra <alan@linuxcare.com.au>
4138 * ld.h: #include "bin-bugs.h"
4139 * lexsup.c (help): Use REPORT_BUGS_TO.
4141 2000-03-27 Denis Chertykov <denisc@overta.ru>
4143 * configure.tgt (avr-*-*): New target support.
4144 * Makefile.am: Likewise.
4145 * scripttempl/elf32avr.sc: New script file.
4146 * emulparams/avr1200.sh: New file.
4147 * emulparams/avr23xx.sh: New file.
4148 * emulparams/avr4433.sh New file.
4149 * emulparams/avr44x4.sh New file.
4150 * emulparams/avr85xx.sh New file.
4151 * emulparams/avrmega103.sh New file.
4152 * emulparams/avrmega161.sh New file.
4153 * emulparams/avrmega603.sh New file.
4154 * Makefile.in: Regenerate.
4156 2000-03-09 Andreas Jaeger <aj@suse.de>
4158 * Makefile.am (check-DEJAGNU): Also unset LANG.
4159 * Makefile.in: Rebuild.
4161 2000-03-06 Ian Lance Taylor <ian@zembu.com>
4163 * ldfile.c (ldfile_try_open_bfd): Don't crash if we see an empty
4166 2000-03-02 H.J. Lu <hjl@gnu.org>
4168 * emulparams/elf32mcore.sh: Include "getopt.h".
4170 2000-03-01 Ian Lance Taylor <ian@zembu.com>
4172 * configure.tgt: Remove *-*-aout, *-*-coff, and *-*-netware.
4174 2000-03-01 H.J. Lu <hjl@gnu.org>
4176 * emulparams/mipspe.sh: Add SUBSYSTEM and INITIAL_SYMBOL_CHAR.
4177 * emulparams/shpe.sh: Likewise.
4179 2000-03-01 Nick Clifton <nickc@cygnus.com>
4181 * pe-dll.c: Remove unused variables and add ATTRIBUTE_UNUSED
4182 to unused parameters.
4184 * emultempl/pe.em: Add "#ifdef DLL_SUPPORT" around static
4185 functions only used by DLL code.
4186 (_place_orphan): Initialise 'dollar'.
4188 2000-03-01 H.J. Lu <hjl@gnu.org>
4190 * ldmain.c (undefined_symbol): Take one more arg, fatal, to
4191 indicate if the undefined symbol is a fatal error or not.
4192 Don't delete the output file if "fatal" is false.
4194 2000-02-29 H.J. Lu <hjl@gnu.org>
4196 * Makefile.am (check-DEJAGNU): Also pass LIBS="$(LIBS)".
4197 Set LC_COLLATE and LC_ALL to null and export them. It is for
4198 sort which expects the C locale.
4199 Add $(LIBS) to all $(HOSTING_LIBS).
4200 * Makefile.in: Rebuild.
4202 2000-02-29 Alan Modra <alan@spri.levels.unisa.edu.au>
4204 * emultempl/{aix.em, armcoff.em, armelf.em, armelf_oabi.em,
4205 beos.em, elf32.em, generic.em, gld960.em, gld960c.em, hppaelf.em,
4206 linux.em, lnk960.em, mipsecoff.em, sunos.em, vanilla.em}
4207 (ld_emulation_xfer_struct): Add missing NULL initialiser for
4208 find_potential_libraries.
4210 2000-02-28 Jim Blandy <jimb@redhat.com>
4212 * ldgram.y (exclude_name_list): Don't require a comma to separate
4213 list entries; the lexer considers commas to be valid part of a
4214 filename, so in something like `foo, bar' the comma is considered
4215 part of the first filename, `foo,'.
4216 * ld.texinfo: Update section on EXCLUDE_FILE lists.
4218 2000-02-27 Loren J. Rittle <ljrittle@acm.org>
4220 * configure.host: Added HOSTING_CRT0, HOSTING_LIBS for
4221 host "i[3456]86-*-freebsdelf*".
4223 2000-02-27 Mark Elbrecht <snowball3@bigfoot.com>
4225 * scripttempl/i386go32.sc: Move misplaced semicolons.
4227 2000-02-25 Ian Lance Taylor <ian@zembu.com>
4229 * Makefile.am (ALL_EMULATIONS): Remove ehppaelf.o.
4230 (ALL_64_EMULATIONS): Remove eelf64hppa.o.
4231 (eelf64hppa.c, ehppaelf.c): Remove targets.
4232 * Makefile.in: Rebuild.
4234 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
4236 * configure.tgt (targ_extra_ofiles): Enable elf64_sparc on
4237 GNU/Linux/sparc, but keep the default as 32.
4239 * configure.tgt: Enable elf64_sparc on Solaris7+/sparc. And make
4240 it default if sparcv9 or sparc64.
4242 2000-02-24 Nick Clifton <nickc@cygnus.com>
4244 * Makefile.am: Add rules to build emipspe.o and earmpe.o.
4245 * Makefile.in: Regenerate.
4246 * configure.tgt: Add targets for arm-wince, sh-pe and mips-pe.
4248 * ldemul.h (ld_emulation_xfer_struct): Add new field:
4249 find_potential_libraries.
4250 * ldemul.c (ldemul_find_potential_libraries): New function.
4252 * ldfile.c (ldfile_open_file_search): Allow function to be
4254 (ldfile_open_file): Call ldemul_find_potential_libraries.
4255 * ldfile.h: Add prototype for ldfile_open_file_search.
4257 * pe-dll.c: Add support for ARM, MIPS and SH targets.
4259 * emulparams/mipspe.sh: New file. Parameters for mips-pe target.
4260 * emulparams/shpe.sh: New file. Parameters for sh-pe target.
4262 * emultempl/pe.em: Add support for ARM, MIPS and SH DLLs.
4263 (gld_X_find_potential_libraries): New function. Search for
4264 libraries called "*.lib".
4266 * scripttempl/pe.sc: Add .pdata section.
4268 2000-02-23 Richard Henderson <rth@cygnus.com>
4270 * scripttempl/elfd10v.sc: Remove dynamic linking hooks.
4271 Add and use memory regions.
4273 2000-02-23 Linas Vepstas (linas@linas.org)
4275 * emulparams/elf32i370.sh, scripttempl/elfi370.sc: New.
4277 * Makefile.am: Add support for Linux/IBM 370.
4278 * configure.tgt: Likewise.
4280 * Makefile.in: Regenerate.
4282 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
4284 * ldlang.c (print_input_section, print_data_statement,
4285 print_reloc_statement, print_padding_statement, insert_pad,
4286 size_input_section, lang_check_section_addresses,
4287 lang_size_sections, lang_do_assignments, lang_set_startof,
4288 lang_one_common): Change `opb' to unsigned.
4289 (lang_do_assignments): Also change `size' to unsigned.
4291 2000-02-16 Richard Henderson <rth@cygnus.com>
4293 * scripttempl/elf.sc: Place OTHER_PLT_RELOC_SECTION.
4295 2000-02-16 Timothy Wall <twall@cygnus.com>
4297 * mri.c (mri_draw_tree): Add default LMA region argument to call
4298 to lang_leave_output_section_statement.
4299 * ldlang.h: Update prototypes with LMA region arguments.
4300 * ldlang.c (lang_size_sections): Encapsulate region bounds
4301 checking in os_check_region call.
4302 (os_check_region): New function.
4303 (lang_output_section_statement_lookup): Initialize lma_region.
4304 (lang_leave_output_section_statement): Add LMA region argument.
4305 (lang_leave_overlay): Ditto.
4306 * ldgram.y: Handle LMA region syntax.
4307 * ld.texinfo (Output Section Description): Describe LMA region usage.
4308 * emultempl/armelf.em (gld$place_orphan): Add default value for
4309 lma region in call to lang_leave_output_section_statement.
4310 * emultempl/elf32.em (gld$place_orphan): Add default value for
4311 lma region in call to lang_leave_output_section_statement.
4312 * emultempl/pe.em (gld$place_orphan): Add default value for
4313 lma region in call to lang_leave_output_section_statement.
4316 2000-02-04 Timothy Wall <twall@redhat.com>
4318 * ldlang.c (lang_check_section_addresses): Use bytes instead of
4319 octets when calculating section end addresses.
4321 2000-02-04 Timothy Wall <twall@redhat.com>
4323 * ldlang.c (lang_size_sections): Fix typo in ALIGN_N invocation.
4325 2000-02-03 Timothy Wall <twall@redhat.com>
4327 * ldexp.c (fold_name): Make SIZEOF operator return byte count, not
4329 * ldlang.c (print_input_section, print_data_statement,
4330 print_reloc_statement, print_padding_statement): Print target
4331 address values and section sizes as bytes, not octets.
4332 (insert_pad) Calculate padding size in octets, and adjust "dot"
4334 (size_input_section) Always adjust "dot" by bytes, not octets.
4335 (lang_check_section_addresses, lang_do_assignments) Adjust
4336 "dot" by bytes, not octets. Use the larger of the directive size
4337 or octets_per_byte for the number of octets actually allocated in
4339 (lang_set_startof) Make sure STARTOF returns a target address.
4340 (lang_one_common) Record size changes in octets.
4341 (lang_abs_symbol_at_end_of) Section end symbol's value is
4342 recorded in target bytes.
4343 * ld.texinfo: Updated description of BYTE, SHORT, LONG, etc.
4344 to be clear about behavior when an octet is smaller than one byte.
4346 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
4348 * ldcref.c (output_cref): Don't pass message strings to printf
4352 * ldmisc.c (vfinfo): Same here.
4355 2000-01-23 Alan Modra <alan@spri.levels.unisa.edu.au>
4357 * emultempl/{armcoff.em,armelf.em,armelf_oabi.em,beos.em,
4358 generic.em,gld960.em,gld960c.em,hppaelf.em,linux.em,lnk960.em,
4359 mipsecoff.em,sunos.em,vanilla.em} (ld_emulation_xfer_struct):
4360 Add missing NULL initialisers, and comments.
4362 * testsuite/ld-srec/sr3.cc (__rethrow): New.
4364 2000-01-21 Nick Clifton <nickc@cygnus.com>
4366 * ldlang.c (lang_size_sections): Fix typo in comment.
4368 2000-01-18 H.J. Lu <hjl@gnu.org>
4370 * ldlang.c (lang_size_sections): Also update the current
4371 address of a region if the SEC_NEVER_LOAD bit is not set.
4373 2000-01-10 Philip Blundell <pb@futuretv.com>
4375 * configure.tgt (arm*-*-conix*): New target.
4377 2000-01-07 Nick Clifton <nickc@cygnus.com>
4379 * ld.texinfo (Options): Remind users to preceed linker command
4380 line switches with -Wl, (or whatever is appropriate) if it is
4381 being invoked by a comnpiler driver program.
4382 Fix description of the behaviour of the -n command line switch.
4384 2000-01-05 Catherine Moore <clm@cygnus.com>
4386 * ld.h (wildcard_spec): Change exclude_name to exclude_name_list.
4388 * ld.texinfo (EXCLUDE_FILE): Update documentation.
4389 * ldgram.y (wildcard_spec): Support a list of excluded_files.
4390 (exclude_name_list): New.
4391 ldlang.c (walk_wild_section): Support list of excluded files.
4392 (print_wild_statement): Likewise.
4393 (lang_add_wild): Likewise.
4394 * ldlang.h (lang_wild_statement_type): Likewise.
4395 * scripttempl/elf.sc (OTHER_EXCLUDE_FILES): Support.
4397 2000-01-04 Mumit Khan <khan@xraylith.wisc.edu>
4399 * pe-dll.c (pe_dll_warn_dup_exports): New variable.
4400 (process_def_file): Use.
4401 (pe_dll_compat_implib): New variable.
4404 * pe-dll.h: Add exports of pe_dll_warn_dup_exports and
4405 pe_dll_compat_implib.
4407 * emultempl/pe.em (longopts): Add warn-duplicate-exports and
4408 compat-implib options.
4409 (gld_${EMULATION_NAME}_list_options): List new options.
4410 (gld_${EMULATION_NAME}_parse_args): Handle.
4412 * pe-dll.c (pe_dll_generate_implib): Use the correct name for output
4415 * deffilep.y (opt_name): Allow "." in name.
4417 For older changes see ChangeLog-9899
4423 version-control: never