1 2005-03-29 Alan Modra <amodra@bigpond.net.au>
3 * emultempl/ppc64elf.em (need_laying_out): Delete. Remove all refs.
4 (ppc_finish): Don't call bfd_elf_discard_info.
5 * emultempl/hppaelf.em: Similarly.
7 2005-03-24 Nick Clifton <nickc@redhat.com>
9 * po/fr.po: Updated French translation.
11 2005-03-23 Mike Frysinger <vapier@gentoo.org>
12 Nick Clifton <nickc@redhat.com>
14 * configure.host: Accept any C library to accompany a GNU Linux
15 implementation, not just the GNU C library.
16 * configure.tgt: Likewise.
17 * emultempl/elf32.em: Likewise.
19 2005-03-22 H.J. Lu <hongjiu.lu@intel.com>
21 * emultempl/elf32.em (gld${EMULATION_NAME}_provide_bound_symbols): New
22 (gld${EMULATION_NAME}_finish): Call
23 gld${EMULATION_NAME}_provide_bound_symbols to provide
24 __preinit_array_start, __preinit_array_end, __init_array_start,
25 __init_array_end, __fini_array_start and __fini_array_end.
27 * scripttempl/elf.sc: Don't provide __preinit_array_start,
28 __preinit_array_end, __init_array_start, __init_array_end,
29 __fini_array_start nor __fini_array_end.
31 2005-03-23 Alan Modra <amodra@bigpond.net.au>
33 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
34 SEC_EXCLUDE on .gnu.warning sections.
36 2005-03-22 Alan Modra <amodra@bigpond.net.au>
38 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
40 2005-03-21 Alan Modra <amodra@bigpond.net.au>
42 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
44 (LDEMUL_AFTER_ALLOCATION): Define.
46 2005-03-21 Alan Modra <amodra@bigpond.net.au>
48 * emultempl/ppc64elf.em (ppc_finish): Rename from
49 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
50 (LDEMUL_FINISH): Update.
51 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
52 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
54 2005-03-18 Julian Brown <julian@codesourcery.com>
56 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
58 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
59 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
61 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
63 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
64 bfd_section when removing unused empty output sections for
67 2005-03-19 Alan Modra <amodra@bigpond.net.au>
69 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
70 traversing the bfd section list to find pointer to new section.
72 2005-03-18 Alan Modra <amodra@bigpond.net.au>
74 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
75 input sections into .sdata and .sbss output respectively.
77 2005-03-16 David Heine <dlheine@tensilica.com>
78 Bob Wilson <bob.wilson@acm.org>
80 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
81 (lang_check_section_addresses): Ignore zero size sections here.
83 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
85 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
86 unused empty output sections for non-relocatable link.
88 * ld.h (args_type): Remove gc_sections.
90 * ldlang.c (lang_mark_used_section): New.
91 (lang_gc_sections): Use link_info.gc_sections instead of
92 command_line.gc_sections.
93 * ldmain.c (main): Likewise.
94 * lexsup.c (parse_args): Likewise.
95 * ldlang.c (lang_process): Call lang_mark_used_section.
97 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
99 2005-03-16 Nick Clifton <nickc@redhat.com>
100 Ben Elliston <bje@au.ibm.com>
102 * configure.in (werror): New switch: Add -Werror to the
103 compiler command line. Enabled by default. Disable via
105 * configure: Regenerate.
107 2005-03-16 Alan Modra <amodra@bigpond.net.au>
109 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
110 (OTHER_RELRO_SECTIONS): Set this instead.
112 2005-03-15 Nick Clifton <nickc@redhat.com>
114 * NEWS: Add cutoff for changes in 2.16 release.
116 2005-03-15 Mikkel Krautz <krautz@gmail.com>
118 * configure.tgt (x86_64-elf): Add target.
120 2005-03-15 Alan Modra <amodra@bigpond.net.au>
122 * po/es.po: Commit new Spanish translation.
124 2005-03-14 Alan Modra <amodra@bigpond.net.au>
126 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
127 Tidy etree_assert case.
129 2005-03-14 Alan Modra <amodra@bigpond.net.au>
131 * po/tr.po: Commit new Turkish translation.
133 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
135 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
136 * Makefile.in: Regenerated.
137 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
139 2005-03-07 Nick Clifton <nickc@redhat.com>
141 * po/fr.po: Updated translation.
143 2005-03-05 Alan Modra <amodra@bigpond.net.au>
145 * po/ld.pot: Regenerate.
147 2005-03-02 Jan Beulich <jbeulich@novell.com>
149 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
150 * pe-dll.c (pe_dll_generate_implib): Likewise.
152 2005-02-24 Ben Elliston <bje@au.ibm.com>
154 * ldfile.c: Remove GNU960 conditional code.
155 * emultempl/gld960.em: Likewise.
156 * emultempl/gld960c.em: Likewise.
157 * emultempl/lnk960.em: Likewise.
159 2005-02-24 Nick Clifton <nickc@redhat.com>
161 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
162 empty string from calls to concat.
164 2005-02-23 Nick Clifton <nickc@redhat.com>
166 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
167 arguments passed to concat() with a NULL.
169 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
170 define types needed by ldfile.h
172 2005-02-23 Alan Modra <amodra@bigpond.net.au>
174 * pe-dll.c: Warning fixes.
175 * emultempl/sunos.em: Likewise.
177 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
179 * ldlang.c (section_already_linked): Don't call
180 bfd_section_already_linked for dynamic objects.
182 2005-02-22 Alan Modra <amodra@bigpond.net.au>
184 * ldexp.c: Warning fixes.
185 * ldwrite.c: Likewise.
186 * emultempl/elf32.em: Likewise.
188 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
190 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
192 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
193 and ECOFF output only.
195 2005-02-21 Alan Modra <amodra@bigpond.net.au>
197 * config.in: Regenerate.
198 * configure: Regenerate.
200 2005-02-17 Zack Weinberg <zack@codesourcery.com>
202 * ldexp.c (assigning_to_dot): New global flag.
203 (fold_name): If assigning_to_dot is true, object immediately to
205 (exp_fold_tree): Set and clear assigning_to_dot around the
206 recursive call to exp_fold_tree to process the right-hand side
207 of an assignment to the location counter.
209 2005-02-17 Paul Brook <paul@codesourcery.com>
211 * scripttempl/armbpabi.sc: Add dummy name to version block.
213 2005-02-17 Alan Modra <amodra@bigpond.net.au>
215 * ldexp.c (new_abs): Init new.str.
217 2005-02-15 Mark Mitchell <mark@codesourcery.com>
219 * configure.in (AC_CHECK_FUNCS): Add glob.
220 * configure: Regenerated.
221 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
223 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
224 if HAVE_GLOB is not defined.
226 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
228 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
229 lib_path if NATIVE is yes.
231 2005-02-16 Alan Modra <amodra@bigpond.net.au>
233 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
234 an error creating fake bfd fatal.
235 (ppc_before_allocation): Continue on after errors.
236 (gld${EMULATION_NAME}_finish): Likewise.
238 2005-02-15 Nick Clifton <nickc@redhat.com>
240 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
241 not declared. It is not used and its presence causes a compile
244 2005-02-11 Zack Weinberg <zack@codesourcery.com>
246 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
247 If st.st_ino is zero, do not treat the library as a duplicate.
249 2005-02-10 Jakub Jelinek <jakub@redhat.com>
251 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
252 Set BFD_LINKER_CREATED on the stubs bfd.
253 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
256 2005-02-08 Mark Mitchell <mark@codesourcery.com>
258 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
260 (Image$$ER_RO$$Base): Define whenever RELOCATING.
261 (Image$$ER_RO$$Limit): Likewise.
262 (SHT$$INIT_ARRAY$$Base): Likewise.
263 (SHT$$INIT_ARRAY$$Limit): Likeise.
265 2005-02-10 Ben Elliston <bje@au.ibm.com>
267 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
269 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
271 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
272 to include o32 and n64 emulations.
273 (mips64*-*-linux-gnu*): Likewise.
275 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
277 * ldmain.c (warning_callback, warning_find_reloc): Prepend
278 "warning: " to warning messages.
280 2005-02-04 Alan Modra <amodra@bigpond.net.au>
282 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
283 look up symbol for etree_provide here.
285 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
287 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
289 2005-02-01 Edward Welbourne <eddy@opera.com>
290 Nick Clifton <nickc@redhat.com>
292 * ld.texinfo (Source Code Reference): New node describing how to
293 access linker script defined variables from source code.
295 2005-02-01 Alan Modra <amodra@bigpond.net.au>
297 * ld.texinfo: Clarify --as-needed operation.
299 2005-01-31 Andrew Cagney <cagney@gnu.org>
301 * configure: Regenerate to track ../gettext.m4.
303 2005-01-31 Nick Clifton <nickc@redhat.com>
305 * ldver.c (ldversion): Bump reported copyright date to 2005.
307 2005-01-31 Nick Clifton <nickc@redhat.com>
309 * configure.tgt: Remove obsolete targets m68k-lynxos and
312 2005-01-28 Julian Brown <julian@codesourcery.com>
314 * emultempl/armelf.em (fix_v4bx): New variable.
315 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
317 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
318 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
319 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
320 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
321 * NEWS: Mention --fix-v4bx.
322 * ld.texinfo: Document --fix-v4bx.
324 2005-01-25 Mark Mitchell <mark@codesourcery.com>
326 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
327 as to include .ARM.exidx$${Base,Limit}.
328 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
329 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
330 Put .init_array, .fini_array, etc. into the read-only data
333 2005-01-25 Alan Modra <amodra@bigpond.net.au>
335 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
336 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
337 only needed by an as-needed lib that didn't get linked.
339 2005-01-23 Alan Modra <amodra@bigpond.net.au>
341 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
342 __DTOR_LIST__ description.
344 2005-01-23 Alan Modra <amodra@bigpond.net.au>
346 * ld.texinfo (Location Counter <dot outside sections>): Document
347 effects of orphan section placement, and ". = ." workaround.
348 * Makefile.in: Regenerate.
350 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
352 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
353 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
355 2005-01-21 Jakub Jelinek <jakub@redhat.com>
357 * ldgram.y (AS_NEEDED): New token.
358 (input_list): Handle AS_NEEDED ( input_list ).
359 * ldlex.l (AS_NEEDED): Add.
360 * ld.texinfo: Document AS_NEEDED ().
361 * NEWS: Mention AS_NEEDED ().
363 2005-01-21 Ben Elliston <bje@au.ibm.com>
365 * ldlang.c (lang_reasonable_defaults): Remove.
366 (lang_process): Don't call lang_reasonable_defaults.
368 * ldexp.c (exp_assop): Remove #if 0'd code.
369 (exp_print_tree): Likewise.
370 * ldlang.c (lang_memory_region_lookup): Likewise.
371 (open_output): Likewise.
372 (lang_do_assignments_1): Likewise.
373 (lang_place_orphans): Likewise.
374 (lang_enter_output_section_statement): Likewise.
375 (lang_reasonable_defaults): Likewise.
376 * ldlang.h (struct lang_input_statement_struct): Likewise.
377 * mri.c (mri_draw_tree): Likewise.
378 (mri_load): Likewise.
379 * pe-dll.c (generate_reloc): Likewise.
380 (make_import_fixup_entry): Likewise.
382 * emultempl/beos.em (set_pe_subsystem): Likewise.
383 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
384 * emultempl/pe.em: Likewise.
385 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
387 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
389 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
390 (earmelfb_linux_eabi.c): New target.
391 * Makefile.in: Regenerated.
392 * configure.tgt (arm*b-*-linux-gnueabi): New target.
393 * emulparams/armelfb_linux_eabi.sh: New file.
395 2005-01-20 Nick Hudson <skrll@netbsd.org>
398 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
399 Handle bfd_elf32_hppa_nbsd_vec.
401 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
403 * ldmain.h (ld_sysroot): Change type to a constant string.
404 * ldmain.c (ld_sysroot): Likewise.
405 (get_relative_sysroot, get_sysroot): New functions, adding command-line
406 support for changing the sysroot.
407 (main): Call the new functions.
408 * lexsup.c (OPTION_SYSROOT): New.
409 (ld_options): Add --sysroot.
410 (parse_args): Add a dummy handler for it.
411 * ld.texinfo (--sysroot): Document.
412 * NEWS: Mention the new --sysroot option.
414 2005-01-18 Alan Modra <amodra@bigpond.net.au>
416 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
417 (lang_place_orphans): Don't abort on just_syms_flag, instead call
420 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
422 * defilep.y (def_name, def_library): Combine into...
423 (def_image_name): New function. Strip name to basename,
426 2005-01-12 Mark Kettenis <kettenis@gnu.org>
428 * configure.in: Be sure to invoke config.sub using the shell.
429 * configure: Regenerate.
431 2005-01-11 Alan Modra <amodra@bigpond.net.au>
433 * configure.host: Correct sed patterns for last change.
435 2005-01-10 Nick Clifton <nickc@redhat.com>
438 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
439 to determine whether config.make_executable should be set to FALSE in
440 conjunction with config.fatal_warnings.
441 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
442 (einfo): Pass TRUE as the extra argument.
444 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
446 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
447 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
448 (ia64-*-aix): Delete - this target is obsolete, and would be
449 broken by this patch.
451 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
453 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
454 (sparc64-sun-solaris2*): New host.
456 2005-01-06 Paul Brook <paul@codesourcery.com>
458 * Makefie.am: Add earmelf_vxworks.
459 * Makefile.in: Regenerate.
460 * configure.tgt: Make arm-*-vxworks a separate case.
461 * emulparams/armelf_vxworks.sh: New function.
463 2005-01-06 Alan Modra <amodra@bigpond.net.au>
465 * emultempl/ppc64elf.em (no_multi_toc): New var.
466 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
467 (OPTION_NO_MULTI_TOC): Define.
468 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
469 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
471 2005-01-05 Nick Clifton <nickc@redhat.com>
474 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
475 Standard's specification for parsable error messages.
477 2005-01-04 Paul Brook <paul@codesourcery.com>
479 * Makefile.am: Correct dependency for earmsymbian.c.
480 * Makefile.in: Regenerate.
482 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
484 * emultempl/pe.em (set_pe_subsystem): Change second arg to
485 lang_add_entry to FALSE.
487 2004-12-23 Nick Clifton <nickc@redhat.com>
490 * emulparams/shelf.sh (.stack): Increase stack start address to
493 2004-12-20 Nick Clifton <nickc@redhat.com>
495 * ldmain.c (main): Issue an error message if -static and -shared
498 2004-12-17 Jakub Jelinek <jakub@redhat.com>
500 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
501 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
502 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
503 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
504 PT_GNU_RELRO segment end.
506 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
508 * configure.tgt: Add s390x-ibm-tpf support.
510 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
512 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
515 2004-12-07 Ben Elliston <bje@gnu.org>
517 * ldemul.h: Forward declare struct option.
519 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
521 * scripttempl/pe.sc (.data): Add .jcr subsection.
523 2004-11-30 Paul Brook <paul@codesourcery.com>
525 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
527 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
529 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
530 * Makefile.in: Regenerate.
532 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
534 * emultempl/pe.em: Add --subsystem:xbox as well as
536 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
537 and numeric subsystems.
539 2004-11-24 Alan Modra <amodra@bigpond.net.au>
541 * ldexp.c (fold_name): Correct PR 338 fix.
543 2004-11-19 Mark Mitchell <mark@codesourcery.com>
545 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
546 (earmelf_linux_eabi.c): New target.
547 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
548 * emulparams/armelf_linux_eabi.sh: New file.
549 * Makefile.in: Regenerated.
551 2004-11-19 Nick Clifton <nickc@redhat.com>
554 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
555 LENGTH fields in the MEMORY command, to explicitly state that
556 symbols cannot be used in their expressions.
558 2004-11-19 Jon Beniston <jon@beniston.com>
560 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
561 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
562 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
563 which return the length and origin of a memory.
564 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
565 * NEWS: Mention support for ORIGIN and LENGTH operators.
567 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
569 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
570 a dynamic object for stubs.
572 2004-11-04 Paul Brook <paul@codesourcery.com>
574 * ld.texinfo: Document --default-imported-symver.
575 * ldmain.c (main): Set link_info.default_imported_symver.
576 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
577 (ld_options): Add --default-imported-symver.
578 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
580 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
581 Vineet Sharma <vineets@noida.hcltech.com>
583 * Makefile.am: Add entries for new maxq-coff target.
584 * Makefile.in: Regenerate.
585 * configure.tgt: Add support for maxq.
586 * emulparams/maxqcoff.sh: New File.
587 * scripttempl/maxqcoff.sc: New linker script for target maxq.
588 * NEWS: Mention the new target.
590 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
592 * testsuite/ld-scripts/weak.exp: Enable test on PE,
594 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
596 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
598 2004-11-04 Daniel Jacobowitz <dan@debian.org>
600 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
601 (earmelf_oabi.c): Remove rule.
602 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
603 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
604 * Makefile.in: Regenerated.
606 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
608 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
609 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
611 (INIT_END): Remove emitted "jump [sp+]".
614 2004-11-04 Alan Modra <amodra@bigpond.net.au>
616 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
617 (no_opd_opt, no_toc_opt): New static vars.
618 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
620 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
621 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
622 (PARSE_AND_LIST_OPTIONS): Describe new options.
623 (PARSE_AND_LIST_ARGS_CASES): Handle them.
625 2004-10-27 Nick Clifton <nickc@redhat.com>
627 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
628 parameter to invocation of lang_section_start.
629 * emultempl/aix.em (_handle_option): Likewise.
631 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
632 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
633 * Makefile.in: Regenerate.
635 2004-10-26 Mark Mitchell <mark@codesourcery.com>
637 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
638 __exidx_{start,end} when not relocating.
640 2004-10-25 Mark Mitchell <mark@codesourcery.com>
642 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
643 * ldexp.h (segment_type): New type.
644 (segments): New variable.
645 * ldexp.c (segments): New variable.
646 (exp_print_token): Handle SEGMENT_START.
647 (fold_binary): Likewise.
648 * ldgram.y (SEGMENT_START): Declare it as a token.
649 (exp): Handle SEGMENT_START.
650 * ldlang.h (lang_address_statement_type): Add segment field.
651 (lang_section_start): Change prototype.
652 * ldlang.c (map_input_to_output_sections): Do not process section
653 assignments if a corresponding SEGMENT_START has already been
655 (lang_section_start): Add segment parameter.
656 * ldlex.l (SEGMENT_START): Add it.
657 * lexsup.c (seg_segment_start): New function.
658 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
659 * ld.texinfo (SEGMENT_START): Document it.
660 * emulparams/armsymbian.sh (EMBEDDED): Set it.
661 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
662 base addresses. Do not map relocations.
663 * NEWS: Mention SEGMENT_START.
665 2004-10-26 Paul Brook <paul@codesourcery.com>
667 * ld.texinfo: Document --default-symver.
668 * ldmain.c (main): Set link_info.create_default_symver.
669 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
670 (ld_options): Add default-symver.
671 (parse_args): Handle OPTION_DEFAULT_SYMVER.
673 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
675 * pe-dll.c (process_def_file): Don't export all symbols by default if
676 building a position-independent executable.
678 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
681 * ldmain.c (reloc_overflow): Accept a pointer to struct
682 bfd_link_hash_entry. Report symbol location for relocation
685 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
687 * genscripts.sh (libpath.exp): Really generate for first
690 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
692 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
693 comparison and replacement of filenames.
695 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
698 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
699 option on linker script as the one for linker script.
701 2004-10-16 Daniel Jacobowitz <dan@debian.org>
703 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
704 (check_excluded_libs): New.
705 (load_symbols): Call check_excluded_libs.
706 * ldlang.h (add_excluded_libs): New prototype.
707 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
708 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
709 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
710 * ld.texinfo (Command Line Variables): Document --exclude-libs.
711 (Options Specific to i386 PE Targets): Remove --exclude-libs.
713 2004-10-15 Alan Modra <amodra@bigpond.net.au>
715 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
716 failing link script assert.
718 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
720 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
723 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
724 (SMALL_DATA_DTOR): Set.
725 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
726 (SMALL_DATA_DTOR): Unset.
727 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
728 after .data. If SMALL_DATA_DTOR is set, move .dtors after
731 2004-10-14 Alan Modra <amodra@bigpond.net.au>
734 * ldlang.h (lang_output_section_statement_type): Make "next" a
735 struct lang_output_section_statement_struct *.
736 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
737 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
738 * ldlang.c (lang_output_section_find_1): Adjust for changed
739 output_section_statement "next".
740 (strip_excluded_output_sections): Likewise.
741 (lang_record_phdrs): Likewise.
742 (lang_output_section_find_by_flags): New function.
743 (output_prev_sec_find): Move from pe.em. Adjust iterator.
744 (lang_insert_orphan): New function. Tail end of elf32.em's
745 place_orphan merged with that from pe.em. Allow bfd_section to
746 be placed first. New heuristic for placing new output section
747 statement in existing script, and accompanying split of __start
748 symbol alignment into a separate assignment to dot.
749 (lang_add_section): Consistently use output->bfd_section rather than
750 an alias, section->output_section.
751 (map_input_to_output_sections): Rename overly long arg. Move
752 initialization of data_statement output section to here..
753 (lang_check_section_addresses): ..from here.
754 (print_assignment): Correct printing of etree_assert.
755 (print_all_symbols): Don't bomb if userdata is NULL.
756 (IGNORE_SECTION): Rearrange.
757 * emultempl/elf32.em (output_rel_find): Adjust interator.
758 (output_prev_sec_find): Delete.
759 (struct orphan_save): Delete.
760 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
761 flags without creating a duplicate output section statement.
762 Revise code holding history of various orphan section placements.
763 Allow orphan sections to place before script specified output
764 sections. Call lang_output_section_find_by_flags when placement
765 by name fails. Use lang_insert_orphan.
766 * emultempl/mmo.em (output_prev_sec_find): Delete.
767 (struct orphan_save): Delete.
768 (mmo_place_orphan): Revise code holding history of orphan placement.
769 Allow orphans to place before existing output sections. Use
771 * emultempl/pe.em (output_prev_sec_find): Delete.
772 (struct orphan_save): Delete.
773 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
776 2004-10-13 Mark Mitchell <mark@codesourcery.com>
778 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
781 2004-10-13 Alan Modra <amodra@bigpond.net.au>
784 * ldcref.c (check_section_sym_xref): Delete.
785 (check_local_sym_xref): New function.
786 (check_nocrossrefs): Adjust call.
787 * emultempl/pe.em (struct orphan_save): Add os_tail.
788 (place_orphan): Backport assorted fixes from elf32.em.
790 2004-10-12 Bob Wilson <bob.wilson@acm.org>
792 * emultempl/xtensaelf.em: Use ISO C90 formatting.
794 2004-10-11 Jakub Jelinek <jakub@redhat.com>
796 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
797 getline for portability.
799 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
800 (gld${EMULATION_NAME}_parse_ld_so_conf,
801 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
802 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
804 2004-10-11 Alan Modra <amodra@bigpond.net.au>
807 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
808 rejected when linking statically.
810 2004-10-08 Daniel Jacobowitz <dan@debian.org>
812 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
814 2004-10-07 Bob Wilson <bob.wilson@acm.org>
816 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
817 assembler-generated longcall sequences. Describe new --size-opt
819 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
820 * emultempl/xtensaelf.em (remove_section,
821 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
822 elf_xtensa_after_open): New.
823 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
824 OPTION_NO_LITERAL_MOVEMENT): Define.
825 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
826 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
827 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
828 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
829 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
830 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
831 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
832 * Makefile.am (eelf32xtensa.c): Update dependencies.
833 * Makefile.in: Regenerate.
835 2004-10-07 Jeff Baker <jbaker@qnx.com>
837 * lexsup.c: Handle --warn-shared-textrel option.
838 (ld_options): Restore alpha sorting of options.
839 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
840 * ld.texinfo: Add documentation for --warn-shared-textrel.
841 * NEWS: Added mention of --warn-shared-textrel option.
843 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
845 * emultempl/crxelf.em (disable_relaxation): Add.
846 (crxelf_before_allocation): Enable --relax option by default.
847 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
848 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
849 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
851 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
853 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
854 --sort-section name|alignment.
856 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
857 --sort-section name|alignment.
859 * ld.h (sort_type): New enum.
860 (wildcard_spec): Change the type of `sorted' to sort_type.
862 * ldgram.y (SORT): Removed.
863 (SORT_BY_NAME): Added.
864 (SORT_BY_ALIGNMENT): Added.
865 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
867 (input_section_spec_no_keep): Updated `sorted'.
868 (statement): Replace SORT with SORT_BY_NAME.
870 * ldlang.c (compare_section): New function to compare 2
871 sections with different sorting schemes.
872 (wild_sort): Updated. Use compare_section.
873 (update_wild_statements): New function.
874 (lang_process): Call update_wild_statements before
875 map_input_to_output_sections.
877 * ldlex.l (SORT_BY_NAME): New.
878 (SORT_BY_ALIGNMENT): New.
879 (SORT): Return SORT_BY_NAME.
881 * ldmain.c (sort_section): New. Defined.
882 (main): Initialize it to none.
884 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
885 (ld_options): Add an entry for OPTION_SORT_SECTION.
886 (parse_args): Handle OPTION_SORT_SECTION.
888 * mri.c (mri_draw_tree): Updated `sorted'.
890 2004-10-04 Jakub Jelinek <jakub@redhat.com>
892 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
893 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
895 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
896 and . as second argument.
897 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
898 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
899 (fold_binary): Add it here. Insert padding to make relro_end
900 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
901 exp_dataseg_relro_adjust phase just use previously computed
903 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
904 relro_adjust here. Call lang_size_sections_1 once more if there
905 was too big padding at DATA_SEGMENT_RELRO_END.
906 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
908 2004-10-01 Paul Brook <paul@codesourcery.com>
910 * emulparams/armelf.sh: Add unwinding table sections.
912 2004-09-30 Filip Navara <navaraf@reactos.com>
914 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
915 correct base address for position independant executables.
916 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
919 2004-09-30 Paul Brook <paul@codesourcery.com>
921 * ld.texinfo: Document --target2=abs.
922 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
924 2004-09-29 Nick Clifton <nickc@redhat.com>
926 * scripttempl/xstormy16.sc: Only perform the assignments to the
927 ROM region when not performing a relocatable link. The ROM region
928 does not start at address 0, but the sections will.
929 * Makefile.am: Fix linker script dependency for the generation of
931 * Makefile.in: Regenerate.
933 2004-09-18 Filip Navara <navaraf@reactos.com>
935 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
936 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
937 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
939 * scripttempl/pe.sc: Make the virtual address and file offset synced if
940 the alignment is lower than the target page size.
942 2004-09-27 Filip Navara <navaraf@reactos.com>
944 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
945 def_file_parse to handle pe_def_file if NULL and prevent crash with
948 2004-09-27 Alan Modra <amodra@bigpond.net.au>
950 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
951 --emit-stub-syms automatically when --emit-relocs.
953 2004-09-24 Paul Brook <paul@codeosurcery.com>
955 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
956 .fini_array sections.
958 2004-09-19 Andreas Schwab <schwab@suse.de>
960 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
961 base so that relro end is suitably aligned.
963 2004-09-17 Paul Brook <paul@codesourcery.com>
965 * ld.texinfo: Rename arm-specific section. Document --target*
966 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
967 * emulparams/armelf_linux.sh: Ditto.
968 * emulparams/armelf_nbsd.sh: Ditto.
969 * emultempl/armelf.em: Set default for TARGET2_TYPE.
970 (target2_type): New variable.
971 (arm_elf_before_allocation): Don't pass target1_type.
972 (arm_elf_create_output_section_statements): New function.
973 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
974 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
975 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
976 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
977 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
978 argument to bfd_elf32_arm_process_before_allocation.
980 2004-09-17 Alan Modra <amodra@bigpond.net.au>
982 * ldexp.c (fold_name): Update u.undef.next refs.
983 * emultempl/pe.em: Likewise.
984 * emultempl/sunos.em: Likewise.
986 2004-09-17 Alan Modra <amodra@bigpond.net.au>
988 * Makefile.am: Run "make dep-am".
989 * Makefile.in: Regenerate.
990 * config.in: Regenerate.
991 * configure: Regenerate.
992 * aclocal.m4: Regenerate.
993 * po/ld.pot: Regenerate.
995 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
997 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
1001 2004-09-16 Alan Modra <amodra@bigpond.net.au>
1003 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
1004 to bfd_elf32_arm_process_before_allocation call.
1006 2004-09-13 Paul Brook <paul@codesourcery.com>
1008 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
1009 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
1011 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
1013 * configure: Regenerated with autconfig 2.13.
1015 2004-09-07 Andreas Schwab <schwab@suse.de>
1017 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
1018 alignment before adjusting DATA_SEGMENT_RELRO_END.
1020 2004-09-06 Mark Mitchell <mark@codesourcery.com>
1022 * emulparams/armsymbian.sh: Use armbpabi script.
1023 * scripttempl/armbpabi.sc: New script.
1025 2004-09-02 Mark Mitchell <mark@codesourcery.com>
1027 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
1028 (earmsymbian.c): New target.
1029 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1030 * Makefile.in: Regenerated.
1031 * aclocal.m4: Likewise.
1032 * configure: Likewise.
1033 * emulparams/armsymbian.sh: New file.
1035 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1037 * scripttempl/elf32crx.sc: Edit file with comments.
1038 (.init): Add new section.
1040 (.ctor): Control the linkage order.
1043 2004-08-27 Nick Clifton <nickc@redhat.com>
1045 * emultempl/pe.em (after_open): Do not assume that either bfd is
1048 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1050 * ldlang.c (lang_init): Don't compare with TRUE.
1052 2004-08-25 Dmitry Diky <diwil@spec.ru>
1054 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1055 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1057 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1059 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1061 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1063 * configure.tgt (arm*-*-symbianelf*): New target.
1064 (arm*-*-eabi*): Likewise.
1066 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1068 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1069 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1070 (OPTION_NON_OVERLAPPING_OPD): Define.
1071 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1072 --non-overlapping-opd option.
1074 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1077 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1078 was already on the undefs list.
1080 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1082 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1083 prefix the symbol field too.
1085 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1087 * ldmain.c (link_callbacks): Remove "error_handler".
1088 * ldmisc.c: Include elf-bfd.h.
1089 (vfinfo): Sort comment. Handle %A. Use %A instead of
1090 bfd_get_section_indent.
1091 (error_handler): Delete.
1092 * ldmisc.h (error_handler): Delete declaration.
1094 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1096 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1097 ppc64_elf_restore_symbols.
1099 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1101 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1102 .toc is too large on relocatable linking.
1104 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1106 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1107 (LDEMUL_AFTER_OPEN): Don't define.
1109 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1111 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1113 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1115 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1118 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1120 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1122 2004-07-26 Dmitry Diky <diwil@spec.ru>
1124 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1125 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1127 * configure.tgt: Likewise.
1128 * emulparams/msp430all.sh: Likewise.
1129 * Makefile.in: Regenerate.
1131 2004-07-23 Nick Clifton <nickc@redhat.com>
1133 * emultempl/elf32.em (_place_orphan): Use an already existing
1134 section name if that section does not have any flags set.
1136 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1138 * ldlang.c (already_linked_hash_entry): Removed.
1139 (already_linked): Likewise.
1140 (already_linked_table): Likewise.
1141 (section_already_linked): Call bfd_section_already_linked.
1142 (lang_process): Replace already_linked_table_init with
1143 bfd_section_already_linked_table_init and check return. Replace
1144 already_linked_table_free with bfd_section_already_linked_table_free.
1146 2004-07-21 Nick Clifton <nickc@redhat.com>
1148 * ldlang.c (init_os): Make sure that the newly allocated userdata
1149 structure is zeroed out.
1151 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1153 * NEWS: Mention the new --add-needed/--no-add-needed and
1154 --as-needed/--no-as-needed options.
1156 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1158 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1159 check the add_needed field.
1160 (dt_needed): New struct.
1161 (gld${EMULATION_NAME}_try_needed): Change the first argument
1162 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1163 bit in the file where the DT_NEEDED entry comes from.
1164 (gld${EMULATION_NAME}_search_needed): Change the second
1165 argument to a pointer to struct dt_needed.
1166 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1167 (gld${EMULATION_NAME}_after_open): Likewise.
1169 * ld.texinfo: Add --add-needed document.
1170 * ldlang.c (new_afile): Set p->add_needed.
1171 * ldlang.h (lang_input_statement_type): Add add_needed field.
1172 * ldmain.h (add_needed): Declare.
1173 * ldmain.c (add_needed): New global var.
1174 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1175 OPTION_NO_ADD_NEEDED.
1176 (ld_options): Likewise.
1177 (parse_args): Handle them.
1179 2004-07-13 Christof Petig <christof@petig-baender.de>
1181 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1182 for endian-ness of extracted addend.
1184 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1186 * pe-dll.c (auto_export): Filter on just the import prefix,
1187 "_imp_", not "_imp__".
1189 2004-07-09 Nick Clifton <nickc@redhat.com>
1191 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1193 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1195 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1196 (eelf32crx.c): New target.
1197 * Makefile.in: Regenerate.
1198 * configure.tgt: Handle crx-*-elf*.
1199 * emulparams/elf32crx.sh: New file.
1200 * emultempl/crxelf.em: New file.
1201 * scripttempl/elf32crx.sc: New file.
1202 * NEWS: Mention new target.
1204 2004-07-06 Nick Clifton <nickc@redhat.com>
1206 * Makefile.am: Add eshlsymbian.c.
1207 * Makefile.in: Regenerate.
1208 * configure.tgt: Add sh*-symbian-elf target.
1209 * emulparams/shlsymbian.sh: New file. Configure the
1210 sh-symbian-elf linker scripts.
1211 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1212 template for the sh-symbian-elf target.
1214 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1216 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1217 * emulparams/hppalinux.sh: Likewise.
1218 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1219 data segment and PLT_BEFORE_GOT is defined.
1221 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1223 * ld.texinfo (WIN32): Document PE weak symbols.
1225 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1227 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1229 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1231 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1234 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1236 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1239 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1241 * ldlang.c (print_output_section_statement): Don't print size before
1243 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1245 * ldexp.c (fold_name): .. See below.
1246 * ldlang.c (section_already_linked, print_output_section_statement,
1247 print_input_section, insert_pad, size_input_section,
1248 lang_check_section_addresses, lang_size_sections_1,
1249 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1250 lang_one_common, lang_reset_memory_regions, lang_process,
1251 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1252 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1253 * pe-dll.c (process_def_file, generate_reloc): ..
1254 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1255 gld${EMULATION_NAME}_before_allocation): ..
1256 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1257 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1258 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1259 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1260 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1261 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1262 "size" instead of "_raw_size" and "_cooked_size". Expand
1263 bfd_section_size macro invocations.
1265 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1267 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1268 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1269 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1271 (.tls): Define ___tls_start__ and ___tls_end__.
1273 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1275 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1277 2004-06-18 Adam Nemet <anemet@lnxw.com>
1279 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1280 * configure: Regenerate.
1282 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1284 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1285 .gcc_except_table output sections lost accidentally with
1288 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1290 * ldwrite.c (build_link_order): Use bfd_get_section_size
1291 instead of bfd_get_section_size_before_reloc or _raw_size.
1292 * pe-dll.c (process_def_file): Likewise.
1294 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1296 From Richard Wirth <r.wirth@wirthware.de>
1297 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1299 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1301 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1302 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1304 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1306 * testsuite/ld-sh/arch/arch.exp: New test script.
1307 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1308 * testsuite/ld-sh/arch/sh.s: New file.
1309 * testsuite/ld-sh/arch/sh2.s: New file.
1310 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1311 * testsuite/ld-sh/arch/sh2e.s: New file.
1312 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1313 * testsuite/ld-sh/arch/sh3.s: New file.
1314 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1315 * testsuite/ld-sh/arch/sh3e.s: New file.
1316 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1317 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1318 * testsuite/ld-sh/arch/sh4.s: New file.
1319 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1320 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1321 * testsuite/ld-sh/arch/sh4a.s: New file.
1323 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1325 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1327 * lexsup.c: Formatting. Wrap long lines.
1328 * ldwrite.c: Update copyright date.
1330 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1331 (output_section_callback): Nor SEC_KEEP here.
1332 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1333 (lang_gc_wild): Delete. Fold into..
1334 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1336 (lang_process): Always call lang_gc_sections.
1337 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1338 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1341 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1343 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1344 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1345 * ldlang.c (lang_add_section): Likewise.
1347 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1349 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1350 sections when doing a final link. Clear SEC_EXCLUDE when doing
1351 a relocable link, except for SEC_DEBUGGING sections.
1352 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1353 same condition here to drop SEC_EXCLUDE orphan sections.
1355 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1357 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1358 only when not a relocatable link.
1359 (print_input_section): Handle SEC_EXCLUDE sections.
1360 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1361 (lang_do_assignments_1): Likewise.
1362 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1363 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1364 * emultempl/hppaelf.em (build_section_lists): Likewise.
1365 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1366 (build_section_lists): Likewise.
1368 2004-05-23 Andreas Schwab <schwab@suse.de>
1370 * ld.texinfo (Options): Fix typo in last change.
1372 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1374 * ld.h (ld_config_type): Add new field: hash_table_size.
1375 * ldmain.c: Initialise the new field to zero. If it is non-zero
1376 after parsing the linker's command line call
1377 bfd_hash_set_default_size.
1378 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1379 (ld_options): Add hash-size.
1380 (parse_args): Parse --hash-size option. Allow
1381 --reduce-memory-overheads to set the default hash table size as
1383 * ld.texinfo: Document the new switch. Also mention that
1384 --reduce-memory-overheads can affect the hash table size.
1385 * NEWS: Mention the new feature.
1387 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1389 * NEWS: Mention new linker map file generation and the
1390 --reduce-memory-overheads option.
1391 * ld.texinfo: Document --reduce-memory-overheads option.
1392 * ld.h (map_symbol_def): New struct.
1393 (struct user_section_struct, section_userdata_type): Rename to:
1394 (struct lean_user_section_struct, lean_section_userdata_type).
1395 (struct fat_user_section_struct, fat_section_userdata_type): New.
1396 (SECTION_USERDATA_SIZE): Define.
1397 (args_type): New member reduce_memory_overheads.
1398 * ldlang.c (map_obstack): New static variable.
1399 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1400 (lang_map): Unless command_line.reduce_memory_overheads is set,
1401 initialize lists of defined symbols for each section.
1402 (print_input_section): Unless command_line.reduce_memory_overheads
1403 is set, use print_all_symbols.
1404 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1405 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1406 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1407 (ld_options): Add entry for --reduce-memory-overheads.
1408 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1410 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1412 * ldgram.y (sect_constraint): New.
1413 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1414 (section): Add sect_constraint. Pass additional argument
1415 to lang_enter_output_section_statement.
1416 * mri.c (mri_draw_tree): Pass additional argument to
1417 lang_enter_output_section_statement.
1418 * emultempl/pe.em (place_orphan): Likewise.
1419 (output_prev_sec_find): Disregard output section statements with
1421 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1422 (mmo_place_orphan): Pass additional argument to
1423 lang_enter_output_section_statement.
1424 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1425 statements with constraint == -1.
1426 (place_orphan): Pass additional argument to
1427 lang_enter_output_section_statement.
1428 * ldlang.c (lang_enter_overlay_section): Likewise.
1429 (lang_output_section_find_1): New.
1430 (lang_output_section_find): Use it.
1431 (lang_output_section_statement_lookup_1): New.
1432 (lang_output_section_statement_lookup): Use it.
1433 (check_section_callback, check_input_sections): New.
1434 (map_input_to_output_sections): Check if all input sections
1435 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1436 (strip_excluded_output_sections): Disregard output section statements
1437 with constraint == -1.
1438 (lang_record_phdrs): Likewise.
1439 (lang_enter_output_section_statement): Add constraint argument.
1440 Use lang_output_section_statement_lookup_1.
1441 * ldlang.h (lang_output_section_statement_type): Add constraint
1442 and all_input_readonly fields.
1443 (lang_enter_output_section_statement): Adjust prototype.
1444 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1445 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1446 segment if all input sections are readonly.
1448 2004-05-19 Adam Nemet <anemet@lnxw.com>
1450 * scripttempl/i386lynx.sc: Remove file.
1452 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1454 * ld.texinfo (Output Section Address): Correct subsection name.
1456 2004-05-17 Adam Nemet <anemet@lnxw.com>
1458 * configure.tgt (powerpc-*-lynxos* case): New case.
1459 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1460 * emulparams/ppclynx.sh: New file.
1461 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1462 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1463 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1464 (eppclynx.c): New rule.
1465 * Makefile.in: Regenerate.
1467 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1469 * configure.tgt (or32-*-rtems*): Switch to elf and
1470 support versioned targets.
1472 2004-05-13 Nick Clifton <nickc@redhat.com>
1474 * po/fr.po: Updated French translation.
1476 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1478 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1479 for binaries, -shared and -pie.
1480 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1481 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1482 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1483 (OTHER_RELRO_SECTIONS): ... this.
1484 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1485 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1486 -z relro and -z norelro.
1487 (gld${EMULATION_NAME}_list_options): Add it to usage.
1488 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1489 -z relro scripts when appropriate.
1490 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1491 Create separate .got.plt section if SEPARATE_GOTPLT.
1492 Move sections which are only written during relocation handling
1493 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1494 before .data. Add DATA_SEGMENT_RELRO_END directive.
1495 Include OTHER_RELRO_SECTIONS.
1496 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1497 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1498 (fold_unary): Likewise.
1499 (fold_binary): Handle -z relro.
1500 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1501 exp_dataseg_relro_adjust phases. Add relro_end field.
1502 * ldmain.c (main): Initialize link_info.relro to FALSE.
1503 * ldlang.c (lang_size_sections): Handle -z relro.
1505 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1507 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1509 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1511 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1512 before printing it with %W.
1514 2004-05-07 Brian Ford <ford@vss.fsi.com>
1515 DJ Delorie <dj@redhat.com>
1517 * emultempl/pe.em (real_flags): New static.
1518 (OPTION_LARGE_ADDRESS_AWARE): New define.
1519 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1520 (gld_${EMULATION_NAME}_list_options): Likewise.
1521 (gld${EMULATION_NAME}_handle_option): Likewise.
1522 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1523 * ld.texinfo: Document it.
1526 2004-05-07 Brian Ford <ford@vss.fsi.com>
1528 * NEWS: Mention DWARF 2 support for i386pe.
1530 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1532 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1535 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1537 * ldlang.c (unique_section_p): Pass section parm, return true on
1539 (output_section_callback): Adjust.
1540 * ldlang.h (unique_section_p): Update prototype.
1541 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1543 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1545 * ld.texinfo (--gc-sections): Remove restriction for
1548 2004-04-29 Brian Ford <ford@vss.fsi.com>
1550 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1551 for DWARF 2/3. Update stab section's syntax.
1553 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1555 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1556 (fill_edata): Correct pointer arithmetic.
1558 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1560 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1561 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1562 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1563 (EXTRA_EM_FILE): Use mipsecoff.em
1564 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1565 (EXTRA_EM_FILE): Use mipsecoff.em
1566 * emultempl/mipsecoff.em: Restructure to be included as an
1567 extra emulation file.
1568 (check_sections, gld${EMULATION_NAME}_after_open)
1569 (gld${EMULATION_NAME}_after_allocation)
1570 (gld${EMULATION_NAME}_get_script)
1571 (ld_${EMULATION_NAME}_emulation): Remove
1572 (gld${EMULATION_NAME}_before_parse): Rename to...
1573 (mipsecoff_before_parse): This.
1574 (LDEMUL_BEFORE_PARSE): Define.
1575 * emultempl/mipself.em: Remove file.
1576 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1577 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1579 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1580 * Makefile.in: Regenerate.
1582 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1584 * ld.texinfo (synthesizing on H8/300): Information about linker
1585 relaxation support for bit manipulation instructions and system
1586 control instructions is added.
1588 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1590 * NEWS: Mention change in DEFINED semantics.
1592 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1594 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1595 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1596 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1598 2004-04-21 Ben Elliston <bje@au.ibm.com>
1600 * ld.texinfo (Simple Example): Add missing punctuation.
1602 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1604 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1606 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1608 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1611 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1613 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1614 with default priority. Likewise for dtors.
1616 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1618 * configure.host: Remove mips*-dec-bsd* target.
1619 * configure.tgt: Likewise.
1621 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1623 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1624 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1625 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1626 * emultempl/irix.em: New file.
1627 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1629 * Makefile.in: Regenerate.
1631 2004-04-01 Paul Brook <paul@codesourcery.com>
1633 * emultempl/armelf.em (byteswap_code): Add.
1634 (arm_elf_before_allocation): Pass extra parameter.
1635 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1636 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1637 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1638 * emultempl/armelf_oabi.em: Pass extra parameter.
1639 * ld.texinfo: Document --be8.
1641 2004-03-30 Stan Shebs <shebs@apple.com>
1643 Remove long-obsolete MPW support.
1644 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1645 * Makefile.am (mpw): Remove file-presynthesizing actions.
1646 * Makefile.in: Likewise.
1647 * ldfile.c (slash): Remove MPW case.
1648 * ldlex.l [MPW]: Remove unused definition.
1650 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1652 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1653 (eelf32cr16c.c): New target.
1654 * Makefile.in: Regenerate.
1655 * configure.tgt: Handle cr16c-*-elf*.
1656 * emulparams/elf32cr16c.sh: New file.
1657 * scripttempl/elfcr16c.sc: Likewise
1658 * NEWS: Mention support for new target.
1660 2004-03-30 Nick Clifton <nickc@redhat.com>
1662 * po/sv.po: Updated Swedish translation.
1664 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1666 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1667 * emultempl/hppaelf.em: Likewise.
1668 * emultempl/ppc64elf.em: Likewise.
1669 * emultempl/sh64elf.em: Likewise.
1671 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1673 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1674 size_dynamic_sections call.
1676 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1679 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1680 link_info.wrap_char.
1682 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1684 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1685 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1687 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1689 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1691 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1693 * config.in: Regenerate.
1694 * po/ld.pot: Regenerate.
1696 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1698 * ld.texinfo: Add --as-needed doco.
1699 * ldmain.c (as_needed): New global var.
1700 * ldmain.h (as_needed): Declare.
1701 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1702 OPTION_NO_AS_NEEDED.
1703 (ld_options): Likewise.
1704 (parse_args): Handle them.
1705 * ldlang.h (lang_input_statement_type): Add as_needed field.
1706 * ldlang.c (new_afile): Set p->as_needed.
1707 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1708 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1709 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1711 * ldlang.c (open_input_bfds): Remove useless cast.
1712 (lang_do_assignments_1): Likewise.
1713 (lang_for_each_input_section): Delete.
1715 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1717 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1719 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1721 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1722 private when building implib.
1724 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1726 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1728 (IGNORE_SECTION): Ignore .tbss sections too.
1729 (lang_size_sections_1): .tbss sections do not advance dot.
1731 2004-03-01 Andreas Schwab <schwab@suse.de>
1733 * ld.texinfo (Options): Fix example for --wrap.
1735 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1737 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1740 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1742 * ldlang.c (lang_check): Use %P, not %E, in error message.
1744 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1746 * ldlang.h (struct lang_output_section_state): Change processed
1748 * ldexp.c (check, invalid): Remove.
1749 (fold_name): Move valid_p assignments. Create undefined symbol
1750 when needed. Directly exampine section's processd flag.
1751 * ldlang.c (lang_output_section_statement_lookup): Adjust
1752 processed field init.
1753 (lang_size_sections_1): Allow LOADADDR when determining section's
1754 VMA. Adjust error message. Fold data statement's expr.
1755 (lang_size_sections): Correctly increment lang_statement_iteration.
1757 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1759 * ldexp.c (fold_tree): Follow indirect symbols.
1761 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1763 * ldgram.y (exp): Add two operand ALIGN.
1764 * ldexp.c (fold_binary): Add ALIGN_K case.
1765 * ld.texinfo (ALIGN): Document two operand version.
1767 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1769 * ldlang.c (map_input_to_output_sections): Initialize sections
1770 mentioned in a data statement expression.
1771 (lang_do_assignments_1): Add data statement's expression's
1774 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1776 * ldgram.y (statement_anywhere): Add assert rule.
1777 * ldlang.c (exp_init_os): Add assert case.
1779 2004-02-14 Andrew Cagney <cagney@redhat.com>
1781 * ldmain.c (remove_output): Call bfd_cache_close.
1783 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1785 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1786 .MIPS.content* and .MIPS.events* sections.
1788 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1790 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1791 .note.gnu.arm.ident to after allocated sections. Mark its
1794 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1796 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1797 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1798 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1799 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1800 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1802 2004-02-05 Nick Clifton <nickc@redhat.com>
1804 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1806 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1808 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1810 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1812 * genscripts.sh: Fix typo.
1814 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1816 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1818 * emulparams/elf64_ia64.sh: Put .rela.opd into
1819 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1821 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1823 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1824 * ld.texinfo (--omagic): Note that writable text section
1825 does not conform to published PE-COFF specs.
1826 (--enable-auto-import): Likewise.
1828 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1830 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1832 2004-01-13 Nick Clifton <nickc@redhat.com>
1834 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1835 which if true will prevent the LMA region being used as a
1836 replacement for a default VMA region.
1837 (lang_leave_output_section_statement): Pass extra parameter.
1838 (lang_leave_overlay): Likewise.
1839 * ld.texinfo (Output Section LMA): Document that the LMA
1840 region can be set to the VMA region if no VMA has been set.
1841 * ldlang.h (struct lang_output_section_phdr_list): Create a
1842 typedef for this type. Minor formatting fixes.
1844 2004-01-13 Nick Clifton <nickc@redhat.com>
1846 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1847 assume that the section should be allocated.
1849 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1851 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1852 sections. Do ignore SEC_NEVER_LOAD sections.
1853 (lang_size_sections_1): Remove test made redundant with the above.
1855 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1857 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1858 program_header_size.
1860 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1862 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1863 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1864 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1865 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1866 (MAXPAGESIZE): Set to 64Kb.
1867 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1868 __ROFIXUP_END__. Don't map .rofixup.got any more.
1869 * emulparams/elf32frv.sh (NOP): Set.
1870 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1871 * configure.tgt: Add frv-*-*linux*.
1872 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1873 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1874 (eelf32frvfd.c): New.
1875 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1876 * emulparams/elf32frv.sh: Reverted previous two patches.
1877 * emulparams/elf32frvfd.sh: New.
1878 * Makefile.in: Rebuilt.
1879 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1880 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1881 .rofixup.got to .rofixup.
1882 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1883 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1884 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1886 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1888 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1889 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1891 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1893 * ldexp.c (align_n): Make static.
1894 * ldexp.h (align_n): Delete declaration.
1895 * ldlang.h (lang_enter_output_section_statement): Remove
1897 * ldlang.c (lang_enter_output_section_statement): Likewise.
1898 (TO_ADDR, TO_SIZE): Define.
1899 (opb_shift): New var.
1900 (init_opb): New function.
1901 (print_input_section): Call init_opb and use TO_ADDR.
1902 (print_data_statement, print_reloc_statement): Likewise.
1903 (print_padding_statement): Likewise.
1904 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1905 (lang_check_section_addresses): Likewise.
1906 (lang_size_sections_1): Likewise.
1907 (lang_do_assignments_1): Likewise.
1908 (lang_set_startof): Likewise.
1909 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1910 (lang_process): Call init_opb.
1911 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1912 (lang_enter_overlay_section): Adjust
1913 lang_enter_output_section_statement call.
1914 * ldgram.y: Likewise.
1915 * mri.c (mri_draw_tree): Likewise.
1916 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1917 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1918 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1920 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1921 * ldfile.h (ldfile_set_output_arch): Ditto.
1922 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1923 ldfile_set_output_arch.
1924 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1925 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1926 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1927 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1928 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1929 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1930 * ldgram.y: Adjust ldfile_set_output_arch call.
1931 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1932 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1933 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1934 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1935 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1936 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1937 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1939 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1941 * configure.tgt: Add m68k-uClinux target.
1943 For older changes see ChangeLog-0203
1949 version-control: never