1 2005-03-23 Alan Modra <amodra@bigpond.net.au>
3 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Set
4 SEC_EXCLUDE on .gnu.warning sections.
6 2005-03-22 Alan Modra <amodra@bigpond.net.au>
8 * scripttempl/elf.sc (SBSS): Don't provide sbss start and end syms.
10 2005-03-21 Alan Modra <amodra@bigpond.net.au>
12 * emultempl/ppc32elf.em (gld${EMULATION_NAME}_after_allocation): New
14 (LDEMUL_AFTER_ALLOCATION): Define.
16 2005-03-21 Alan Modra <amodra@bigpond.net.au>
18 * emultempl/ppc64elf.em (ppc_finish): Rename from
19 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
20 (LDEMUL_FINISH): Update.
21 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
22 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
24 2005-03-18 Julian Brown <julian@codesourcery.com>
26 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
28 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
29 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
31 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
33 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
34 bfd_section when removing unused empty output sections for
37 2005-03-19 Alan Modra <amodra@bigpond.net.au>
39 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
40 traversing the bfd section list to find pointer to new section.
42 2005-03-18 Alan Modra <amodra@bigpond.net.au>
44 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
45 input sections into .sdata and .sbss output respectively.
47 2005-03-16 David Heine <dlheine@tensilica.com>
48 Bob Wilson <bob.wilson@acm.org>
50 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
51 (lang_check_section_addresses): Ignore zero size sections here.
53 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
55 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
56 unused empty output sections for non-relocatable link.
58 * ld.h (args_type): Remove gc_sections.
60 * ldlang.c (lang_mark_used_section): New.
61 (lang_gc_sections): Use link_info.gc_sections instead of
62 command_line.gc_sections.
63 * ldmain.c (main): Likewise.
64 * lexsup.c (parse_args): Likewise.
65 * ldlang.c (lang_process): Call lang_mark_used_section.
67 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
69 2005-03-16 Nick Clifton <nickc@redhat.com>
70 Ben Elliston <bje@au.ibm.com>
72 * configure.in (werror): New switch: Add -Werror to the
73 compiler command line. Enabled by default. Disable via
75 * configure: Regenerate.
77 2005-03-16 Alan Modra <amodra@bigpond.net.au>
79 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
80 (OTHER_RELRO_SECTIONS): Set this instead.
82 2005-03-15 Nick Clifton <nickc@redhat.com>
84 * NEWS: Add cutoff for changes in 2.16 release.
86 2005-03-15 Mikkel Krautz <krautz@gmail.com>
88 * configure.tgt (x86_64-elf): Add target.
90 2005-03-15 Alan Modra <amodra@bigpond.net.au>
92 * po/es.po: Commit new Spanish translation.
94 2005-03-14 Alan Modra <amodra@bigpond.net.au>
96 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
97 Tidy etree_assert case.
99 2005-03-14 Alan Modra <amodra@bigpond.net.au>
101 * po/tr.po: Commit new Turkish translation.
103 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
105 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
106 * Makefile.in: Regenerated.
107 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
109 2005-03-07 Nick Clifton <nickc@redhat.com>
111 * po/fr.po: Updated translation.
113 2005-03-05 Alan Modra <amodra@bigpond.net.au>
115 * po/ld.pot: Regenerate.
117 2005-03-02 Jan Beulich <jbeulich@novell.com>
119 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
120 * pe-dll.c (pe_dll_generate_implib): Likewise.
122 2005-02-24 Ben Elliston <bje@au.ibm.com>
124 * ldfile.c: Remove GNU960 conditional code.
125 * emultempl/gld960.em: Likewise.
126 * emultempl/gld960c.em: Likewise.
127 * emultempl/lnk960.em: Likewise.
129 2005-02-24 Nick Clifton <nickc@redhat.com>
131 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
132 empty string from calls to concat.
134 2005-02-23 Nick Clifton <nickc@redhat.com>
136 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
137 arguments passed to concat() with a NULL.
139 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
140 define types needed by ldfile.h
142 2005-02-23 Alan Modra <amodra@bigpond.net.au>
144 * pe-dll.c: Warning fixes.
145 * emultempl/sunos.em: Likewise.
147 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
149 * ldlang.c (section_already_linked): Don't call
150 bfd_section_already_linked for dynamic objects.
152 2005-02-22 Alan Modra <amodra@bigpond.net.au>
154 * ldexp.c: Warning fixes.
155 * ldwrite.c: Likewise.
156 * emultempl/elf32.em: Likewise.
158 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
160 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
162 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
163 and ECOFF output only.
165 2005-02-21 Alan Modra <amodra@bigpond.net.au>
167 * config.in: Regenerate.
168 * configure: Regenerate.
170 2005-02-17 Zack Weinberg <zack@codesourcery.com>
172 * ldexp.c (assigning_to_dot): New global flag.
173 (fold_name): If assigning_to_dot is true, object immediately to
175 (exp_fold_tree): Set and clear assigning_to_dot around the
176 recursive call to exp_fold_tree to process the right-hand side
177 of an assignment to the location counter.
179 2005-02-17 Paul Brook <paul@codesourcery.com>
181 * scripttempl/armbpabi.sc: Add dummy name to version block.
183 2005-02-17 Alan Modra <amodra@bigpond.net.au>
185 * ldexp.c (new_abs): Init new.str.
187 2005-02-15 Mark Mitchell <mark@codesourcery.com>
189 * configure.in (AC_CHECK_FUNCS): Add glob.
190 * configure: Regenerated.
191 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
193 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
194 if HAVE_GLOB is not defined.
196 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
198 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
199 lib_path if NATIVE is yes.
201 2005-02-16 Alan Modra <amodra@bigpond.net.au>
203 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
204 an error creating fake bfd fatal.
205 (ppc_before_allocation): Continue on after errors.
206 (gld${EMULATION_NAME}_finish): Likewise.
208 2005-02-15 Nick Clifton <nickc@redhat.com>
210 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
211 not declared. It is not used and its presence causes a compile
214 2005-02-11 Zack Weinberg <zack@codesourcery.com>
216 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
217 If st.st_ino is zero, do not treat the library as a duplicate.
219 2005-02-10 Jakub Jelinek <jakub@redhat.com>
221 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
222 Set BFD_LINKER_CREATED on the stubs bfd.
223 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
226 2005-02-08 Mark Mitchell <mark@codesourcery.com>
228 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
230 (Image$$ER_RO$$Base): Define whenever RELOCATING.
231 (Image$$ER_RO$$Limit): Likewise.
232 (SHT$$INIT_ARRAY$$Base): Likewise.
233 (SHT$$INIT_ARRAY$$Limit): Likeise.
235 2005-02-10 Ben Elliston <bje@au.ibm.com>
237 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
239 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
241 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
242 to include o32 and n64 emulations.
243 (mips64*-*-linux-gnu*): Likewise.
245 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
247 * ldmain.c (warning_callback, warning_find_reloc): Prepend
248 "warning: " to warning messages.
250 2005-02-04 Alan Modra <amodra@bigpond.net.au>
252 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
253 look up symbol for etree_provide here.
255 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
257 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
259 2005-02-01 Edward Welbourne <eddy@opera.com>
260 Nick Clifton <nickc@redhat.com>
262 * ld.texinfo (Source Code Reference): New node describing how to
263 access linker script defined variables from source code.
265 2005-02-01 Alan Modra <amodra@bigpond.net.au>
267 * ld.texinfo: Clarify --as-needed operation.
269 2005-01-31 Andrew Cagney <cagney@gnu.org>
271 * configure: Regenerate to track ../gettext.m4.
273 2005-01-31 Nick Clifton <nickc@redhat.com>
275 * ldver.c (ldversion): Bump reported copyright date to 2005.
277 2005-01-31 Nick Clifton <nickc@redhat.com>
279 * configure.tgt: Remove obsolete targets m68k-lynxos and
282 2005-01-28 Julian Brown <julian@codesourcery.com>
284 * emultempl/armelf.em (fix_v4bx): New variable.
285 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
287 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
288 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
289 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
290 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
291 * NEWS: Mention --fix-v4bx.
292 * ld.texinfo: Document --fix-v4bx.
294 2005-01-25 Mark Mitchell <mark@codesourcery.com>
296 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
297 as to include .ARM.exidx$${Base,Limit}.
298 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
299 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
300 Put .init_array, .fini_array, etc. into the read-only data
303 2005-01-25 Alan Modra <amodra@bigpond.net.au>
305 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
306 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
307 only needed by an as-needed lib that didn't get linked.
309 2005-01-23 Alan Modra <amodra@bigpond.net.au>
311 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
312 __DTOR_LIST__ description.
314 2005-01-23 Alan Modra <amodra@bigpond.net.au>
316 * ld.texinfo (Location Counter <dot outside sections>): Document
317 effects of orphan section placement, and ". = ." workaround.
318 * Makefile.in: Regenerate.
320 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
322 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
323 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
325 2005-01-21 Jakub Jelinek <jakub@redhat.com>
327 * ldgram.y (AS_NEEDED): New token.
328 (input_list): Handle AS_NEEDED ( input_list ).
329 * ldlex.l (AS_NEEDED): Add.
330 * ld.texinfo: Document AS_NEEDED ().
331 * NEWS: Mention AS_NEEDED ().
333 2005-01-21 Ben Elliston <bje@au.ibm.com>
335 * ldlang.c (lang_reasonable_defaults): Remove.
336 (lang_process): Don't call lang_reasonable_defaults.
338 * ldexp.c (exp_assop): Remove #if 0'd code.
339 (exp_print_tree): Likewise.
340 * ldlang.c (lang_memory_region_lookup): Likewise.
341 (open_output): Likewise.
342 (lang_do_assignments_1): Likewise.
343 (lang_place_orphans): Likewise.
344 (lang_enter_output_section_statement): Likewise.
345 (lang_reasonable_defaults): Likewise.
346 * ldlang.h (struct lang_input_statement_struct): Likewise.
347 * mri.c (mri_draw_tree): Likewise.
348 (mri_load): Likewise.
349 * pe-dll.c (generate_reloc): Likewise.
350 (make_import_fixup_entry): Likewise.
352 * emultempl/beos.em (set_pe_subsystem): Likewise.
353 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
354 * emultempl/pe.em: Likewise.
355 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
357 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
359 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
360 (earmelfb_linux_eabi.c): New target.
361 * Makefile.in: Regenerated.
362 * configure.tgt (arm*b-*-linux-gnueabi): New target.
363 * emulparams/armelfb_linux_eabi.sh: New file.
365 2005-01-20 Nick Hudson <skrll@netbsd.org>
368 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
369 Handle bfd_elf32_hppa_nbsd_vec.
371 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
373 * ldmain.h (ld_sysroot): Change type to a constant string.
374 * ldmain.c (ld_sysroot): Likewise.
375 (get_relative_sysroot, get_sysroot): New functions, adding command-line
376 support for changing the sysroot.
377 (main): Call the new functions.
378 * lexsup.c (OPTION_SYSROOT): New.
379 (ld_options): Add --sysroot.
380 (parse_args): Add a dummy handler for it.
381 * ld.texinfo (--sysroot): Document.
382 * NEWS: Mention the new --sysroot option.
384 2005-01-18 Alan Modra <amodra@bigpond.net.au>
386 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
387 (lang_place_orphans): Don't abort on just_syms_flag, instead call
390 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
392 * defilep.y (def_name, def_library): Combine into...
393 (def_image_name): New function. Strip name to basename,
396 2005-01-12 Mark Kettenis <kettenis@gnu.org>
398 * configure.in: Be sure to invoke config.sub using the shell.
399 * configure: Regenerate.
401 2005-01-11 Alan Modra <amodra@bigpond.net.au>
403 * configure.host: Correct sed patterns for last change.
405 2005-01-10 Nick Clifton <nickc@redhat.com>
408 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
409 to determine whether config.make_executable should be set to FALSE in
410 conjunction with config.fatal_warnings.
411 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
412 (einfo): Pass TRUE as the extra argument.
414 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
416 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
417 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
418 (ia64-*-aix): Delete - this target is obsolete, and would be
419 broken by this patch.
421 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
423 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
424 (sparc64-sun-solaris2*): New host.
426 2005-01-06 Paul Brook <paul@codesourcery.com>
428 * Makefie.am: Add earmelf_vxworks.
429 * Makefile.in: Regenerate.
430 * configure.tgt: Make arm-*-vxworks a separate case.
431 * emulparams/armelf_vxworks.sh: New function.
433 2005-01-06 Alan Modra <amodra@bigpond.net.au>
435 * emultempl/ppc64elf.em (no_multi_toc): New var.
436 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
437 (OPTION_NO_MULTI_TOC): Define.
438 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
439 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
441 2005-01-05 Nick Clifton <nickc@redhat.com>
444 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
445 Standard's specification for parsable error messages.
447 2005-01-04 Paul Brook <paul@codesourcery.com>
449 * Makefile.am: Correct dependency for earmsymbian.c.
450 * Makefile.in: Regenerate.
452 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
454 * emultempl/pe.em (set_pe_subsystem): Change second arg to
455 lang_add_entry to FALSE.
457 2004-12-23 Nick Clifton <nickc@redhat.com>
460 * emulparams/shelf.sh (.stack): Increase stack start address to
463 2004-12-20 Nick Clifton <nickc@redhat.com>
465 * ldmain.c (main): Issue an error message if -static and -shared
468 2004-12-17 Jakub Jelinek <jakub@redhat.com>
470 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
471 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
472 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
473 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
474 PT_GNU_RELRO segment end.
476 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
478 * configure.tgt: Add s390x-ibm-tpf support.
480 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
482 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
485 2004-12-07 Ben Elliston <bje@gnu.org>
487 * ldemul.h: Forward declare struct option.
489 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
491 * scripttempl/pe.sc (.data): Add .jcr subsection.
493 2004-11-30 Paul Brook <paul@codesourcery.com>
495 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
497 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
499 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
500 * Makefile.in: Regenerate.
502 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
504 * emultempl/pe.em: Add --subsystem:xbox as well as
506 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
507 and numeric subsystems.
509 2004-11-24 Alan Modra <amodra@bigpond.net.au>
511 * ldexp.c (fold_name): Correct PR 338 fix.
513 2004-11-19 Mark Mitchell <mark@codesourcery.com>
515 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
516 (earmelf_linux_eabi.c): New target.
517 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
518 * emulparams/armelf_linux_eabi.sh: New file.
519 * Makefile.in: Regenerated.
521 2004-11-19 Nick Clifton <nickc@redhat.com>
524 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
525 LENGTH fields in the MEMORY command, to explicitly state that
526 symbols cannot be used in their expressions.
528 2004-11-19 Jon Beniston <jon@beniston.com>
530 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
531 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
532 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
533 which return the length and origin of a memory.
534 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
535 * NEWS: Mention support for ORIGIN and LENGTH operators.
537 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
539 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
540 a dynamic object for stubs.
542 2004-11-04 Paul Brook <paul@codesourcery.com>
544 * ld.texinfo: Document --default-imported-symver.
545 * ldmain.c (main): Set link_info.default_imported_symver.
546 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
547 (ld_options): Add --default-imported-symver.
548 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
550 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
551 Vineet Sharma <vineets@noida.hcltech.com>
553 * Makefile.am: Add entries for new maxq-coff target.
554 * Makefile.in: Regenerate.
555 * configure.tgt: Add support for maxq.
556 * emulparams/maxqcoff.sh: New File.
557 * scripttempl/maxqcoff.sc: New linker script for target maxq.
558 * NEWS: Mention the new target.
560 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
562 * testsuite/ld-scripts/weak.exp: Enable test on PE,
564 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
566 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
568 2004-11-04 Daniel Jacobowitz <dan@debian.org>
570 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
571 (earmelf_oabi.c): Remove rule.
572 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
573 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
574 * Makefile.in: Regenerated.
576 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
578 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
579 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
581 (INIT_END): Remove emitted "jump [sp+]".
584 2004-11-04 Alan Modra <amodra@bigpond.net.au>
586 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
587 (no_opd_opt, no_toc_opt): New static vars.
588 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
590 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
591 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
592 (PARSE_AND_LIST_OPTIONS): Describe new options.
593 (PARSE_AND_LIST_ARGS_CASES): Handle them.
595 2004-10-27 Nick Clifton <nickc@redhat.com>
597 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
598 parameter to invocation of lang_section_start.
599 * emultempl/aix.em (_handle_option): Likewise.
601 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
602 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
603 * Makefile.in: Regenerate.
605 2004-10-26 Mark Mitchell <mark@codesourcery.com>
607 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
608 __exidx_{start,end} when not relocating.
610 2004-10-25 Mark Mitchell <mark@codesourcery.com>
612 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
613 * ldexp.h (segment_type): New type.
614 (segments): New variable.
615 * ldexp.c (segments): New variable.
616 (exp_print_token): Handle SEGMENT_START.
617 (fold_binary): Likewise.
618 * ldgram.y (SEGMENT_START): Declare it as a token.
619 (exp): Handle SEGMENT_START.
620 * ldlang.h (lang_address_statement_type): Add segment field.
621 (lang_section_start): Change prototype.
622 * ldlang.c (map_input_to_output_sections): Do not process section
623 assignments if a corresponding SEGMENT_START has already been
625 (lang_section_start): Add segment parameter.
626 * ldlex.l (SEGMENT_START): Add it.
627 * lexsup.c (seg_segment_start): New function.
628 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
629 * ld.texinfo (SEGMENT_START): Document it.
630 * emulparams/armsymbian.sh (EMBEDDED): Set it.
631 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
632 base addresses. Do not map relocations.
633 * NEWS: Mention SEGMENT_START.
635 2004-10-26 Paul Brook <paul@codesourcery.com>
637 * ld.texinfo: Document --default-symver.
638 * ldmain.c (main): Set link_info.create_default_symver.
639 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
640 (ld_options): Add default-symver.
641 (parse_args): Handle OPTION_DEFAULT_SYMVER.
643 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
645 * pe-dll.c (process_def_file): Don't export all symbols by default if
646 building a position-independent executable.
648 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
651 * ldmain.c (reloc_overflow): Accept a pointer to struct
652 bfd_link_hash_entry. Report symbol location for relocation
655 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
657 * genscripts.sh (libpath.exp): Really generate for first
660 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
662 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
663 comparison and replacement of filenames.
665 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
668 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
669 option on linker script as the one for linker script.
671 2004-10-16 Daniel Jacobowitz <dan@debian.org>
673 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
674 (check_excluded_libs): New.
675 (load_symbols): Call check_excluded_libs.
676 * ldlang.h (add_excluded_libs): New prototype.
677 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
678 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
679 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
680 * ld.texinfo (Command Line Variables): Document --exclude-libs.
681 (Options Specific to i386 PE Targets): Remove --exclude-libs.
683 2004-10-15 Alan Modra <amodra@bigpond.net.au>
685 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
686 failing link script assert.
688 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
690 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
693 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
694 (SMALL_DATA_DTOR): Set.
695 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
696 (SMALL_DATA_DTOR): Unset.
697 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
698 after .data. If SMALL_DATA_DTOR is set, move .dtors after
701 2004-10-14 Alan Modra <amodra@bigpond.net.au>
704 * ldlang.h (lang_output_section_statement_type): Make "next" a
705 struct lang_output_section_statement_struct *.
706 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
707 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
708 * ldlang.c (lang_output_section_find_1): Adjust for changed
709 output_section_statement "next".
710 (strip_excluded_output_sections): Likewise.
711 (lang_record_phdrs): Likewise.
712 (lang_output_section_find_by_flags): New function.
713 (output_prev_sec_find): Move from pe.em. Adjust iterator.
714 (lang_insert_orphan): New function. Tail end of elf32.em's
715 place_orphan merged with that from pe.em. Allow bfd_section to
716 be placed first. New heuristic for placing new output section
717 statement in existing script, and accompanying split of __start
718 symbol alignment into a separate assignment to dot.
719 (lang_add_section): Consistently use output->bfd_section rather than
720 an alias, section->output_section.
721 (map_input_to_output_sections): Rename overly long arg. Move
722 initialization of data_statement output section to here..
723 (lang_check_section_addresses): ..from here.
724 (print_assignment): Correct printing of etree_assert.
725 (print_all_symbols): Don't bomb if userdata is NULL.
726 (IGNORE_SECTION): Rearrange.
727 * emultempl/elf32.em (output_rel_find): Adjust interator.
728 (output_prev_sec_find): Delete.
729 (struct orphan_save): Delete.
730 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
731 flags without creating a duplicate output section statement.
732 Revise code holding history of various orphan section placements.
733 Allow orphan sections to place before script specified output
734 sections. Call lang_output_section_find_by_flags when placement
735 by name fails. Use lang_insert_orphan.
736 * emultempl/mmo.em (output_prev_sec_find): Delete.
737 (struct orphan_save): Delete.
738 (mmo_place_orphan): Revise code holding history of orphan placement.
739 Allow orphans to place before existing output sections. Use
741 * emultempl/pe.em (output_prev_sec_find): Delete.
742 (struct orphan_save): Delete.
743 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
746 2004-10-13 Mark Mitchell <mark@codesourcery.com>
748 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
751 2004-10-13 Alan Modra <amodra@bigpond.net.au>
754 * ldcref.c (check_section_sym_xref): Delete.
755 (check_local_sym_xref): New function.
756 (check_nocrossrefs): Adjust call.
757 * emultempl/pe.em (struct orphan_save): Add os_tail.
758 (place_orphan): Backport assorted fixes from elf32.em.
760 2004-10-12 Bob Wilson <bob.wilson@acm.org>
762 * emultempl/xtensaelf.em: Use ISO C90 formatting.
764 2004-10-11 Jakub Jelinek <jakub@redhat.com>
766 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
767 getline for portability.
769 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
770 (gld${EMULATION_NAME}_parse_ld_so_conf,
771 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
772 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
774 2004-10-11 Alan Modra <amodra@bigpond.net.au>
777 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
778 rejected when linking statically.
780 2004-10-08 Daniel Jacobowitz <dan@debian.org>
782 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
784 2004-10-07 Bob Wilson <bob.wilson@acm.org>
786 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
787 assembler-generated longcall sequences. Describe new --size-opt
789 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
790 * emultempl/xtensaelf.em (remove_section,
791 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
792 elf_xtensa_after_open): New.
793 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
794 OPTION_NO_LITERAL_MOVEMENT): Define.
795 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
796 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
797 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
798 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
799 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
800 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
801 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
802 * Makefile.am (eelf32xtensa.c): Update dependencies.
803 * Makefile.in: Regenerate.
805 2004-10-07 Jeff Baker <jbaker@qnx.com>
807 * lexsup.c: Handle --warn-shared-textrel option.
808 (ld_options): Restore alpha sorting of options.
809 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
810 * ld.texinfo: Add documentation for --warn-shared-textrel.
811 * NEWS: Added mention of --warn-shared-textrel option.
813 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
815 * emultempl/crxelf.em (disable_relaxation): Add.
816 (crxelf_before_allocation): Enable --relax option by default.
817 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
818 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
819 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
821 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
823 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
824 --sort-section name|alignment.
826 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
827 --sort-section name|alignment.
829 * ld.h (sort_type): New enum.
830 (wildcard_spec): Change the type of `sorted' to sort_type.
832 * ldgram.y (SORT): Removed.
833 (SORT_BY_NAME): Added.
834 (SORT_BY_ALIGNMENT): Added.
835 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
837 (input_section_spec_no_keep): Updated `sorted'.
838 (statement): Replace SORT with SORT_BY_NAME.
840 * ldlang.c (compare_section): New function to compare 2
841 sections with different sorting schemes.
842 (wild_sort): Updated. Use compare_section.
843 (update_wild_statements): New function.
844 (lang_process): Call update_wild_statements before
845 map_input_to_output_sections.
847 * ldlex.l (SORT_BY_NAME): New.
848 (SORT_BY_ALIGNMENT): New.
849 (SORT): Return SORT_BY_NAME.
851 * ldmain.c (sort_section): New. Defined.
852 (main): Initialize it to none.
854 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
855 (ld_options): Add an entry for OPTION_SORT_SECTION.
856 (parse_args): Handle OPTION_SORT_SECTION.
858 * mri.c (mri_draw_tree): Updated `sorted'.
860 2004-10-04 Jakub Jelinek <jakub@redhat.com>
862 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
863 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
865 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
866 and . as second argument.
867 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
868 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
869 (fold_binary): Add it here. Insert padding to make relro_end
870 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
871 exp_dataseg_relro_adjust phase just use previously computed
873 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
874 relro_adjust here. Call lang_size_sections_1 once more if there
875 was too big padding at DATA_SEGMENT_RELRO_END.
876 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
878 2004-10-01 Paul Brook <paul@codesourcery.com>
880 * emulparams/armelf.sh: Add unwinding table sections.
882 2004-09-30 Filip Navara <navaraf@reactos.com>
884 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
885 correct base address for position independant executables.
886 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
889 2004-09-30 Paul Brook <paul@codesourcery.com>
891 * ld.texinfo: Document --target2=abs.
892 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
894 2004-09-29 Nick Clifton <nickc@redhat.com>
896 * scripttempl/xstormy16.sc: Only perform the assignments to the
897 ROM region when not performing a relocatable link. The ROM region
898 does not start at address 0, but the sections will.
899 * Makefile.am: Fix linker script dependency for the generation of
901 * Makefile.in: Regenerate.
903 2004-09-18 Filip Navara <navaraf@reactos.com>
905 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
906 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
907 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
909 * scripttempl/pe.sc: Make the virtual address and file offset synced if
910 the alignment is lower than the target page size.
912 2004-09-27 Filip Navara <navaraf@reactos.com>
914 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
915 def_file_parse to handle pe_def_file if NULL and prevent crash with
918 2004-09-27 Alan Modra <amodra@bigpond.net.au>
920 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
921 --emit-stub-syms automatically when --emit-relocs.
923 2004-09-24 Paul Brook <paul@codeosurcery.com>
925 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
926 .fini_array sections.
928 2004-09-19 Andreas Schwab <schwab@suse.de>
930 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
931 base so that relro end is suitably aligned.
933 2004-09-17 Paul Brook <paul@codesourcery.com>
935 * ld.texinfo: Rename arm-specific section. Document --target*
936 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
937 * emulparams/armelf_linux.sh: Ditto.
938 * emulparams/armelf_nbsd.sh: Ditto.
939 * emultempl/armelf.em: Set default for TARGET2_TYPE.
940 (target2_type): New variable.
941 (arm_elf_before_allocation): Don't pass target1_type.
942 (arm_elf_create_output_section_statements): New function.
943 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
944 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
945 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
946 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
947 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
948 argument to bfd_elf32_arm_process_before_allocation.
950 2004-09-17 Alan Modra <amodra@bigpond.net.au>
952 * ldexp.c (fold_name): Update u.undef.next refs.
953 * emultempl/pe.em: Likewise.
954 * emultempl/sunos.em: Likewise.
956 2004-09-17 Alan Modra <amodra@bigpond.net.au>
958 * Makefile.am: Run "make dep-am".
959 * Makefile.in: Regenerate.
960 * config.in: Regenerate.
961 * configure: Regenerate.
962 * aclocal.m4: Regenerate.
963 * po/ld.pot: Regenerate.
965 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
967 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
971 2004-09-16 Alan Modra <amodra@bigpond.net.au>
973 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
974 to bfd_elf32_arm_process_before_allocation call.
976 2004-09-13 Paul Brook <paul@codesourcery.com>
978 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
979 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
981 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
983 * configure: Regenerated with autconfig 2.13.
985 2004-09-07 Andreas Schwab <schwab@suse.de>
987 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
988 alignment before adjusting DATA_SEGMENT_RELRO_END.
990 2004-09-06 Mark Mitchell <mark@codesourcery.com>
992 * emulparams/armsymbian.sh: Use armbpabi script.
993 * scripttempl/armbpabi.sc: New script.
995 2004-09-02 Mark Mitchell <mark@codesourcery.com>
997 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
998 (earmsymbian.c): New target.
999 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
1000 * Makefile.in: Regenerated.
1001 * aclocal.m4: Likewise.
1002 * configure: Likewise.
1003 * emulparams/armsymbian.sh: New file.
1005 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
1007 * scripttempl/elf32crx.sc: Edit file with comments.
1008 (.init): Add new section.
1010 (.ctor): Control the linkage order.
1013 2004-08-27 Nick Clifton <nickc@redhat.com>
1015 * emultempl/pe.em (after_open): Do not assume that either bfd is
1018 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1020 * ldlang.c (lang_init): Don't compare with TRUE.
1022 2004-08-25 Dmitry Diky <diwil@spec.ru>
1024 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1025 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1027 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1029 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1031 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1033 * configure.tgt (arm*-*-symbianelf*): New target.
1034 (arm*-*-eabi*): Likewise.
1036 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1038 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1039 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1040 (OPTION_NON_OVERLAPPING_OPD): Define.
1041 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1042 --non-overlapping-opd option.
1044 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1047 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1048 was already on the undefs list.
1050 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1052 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1053 prefix the symbol field too.
1055 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1057 * ldmain.c (link_callbacks): Remove "error_handler".
1058 * ldmisc.c: Include elf-bfd.h.
1059 (vfinfo): Sort comment. Handle %A. Use %A instead of
1060 bfd_get_section_indent.
1061 (error_handler): Delete.
1062 * ldmisc.h (error_handler): Delete declaration.
1064 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1066 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1067 ppc64_elf_restore_symbols.
1069 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1071 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1072 .toc is too large on relocatable linking.
1074 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1076 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1077 (LDEMUL_AFTER_OPEN): Don't define.
1079 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1081 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1083 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1085 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1088 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1090 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1092 2004-07-26 Dmitry Diky <diwil@spec.ru>
1094 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1095 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1097 * configure.tgt: Likewise.
1098 * emulparams/msp430all.sh: Likewise.
1099 * Makefile.in: Regenerate.
1101 2004-07-23 Nick Clifton <nickc@redhat.com>
1103 * emultempl/elf32.em (_place_orphan): Use an already existing
1104 section name if that section does not have any flags set.
1106 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1108 * ldlang.c (already_linked_hash_entry): Removed.
1109 (already_linked): Likewise.
1110 (already_linked_table): Likewise.
1111 (section_already_linked): Call bfd_section_already_linked.
1112 (lang_process): Replace already_linked_table_init with
1113 bfd_section_already_linked_table_init and check return. Replace
1114 already_linked_table_free with bfd_section_already_linked_table_free.
1116 2004-07-21 Nick Clifton <nickc@redhat.com>
1118 * ldlang.c (init_os): Make sure that the newly allocated userdata
1119 structure is zeroed out.
1121 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1123 * NEWS: Mention the new --add-needed/--no-add-needed and
1124 --as-needed/--no-as-needed options.
1126 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1128 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1129 check the add_needed field.
1130 (dt_needed): New struct.
1131 (gld${EMULATION_NAME}_try_needed): Change the first argument
1132 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1133 bit in the file where the DT_NEEDED entry comes from.
1134 (gld${EMULATION_NAME}_search_needed): Change the second
1135 argument to a pointer to struct dt_needed.
1136 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1137 (gld${EMULATION_NAME}_after_open): Likewise.
1139 * ld.texinfo: Add --add-needed document.
1140 * ldlang.c (new_afile): Set p->add_needed.
1141 * ldlang.h (lang_input_statement_type): Add add_needed field.
1142 * ldmain.h (add_needed): Declare.
1143 * ldmain.c (add_needed): New global var.
1144 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1145 OPTION_NO_ADD_NEEDED.
1146 (ld_options): Likewise.
1147 (parse_args): Handle them.
1149 2004-07-13 Christof Petig <christof@petig-baender.de>
1151 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1152 for endian-ness of extracted addend.
1154 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1156 * pe-dll.c (auto_export): Filter on just the import prefix,
1157 "_imp_", not "_imp__".
1159 2004-07-09 Nick Clifton <nickc@redhat.com>
1161 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1163 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1165 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1166 (eelf32crx.c): New target.
1167 * Makefile.in: Regenerate.
1168 * configure.tgt: Handle crx-*-elf*.
1169 * emulparams/elf32crx.sh: New file.
1170 * emultempl/crxelf.em: New file.
1171 * scripttempl/elf32crx.sc: New file.
1172 * NEWS: Mention new target.
1174 2004-07-06 Nick Clifton <nickc@redhat.com>
1176 * Makefile.am: Add eshlsymbian.c.
1177 * Makefile.in: Regenerate.
1178 * configure.tgt: Add sh*-symbian-elf target.
1179 * emulparams/shlsymbian.sh: New file. Configure the
1180 sh-symbian-elf linker scripts.
1181 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1182 template for the sh-symbian-elf target.
1184 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1186 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1187 * emulparams/hppalinux.sh: Likewise.
1188 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1189 data segment and PLT_BEFORE_GOT is defined.
1191 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1193 * ld.texinfo (WIN32): Document PE weak symbols.
1195 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1197 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1199 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1201 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1204 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1206 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1209 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1211 * ldlang.c (print_output_section_statement): Don't print size before
1213 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1215 * ldexp.c (fold_name): .. See below.
1216 * ldlang.c (section_already_linked, print_output_section_statement,
1217 print_input_section, insert_pad, size_input_section,
1218 lang_check_section_addresses, lang_size_sections_1,
1219 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1220 lang_one_common, lang_reset_memory_regions, lang_process,
1221 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1222 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1223 * pe-dll.c (process_def_file, generate_reloc): ..
1224 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1225 gld${EMULATION_NAME}_before_allocation): ..
1226 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1227 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1228 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1229 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1230 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1231 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1232 "size" instead of "_raw_size" and "_cooked_size". Expand
1233 bfd_section_size macro invocations.
1235 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1237 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1238 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1239 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1241 (.tls): Define ___tls_start__ and ___tls_end__.
1243 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1245 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1247 2004-06-18 Adam Nemet <anemet@lnxw.com>
1249 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1250 * configure: Regenerate.
1252 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1254 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1255 .gcc_except_table output sections lost accidentally with
1258 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1260 * ldwrite.c (build_link_order): Use bfd_get_section_size
1261 instead of bfd_get_section_size_before_reloc or _raw_size.
1262 * pe-dll.c (process_def_file): Likewise.
1264 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1266 From Richard Wirth <r.wirth@wirthware.de>
1267 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1269 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1271 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1272 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1274 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1276 * testsuite/ld-sh/arch/arch.exp: New test script.
1277 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1278 * testsuite/ld-sh/arch/sh.s: New file.
1279 * testsuite/ld-sh/arch/sh2.s: New file.
1280 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1281 * testsuite/ld-sh/arch/sh2e.s: New file.
1282 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1283 * testsuite/ld-sh/arch/sh3.s: New file.
1284 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1285 * testsuite/ld-sh/arch/sh3e.s: New file.
1286 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1287 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1288 * testsuite/ld-sh/arch/sh4.s: New file.
1289 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1290 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1291 * testsuite/ld-sh/arch/sh4a.s: New file.
1293 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1295 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1297 * lexsup.c: Formatting. Wrap long lines.
1298 * ldwrite.c: Update copyright date.
1300 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1301 (output_section_callback): Nor SEC_KEEP here.
1302 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1303 (lang_gc_wild): Delete. Fold into..
1304 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1306 (lang_process): Always call lang_gc_sections.
1307 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1308 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1311 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1313 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1314 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1315 * ldlang.c (lang_add_section): Likewise.
1317 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1319 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1320 sections when doing a final link. Clear SEC_EXCLUDE when doing
1321 a relocable link, except for SEC_DEBUGGING sections.
1322 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1323 same condition here to drop SEC_EXCLUDE orphan sections.
1325 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1327 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1328 only when not a relocatable link.
1329 (print_input_section): Handle SEC_EXCLUDE sections.
1330 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1331 (lang_do_assignments_1): Likewise.
1332 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1333 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1334 * emultempl/hppaelf.em (build_section_lists): Likewise.
1335 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1336 (build_section_lists): Likewise.
1338 2004-05-23 Andreas Schwab <schwab@suse.de>
1340 * ld.texinfo (Options): Fix typo in last change.
1342 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1344 * ld.h (ld_config_type): Add new field: hash_table_size.
1345 * ldmain.c: Initialise the new field to zero. If it is non-zero
1346 after parsing the linker's command line call
1347 bfd_hash_set_default_size.
1348 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1349 (ld_options): Add hash-size.
1350 (parse_args): Parse --hash-size option. Allow
1351 --reduce-memory-overheads to set the default hash table size as
1353 * ld.texinfo: Document the new switch. Also mention that
1354 --reduce-memory-overheads can affect the hash table size.
1355 * NEWS: Mention the new feature.
1357 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1359 * NEWS: Mention new linker map file generation and the
1360 --reduce-memory-overheads option.
1361 * ld.texinfo: Document --reduce-memory-overheads option.
1362 * ld.h (map_symbol_def): New struct.
1363 (struct user_section_struct, section_userdata_type): Rename to:
1364 (struct lean_user_section_struct, lean_section_userdata_type).
1365 (struct fat_user_section_struct, fat_section_userdata_type): New.
1366 (SECTION_USERDATA_SIZE): Define.
1367 (args_type): New member reduce_memory_overheads.
1368 * ldlang.c (map_obstack): New static variable.
1369 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1370 (lang_map): Unless command_line.reduce_memory_overheads is set,
1371 initialize lists of defined symbols for each section.
1372 (print_input_section): Unless command_line.reduce_memory_overheads
1373 is set, use print_all_symbols.
1374 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1375 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1376 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1377 (ld_options): Add entry for --reduce-memory-overheads.
1378 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1380 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1382 * ldgram.y (sect_constraint): New.
1383 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1384 (section): Add sect_constraint. Pass additional argument
1385 to lang_enter_output_section_statement.
1386 * mri.c (mri_draw_tree): Pass additional argument to
1387 lang_enter_output_section_statement.
1388 * emultempl/pe.em (place_orphan): Likewise.
1389 (output_prev_sec_find): Disregard output section statements with
1391 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1392 (mmo_place_orphan): Pass additional argument to
1393 lang_enter_output_section_statement.
1394 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1395 statements with constraint == -1.
1396 (place_orphan): Pass additional argument to
1397 lang_enter_output_section_statement.
1398 * ldlang.c (lang_enter_overlay_section): Likewise.
1399 (lang_output_section_find_1): New.
1400 (lang_output_section_find): Use it.
1401 (lang_output_section_statement_lookup_1): New.
1402 (lang_output_section_statement_lookup): Use it.
1403 (check_section_callback, check_input_sections): New.
1404 (map_input_to_output_sections): Check if all input sections
1405 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1406 (strip_excluded_output_sections): Disregard output section statements
1407 with constraint == -1.
1408 (lang_record_phdrs): Likewise.
1409 (lang_enter_output_section_statement): Add constraint argument.
1410 Use lang_output_section_statement_lookup_1.
1411 * ldlang.h (lang_output_section_statement_type): Add constraint
1412 and all_input_readonly fields.
1413 (lang_enter_output_section_statement): Adjust prototype.
1414 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1415 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1416 segment if all input sections are readonly.
1418 2004-05-19 Adam Nemet <anemet@lnxw.com>
1420 * scripttempl/i386lynx.sc: Remove file.
1422 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1424 * ld.texinfo (Output Section Address): Correct subsection name.
1426 2004-05-17 Adam Nemet <anemet@lnxw.com>
1428 * configure.tgt (powerpc-*-lynxos* case): New case.
1429 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1430 * emulparams/ppclynx.sh: New file.
1431 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1432 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1433 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1434 (eppclynx.c): New rule.
1435 * Makefile.in: Regenerate.
1437 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1439 * configure.tgt (or32-*-rtems*): Switch to elf and
1440 support versioned targets.
1442 2004-05-13 Nick Clifton <nickc@redhat.com>
1444 * po/fr.po: Updated French translation.
1446 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1448 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1449 for binaries, -shared and -pie.
1450 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1451 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1452 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1453 (OTHER_RELRO_SECTIONS): ... this.
1454 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1455 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1456 -z relro and -z norelro.
1457 (gld${EMULATION_NAME}_list_options): Add it to usage.
1458 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1459 -z relro scripts when appropriate.
1460 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1461 Create separate .got.plt section if SEPARATE_GOTPLT.
1462 Move sections which are only written during relocation handling
1463 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1464 before .data. Add DATA_SEGMENT_RELRO_END directive.
1465 Include OTHER_RELRO_SECTIONS.
1466 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1467 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1468 (fold_unary): Likewise.
1469 (fold_binary): Handle -z relro.
1470 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1471 exp_dataseg_relro_adjust phases. Add relro_end field.
1472 * ldmain.c (main): Initialize link_info.relro to FALSE.
1473 * ldlang.c (lang_size_sections): Handle -z relro.
1475 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1477 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1479 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1481 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1482 before printing it with %W.
1484 2004-05-07 Brian Ford <ford@vss.fsi.com>
1485 DJ Delorie <dj@redhat.com>
1487 * emultempl/pe.em (real_flags): New static.
1488 (OPTION_LARGE_ADDRESS_AWARE): New define.
1489 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1490 (gld_${EMULATION_NAME}_list_options): Likewise.
1491 (gld${EMULATION_NAME}_handle_option): Likewise.
1492 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1493 * ld.texinfo: Document it.
1496 2004-05-07 Brian Ford <ford@vss.fsi.com>
1498 * NEWS: Mention DWARF 2 support for i386pe.
1500 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1502 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1505 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1507 * ldlang.c (unique_section_p): Pass section parm, return true on
1509 (output_section_callback): Adjust.
1510 * ldlang.h (unique_section_p): Update prototype.
1511 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1513 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1515 * ld.texinfo (--gc-sections): Remove restriction for
1518 2004-04-29 Brian Ford <ford@vss.fsi.com>
1520 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1521 for DWARF 2/3. Update stab section's syntax.
1523 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1525 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1526 (fill_edata): Correct pointer arithmetic.
1528 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1530 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1531 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1532 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1533 (EXTRA_EM_FILE): Use mipsecoff.em
1534 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1535 (EXTRA_EM_FILE): Use mipsecoff.em
1536 * emultempl/mipsecoff.em: Restructure to be included as an
1537 extra emulation file.
1538 (check_sections, gld${EMULATION_NAME}_after_open)
1539 (gld${EMULATION_NAME}_after_allocation)
1540 (gld${EMULATION_NAME}_get_script)
1541 (ld_${EMULATION_NAME}_emulation): Remove
1542 (gld${EMULATION_NAME}_before_parse): Rename to...
1543 (mipsecoff_before_parse): This.
1544 (LDEMUL_BEFORE_PARSE): Define.
1545 * emultempl/mipself.em: Remove file.
1546 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1547 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1549 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1550 * Makefile.in: Regenerate.
1552 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1554 * ld.texinfo (synthesizing on H8/300): Information about linker
1555 relaxation support for bit manipulation instructions and system
1556 control instructions is added.
1558 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1560 * NEWS: Mention change in DEFINED semantics.
1562 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1564 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1565 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1566 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1568 2004-04-21 Ben Elliston <bje@au.ibm.com>
1570 * ld.texinfo (Simple Example): Add missing punctuation.
1572 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1574 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1576 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1578 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1581 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1583 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1584 with default priority. Likewise for dtors.
1586 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1588 * configure.host: Remove mips*-dec-bsd* target.
1589 * configure.tgt: Likewise.
1591 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1593 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1594 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1595 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1596 * emultempl/irix.em: New file.
1597 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1599 * Makefile.in: Regenerate.
1601 2004-04-01 Paul Brook <paul@codesourcery.com>
1603 * emultempl/armelf.em (byteswap_code): Add.
1604 (arm_elf_before_allocation): Pass extra parameter.
1605 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1606 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1607 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1608 * emultempl/armelf_oabi.em: Pass extra parameter.
1609 * ld.texinfo: Document --be8.
1611 2004-03-30 Stan Shebs <shebs@apple.com>
1613 Remove long-obsolete MPW support.
1614 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1615 * Makefile.am (mpw): Remove file-presynthesizing actions.
1616 * Makefile.in: Likewise.
1617 * ldfile.c (slash): Remove MPW case.
1618 * ldlex.l [MPW]: Remove unused definition.
1620 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1622 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1623 (eelf32cr16c.c): New target.
1624 * Makefile.in: Regenerate.
1625 * configure.tgt: Handle cr16c-*-elf*.
1626 * emulparams/elf32cr16c.sh: New file.
1627 * scripttempl/elfcr16c.sc: Likewise
1628 * NEWS: Mention support for new target.
1630 2004-03-30 Nick Clifton <nickc@redhat.com>
1632 * po/sv.po: Updated Swedish translation.
1634 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1636 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1637 * emultempl/hppaelf.em: Likewise.
1638 * emultempl/ppc64elf.em: Likewise.
1639 * emultempl/sh64elf.em: Likewise.
1641 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1643 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1644 size_dynamic_sections call.
1646 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1649 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1650 link_info.wrap_char.
1652 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1654 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1655 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1657 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1659 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1661 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1663 * config.in: Regenerate.
1664 * po/ld.pot: Regenerate.
1666 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1668 * ld.texinfo: Add --as-needed doco.
1669 * ldmain.c (as_needed): New global var.
1670 * ldmain.h (as_needed): Declare.
1671 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1672 OPTION_NO_AS_NEEDED.
1673 (ld_options): Likewise.
1674 (parse_args): Handle them.
1675 * ldlang.h (lang_input_statement_type): Add as_needed field.
1676 * ldlang.c (new_afile): Set p->as_needed.
1677 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1678 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1679 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1681 * ldlang.c (open_input_bfds): Remove useless cast.
1682 (lang_do_assignments_1): Likewise.
1683 (lang_for_each_input_section): Delete.
1685 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1687 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1689 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1691 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1692 private when building implib.
1694 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1696 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1698 (IGNORE_SECTION): Ignore .tbss sections too.
1699 (lang_size_sections_1): .tbss sections do not advance dot.
1701 2004-03-01 Andreas Schwab <schwab@suse.de>
1703 * ld.texinfo (Options): Fix example for --wrap.
1705 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1707 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1710 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1712 * ldlang.c (lang_check): Use %P, not %E, in error message.
1714 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1716 * ldlang.h (struct lang_output_section_state): Change processed
1718 * ldexp.c (check, invalid): Remove.
1719 (fold_name): Move valid_p assignments. Create undefined symbol
1720 when needed. Directly exampine section's processd flag.
1721 * ldlang.c (lang_output_section_statement_lookup): Adjust
1722 processed field init.
1723 (lang_size_sections_1): Allow LOADADDR when determining section's
1724 VMA. Adjust error message. Fold data statement's expr.
1725 (lang_size_sections): Correctly increment lang_statement_iteration.
1727 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1729 * ldexp.c (fold_tree): Follow indirect symbols.
1731 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1733 * ldgram.y (exp): Add two operand ALIGN.
1734 * ldexp.c (fold_binary): Add ALIGN_K case.
1735 * ld.texinfo (ALIGN): Document two operand version.
1737 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1739 * ldlang.c (map_input_to_output_sections): Initialize sections
1740 mentioned in a data statement expression.
1741 (lang_do_assignments_1): Add data statement's expression's
1744 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1746 * ldgram.y (statement_anywhere): Add assert rule.
1747 * ldlang.c (exp_init_os): Add assert case.
1749 2004-02-14 Andrew Cagney <cagney@redhat.com>
1751 * ldmain.c (remove_output): Call bfd_cache_close.
1753 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1755 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1756 .MIPS.content* and .MIPS.events* sections.
1758 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1760 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1761 .note.gnu.arm.ident to after allocated sections. Mark its
1764 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1766 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1767 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1768 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1769 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1770 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1772 2004-02-05 Nick Clifton <nickc@redhat.com>
1774 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1776 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1778 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1780 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1782 * genscripts.sh: Fix typo.
1784 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1786 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1788 * emulparams/elf64_ia64.sh: Put .rela.opd into
1789 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1791 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1793 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1794 * ld.texinfo (--omagic): Note that writable text section
1795 does not conform to published PE-COFF specs.
1796 (--enable-auto-import): Likewise.
1798 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1800 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1802 2004-01-13 Nick Clifton <nickc@redhat.com>
1804 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1805 which if true will prevent the LMA region being used as a
1806 replacement for a default VMA region.
1807 (lang_leave_output_section_statement): Pass extra parameter.
1808 (lang_leave_overlay): Likewise.
1809 * ld.texinfo (Output Section LMA): Document that the LMA
1810 region can be set to the VMA region if no VMA has been set.
1811 * ldlang.h (struct lang_output_section_phdr_list): Create a
1812 typedef for this type. Minor formatting fixes.
1814 2004-01-13 Nick Clifton <nickc@redhat.com>
1816 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1817 assume that the section should be allocated.
1819 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1821 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1822 sections. Do ignore SEC_NEVER_LOAD sections.
1823 (lang_size_sections_1): Remove test made redundant with the above.
1825 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1827 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1828 program_header_size.
1830 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1832 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1833 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1834 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1835 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1836 (MAXPAGESIZE): Set to 64Kb.
1837 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1838 __ROFIXUP_END__. Don't map .rofixup.got any more.
1839 * emulparams/elf32frv.sh (NOP): Set.
1840 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1841 * configure.tgt: Add frv-*-*linux*.
1842 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1843 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1844 (eelf32frvfd.c): New.
1845 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1846 * emulparams/elf32frv.sh: Reverted previous two patches.
1847 * emulparams/elf32frvfd.sh: New.
1848 * Makefile.in: Rebuilt.
1849 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1850 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1851 .rofixup.got to .rofixup.
1852 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1853 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1854 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1856 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1858 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1859 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1861 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1863 * ldexp.c (align_n): Make static.
1864 * ldexp.h (align_n): Delete declaration.
1865 * ldlang.h (lang_enter_output_section_statement): Remove
1867 * ldlang.c (lang_enter_output_section_statement): Likewise.
1868 (TO_ADDR, TO_SIZE): Define.
1869 (opb_shift): New var.
1870 (init_opb): New function.
1871 (print_input_section): Call init_opb and use TO_ADDR.
1872 (print_data_statement, print_reloc_statement): Likewise.
1873 (print_padding_statement): Likewise.
1874 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1875 (lang_check_section_addresses): Likewise.
1876 (lang_size_sections_1): Likewise.
1877 (lang_do_assignments_1): Likewise.
1878 (lang_set_startof): Likewise.
1879 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1880 (lang_process): Call init_opb.
1881 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1882 (lang_enter_overlay_section): Adjust
1883 lang_enter_output_section_statement call.
1884 * ldgram.y: Likewise.
1885 * mri.c (mri_draw_tree): Likewise.
1886 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1887 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1888 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1890 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1891 * ldfile.h (ldfile_set_output_arch): Ditto.
1892 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1893 ldfile_set_output_arch.
1894 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1895 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1896 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1897 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1898 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1899 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1900 * ldgram.y: Adjust ldfile_set_output_arch call.
1901 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1902 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1903 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1904 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1905 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1906 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1907 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1909 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1911 * configure.tgt: Add m68k-uClinux target.
1913 For older changes see ChangeLog-0203
1919 version-control: never