1 2005-03-21 Alan Modra <amodra@bigpond.net.au>
3 * emultempl/ppc64elf.em (ppc_finish): Rename from
4 gld${EMULATION_NAME}_finish. Call gld${EMULATION_NAME}_finish.
5 (LDEMUL_FINISH): Update.
6 * emultempl/hppaelf.em (hppaelf_finish, LDEMUL_FINISH): Likewise.
7 * emultempl/m68hc1xelf.em (m68hc11elf_finish, LDEMUL_FINISH): Likewise.
9 2005-03-18 Julian Brown <julian@codesourcery.com>
11 * scripttempl/armbpapi.sc (.rel.dyn): Add .rel.init_array,
13 (.rela.dyn): Add .rela.init_array, .rela.fini_array.
14 (SECTIONS): Add .rel.other, .rela.other, .reli.other after PLT relocs.
16 2005-03-18 H.J. Lu <hongjiu.lu@intel.com>
18 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Don't set
19 bfd_section when removing unused empty output sections for
22 2005-03-19 Alan Modra <amodra@bigpond.net.au>
24 * ldlang.c (lang_insert_orphan): Use old section_tail rather than
25 traversing the bfd section list to find pointer to new section.
27 2005-03-18 Alan Modra <amodra@bigpond.net.au>
29 * scripttempl/elf.sc: When CREATE_SHLIB, put .sdata2 and .sbss2
30 input sections into .sdata and .sbss output respectively.
32 2005-03-16 David Heine <dlheine@tensilica.com>
33 Bob Wilson <bob.wilson@acm.org>
35 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
36 (lang_check_section_addresses): Ignore zero size sections here.
38 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
40 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
41 unused empty output sections for non-relocatable link.
43 * ld.h (args_type): Remove gc_sections.
45 * ldlang.c (lang_mark_used_section): New.
46 (lang_gc_sections): Use link_info.gc_sections instead of
47 command_line.gc_sections.
48 * ldmain.c (main): Likewise.
49 * lexsup.c (parse_args): Likewise.
50 * ldlang.c (lang_process): Call lang_mark_used_section.
52 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
54 2005-03-16 Nick Clifton <nickc@redhat.com>
55 Ben Elliston <bje@au.ibm.com>
57 * configure.in (werror): New switch: Add -Werror to the
58 compiler command line. Enabled by default. Disable via
60 * configure: Regenerate.
62 2005-03-16 Alan Modra <amodra@bigpond.net.au>
64 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
65 (OTHER_RELRO_SECTIONS): Set this instead.
67 2005-03-15 Nick Clifton <nickc@redhat.com>
69 * NEWS: Add cutoff for changes in 2.16 release.
71 2005-03-15 Mikkel Krautz <krautz@gmail.com>
73 * configure.tgt (x86_64-elf): Add target.
75 2005-03-15 Alan Modra <amodra@bigpond.net.au>
77 * po/es.po: Commit new Spanish translation.
79 2005-03-14 Alan Modra <amodra@bigpond.net.au>
81 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
82 Tidy etree_assert case.
84 2005-03-14 Alan Modra <amodra@bigpond.net.au>
86 * po/tr.po: Commit new Turkish translation.
88 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
90 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
91 * Makefile.in: Regenerated.
92 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
94 2005-03-07 Nick Clifton <nickc@redhat.com>
96 * po/fr.po: Updated translation.
98 2005-03-05 Alan Modra <amodra@bigpond.net.au>
100 * po/ld.pot: Regenerate.
102 2005-03-02 Jan Beulich <jbeulich@novell.com>
104 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
105 * pe-dll.c (pe_dll_generate_implib): Likewise.
107 2005-02-24 Ben Elliston <bje@au.ibm.com>
109 * ldfile.c: Remove GNU960 conditional code.
110 * emultempl/gld960.em: Likewise.
111 * emultempl/gld960c.em: Likewise.
112 * emultempl/lnk960.em: Likewise.
114 2005-02-24 Nick Clifton <nickc@redhat.com>
116 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
117 empty string from calls to concat.
119 2005-02-23 Nick Clifton <nickc@redhat.com>
121 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
122 arguments passed to concat() with a NULL.
124 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
125 define types needed by ldfile.h
127 2005-02-23 Alan Modra <amodra@bigpond.net.au>
129 * pe-dll.c: Warning fixes.
130 * emultempl/sunos.em: Likewise.
132 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
134 * ldlang.c (section_already_linked): Don't call
135 bfd_section_already_linked for dynamic objects.
137 2005-02-22 Alan Modra <amodra@bigpond.net.au>
139 * ldexp.c: Warning fixes.
140 * ldwrite.c: Likewise.
141 * emultempl/elf32.em: Likewise.
143 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
145 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
147 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
148 and ECOFF output only.
150 2005-02-21 Alan Modra <amodra@bigpond.net.au>
152 * config.in: Regenerate.
153 * configure: Regenerate.
155 2005-02-17 Zack Weinberg <zack@codesourcery.com>
157 * ldexp.c (assigning_to_dot): New global flag.
158 (fold_name): If assigning_to_dot is true, object immediately to
160 (exp_fold_tree): Set and clear assigning_to_dot around the
161 recursive call to exp_fold_tree to process the right-hand side
162 of an assignment to the location counter.
164 2005-02-17 Paul Brook <paul@codesourcery.com>
166 * scripttempl/armbpabi.sc: Add dummy name to version block.
168 2005-02-17 Alan Modra <amodra@bigpond.net.au>
170 * ldexp.c (new_abs): Init new.str.
172 2005-02-15 Mark Mitchell <mark@codesourcery.com>
174 * configure.in (AC_CHECK_FUNCS): Add glob.
175 * configure: Regenerated.
176 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
178 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
179 if HAVE_GLOB is not defined.
181 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
183 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
184 lib_path if NATIVE is yes.
186 2005-02-16 Alan Modra <amodra@bigpond.net.au>
188 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
189 an error creating fake bfd fatal.
190 (ppc_before_allocation): Continue on after errors.
191 (gld${EMULATION_NAME}_finish): Likewise.
193 2005-02-15 Nick Clifton <nickc@redhat.com>
195 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
196 not declared. It is not used and its presence causes a compile
199 2005-02-11 Zack Weinberg <zack@codesourcery.com>
201 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
202 If st.st_ino is zero, do not treat the library as a duplicate.
204 2005-02-10 Jakub Jelinek <jakub@redhat.com>
206 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
207 Set BFD_LINKER_CREATED on the stubs bfd.
208 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
211 2005-02-08 Mark Mitchell <mark@codesourcery.com>
213 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
215 (Image$$ER_RO$$Base): Define whenever RELOCATING.
216 (Image$$ER_RO$$Limit): Likewise.
217 (SHT$$INIT_ARRAY$$Base): Likewise.
218 (SHT$$INIT_ARRAY$$Limit): Likeise.
220 2005-02-10 Ben Elliston <bje@au.ibm.com>
222 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
224 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
226 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
227 to include o32 and n64 emulations.
228 (mips64*-*-linux-gnu*): Likewise.
230 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
232 * ldmain.c (warning_callback, warning_find_reloc): Prepend
233 "warning: " to warning messages.
235 2005-02-04 Alan Modra <amodra@bigpond.net.au>
237 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
238 look up symbol for etree_provide here.
240 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
242 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
244 2005-02-01 Edward Welbourne <eddy@opera.com>
245 Nick Clifton <nickc@redhat.com>
247 * ld.texinfo (Source Code Reference): New node describing how to
248 access linker script defined variables from source code.
250 2005-02-01 Alan Modra <amodra@bigpond.net.au>
252 * ld.texinfo: Clarify --as-needed operation.
254 2005-01-31 Andrew Cagney <cagney@gnu.org>
256 * configure: Regenerate to track ../gettext.m4.
258 2005-01-31 Nick Clifton <nickc@redhat.com>
260 * ldver.c (ldversion): Bump reported copyright date to 2005.
262 2005-01-31 Nick Clifton <nickc@redhat.com>
264 * configure.tgt: Remove obsolete targets m68k-lynxos and
267 2005-01-28 Julian Brown <julian@codesourcery.com>
269 * emultempl/armelf.em (fix_v4bx): New variable.
270 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
272 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
273 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
274 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
275 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
276 * NEWS: Mention --fix-v4bx.
277 * ld.texinfo: Document --fix-v4bx.
279 2005-01-25 Mark Mitchell <mark@codesourcery.com>
281 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
282 as to include .ARM.exidx$${Base,Limit}.
283 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
284 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
285 Put .init_array, .fini_array, etc. into the read-only data
288 2005-01-25 Alan Modra <amodra@bigpond.net.au>
290 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
291 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
292 only needed by an as-needed lib that didn't get linked.
294 2005-01-23 Alan Modra <amodra@bigpond.net.au>
296 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
297 __DTOR_LIST__ description.
299 2005-01-23 Alan Modra <amodra@bigpond.net.au>
301 * ld.texinfo (Location Counter <dot outside sections>): Document
302 effects of orphan section placement, and ". = ." workaround.
303 * Makefile.in: Regenerate.
305 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
307 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
308 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
310 2005-01-21 Jakub Jelinek <jakub@redhat.com>
312 * ldgram.y (AS_NEEDED): New token.
313 (input_list): Handle AS_NEEDED ( input_list ).
314 * ldlex.l (AS_NEEDED): Add.
315 * ld.texinfo: Document AS_NEEDED ().
316 * NEWS: Mention AS_NEEDED ().
318 2005-01-21 Ben Elliston <bje@au.ibm.com>
320 * ldlang.c (lang_reasonable_defaults): Remove.
321 (lang_process): Don't call lang_reasonable_defaults.
323 * ldexp.c (exp_assop): Remove #if 0'd code.
324 (exp_print_tree): Likewise.
325 * ldlang.c (lang_memory_region_lookup): Likewise.
326 (open_output): Likewise.
327 (lang_do_assignments_1): Likewise.
328 (lang_place_orphans): Likewise.
329 (lang_enter_output_section_statement): Likewise.
330 (lang_reasonable_defaults): Likewise.
331 * ldlang.h (struct lang_input_statement_struct): Likewise.
332 * mri.c (mri_draw_tree): Likewise.
333 (mri_load): Likewise.
334 * pe-dll.c (generate_reloc): Likewise.
335 (make_import_fixup_entry): Likewise.
337 * emultempl/beos.em (set_pe_subsystem): Likewise.
338 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
339 * emultempl/pe.em: Likewise.
340 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
342 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
344 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
345 (earmelfb_linux_eabi.c): New target.
346 * Makefile.in: Regenerated.
347 * configure.tgt (arm*b-*-linux-gnueabi): New target.
348 * emulparams/armelfb_linux_eabi.sh: New file.
350 2005-01-20 Nick Hudson <skrll@netbsd.org>
353 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
354 Handle bfd_elf32_hppa_nbsd_vec.
356 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
358 * ldmain.h (ld_sysroot): Change type to a constant string.
359 * ldmain.c (ld_sysroot): Likewise.
360 (get_relative_sysroot, get_sysroot): New functions, adding command-line
361 support for changing the sysroot.
362 (main): Call the new functions.
363 * lexsup.c (OPTION_SYSROOT): New.
364 (ld_options): Add --sysroot.
365 (parse_args): Add a dummy handler for it.
366 * ld.texinfo (--sysroot): Document.
367 * NEWS: Mention the new --sysroot option.
369 2005-01-18 Alan Modra <amodra@bigpond.net.au>
371 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
372 (lang_place_orphans): Don't abort on just_syms_flag, instead call
375 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
377 * defilep.y (def_name, def_library): Combine into...
378 (def_image_name): New function. Strip name to basename,
381 2005-01-12 Mark Kettenis <kettenis@gnu.org>
383 * configure.in: Be sure to invoke config.sub using the shell.
384 * configure: Regenerate.
386 2005-01-11 Alan Modra <amodra@bigpond.net.au>
388 * configure.host: Correct sed patterns for last change.
390 2005-01-10 Nick Clifton <nickc@redhat.com>
393 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
394 to determine whether config.make_executable should be set to FALSE in
395 conjunction with config.fatal_warnings.
396 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
397 (einfo): Pass TRUE as the extra argument.
399 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
401 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
402 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
403 (ia64-*-aix): Delete - this target is obsolete, and would be
404 broken by this patch.
406 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
408 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
409 (sparc64-sun-solaris2*): New host.
411 2005-01-06 Paul Brook <paul@codesourcery.com>
413 * Makefie.am: Add earmelf_vxworks.
414 * Makefile.in: Regenerate.
415 * configure.tgt: Make arm-*-vxworks a separate case.
416 * emulparams/armelf_vxworks.sh: New function.
418 2005-01-06 Alan Modra <amodra@bigpond.net.au>
420 * emultempl/ppc64elf.em (no_multi_toc): New var.
421 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
422 (OPTION_NO_MULTI_TOC): Define.
423 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
424 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
426 2005-01-05 Nick Clifton <nickc@redhat.com>
429 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
430 Standard's specification for parsable error messages.
432 2005-01-04 Paul Brook <paul@codesourcery.com>
434 * Makefile.am: Correct dependency for earmsymbian.c.
435 * Makefile.in: Regenerate.
437 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
439 * emultempl/pe.em (set_pe_subsystem): Change second arg to
440 lang_add_entry to FALSE.
442 2004-12-23 Nick Clifton <nickc@redhat.com>
445 * emulparams/shelf.sh (.stack): Increase stack start address to
448 2004-12-20 Nick Clifton <nickc@redhat.com>
450 * ldmain.c (main): Issue an error message if -static and -shared
453 2004-12-17 Jakub Jelinek <jakub@redhat.com>
455 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
456 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
457 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
458 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
459 PT_GNU_RELRO segment end.
461 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
463 * configure.tgt: Add s390x-ibm-tpf support.
465 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
467 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
470 2004-12-07 Ben Elliston <bje@gnu.org>
472 * ldemul.h: Forward declare struct option.
474 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
476 * scripttempl/pe.sc (.data): Add .jcr subsection.
478 2004-11-30 Paul Brook <paul@codesourcery.com>
480 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
482 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
484 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
485 * Makefile.in: Regenerate.
487 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
489 * emultempl/pe.em: Add --subsystem:xbox as well as
491 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
492 and numeric subsystems.
494 2004-11-24 Alan Modra <amodra@bigpond.net.au>
496 * ldexp.c (fold_name): Correct PR 338 fix.
498 2004-11-19 Mark Mitchell <mark@codesourcery.com>
500 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
501 (earmelf_linux_eabi.c): New target.
502 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
503 * emulparams/armelf_linux_eabi.sh: New file.
504 * Makefile.in: Regenerated.
506 2004-11-19 Nick Clifton <nickc@redhat.com>
509 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
510 LENGTH fields in the MEMORY command, to explicitly state that
511 symbols cannot be used in their expressions.
513 2004-11-19 Jon Beniston <jon@beniston.com>
515 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
516 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
517 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
518 which return the length and origin of a memory.
519 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
520 * NEWS: Mention support for ORIGIN and LENGTH operators.
522 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
524 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
525 a dynamic object for stubs.
527 2004-11-04 Paul Brook <paul@codesourcery.com>
529 * ld.texinfo: Document --default-imported-symver.
530 * ldmain.c (main): Set link_info.default_imported_symver.
531 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
532 (ld_options): Add --default-imported-symver.
533 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
535 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
536 Vineet Sharma <vineets@noida.hcltech.com>
538 * Makefile.am: Add entries for new maxq-coff target.
539 * Makefile.in: Regenerate.
540 * configure.tgt: Add support for maxq.
541 * emulparams/maxqcoff.sh: New File.
542 * scripttempl/maxqcoff.sc: New linker script for target maxq.
543 * NEWS: Mention the new target.
545 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
547 * testsuite/ld-scripts/weak.exp: Enable test on PE,
549 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
551 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
553 2004-11-04 Daniel Jacobowitz <dan@debian.org>
555 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
556 (earmelf_oabi.c): Remove rule.
557 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
558 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
559 * Makefile.in: Regenerated.
561 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
563 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
564 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
566 (INIT_END): Remove emitted "jump [sp+]".
569 2004-11-04 Alan Modra <amodra@bigpond.net.au>
571 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
572 (no_opd_opt, no_toc_opt): New static vars.
573 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
575 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
576 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
577 (PARSE_AND_LIST_OPTIONS): Describe new options.
578 (PARSE_AND_LIST_ARGS_CASES): Handle them.
580 2004-10-27 Nick Clifton <nickc@redhat.com>
582 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
583 parameter to invocation of lang_section_start.
584 * emultempl/aix.em (_handle_option): Likewise.
586 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
587 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
588 * Makefile.in: Regenerate.
590 2004-10-26 Mark Mitchell <mark@codesourcery.com>
592 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
593 __exidx_{start,end} when not relocating.
595 2004-10-25 Mark Mitchell <mark@codesourcery.com>
597 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
598 * ldexp.h (segment_type): New type.
599 (segments): New variable.
600 * ldexp.c (segments): New variable.
601 (exp_print_token): Handle SEGMENT_START.
602 (fold_binary): Likewise.
603 * ldgram.y (SEGMENT_START): Declare it as a token.
604 (exp): Handle SEGMENT_START.
605 * ldlang.h (lang_address_statement_type): Add segment field.
606 (lang_section_start): Change prototype.
607 * ldlang.c (map_input_to_output_sections): Do not process section
608 assignments if a corresponding SEGMENT_START has already been
610 (lang_section_start): Add segment parameter.
611 * ldlex.l (SEGMENT_START): Add it.
612 * lexsup.c (seg_segment_start): New function.
613 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
614 * ld.texinfo (SEGMENT_START): Document it.
615 * emulparams/armsymbian.sh (EMBEDDED): Set it.
616 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
617 base addresses. Do not map relocations.
618 * NEWS: Mention SEGMENT_START.
620 2004-10-26 Paul Brook <paul@codesourcery.com>
622 * ld.texinfo: Document --default-symver.
623 * ldmain.c (main): Set link_info.create_default_symver.
624 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
625 (ld_options): Add default-symver.
626 (parse_args): Handle OPTION_DEFAULT_SYMVER.
628 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
630 * pe-dll.c (process_def_file): Don't export all symbols by default if
631 building a position-independent executable.
633 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
636 * ldmain.c (reloc_overflow): Accept a pointer to struct
637 bfd_link_hash_entry. Report symbol location for relocation
640 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
642 * genscripts.sh (libpath.exp): Really generate for first
645 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
647 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
648 comparison and replacement of filenames.
650 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
653 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
654 option on linker script as the one for linker script.
656 2004-10-16 Daniel Jacobowitz <dan@debian.org>
658 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
659 (check_excluded_libs): New.
660 (load_symbols): Call check_excluded_libs.
661 * ldlang.h (add_excluded_libs): New prototype.
662 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
663 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
664 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
665 * ld.texinfo (Command Line Variables): Document --exclude-libs.
666 (Options Specific to i386 PE Targets): Remove --exclude-libs.
668 2004-10-15 Alan Modra <amodra@bigpond.net.au>
670 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
671 failing link script assert.
673 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
675 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
678 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
679 (SMALL_DATA_DTOR): Set.
680 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
681 (SMALL_DATA_DTOR): Unset.
682 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
683 after .data. If SMALL_DATA_DTOR is set, move .dtors after
686 2004-10-14 Alan Modra <amodra@bigpond.net.au>
689 * ldlang.h (lang_output_section_statement_type): Make "next" a
690 struct lang_output_section_statement_struct *.
691 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
692 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
693 * ldlang.c (lang_output_section_find_1): Adjust for changed
694 output_section_statement "next".
695 (strip_excluded_output_sections): Likewise.
696 (lang_record_phdrs): Likewise.
697 (lang_output_section_find_by_flags): New function.
698 (output_prev_sec_find): Move from pe.em. Adjust iterator.
699 (lang_insert_orphan): New function. Tail end of elf32.em's
700 place_orphan merged with that from pe.em. Allow bfd_section to
701 be placed first. New heuristic for placing new output section
702 statement in existing script, and accompanying split of __start
703 symbol alignment into a separate assignment to dot.
704 (lang_add_section): Consistently use output->bfd_section rather than
705 an alias, section->output_section.
706 (map_input_to_output_sections): Rename overly long arg. Move
707 initialization of data_statement output section to here..
708 (lang_check_section_addresses): ..from here.
709 (print_assignment): Correct printing of etree_assert.
710 (print_all_symbols): Don't bomb if userdata is NULL.
711 (IGNORE_SECTION): Rearrange.
712 * emultempl/elf32.em (output_rel_find): Adjust interator.
713 (output_prev_sec_find): Delete.
714 (struct orphan_save): Delete.
715 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
716 flags without creating a duplicate output section statement.
717 Revise code holding history of various orphan section placements.
718 Allow orphan sections to place before script specified output
719 sections. Call lang_output_section_find_by_flags when placement
720 by name fails. Use lang_insert_orphan.
721 * emultempl/mmo.em (output_prev_sec_find): Delete.
722 (struct orphan_save): Delete.
723 (mmo_place_orphan): Revise code holding history of orphan placement.
724 Allow orphans to place before existing output sections. Use
726 * emultempl/pe.em (output_prev_sec_find): Delete.
727 (struct orphan_save): Delete.
728 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
731 2004-10-13 Mark Mitchell <mark@codesourcery.com>
733 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
736 2004-10-13 Alan Modra <amodra@bigpond.net.au>
739 * ldcref.c (check_section_sym_xref): Delete.
740 (check_local_sym_xref): New function.
741 (check_nocrossrefs): Adjust call.
742 * emultempl/pe.em (struct orphan_save): Add os_tail.
743 (place_orphan): Backport assorted fixes from elf32.em.
745 2004-10-12 Bob Wilson <bob.wilson@acm.org>
747 * emultempl/xtensaelf.em: Use ISO C90 formatting.
749 2004-10-11 Jakub Jelinek <jakub@redhat.com>
751 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
752 getline for portability.
754 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
755 (gld${EMULATION_NAME}_parse_ld_so_conf,
756 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
757 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
759 2004-10-11 Alan Modra <amodra@bigpond.net.au>
762 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
763 rejected when linking statically.
765 2004-10-08 Daniel Jacobowitz <dan@debian.org>
767 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
769 2004-10-07 Bob Wilson <bob.wilson@acm.org>
771 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
772 assembler-generated longcall sequences. Describe new --size-opt
774 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
775 * emultempl/xtensaelf.em (remove_section,
776 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
777 elf_xtensa_after_open): New.
778 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
779 OPTION_NO_LITERAL_MOVEMENT): Define.
780 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
781 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
782 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
783 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
784 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
785 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
786 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
787 * Makefile.am (eelf32xtensa.c): Update dependencies.
788 * Makefile.in: Regenerate.
790 2004-10-07 Jeff Baker <jbaker@qnx.com>
792 * lexsup.c: Handle --warn-shared-textrel option.
793 (ld_options): Restore alpha sorting of options.
794 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
795 * ld.texinfo: Add documentation for --warn-shared-textrel.
796 * NEWS: Added mention of --warn-shared-textrel option.
798 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
800 * emultempl/crxelf.em (disable_relaxation): Add.
801 (crxelf_before_allocation): Enable --relax option by default.
802 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
803 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
804 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
806 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
808 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
809 --sort-section name|alignment.
811 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
812 --sort-section name|alignment.
814 * ld.h (sort_type): New enum.
815 (wildcard_spec): Change the type of `sorted' to sort_type.
817 * ldgram.y (SORT): Removed.
818 (SORT_BY_NAME): Added.
819 (SORT_BY_ALIGNMENT): Added.
820 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
822 (input_section_spec_no_keep): Updated `sorted'.
823 (statement): Replace SORT with SORT_BY_NAME.
825 * ldlang.c (compare_section): New function to compare 2
826 sections with different sorting schemes.
827 (wild_sort): Updated. Use compare_section.
828 (update_wild_statements): New function.
829 (lang_process): Call update_wild_statements before
830 map_input_to_output_sections.
832 * ldlex.l (SORT_BY_NAME): New.
833 (SORT_BY_ALIGNMENT): New.
834 (SORT): Return SORT_BY_NAME.
836 * ldmain.c (sort_section): New. Defined.
837 (main): Initialize it to none.
839 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
840 (ld_options): Add an entry for OPTION_SORT_SECTION.
841 (parse_args): Handle OPTION_SORT_SECTION.
843 * mri.c (mri_draw_tree): Updated `sorted'.
845 2004-10-04 Jakub Jelinek <jakub@redhat.com>
847 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
848 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
850 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
851 and . as second argument.
852 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
853 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
854 (fold_binary): Add it here. Insert padding to make relro_end
855 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
856 exp_dataseg_relro_adjust phase just use previously computed
858 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
859 relro_adjust here. Call lang_size_sections_1 once more if there
860 was too big padding at DATA_SEGMENT_RELRO_END.
861 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
863 2004-10-01 Paul Brook <paul@codesourcery.com>
865 * emulparams/armelf.sh: Add unwinding table sections.
867 2004-09-30 Filip Navara <navaraf@reactos.com>
869 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
870 correct base address for position independant executables.
871 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
874 2004-09-30 Paul Brook <paul@codesourcery.com>
876 * ld.texinfo: Document --target2=abs.
877 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
879 2004-09-29 Nick Clifton <nickc@redhat.com>
881 * scripttempl/xstormy16.sc: Only perform the assignments to the
882 ROM region when not performing a relocatable link. The ROM region
883 does not start at address 0, but the sections will.
884 * Makefile.am: Fix linker script dependency for the generation of
886 * Makefile.in: Regenerate.
888 2004-09-18 Filip Navara <navaraf@reactos.com>
890 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
891 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
892 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
894 * scripttempl/pe.sc: Make the virtual address and file offset synced if
895 the alignment is lower than the target page size.
897 2004-09-27 Filip Navara <navaraf@reactos.com>
899 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
900 def_file_parse to handle pe_def_file if NULL and prevent crash with
903 2004-09-27 Alan Modra <amodra@bigpond.net.au>
905 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
906 --emit-stub-syms automatically when --emit-relocs.
908 2004-09-24 Paul Brook <paul@codeosurcery.com>
910 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
911 .fini_array sections.
913 2004-09-19 Andreas Schwab <schwab@suse.de>
915 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
916 base so that relro end is suitably aligned.
918 2004-09-17 Paul Brook <paul@codesourcery.com>
920 * ld.texinfo: Rename arm-specific section. Document --target*
921 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
922 * emulparams/armelf_linux.sh: Ditto.
923 * emulparams/armelf_nbsd.sh: Ditto.
924 * emultempl/armelf.em: Set default for TARGET2_TYPE.
925 (target2_type): New variable.
926 (arm_elf_before_allocation): Don't pass target1_type.
927 (arm_elf_create_output_section_statements): New function.
928 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
929 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
930 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
931 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
932 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
933 argument to bfd_elf32_arm_process_before_allocation.
935 2004-09-17 Alan Modra <amodra@bigpond.net.au>
937 * ldexp.c (fold_name): Update u.undef.next refs.
938 * emultempl/pe.em: Likewise.
939 * emultempl/sunos.em: Likewise.
941 2004-09-17 Alan Modra <amodra@bigpond.net.au>
943 * Makefile.am: Run "make dep-am".
944 * Makefile.in: Regenerate.
945 * config.in: Regenerate.
946 * configure: Regenerate.
947 * aclocal.m4: Regenerate.
948 * po/ld.pot: Regenerate.
950 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
952 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
956 2004-09-16 Alan Modra <amodra@bigpond.net.au>
958 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
959 to bfd_elf32_arm_process_before_allocation call.
961 2004-09-13 Paul Brook <paul@codesourcery.com>
963 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
964 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
966 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
968 * configure: Regenerated with autconfig 2.13.
970 2004-09-07 Andreas Schwab <schwab@suse.de>
972 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
973 alignment before adjusting DATA_SEGMENT_RELRO_END.
975 2004-09-06 Mark Mitchell <mark@codesourcery.com>
977 * emulparams/armsymbian.sh: Use armbpabi script.
978 * scripttempl/armbpabi.sc: New script.
980 2004-09-02 Mark Mitchell <mark@codesourcery.com>
982 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
983 (earmsymbian.c): New target.
984 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
985 * Makefile.in: Regenerated.
986 * aclocal.m4: Likewise.
987 * configure: Likewise.
988 * emulparams/armsymbian.sh: New file.
990 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
992 * scripttempl/elf32crx.sc: Edit file with comments.
993 (.init): Add new section.
995 (.ctor): Control the linkage order.
998 2004-08-27 Nick Clifton <nickc@redhat.com>
1000 * emultempl/pe.em (after_open): Do not assume that either bfd is
1003 2004-08-26 Alan Modra <amodra@bigpond.net.au>
1005 * ldlang.c (lang_init): Don't compare with TRUE.
1007 2004-08-25 Dmitry Diky <diwil@spec.ru>
1009 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
1010 * scripttempl/elf32msp430.sc: Add .profiler section definition.
1012 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
1014 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
1016 2004-08-19 Mark Mitchell <mark@codesourcery.com>
1018 * configure.tgt (arm*-*-symbianelf*): New target.
1019 (arm*-*-eabi*): Likewise.
1021 2004-08-19 Jakub Jelinek <jakub@redhat.com>
1023 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
1024 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
1025 (OPTION_NON_OVERLAPPING_OPD): Define.
1026 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
1027 --non-overlapping-opd option.
1029 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1032 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1033 was already on the undefs list.
1035 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1037 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1038 prefix the symbol field too.
1040 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1042 * ldmain.c (link_callbacks): Remove "error_handler".
1043 * ldmisc.c: Include elf-bfd.h.
1044 (vfinfo): Sort comment. Handle %A. Use %A instead of
1045 bfd_get_section_indent.
1046 (error_handler): Delete.
1047 * ldmisc.h (error_handler): Delete declaration.
1049 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1051 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1052 ppc64_elf_restore_symbols.
1054 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1056 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1057 .toc is too large on relocatable linking.
1059 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1061 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1062 (LDEMUL_AFTER_OPEN): Don't define.
1064 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1066 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1068 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1070 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1073 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1075 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1077 2004-07-26 Dmitry Diky <diwil@spec.ru>
1079 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1080 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1082 * configure.tgt: Likewise.
1083 * emulparams/msp430all.sh: Likewise.
1084 * Makefile.in: Regenerate.
1086 2004-07-23 Nick Clifton <nickc@redhat.com>
1088 * emultempl/elf32.em (_place_orphan): Use an already existing
1089 section name if that section does not have any flags set.
1091 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1093 * ldlang.c (already_linked_hash_entry): Removed.
1094 (already_linked): Likewise.
1095 (already_linked_table): Likewise.
1096 (section_already_linked): Call bfd_section_already_linked.
1097 (lang_process): Replace already_linked_table_init with
1098 bfd_section_already_linked_table_init and check return. Replace
1099 already_linked_table_free with bfd_section_already_linked_table_free.
1101 2004-07-21 Nick Clifton <nickc@redhat.com>
1103 * ldlang.c (init_os): Make sure that the newly allocated userdata
1104 structure is zeroed out.
1106 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1108 * NEWS: Mention the new --add-needed/--no-add-needed and
1109 --as-needed/--no-as-needed options.
1111 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1113 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1114 check the add_needed field.
1115 (dt_needed): New struct.
1116 (gld${EMULATION_NAME}_try_needed): Change the first argument
1117 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1118 bit in the file where the DT_NEEDED entry comes from.
1119 (gld${EMULATION_NAME}_search_needed): Change the second
1120 argument to a pointer to struct dt_needed.
1121 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1122 (gld${EMULATION_NAME}_after_open): Likewise.
1124 * ld.texinfo: Add --add-needed document.
1125 * ldlang.c (new_afile): Set p->add_needed.
1126 * ldlang.h (lang_input_statement_type): Add add_needed field.
1127 * ldmain.h (add_needed): Declare.
1128 * ldmain.c (add_needed): New global var.
1129 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1130 OPTION_NO_ADD_NEEDED.
1131 (ld_options): Likewise.
1132 (parse_args): Handle them.
1134 2004-07-13 Christof Petig <christof@petig-baender.de>
1136 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1137 for endian-ness of extracted addend.
1139 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1141 * pe-dll.c (auto_export): Filter on just the import prefix,
1142 "_imp_", not "_imp__".
1144 2004-07-09 Nick Clifton <nickc@redhat.com>
1146 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1148 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1150 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1151 (eelf32crx.c): New target.
1152 * Makefile.in: Regenerate.
1153 * configure.tgt: Handle crx-*-elf*.
1154 * emulparams/elf32crx.sh: New file.
1155 * emultempl/crxelf.em: New file.
1156 * scripttempl/elf32crx.sc: New file.
1157 * NEWS: Mention new target.
1159 2004-07-06 Nick Clifton <nickc@redhat.com>
1161 * Makefile.am: Add eshlsymbian.c.
1162 * Makefile.in: Regenerate.
1163 * configure.tgt: Add sh*-symbian-elf target.
1164 * emulparams/shlsymbian.sh: New file. Configure the
1165 sh-symbian-elf linker scripts.
1166 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1167 template for the sh-symbian-elf target.
1169 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1171 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1172 * emulparams/hppalinux.sh: Likewise.
1173 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1174 data segment and PLT_BEFORE_GOT is defined.
1176 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1178 * ld.texinfo (WIN32): Document PE weak symbols.
1180 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1182 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1184 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1186 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1189 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1191 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1194 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1196 * ldlang.c (print_output_section_statement): Don't print size before
1198 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1200 * ldexp.c (fold_name): .. See below.
1201 * ldlang.c (section_already_linked, print_output_section_statement,
1202 print_input_section, insert_pad, size_input_section,
1203 lang_check_section_addresses, lang_size_sections_1,
1204 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1205 lang_one_common, lang_reset_memory_regions, lang_process,
1206 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1207 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1208 * pe-dll.c (process_def_file, generate_reloc): ..
1209 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1210 gld${EMULATION_NAME}_before_allocation): ..
1211 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1212 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1213 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1214 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1215 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1216 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1217 "size" instead of "_raw_size" and "_cooked_size". Expand
1218 bfd_section_size macro invocations.
1220 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1222 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1223 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1224 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1226 (.tls): Define ___tls_start__ and ___tls_end__.
1228 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1230 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1232 2004-06-18 Adam Nemet <anemet@lnxw.com>
1234 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1235 * configure: Regenerate.
1237 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1239 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1240 .gcc_except_table output sections lost accidentally with
1243 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1245 * ldwrite.c (build_link_order): Use bfd_get_section_size
1246 instead of bfd_get_section_size_before_reloc or _raw_size.
1247 * pe-dll.c (process_def_file): Likewise.
1249 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1251 From Richard Wirth <r.wirth@wirthware.de>
1252 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1254 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1256 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1257 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1259 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1261 * testsuite/ld-sh/arch/arch.exp: New test script.
1262 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1263 * testsuite/ld-sh/arch/sh.s: New file.
1264 * testsuite/ld-sh/arch/sh2.s: New file.
1265 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1266 * testsuite/ld-sh/arch/sh2e.s: New file.
1267 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1268 * testsuite/ld-sh/arch/sh3.s: New file.
1269 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1270 * testsuite/ld-sh/arch/sh3e.s: New file.
1271 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1272 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1273 * testsuite/ld-sh/arch/sh4.s: New file.
1274 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1275 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1276 * testsuite/ld-sh/arch/sh4a.s: New file.
1278 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1280 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1282 * lexsup.c: Formatting. Wrap long lines.
1283 * ldwrite.c: Update copyright date.
1285 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1286 (output_section_callback): Nor SEC_KEEP here.
1287 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1288 (lang_gc_wild): Delete. Fold into..
1289 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1291 (lang_process): Always call lang_gc_sections.
1292 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1293 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1296 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1298 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1299 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1300 * ldlang.c (lang_add_section): Likewise.
1302 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1304 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1305 sections when doing a final link. Clear SEC_EXCLUDE when doing
1306 a relocable link, except for SEC_DEBUGGING sections.
1307 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1308 same condition here to drop SEC_EXCLUDE orphan sections.
1310 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1312 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1313 only when not a relocatable link.
1314 (print_input_section): Handle SEC_EXCLUDE sections.
1315 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1316 (lang_do_assignments_1): Likewise.
1317 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1318 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1319 * emultempl/hppaelf.em (build_section_lists): Likewise.
1320 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1321 (build_section_lists): Likewise.
1323 2004-05-23 Andreas Schwab <schwab@suse.de>
1325 * ld.texinfo (Options): Fix typo in last change.
1327 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1329 * ld.h (ld_config_type): Add new field: hash_table_size.
1330 * ldmain.c: Initialise the new field to zero. If it is non-zero
1331 after parsing the linker's command line call
1332 bfd_hash_set_default_size.
1333 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1334 (ld_options): Add hash-size.
1335 (parse_args): Parse --hash-size option. Allow
1336 --reduce-memory-overheads to set the default hash table size as
1338 * ld.texinfo: Document the new switch. Also mention that
1339 --reduce-memory-overheads can affect the hash table size.
1340 * NEWS: Mention the new feature.
1342 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1344 * NEWS: Mention new linker map file generation and the
1345 --reduce-memory-overheads option.
1346 * ld.texinfo: Document --reduce-memory-overheads option.
1347 * ld.h (map_symbol_def): New struct.
1348 (struct user_section_struct, section_userdata_type): Rename to:
1349 (struct lean_user_section_struct, lean_section_userdata_type).
1350 (struct fat_user_section_struct, fat_section_userdata_type): New.
1351 (SECTION_USERDATA_SIZE): Define.
1352 (args_type): New member reduce_memory_overheads.
1353 * ldlang.c (map_obstack): New static variable.
1354 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1355 (lang_map): Unless command_line.reduce_memory_overheads is set,
1356 initialize lists of defined symbols for each section.
1357 (print_input_section): Unless command_line.reduce_memory_overheads
1358 is set, use print_all_symbols.
1359 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1360 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1361 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1362 (ld_options): Add entry for --reduce-memory-overheads.
1363 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1365 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1367 * ldgram.y (sect_constraint): New.
1368 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1369 (section): Add sect_constraint. Pass additional argument
1370 to lang_enter_output_section_statement.
1371 * mri.c (mri_draw_tree): Pass additional argument to
1372 lang_enter_output_section_statement.
1373 * emultempl/pe.em (place_orphan): Likewise.
1374 (output_prev_sec_find): Disregard output section statements with
1376 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1377 (mmo_place_orphan): Pass additional argument to
1378 lang_enter_output_section_statement.
1379 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1380 statements with constraint == -1.
1381 (place_orphan): Pass additional argument to
1382 lang_enter_output_section_statement.
1383 * ldlang.c (lang_enter_overlay_section): Likewise.
1384 (lang_output_section_find_1): New.
1385 (lang_output_section_find): Use it.
1386 (lang_output_section_statement_lookup_1): New.
1387 (lang_output_section_statement_lookup): Use it.
1388 (check_section_callback, check_input_sections): New.
1389 (map_input_to_output_sections): Check if all input sections
1390 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1391 (strip_excluded_output_sections): Disregard output section statements
1392 with constraint == -1.
1393 (lang_record_phdrs): Likewise.
1394 (lang_enter_output_section_statement): Add constraint argument.
1395 Use lang_output_section_statement_lookup_1.
1396 * ldlang.h (lang_output_section_statement_type): Add constraint
1397 and all_input_readonly fields.
1398 (lang_enter_output_section_statement): Adjust prototype.
1399 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1400 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1401 segment if all input sections are readonly.
1403 2004-05-19 Adam Nemet <anemet@lnxw.com>
1405 * scripttempl/i386lynx.sc: Remove file.
1407 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1409 * ld.texinfo (Output Section Address): Correct subsection name.
1411 2004-05-17 Adam Nemet <anemet@lnxw.com>
1413 * configure.tgt (powerpc-*-lynxos* case): New case.
1414 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1415 * emulparams/ppclynx.sh: New file.
1416 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1417 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1418 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1419 (eppclynx.c): New rule.
1420 * Makefile.in: Regenerate.
1422 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1424 * configure.tgt (or32-*-rtems*): Switch to elf and
1425 support versioned targets.
1427 2004-05-13 Nick Clifton <nickc@redhat.com>
1429 * po/fr.po: Updated French translation.
1431 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1433 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1434 for binaries, -shared and -pie.
1435 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1436 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1437 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1438 (OTHER_RELRO_SECTIONS): ... this.
1439 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1440 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1441 -z relro and -z norelro.
1442 (gld${EMULATION_NAME}_list_options): Add it to usage.
1443 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1444 -z relro scripts when appropriate.
1445 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1446 Create separate .got.plt section if SEPARATE_GOTPLT.
1447 Move sections which are only written during relocation handling
1448 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1449 before .data. Add DATA_SEGMENT_RELRO_END directive.
1450 Include OTHER_RELRO_SECTIONS.
1451 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1452 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1453 (fold_unary): Likewise.
1454 (fold_binary): Handle -z relro.
1455 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1456 exp_dataseg_relro_adjust phases. Add relro_end field.
1457 * ldmain.c (main): Initialize link_info.relro to FALSE.
1458 * ldlang.c (lang_size_sections): Handle -z relro.
1460 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1462 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1464 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1466 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1467 before printing it with %W.
1469 2004-05-07 Brian Ford <ford@vss.fsi.com>
1470 DJ Delorie <dj@redhat.com>
1472 * emultempl/pe.em (real_flags): New static.
1473 (OPTION_LARGE_ADDRESS_AWARE): New define.
1474 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1475 (gld_${EMULATION_NAME}_list_options): Likewise.
1476 (gld${EMULATION_NAME}_handle_option): Likewise.
1477 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1478 * ld.texinfo: Document it.
1481 2004-05-07 Brian Ford <ford@vss.fsi.com>
1483 * NEWS: Mention DWARF 2 support for i386pe.
1485 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1487 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1490 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1492 * ldlang.c (unique_section_p): Pass section parm, return true on
1494 (output_section_callback): Adjust.
1495 * ldlang.h (unique_section_p): Update prototype.
1496 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1498 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1500 * ld.texinfo (--gc-sections): Remove restriction for
1503 2004-04-29 Brian Ford <ford@vss.fsi.com>
1505 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1506 for DWARF 2/3. Update stab section's syntax.
1508 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1510 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1511 (fill_edata): Correct pointer arithmetic.
1513 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1515 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1516 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1517 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1518 (EXTRA_EM_FILE): Use mipsecoff.em
1519 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1520 (EXTRA_EM_FILE): Use mipsecoff.em
1521 * emultempl/mipsecoff.em: Restructure to be included as an
1522 extra emulation file.
1523 (check_sections, gld${EMULATION_NAME}_after_open)
1524 (gld${EMULATION_NAME}_after_allocation)
1525 (gld${EMULATION_NAME}_get_script)
1526 (ld_${EMULATION_NAME}_emulation): Remove
1527 (gld${EMULATION_NAME}_before_parse): Rename to...
1528 (mipsecoff_before_parse): This.
1529 (LDEMUL_BEFORE_PARSE): Define.
1530 * emultempl/mipself.em: Remove file.
1531 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1532 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1534 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1535 * Makefile.in: Regenerate.
1537 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1539 * ld.texinfo (synthesizing on H8/300): Information about linker
1540 relaxation support for bit manipulation instructions and system
1541 control instructions is added.
1543 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1545 * NEWS: Mention change in DEFINED semantics.
1547 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1549 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1550 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1551 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1553 2004-04-21 Ben Elliston <bje@au.ibm.com>
1555 * ld.texinfo (Simple Example): Add missing punctuation.
1557 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1559 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1561 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1563 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1566 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1568 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1569 with default priority. Likewise for dtors.
1571 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1573 * configure.host: Remove mips*-dec-bsd* target.
1574 * configure.tgt: Likewise.
1576 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1578 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1579 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1580 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1581 * emultempl/irix.em: New file.
1582 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1584 * Makefile.in: Regenerate.
1586 2004-04-01 Paul Brook <paul@codesourcery.com>
1588 * emultempl/armelf.em (byteswap_code): Add.
1589 (arm_elf_before_allocation): Pass extra parameter.
1590 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1591 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1592 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1593 * emultempl/armelf_oabi.em: Pass extra parameter.
1594 * ld.texinfo: Document --be8.
1596 2004-03-30 Stan Shebs <shebs@apple.com>
1598 Remove long-obsolete MPW support.
1599 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1600 * Makefile.am (mpw): Remove file-presynthesizing actions.
1601 * Makefile.in: Likewise.
1602 * ldfile.c (slash): Remove MPW case.
1603 * ldlex.l [MPW]: Remove unused definition.
1605 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1607 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1608 (eelf32cr16c.c): New target.
1609 * Makefile.in: Regenerate.
1610 * configure.tgt: Handle cr16c-*-elf*.
1611 * emulparams/elf32cr16c.sh: New file.
1612 * scripttempl/elfcr16c.sc: Likewise
1613 * NEWS: Mention support for new target.
1615 2004-03-30 Nick Clifton <nickc@redhat.com>
1617 * po/sv.po: Updated Swedish translation.
1619 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1621 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1622 * emultempl/hppaelf.em: Likewise.
1623 * emultempl/ppc64elf.em: Likewise.
1624 * emultempl/sh64elf.em: Likewise.
1626 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1628 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1629 size_dynamic_sections call.
1631 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1634 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1635 link_info.wrap_char.
1637 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1639 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1640 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1642 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1644 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1646 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1648 * config.in: Regenerate.
1649 * po/ld.pot: Regenerate.
1651 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1653 * ld.texinfo: Add --as-needed doco.
1654 * ldmain.c (as_needed): New global var.
1655 * ldmain.h (as_needed): Declare.
1656 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1657 OPTION_NO_AS_NEEDED.
1658 (ld_options): Likewise.
1659 (parse_args): Handle them.
1660 * ldlang.h (lang_input_statement_type): Add as_needed field.
1661 * ldlang.c (new_afile): Set p->as_needed.
1662 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1663 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1664 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1666 * ldlang.c (open_input_bfds): Remove useless cast.
1667 (lang_do_assignments_1): Likewise.
1668 (lang_for_each_input_section): Delete.
1670 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1672 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1674 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1676 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1677 private when building implib.
1679 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1681 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1683 (IGNORE_SECTION): Ignore .tbss sections too.
1684 (lang_size_sections_1): .tbss sections do not advance dot.
1686 2004-03-01 Andreas Schwab <schwab@suse.de>
1688 * ld.texinfo (Options): Fix example for --wrap.
1690 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1692 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1695 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1697 * ldlang.c (lang_check): Use %P, not %E, in error message.
1699 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1701 * ldlang.h (struct lang_output_section_state): Change processed
1703 * ldexp.c (check, invalid): Remove.
1704 (fold_name): Move valid_p assignments. Create undefined symbol
1705 when needed. Directly exampine section's processd flag.
1706 * ldlang.c (lang_output_section_statement_lookup): Adjust
1707 processed field init.
1708 (lang_size_sections_1): Allow LOADADDR when determining section's
1709 VMA. Adjust error message. Fold data statement's expr.
1710 (lang_size_sections): Correctly increment lang_statement_iteration.
1712 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1714 * ldexp.c (fold_tree): Follow indirect symbols.
1716 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1718 * ldgram.y (exp): Add two operand ALIGN.
1719 * ldexp.c (fold_binary): Add ALIGN_K case.
1720 * ld.texinfo (ALIGN): Document two operand version.
1722 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1724 * ldlang.c (map_input_to_output_sections): Initialize sections
1725 mentioned in a data statement expression.
1726 (lang_do_assignments_1): Add data statement's expression's
1729 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1731 * ldgram.y (statement_anywhere): Add assert rule.
1732 * ldlang.c (exp_init_os): Add assert case.
1734 2004-02-14 Andrew Cagney <cagney@redhat.com>
1736 * ldmain.c (remove_output): Call bfd_cache_close.
1738 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1740 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1741 .MIPS.content* and .MIPS.events* sections.
1743 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1745 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1746 .note.gnu.arm.ident to after allocated sections. Mark its
1749 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1751 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1752 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1753 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1754 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1755 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1757 2004-02-05 Nick Clifton <nickc@redhat.com>
1759 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1761 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1763 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1765 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1767 * genscripts.sh: Fix typo.
1769 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1771 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1773 * emulparams/elf64_ia64.sh: Put .rela.opd into
1774 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1776 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1778 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1779 * ld.texinfo (--omagic): Note that writable text section
1780 does not conform to published PE-COFF specs.
1781 (--enable-auto-import): Likewise.
1783 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1785 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1787 2004-01-13 Nick Clifton <nickc@redhat.com>
1789 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1790 which if true will prevent the LMA region being used as a
1791 replacement for a default VMA region.
1792 (lang_leave_output_section_statement): Pass extra parameter.
1793 (lang_leave_overlay): Likewise.
1794 * ld.texinfo (Output Section LMA): Document that the LMA
1795 region can be set to the VMA region if no VMA has been set.
1796 * ldlang.h (struct lang_output_section_phdr_list): Create a
1797 typedef for this type. Minor formatting fixes.
1799 2004-01-13 Nick Clifton <nickc@redhat.com>
1801 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1802 assume that the section should be allocated.
1804 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1806 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1807 sections. Do ignore SEC_NEVER_LOAD sections.
1808 (lang_size_sections_1): Remove test made redundant with the above.
1810 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1812 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1813 program_header_size.
1815 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1817 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1818 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1819 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1820 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1821 (MAXPAGESIZE): Set to 64Kb.
1822 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1823 __ROFIXUP_END__. Don't map .rofixup.got any more.
1824 * emulparams/elf32frv.sh (NOP): Set.
1825 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1826 * configure.tgt: Add frv-*-*linux*.
1827 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1828 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1829 (eelf32frvfd.c): New.
1830 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1831 * emulparams/elf32frv.sh: Reverted previous two patches.
1832 * emulparams/elf32frvfd.sh: New.
1833 * Makefile.in: Rebuilt.
1834 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1835 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1836 .rofixup.got to .rofixup.
1837 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1838 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1839 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1841 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1843 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1844 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1846 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1848 * ldexp.c (align_n): Make static.
1849 * ldexp.h (align_n): Delete declaration.
1850 * ldlang.h (lang_enter_output_section_statement): Remove
1852 * ldlang.c (lang_enter_output_section_statement): Likewise.
1853 (TO_ADDR, TO_SIZE): Define.
1854 (opb_shift): New var.
1855 (init_opb): New function.
1856 (print_input_section): Call init_opb and use TO_ADDR.
1857 (print_data_statement, print_reloc_statement): Likewise.
1858 (print_padding_statement): Likewise.
1859 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1860 (lang_check_section_addresses): Likewise.
1861 (lang_size_sections_1): Likewise.
1862 (lang_do_assignments_1): Likewise.
1863 (lang_set_startof): Likewise.
1864 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1865 (lang_process): Call init_opb.
1866 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1867 (lang_enter_overlay_section): Adjust
1868 lang_enter_output_section_statement call.
1869 * ldgram.y: Likewise.
1870 * mri.c (mri_draw_tree): Likewise.
1871 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1872 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1873 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1875 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1876 * ldfile.h (ldfile_set_output_arch): Ditto.
1877 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1878 ldfile_set_output_arch.
1879 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1880 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1881 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1882 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1883 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1884 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1885 * ldgram.y: Adjust ldfile_set_output_arch call.
1886 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1887 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1888 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1889 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1890 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1891 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1892 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1894 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1896 * configure.tgt: Add m68k-uClinux target.
1898 For older changes see ChangeLog-0203
1904 version-control: never