1 2005-03-16 David Heine <dlheine@tensilica.com>
2 Bob Wilson <bob.wilson@acm.org>
4 * ldlang.c (IGNORE_SECTION): Remove check for zero size.
5 (lang_check_section_addresses): Ignore zero size sections here.
7 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
9 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
10 unused empty output sections for non-relocatable link.
12 * ld.h (args_type): Remove gc_sections.
14 * ldlang.c (lang_mark_used_section): New.
15 (lang_gc_sections): Use link_info.gc_sections instead of
16 command_line.gc_sections.
17 * ldmain.c (main): Likewise.
18 * lexsup.c (parse_args): Likewise.
19 * ldlang.c (lang_process): Call lang_mark_used_section.
21 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
23 2005-03-16 Nick Clifton <nickc@redhat.com>
24 Ben Elliston <bje@au.ibm.com>
26 * configure.in (werror): New switch: Add -Werror to the
27 compiler command line. Enabled by default. Disable via
29 * configure: Regenerate.
31 2005-03-16 Alan Modra <amodra@bigpond.net.au>
33 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
34 (OTHER_RELRO_SECTIONS): Set this instead.
36 2005-03-15 Nick Clifton <nickc@redhat.com>
38 * NEWS: Add cutoff for changes in 2.16 release.
40 2005-03-15 Mikkel Krautz <krautz@gmail.com>
42 * configure.tgt (x86_64-elf): Add target.
44 2005-03-15 Alan Modra <amodra@bigpond.net.au>
46 * po/es.po: Commit new Spanish translation.
48 2005-03-14 Alan Modra <amodra@bigpond.net.au>
50 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
51 Tidy etree_assert case.
53 2005-03-14 Alan Modra <amodra@bigpond.net.au>
55 * po/tr.po: Commit new Turkish translation.
57 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
59 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
60 * Makefile.in: Regenerated.
61 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
63 2005-03-07 Nick Clifton <nickc@redhat.com>
65 * po/fr.po: Updated translation.
67 2005-03-05 Alan Modra <amodra@bigpond.net.au>
69 * po/ld.pot: Regenerate.
71 2005-03-02 Jan Beulich <jbeulich@novell.com>
73 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
74 * pe-dll.c (pe_dll_generate_implib): Likewise.
76 2005-02-24 Ben Elliston <bje@au.ibm.com>
78 * ldfile.c: Remove GNU960 conditional code.
79 * emultempl/gld960.em: Likewise.
80 * emultempl/gld960c.em: Likewise.
81 * emultempl/lnk960.em: Likewise.
83 2005-02-24 Nick Clifton <nickc@redhat.com>
85 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
86 empty string from calls to concat.
88 2005-02-23 Nick Clifton <nickc@redhat.com>
90 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
91 arguments passed to concat() with a NULL.
93 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
94 define types needed by ldfile.h
96 2005-02-23 Alan Modra <amodra@bigpond.net.au>
98 * pe-dll.c: Warning fixes.
99 * emultempl/sunos.em: Likewise.
101 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
103 * ldlang.c (section_already_linked): Don't call
104 bfd_section_already_linked for dynamic objects.
106 2005-02-22 Alan Modra <amodra@bigpond.net.au>
108 * ldexp.c: Warning fixes.
109 * ldwrite.c: Likewise.
110 * emultempl/elf32.em: Likewise.
112 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
114 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
116 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
117 and ECOFF output only.
119 2005-02-21 Alan Modra <amodra@bigpond.net.au>
121 * config.in: Regenerate.
122 * configure: Regenerate.
124 2005-02-17 Zack Weinberg <zack@codesourcery.com>
126 * ldexp.c (assigning_to_dot): New global flag.
127 (fold_name): If assigning_to_dot is true, object immediately to
129 (exp_fold_tree): Set and clear assigning_to_dot around the
130 recursive call to exp_fold_tree to process the right-hand side
131 of an assignment to the location counter.
133 2005-02-17 Paul Brook <paul@codesourcery.com>
135 * scripttempl/armbpabi.sc: Add dummy name to version block.
137 2005-02-17 Alan Modra <amodra@bigpond.net.au>
139 * ldexp.c (new_abs): Init new.str.
141 2005-02-15 Mark Mitchell <mark@codesourcery.com>
143 * configure.in (AC_CHECK_FUNCS): Add glob.
144 * configure: Regenerated.
145 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
147 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
148 if HAVE_GLOB is not defined.
150 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
152 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
153 lib_path if NATIVE is yes.
155 2005-02-16 Alan Modra <amodra@bigpond.net.au>
157 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
158 an error creating fake bfd fatal.
159 (ppc_before_allocation): Continue on after errors.
160 (gld${EMULATION_NAME}_finish): Likewise.
162 2005-02-15 Nick Clifton <nickc@redhat.com>
164 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
165 not declared. It is not used and its presence causes a compile
168 2005-02-11 Zack Weinberg <zack@codesourcery.com>
170 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
171 If st.st_ino is zero, do not treat the library as a duplicate.
173 2005-02-10 Jakub Jelinek <jakub@redhat.com>
175 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
176 Set BFD_LINKER_CREATED on the stubs bfd.
177 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
180 2005-02-08 Mark Mitchell <mark@codesourcery.com>
182 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
184 (Image$$ER_RO$$Base): Define whenever RELOCATING.
185 (Image$$ER_RO$$Limit): Likewise.
186 (SHT$$INIT_ARRAY$$Base): Likewise.
187 (SHT$$INIT_ARRAY$$Limit): Likeise.
189 2005-02-10 Ben Elliston <bje@au.ibm.com>
191 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
193 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
195 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
196 to include o32 and n64 emulations.
197 (mips64*-*-linux-gnu*): Likewise.
199 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
201 * ldmain.c (warning_callback, warning_find_reloc): Prepend
202 "warning: " to warning messages.
204 2005-02-04 Alan Modra <amodra@bigpond.net.au>
206 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
207 look up symbol for etree_provide here.
209 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
211 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
213 2005-02-01 Edward Welbourne <eddy@opera.com>
214 Nick Clifton <nickc@redhat.com>
216 * ld.texinfo (Source Code Reference): New node describing how to
217 access linker script defined variables from source code.
219 2005-02-01 Alan Modra <amodra@bigpond.net.au>
221 * ld.texinfo: Clarify --as-needed operation.
223 2005-01-31 Andrew Cagney <cagney@gnu.org>
225 * configure: Regenerate to track ../gettext.m4.
227 2005-01-31 Nick Clifton <nickc@redhat.com>
229 * ldver.c (ldversion): Bump reported copyright date to 2005.
231 2005-01-31 Nick Clifton <nickc@redhat.com>
233 * configure.tgt: Remove obsolete targets m68k-lynxos and
236 2005-01-28 Julian Brown <julian@codesourcery.com>
238 * emultempl/armelf.em (fix_v4bx): New variable.
239 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
241 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
242 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
243 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
244 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
245 * NEWS: Mention --fix-v4bx.
246 * ld.texinfo: Document --fix-v4bx.
248 2005-01-25 Mark Mitchell <mark@codesourcery.com>
250 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
251 as to include .ARM.exidx$${Base,Limit}.
252 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
253 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
254 Put .init_array, .fini_array, etc. into the read-only data
257 2005-01-25 Alan Modra <amodra@bigpond.net.au>
259 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
260 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
261 only needed by an as-needed lib that didn't get linked.
263 2005-01-23 Alan Modra <amodra@bigpond.net.au>
265 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
266 __DTOR_LIST__ description.
268 2005-01-23 Alan Modra <amodra@bigpond.net.au>
270 * ld.texinfo (Location Counter <dot outside sections>): Document
271 effects of orphan section placement, and ". = ." workaround.
272 * Makefile.in: Regenerate.
274 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
276 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
277 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
279 2005-01-21 Jakub Jelinek <jakub@redhat.com>
281 * ldgram.y (AS_NEEDED): New token.
282 (input_list): Handle AS_NEEDED ( input_list ).
283 * ldlex.l (AS_NEEDED): Add.
284 * ld.texinfo: Document AS_NEEDED ().
285 * NEWS: Mention AS_NEEDED ().
287 2005-01-21 Ben Elliston <bje@au.ibm.com>
289 * ldlang.c (lang_reasonable_defaults): Remove.
290 (lang_process): Don't call lang_reasonable_defaults.
292 * ldexp.c (exp_assop): Remove #if 0'd code.
293 (exp_print_tree): Likewise.
294 * ldlang.c (lang_memory_region_lookup): Likewise.
295 (open_output): Likewise.
296 (lang_do_assignments_1): Likewise.
297 (lang_place_orphans): Likewise.
298 (lang_enter_output_section_statement): Likewise.
299 (lang_reasonable_defaults): Likewise.
300 * ldlang.h (struct lang_input_statement_struct): Likewise.
301 * mri.c (mri_draw_tree): Likewise.
302 (mri_load): Likewise.
303 * pe-dll.c (generate_reloc): Likewise.
304 (make_import_fixup_entry): Likewise.
306 * emultempl/beos.em (set_pe_subsystem): Likewise.
307 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
308 * emultempl/pe.em: Likewise.
309 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
311 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
313 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
314 (earmelfb_linux_eabi.c): New target.
315 * Makefile.in: Regenerated.
316 * configure.tgt (arm*b-*-linux-gnueabi): New target.
317 * emulparams/armelfb_linux_eabi.sh: New file.
319 2005-01-20 Nick Hudson <skrll@netbsd.org>
322 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
323 Handle bfd_elf32_hppa_nbsd_vec.
325 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
327 * ldmain.h (ld_sysroot): Change type to a constant string.
328 * ldmain.c (ld_sysroot): Likewise.
329 (get_relative_sysroot, get_sysroot): New functions, adding command-line
330 support for changing the sysroot.
331 (main): Call the new functions.
332 * lexsup.c (OPTION_SYSROOT): New.
333 (ld_options): Add --sysroot.
334 (parse_args): Add a dummy handler for it.
335 * ld.texinfo (--sysroot): Document.
336 * NEWS: Mention the new --sysroot option.
338 2005-01-18 Alan Modra <amodra@bigpond.net.au>
340 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
341 (lang_place_orphans): Don't abort on just_syms_flag, instead call
344 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
346 * defilep.y (def_name, def_library): Combine into...
347 (def_image_name): New function. Strip name to basename,
350 2005-01-12 Mark Kettenis <kettenis@gnu.org>
352 * configure.in: Be sure to invoke config.sub using the shell.
353 * configure: Regenerate.
355 2005-01-11 Alan Modra <amodra@bigpond.net.au>
357 * configure.host: Correct sed patterns for last change.
359 2005-01-10 Nick Clifton <nickc@redhat.com>
362 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
363 to determine whether config.make_executable should be set to FALSE in
364 conjunction with config.fatal_warnings.
365 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
366 (einfo): Pass TRUE as the extra argument.
368 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
370 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
371 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
372 (ia64-*-aix): Delete - this target is obsolete, and would be
373 broken by this patch.
375 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
377 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
378 (sparc64-sun-solaris2*): New host.
380 2005-01-06 Paul Brook <paul@codesourcery.com>
382 * Makefie.am: Add earmelf_vxworks.
383 * Makefile.in: Regenerate.
384 * configure.tgt: Make arm-*-vxworks a separate case.
385 * emulparams/armelf_vxworks.sh: New function.
387 2005-01-06 Alan Modra <amodra@bigpond.net.au>
389 * emultempl/ppc64elf.em (no_multi_toc): New var.
390 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
391 (OPTION_NO_MULTI_TOC): Define.
392 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
393 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
395 2005-01-05 Nick Clifton <nickc@redhat.com>
398 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
399 Standard's specification for parsable error messages.
401 2005-01-04 Paul Brook <paul@codesourcery.com>
403 * Makefile.am: Correct dependency for earmsymbian.c.
404 * Makefile.in: Regenerate.
406 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
408 * emultempl/pe.em (set_pe_subsystem): Change second arg to
409 lang_add_entry to FALSE.
411 2004-12-23 Nick Clifton <nickc@redhat.com>
414 * emulparams/shelf.sh (.stack): Increase stack start address to
417 2004-12-20 Nick Clifton <nickc@redhat.com>
419 * ldmain.c (main): Issue an error message if -static and -shared
422 2004-12-17 Jakub Jelinek <jakub@redhat.com>
424 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
425 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
426 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
427 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
428 PT_GNU_RELRO segment end.
430 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
432 * configure.tgt: Add s390x-ibm-tpf support.
434 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
436 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
439 2004-12-07 Ben Elliston <bje@gnu.org>
441 * ldemul.h: Forward declare struct option.
443 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
445 * scripttempl/pe.sc (.data): Add .jcr subsection.
447 2004-11-30 Paul Brook <paul@codesourcery.com>
449 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
451 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
453 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
454 * Makefile.in: Regenerate.
456 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
458 * emultempl/pe.em: Add --subsystem:xbox as well as
460 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
461 and numeric subsystems.
463 2004-11-24 Alan Modra <amodra@bigpond.net.au>
465 * ldexp.c (fold_name): Correct PR 338 fix.
467 2004-11-19 Mark Mitchell <mark@codesourcery.com>
469 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
470 (earmelf_linux_eabi.c): New target.
471 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
472 * emulparams/armelf_linux_eabi.sh: New file.
473 * Makefile.in: Regenerated.
475 2004-11-19 Nick Clifton <nickc@redhat.com>
478 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
479 LENGTH fields in the MEMORY command, to explicitly state that
480 symbols cannot be used in their expressions.
482 2004-11-19 Jon Beniston <jon@beniston.com>
484 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
485 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
486 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
487 which return the length and origin of a memory.
488 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
489 * NEWS: Mention support for ORIGIN and LENGTH operators.
491 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
493 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
494 a dynamic object for stubs.
496 2004-11-04 Paul Brook <paul@codesourcery.com>
498 * ld.texinfo: Document --default-imported-symver.
499 * ldmain.c (main): Set link_info.default_imported_symver.
500 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
501 (ld_options): Add --default-imported-symver.
502 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
504 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
505 Vineet Sharma <vineets@noida.hcltech.com>
507 * Makefile.am: Add entries for new maxq-coff target.
508 * Makefile.in: Regenerate.
509 * configure.tgt: Add support for maxq.
510 * emulparams/maxqcoff.sh: New File.
511 * scripttempl/maxqcoff.sc: New linker script for target maxq.
512 * NEWS: Mention the new target.
514 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
516 * testsuite/ld-scripts/weak.exp: Enable test on PE,
518 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
520 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
522 2004-11-04 Daniel Jacobowitz <dan@debian.org>
524 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
525 (earmelf_oabi.c): Remove rule.
526 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
527 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
528 * Makefile.in: Regenerated.
530 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
532 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
533 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
535 (INIT_END): Remove emitted "jump [sp+]".
538 2004-11-04 Alan Modra <amodra@bigpond.net.au>
540 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
541 (no_opd_opt, no_toc_opt): New static vars.
542 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
544 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
545 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
546 (PARSE_AND_LIST_OPTIONS): Describe new options.
547 (PARSE_AND_LIST_ARGS_CASES): Handle them.
549 2004-10-27 Nick Clifton <nickc@redhat.com>
551 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
552 parameter to invocation of lang_section_start.
553 * emultempl/aix.em (_handle_option): Likewise.
555 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
556 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
557 * Makefile.in: Regenerate.
559 2004-10-26 Mark Mitchell <mark@codesourcery.com>
561 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
562 __exidx_{start,end} when not relocating.
564 2004-10-25 Mark Mitchell <mark@codesourcery.com>
566 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
567 * ldexp.h (segment_type): New type.
568 (segments): New variable.
569 * ldexp.c (segments): New variable.
570 (exp_print_token): Handle SEGMENT_START.
571 (fold_binary): Likewise.
572 * ldgram.y (SEGMENT_START): Declare it as a token.
573 (exp): Handle SEGMENT_START.
574 * ldlang.h (lang_address_statement_type): Add segment field.
575 (lang_section_start): Change prototype.
576 * ldlang.c (map_input_to_output_sections): Do not process section
577 assignments if a corresponding SEGMENT_START has already been
579 (lang_section_start): Add segment parameter.
580 * ldlex.l (SEGMENT_START): Add it.
581 * lexsup.c (seg_segment_start): New function.
582 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
583 * ld.texinfo (SEGMENT_START): Document it.
584 * emulparams/armsymbian.sh (EMBEDDED): Set it.
585 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
586 base addresses. Do not map relocations.
587 * NEWS: Mention SEGMENT_START.
589 2004-10-26 Paul Brook <paul@codesourcery.com>
591 * ld.texinfo: Document --default-symver.
592 * ldmain.c (main): Set link_info.create_default_symver.
593 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
594 (ld_options): Add default-symver.
595 (parse_args): Handle OPTION_DEFAULT_SYMVER.
597 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
599 * pe-dll.c (process_def_file): Don't export all symbols by default if
600 building a position-independent executable.
602 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
605 * ldmain.c (reloc_overflow): Accept a pointer to struct
606 bfd_link_hash_entry. Report symbol location for relocation
609 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
611 * genscripts.sh (libpath.exp): Really generate for first
614 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
616 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
617 comparison and replacement of filenames.
619 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
622 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
623 option on linker script as the one for linker script.
625 2004-10-16 Daniel Jacobowitz <dan@debian.org>
627 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
628 (check_excluded_libs): New.
629 (load_symbols): Call check_excluded_libs.
630 * ldlang.h (add_excluded_libs): New prototype.
631 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
632 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
633 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
634 * ld.texinfo (Command Line Variables): Document --exclude-libs.
635 (Options Specific to i386 PE Targets): Remove --exclude-libs.
637 2004-10-15 Alan Modra <amodra@bigpond.net.au>
639 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
640 failing link script assert.
642 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
644 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
647 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
648 (SMALL_DATA_DTOR): Set.
649 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
650 (SMALL_DATA_DTOR): Unset.
651 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
652 after .data. If SMALL_DATA_DTOR is set, move .dtors after
655 2004-10-14 Alan Modra <amodra@bigpond.net.au>
658 * ldlang.h (lang_output_section_statement_type): Make "next" a
659 struct lang_output_section_statement_struct *.
660 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
661 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
662 * ldlang.c (lang_output_section_find_1): Adjust for changed
663 output_section_statement "next".
664 (strip_excluded_output_sections): Likewise.
665 (lang_record_phdrs): Likewise.
666 (lang_output_section_find_by_flags): New function.
667 (output_prev_sec_find): Move from pe.em. Adjust iterator.
668 (lang_insert_orphan): New function. Tail end of elf32.em's
669 place_orphan merged with that from pe.em. Allow bfd_section to
670 be placed first. New heuristic for placing new output section
671 statement in existing script, and accompanying split of __start
672 symbol alignment into a separate assignment to dot.
673 (lang_add_section): Consistently use output->bfd_section rather than
674 an alias, section->output_section.
675 (map_input_to_output_sections): Rename overly long arg. Move
676 initialization of data_statement output section to here..
677 (lang_check_section_addresses): ..from here.
678 (print_assignment): Correct printing of etree_assert.
679 (print_all_symbols): Don't bomb if userdata is NULL.
680 (IGNORE_SECTION): Rearrange.
681 * emultempl/elf32.em (output_rel_find): Adjust interator.
682 (output_prev_sec_find): Delete.
683 (struct orphan_save): Delete.
684 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
685 flags without creating a duplicate output section statement.
686 Revise code holding history of various orphan section placements.
687 Allow orphan sections to place before script specified output
688 sections. Call lang_output_section_find_by_flags when placement
689 by name fails. Use lang_insert_orphan.
690 * emultempl/mmo.em (output_prev_sec_find): Delete.
691 (struct orphan_save): Delete.
692 (mmo_place_orphan): Revise code holding history of orphan placement.
693 Allow orphans to place before existing output sections. Use
695 * emultempl/pe.em (output_prev_sec_find): Delete.
696 (struct orphan_save): Delete.
697 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
700 2004-10-13 Mark Mitchell <mark@codesourcery.com>
702 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
705 2004-10-13 Alan Modra <amodra@bigpond.net.au>
708 * ldcref.c (check_section_sym_xref): Delete.
709 (check_local_sym_xref): New function.
710 (check_nocrossrefs): Adjust call.
711 * emultempl/pe.em (struct orphan_save): Add os_tail.
712 (place_orphan): Backport assorted fixes from elf32.em.
714 2004-10-12 Bob Wilson <bob.wilson@acm.org>
716 * emultempl/xtensaelf.em: Use ISO C90 formatting.
718 2004-10-11 Jakub Jelinek <jakub@redhat.com>
720 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
721 getline for portability.
723 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
724 (gld${EMULATION_NAME}_parse_ld_so_conf,
725 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
726 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
728 2004-10-11 Alan Modra <amodra@bigpond.net.au>
731 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
732 rejected when linking statically.
734 2004-10-08 Daniel Jacobowitz <dan@debian.org>
736 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
738 2004-10-07 Bob Wilson <bob.wilson@acm.org>
740 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
741 assembler-generated longcall sequences. Describe new --size-opt
743 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
744 * emultempl/xtensaelf.em (remove_section,
745 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
746 elf_xtensa_after_open): New.
747 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
748 OPTION_NO_LITERAL_MOVEMENT): Define.
749 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
750 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
751 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
752 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
753 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
754 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
755 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
756 * Makefile.am (eelf32xtensa.c): Update dependencies.
757 * Makefile.in: Regenerate.
759 2004-10-07 Jeff Baker <jbaker@qnx.com>
761 * lexsup.c: Handle --warn-shared-textrel option.
762 (ld_options): Restore alpha sorting of options.
763 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
764 * ld.texinfo: Add documentation for --warn-shared-textrel.
765 * NEWS: Added mention of --warn-shared-textrel option.
767 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
769 * emultempl/crxelf.em (disable_relaxation): Add.
770 (crxelf_before_allocation): Enable --relax option by default.
771 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
772 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
773 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
775 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
777 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
778 --sort-section name|alignment.
780 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
781 --sort-section name|alignment.
783 * ld.h (sort_type): New enum.
784 (wildcard_spec): Change the type of `sorted' to sort_type.
786 * ldgram.y (SORT): Removed.
787 (SORT_BY_NAME): Added.
788 (SORT_BY_ALIGNMENT): Added.
789 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
791 (input_section_spec_no_keep): Updated `sorted'.
792 (statement): Replace SORT with SORT_BY_NAME.
794 * ldlang.c (compare_section): New function to compare 2
795 sections with different sorting schemes.
796 (wild_sort): Updated. Use compare_section.
797 (update_wild_statements): New function.
798 (lang_process): Call update_wild_statements before
799 map_input_to_output_sections.
801 * ldlex.l (SORT_BY_NAME): New.
802 (SORT_BY_ALIGNMENT): New.
803 (SORT): Return SORT_BY_NAME.
805 * ldmain.c (sort_section): New. Defined.
806 (main): Initialize it to none.
808 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
809 (ld_options): Add an entry for OPTION_SORT_SECTION.
810 (parse_args): Handle OPTION_SORT_SECTION.
812 * mri.c (mri_draw_tree): Updated `sorted'.
814 2004-10-04 Jakub Jelinek <jakub@redhat.com>
816 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
817 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
819 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
820 and . as second argument.
821 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
822 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
823 (fold_binary): Add it here. Insert padding to make relro_end
824 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
825 exp_dataseg_relro_adjust phase just use previously computed
827 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
828 relro_adjust here. Call lang_size_sections_1 once more if there
829 was too big padding at DATA_SEGMENT_RELRO_END.
830 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
832 2004-10-01 Paul Brook <paul@codesourcery.com>
834 * emulparams/armelf.sh: Add unwinding table sections.
836 2004-09-30 Filip Navara <navaraf@reactos.com>
838 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
839 correct base address for position independant executables.
840 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
843 2004-09-30 Paul Brook <paul@codesourcery.com>
845 * ld.texinfo: Document --target2=abs.
846 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
848 2004-09-29 Nick Clifton <nickc@redhat.com>
850 * scripttempl/xstormy16.sc: Only perform the assignments to the
851 ROM region when not performing a relocatable link. The ROM region
852 does not start at address 0, but the sections will.
853 * Makefile.am: Fix linker script dependency for the generation of
855 * Makefile.in: Regenerate.
857 2004-09-18 Filip Navara <navaraf@reactos.com>
859 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
860 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
861 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
863 * scripttempl/pe.sc: Make the virtual address and file offset synced if
864 the alignment is lower than the target page size.
866 2004-09-27 Filip Navara <navaraf@reactos.com>
868 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
869 def_file_parse to handle pe_def_file if NULL and prevent crash with
872 2004-09-27 Alan Modra <amodra@bigpond.net.au>
874 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
875 --emit-stub-syms automatically when --emit-relocs.
877 2004-09-24 Paul Brook <paul@codeosurcery.com>
879 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
880 .fini_array sections.
882 2004-09-19 Andreas Schwab <schwab@suse.de>
884 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
885 base so that relro end is suitably aligned.
887 2004-09-17 Paul Brook <paul@codesourcery.com>
889 * ld.texinfo: Rename arm-specific section. Document --target*
890 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
891 * emulparams/armelf_linux.sh: Ditto.
892 * emulparams/armelf_nbsd.sh: Ditto.
893 * emultempl/armelf.em: Set default for TARGET2_TYPE.
894 (target2_type): New variable.
895 (arm_elf_before_allocation): Don't pass target1_type.
896 (arm_elf_create_output_section_statements): New function.
897 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
898 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
899 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
900 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
901 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
902 argument to bfd_elf32_arm_process_before_allocation.
904 2004-09-17 Alan Modra <amodra@bigpond.net.au>
906 * ldexp.c (fold_name): Update u.undef.next refs.
907 * emultempl/pe.em: Likewise.
908 * emultempl/sunos.em: Likewise.
910 2004-09-17 Alan Modra <amodra@bigpond.net.au>
912 * Makefile.am: Run "make dep-am".
913 * Makefile.in: Regenerate.
914 * config.in: Regenerate.
915 * configure: Regenerate.
916 * aclocal.m4: Regenerate.
917 * po/ld.pot: Regenerate.
919 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
921 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
925 2004-09-16 Alan Modra <amodra@bigpond.net.au>
927 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
928 to bfd_elf32_arm_process_before_allocation call.
930 2004-09-13 Paul Brook <paul@codesourcery.com>
932 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
933 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
935 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
937 * configure: Regenerated with autconfig 2.13.
939 2004-09-07 Andreas Schwab <schwab@suse.de>
941 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
942 alignment before adjusting DATA_SEGMENT_RELRO_END.
944 2004-09-06 Mark Mitchell <mark@codesourcery.com>
946 * emulparams/armsymbian.sh: Use armbpabi script.
947 * scripttempl/armbpabi.sc: New script.
949 2004-09-02 Mark Mitchell <mark@codesourcery.com>
951 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
952 (earmsymbian.c): New target.
953 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
954 * Makefile.in: Regenerated.
955 * aclocal.m4: Likewise.
956 * configure: Likewise.
957 * emulparams/armsymbian.sh: New file.
959 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
961 * scripttempl/elf32crx.sc: Edit file with comments.
962 (.init): Add new section.
964 (.ctor): Control the linkage order.
967 2004-08-27 Nick Clifton <nickc@redhat.com>
969 * emultempl/pe.em (after_open): Do not assume that either bfd is
972 2004-08-26 Alan Modra <amodra@bigpond.net.au>
974 * ldlang.c (lang_init): Don't compare with TRUE.
976 2004-08-25 Dmitry Diky <diwil@spec.ru>
978 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
979 * scripttempl/elf32msp430.sc: Add .profiler section definition.
981 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
983 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
985 2004-08-19 Mark Mitchell <mark@codesourcery.com>
987 * configure.tgt (arm*-*-symbianelf*): New target.
988 (arm*-*-eabi*): Likewise.
990 2004-08-19 Jakub Jelinek <jakub@redhat.com>
992 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
993 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
994 (OPTION_NON_OVERLAPPING_OPD): Define.
995 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
996 --non-overlapping-opd option.
998 2004-08-18 Alan Modra <amodra@bigpond.net.au>
1001 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
1002 was already on the undefs list.
1004 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1006 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1007 prefix the symbol field too.
1009 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1011 * ldmain.c (link_callbacks): Remove "error_handler".
1012 * ldmisc.c: Include elf-bfd.h.
1013 (vfinfo): Sort comment. Handle %A. Use %A instead of
1014 bfd_get_section_indent.
1015 (error_handler): Delete.
1016 * ldmisc.h (error_handler): Delete declaration.
1018 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1020 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1021 ppc64_elf_restore_symbols.
1023 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1025 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1026 .toc is too large on relocatable linking.
1028 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1030 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1031 (LDEMUL_AFTER_OPEN): Don't define.
1033 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1035 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1037 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1039 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1042 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1044 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1046 2004-07-26 Dmitry Diky <diwil@spec.ru>
1048 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1049 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1051 * configure.tgt: Likewise.
1052 * emulparams/msp430all.sh: Likewise.
1053 * Makefile.in: Regenerate.
1055 2004-07-23 Nick Clifton <nickc@redhat.com>
1057 * emultempl/elf32.em (_place_orphan): Use an already existing
1058 section name if that section does not have any flags set.
1060 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1062 * ldlang.c (already_linked_hash_entry): Removed.
1063 (already_linked): Likewise.
1064 (already_linked_table): Likewise.
1065 (section_already_linked): Call bfd_section_already_linked.
1066 (lang_process): Replace already_linked_table_init with
1067 bfd_section_already_linked_table_init and check return. Replace
1068 already_linked_table_free with bfd_section_already_linked_table_free.
1070 2004-07-21 Nick Clifton <nickc@redhat.com>
1072 * ldlang.c (init_os): Make sure that the newly allocated userdata
1073 structure is zeroed out.
1075 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1077 * NEWS: Mention the new --add-needed/--no-add-needed and
1078 --as-needed/--no-as-needed options.
1080 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1082 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1083 check the add_needed field.
1084 (dt_needed): New struct.
1085 (gld${EMULATION_NAME}_try_needed): Change the first argument
1086 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1087 bit in the file where the DT_NEEDED entry comes from.
1088 (gld${EMULATION_NAME}_search_needed): Change the second
1089 argument to a pointer to struct dt_needed.
1090 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1091 (gld${EMULATION_NAME}_after_open): Likewise.
1093 * ld.texinfo: Add --add-needed document.
1094 * ldlang.c (new_afile): Set p->add_needed.
1095 * ldlang.h (lang_input_statement_type): Add add_needed field.
1096 * ldmain.h (add_needed): Declare.
1097 * ldmain.c (add_needed): New global var.
1098 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1099 OPTION_NO_ADD_NEEDED.
1100 (ld_options): Likewise.
1101 (parse_args): Handle them.
1103 2004-07-13 Christof Petig <christof@petig-baender.de>
1105 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1106 for endian-ness of extracted addend.
1108 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1110 * pe-dll.c (auto_export): Filter on just the import prefix,
1111 "_imp_", not "_imp__".
1113 2004-07-09 Nick Clifton <nickc@redhat.com>
1115 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1117 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1119 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1120 (eelf32crx.c): New target.
1121 * Makefile.in: Regenerate.
1122 * configure.tgt: Handle crx-*-elf*.
1123 * emulparams/elf32crx.sh: New file.
1124 * emultempl/crxelf.em: New file.
1125 * scripttempl/elf32crx.sc: New file.
1126 * NEWS: Mention new target.
1128 2004-07-06 Nick Clifton <nickc@redhat.com>
1130 * Makefile.am: Add eshlsymbian.c.
1131 * Makefile.in: Regenerate.
1132 * configure.tgt: Add sh*-symbian-elf target.
1133 * emulparams/shlsymbian.sh: New file. Configure the
1134 sh-symbian-elf linker scripts.
1135 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1136 template for the sh-symbian-elf target.
1138 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1140 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1141 * emulparams/hppalinux.sh: Likewise.
1142 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1143 data segment and PLT_BEFORE_GOT is defined.
1145 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1147 * ld.texinfo (WIN32): Document PE weak symbols.
1149 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1151 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1153 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1155 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1158 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1160 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1163 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1165 * ldlang.c (print_output_section_statement): Don't print size before
1167 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1169 * ldexp.c (fold_name): .. See below.
1170 * ldlang.c (section_already_linked, print_output_section_statement,
1171 print_input_section, insert_pad, size_input_section,
1172 lang_check_section_addresses, lang_size_sections_1,
1173 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1174 lang_one_common, lang_reset_memory_regions, lang_process,
1175 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1176 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1177 * pe-dll.c (process_def_file, generate_reloc): ..
1178 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1179 gld${EMULATION_NAME}_before_allocation): ..
1180 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1181 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1182 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1183 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1184 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1185 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1186 "size" instead of "_raw_size" and "_cooked_size". Expand
1187 bfd_section_size macro invocations.
1189 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1191 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1192 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1193 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1195 (.tls): Define ___tls_start__ and ___tls_end__.
1197 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1199 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1201 2004-06-18 Adam Nemet <anemet@lnxw.com>
1203 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1204 * configure: Regenerate.
1206 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1208 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1209 .gcc_except_table output sections lost accidentally with
1212 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1214 * ldwrite.c (build_link_order): Use bfd_get_section_size
1215 instead of bfd_get_section_size_before_reloc or _raw_size.
1216 * pe-dll.c (process_def_file): Likewise.
1218 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1220 From Richard Wirth <r.wirth@wirthware.de>
1221 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1223 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1225 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1226 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1228 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1230 * testsuite/ld-sh/arch/arch.exp: New test script.
1231 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1232 * testsuite/ld-sh/arch/sh.s: New file.
1233 * testsuite/ld-sh/arch/sh2.s: New file.
1234 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1235 * testsuite/ld-sh/arch/sh2e.s: New file.
1236 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1237 * testsuite/ld-sh/arch/sh3.s: New file.
1238 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1239 * testsuite/ld-sh/arch/sh3e.s: New file.
1240 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1241 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1242 * testsuite/ld-sh/arch/sh4.s: New file.
1243 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1244 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1245 * testsuite/ld-sh/arch/sh4a.s: New file.
1247 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1249 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1251 * lexsup.c: Formatting. Wrap long lines.
1252 * ldwrite.c: Update copyright date.
1254 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1255 (output_section_callback): Nor SEC_KEEP here.
1256 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1257 (lang_gc_wild): Delete. Fold into..
1258 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1260 (lang_process): Always call lang_gc_sections.
1261 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1262 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1265 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1267 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1268 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1269 * ldlang.c (lang_add_section): Likewise.
1271 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1273 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1274 sections when doing a final link. Clear SEC_EXCLUDE when doing
1275 a relocable link, except for SEC_DEBUGGING sections.
1276 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1277 same condition here to drop SEC_EXCLUDE orphan sections.
1279 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1281 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1282 only when not a relocatable link.
1283 (print_input_section): Handle SEC_EXCLUDE sections.
1284 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1285 (lang_do_assignments_1): Likewise.
1286 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1287 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1288 * emultempl/hppaelf.em (build_section_lists): Likewise.
1289 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1290 (build_section_lists): Likewise.
1292 2004-05-23 Andreas Schwab <schwab@suse.de>
1294 * ld.texinfo (Options): Fix typo in last change.
1296 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1298 * ld.h (ld_config_type): Add new field: hash_table_size.
1299 * ldmain.c: Initialise the new field to zero. If it is non-zero
1300 after parsing the linker's command line call
1301 bfd_hash_set_default_size.
1302 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1303 (ld_options): Add hash-size.
1304 (parse_args): Parse --hash-size option. Allow
1305 --reduce-memory-overheads to set the default hash table size as
1307 * ld.texinfo: Document the new switch. Also mention that
1308 --reduce-memory-overheads can affect the hash table size.
1309 * NEWS: Mention the new feature.
1311 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1313 * NEWS: Mention new linker map file generation and the
1314 --reduce-memory-overheads option.
1315 * ld.texinfo: Document --reduce-memory-overheads option.
1316 * ld.h (map_symbol_def): New struct.
1317 (struct user_section_struct, section_userdata_type): Rename to:
1318 (struct lean_user_section_struct, lean_section_userdata_type).
1319 (struct fat_user_section_struct, fat_section_userdata_type): New.
1320 (SECTION_USERDATA_SIZE): Define.
1321 (args_type): New member reduce_memory_overheads.
1322 * ldlang.c (map_obstack): New static variable.
1323 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1324 (lang_map): Unless command_line.reduce_memory_overheads is set,
1325 initialize lists of defined symbols for each section.
1326 (print_input_section): Unless command_line.reduce_memory_overheads
1327 is set, use print_all_symbols.
1328 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1329 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1330 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1331 (ld_options): Add entry for --reduce-memory-overheads.
1332 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1334 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1336 * ldgram.y (sect_constraint): New.
1337 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1338 (section): Add sect_constraint. Pass additional argument
1339 to lang_enter_output_section_statement.
1340 * mri.c (mri_draw_tree): Pass additional argument to
1341 lang_enter_output_section_statement.
1342 * emultempl/pe.em (place_orphan): Likewise.
1343 (output_prev_sec_find): Disregard output section statements with
1345 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1346 (mmo_place_orphan): Pass additional argument to
1347 lang_enter_output_section_statement.
1348 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1349 statements with constraint == -1.
1350 (place_orphan): Pass additional argument to
1351 lang_enter_output_section_statement.
1352 * ldlang.c (lang_enter_overlay_section): Likewise.
1353 (lang_output_section_find_1): New.
1354 (lang_output_section_find): Use it.
1355 (lang_output_section_statement_lookup_1): New.
1356 (lang_output_section_statement_lookup): Use it.
1357 (check_section_callback, check_input_sections): New.
1358 (map_input_to_output_sections): Check if all input sections
1359 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1360 (strip_excluded_output_sections): Disregard output section statements
1361 with constraint == -1.
1362 (lang_record_phdrs): Likewise.
1363 (lang_enter_output_section_statement): Add constraint argument.
1364 Use lang_output_section_statement_lookup_1.
1365 * ldlang.h (lang_output_section_statement_type): Add constraint
1366 and all_input_readonly fields.
1367 (lang_enter_output_section_statement): Adjust prototype.
1368 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1369 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1370 segment if all input sections are readonly.
1372 2004-05-19 Adam Nemet <anemet@lnxw.com>
1374 * scripttempl/i386lynx.sc: Remove file.
1376 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1378 * ld.texinfo (Output Section Address): Correct subsection name.
1380 2004-05-17 Adam Nemet <anemet@lnxw.com>
1382 * configure.tgt (powerpc-*-lynxos* case): New case.
1383 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1384 * emulparams/ppclynx.sh: New file.
1385 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1386 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1387 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1388 (eppclynx.c): New rule.
1389 * Makefile.in: Regenerate.
1391 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1393 * configure.tgt (or32-*-rtems*): Switch to elf and
1394 support versioned targets.
1396 2004-05-13 Nick Clifton <nickc@redhat.com>
1398 * po/fr.po: Updated French translation.
1400 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1402 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1403 for binaries, -shared and -pie.
1404 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1405 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1406 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1407 (OTHER_RELRO_SECTIONS): ... this.
1408 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1409 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1410 -z relro and -z norelro.
1411 (gld${EMULATION_NAME}_list_options): Add it to usage.
1412 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1413 -z relro scripts when appropriate.
1414 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1415 Create separate .got.plt section if SEPARATE_GOTPLT.
1416 Move sections which are only written during relocation handling
1417 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1418 before .data. Add DATA_SEGMENT_RELRO_END directive.
1419 Include OTHER_RELRO_SECTIONS.
1420 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1421 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1422 (fold_unary): Likewise.
1423 (fold_binary): Handle -z relro.
1424 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1425 exp_dataseg_relro_adjust phases. Add relro_end field.
1426 * ldmain.c (main): Initialize link_info.relro to FALSE.
1427 * ldlang.c (lang_size_sections): Handle -z relro.
1429 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1431 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1433 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1435 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1436 before printing it with %W.
1438 2004-05-07 Brian Ford <ford@vss.fsi.com>
1439 DJ Delorie <dj@redhat.com>
1441 * emultempl/pe.em (real_flags): New static.
1442 (OPTION_LARGE_ADDRESS_AWARE): New define.
1443 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1444 (gld_${EMULATION_NAME}_list_options): Likewise.
1445 (gld${EMULATION_NAME}_handle_option): Likewise.
1446 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1447 * ld.texinfo: Document it.
1450 2004-05-07 Brian Ford <ford@vss.fsi.com>
1452 * NEWS: Mention DWARF 2 support for i386pe.
1454 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1456 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1459 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1461 * ldlang.c (unique_section_p): Pass section parm, return true on
1463 (output_section_callback): Adjust.
1464 * ldlang.h (unique_section_p): Update prototype.
1465 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1467 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1469 * ld.texinfo (--gc-sections): Remove restriction for
1472 2004-04-29 Brian Ford <ford@vss.fsi.com>
1474 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1475 for DWARF 2/3. Update stab section's syntax.
1477 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1479 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1480 (fill_edata): Correct pointer arithmetic.
1482 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1484 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1485 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1486 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1487 (EXTRA_EM_FILE): Use mipsecoff.em
1488 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1489 (EXTRA_EM_FILE): Use mipsecoff.em
1490 * emultempl/mipsecoff.em: Restructure to be included as an
1491 extra emulation file.
1492 (check_sections, gld${EMULATION_NAME}_after_open)
1493 (gld${EMULATION_NAME}_after_allocation)
1494 (gld${EMULATION_NAME}_get_script)
1495 (ld_${EMULATION_NAME}_emulation): Remove
1496 (gld${EMULATION_NAME}_before_parse): Rename to...
1497 (mipsecoff_before_parse): This.
1498 (LDEMUL_BEFORE_PARSE): Define.
1499 * emultempl/mipself.em: Remove file.
1500 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1501 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1503 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1504 * Makefile.in: Regenerate.
1506 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1508 * ld.texinfo (synthesizing on H8/300): Information about linker
1509 relaxation support for bit manipulation instructions and system
1510 control instructions is added.
1512 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1514 * NEWS: Mention change in DEFINED semantics.
1516 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1518 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1519 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1520 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1522 2004-04-21 Ben Elliston <bje@au.ibm.com>
1524 * ld.texinfo (Simple Example): Add missing punctuation.
1526 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1528 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1530 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1532 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1535 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1537 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1538 with default priority. Likewise for dtors.
1540 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1542 * configure.host: Remove mips*-dec-bsd* target.
1543 * configure.tgt: Likewise.
1545 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1547 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1548 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1549 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1550 * emultempl/irix.em: New file.
1551 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1553 * Makefile.in: Regenerate.
1555 2004-04-01 Paul Brook <paul@codesourcery.com>
1557 * emultempl/armelf.em (byteswap_code): Add.
1558 (arm_elf_before_allocation): Pass extra parameter.
1559 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1560 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1561 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1562 * emultempl/armelf_oabi.em: Pass extra parameter.
1563 * ld.texinfo: Document --be8.
1565 2004-03-30 Stan Shebs <shebs@apple.com>
1567 Remove long-obsolete MPW support.
1568 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1569 * Makefile.am (mpw): Remove file-presynthesizing actions.
1570 * Makefile.in: Likewise.
1571 * ldfile.c (slash): Remove MPW case.
1572 * ldlex.l [MPW]: Remove unused definition.
1574 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1576 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1577 (eelf32cr16c.c): New target.
1578 * Makefile.in: Regenerate.
1579 * configure.tgt: Handle cr16c-*-elf*.
1580 * emulparams/elf32cr16c.sh: New file.
1581 * scripttempl/elfcr16c.sc: Likewise
1582 * NEWS: Mention support for new target.
1584 2004-03-30 Nick Clifton <nickc@redhat.com>
1586 * po/sv.po: Updated Swedish translation.
1588 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1590 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1591 * emultempl/hppaelf.em: Likewise.
1592 * emultempl/ppc64elf.em: Likewise.
1593 * emultempl/sh64elf.em: Likewise.
1595 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1597 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1598 size_dynamic_sections call.
1600 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1603 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1604 link_info.wrap_char.
1606 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1608 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1609 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1611 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1613 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1615 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1617 * config.in: Regenerate.
1618 * po/ld.pot: Regenerate.
1620 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1622 * ld.texinfo: Add --as-needed doco.
1623 * ldmain.c (as_needed): New global var.
1624 * ldmain.h (as_needed): Declare.
1625 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1626 OPTION_NO_AS_NEEDED.
1627 (ld_options): Likewise.
1628 (parse_args): Handle them.
1629 * ldlang.h (lang_input_statement_type): Add as_needed field.
1630 * ldlang.c (new_afile): Set p->as_needed.
1631 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1632 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1633 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1635 * ldlang.c (open_input_bfds): Remove useless cast.
1636 (lang_do_assignments_1): Likewise.
1637 (lang_for_each_input_section): Delete.
1639 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1641 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1643 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1645 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1646 private when building implib.
1648 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1650 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1652 (IGNORE_SECTION): Ignore .tbss sections too.
1653 (lang_size_sections_1): .tbss sections do not advance dot.
1655 2004-03-01 Andreas Schwab <schwab@suse.de>
1657 * ld.texinfo (Options): Fix example for --wrap.
1659 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1661 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1664 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1666 * ldlang.c (lang_check): Use %P, not %E, in error message.
1668 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1670 * ldlang.h (struct lang_output_section_state): Change processed
1672 * ldexp.c (check, invalid): Remove.
1673 (fold_name): Move valid_p assignments. Create undefined symbol
1674 when needed. Directly exampine section's processd flag.
1675 * ldlang.c (lang_output_section_statement_lookup): Adjust
1676 processed field init.
1677 (lang_size_sections_1): Allow LOADADDR when determining section's
1678 VMA. Adjust error message. Fold data statement's expr.
1679 (lang_size_sections): Correctly increment lang_statement_iteration.
1681 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1683 * ldexp.c (fold_tree): Follow indirect symbols.
1685 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1687 * ldgram.y (exp): Add two operand ALIGN.
1688 * ldexp.c (fold_binary): Add ALIGN_K case.
1689 * ld.texinfo (ALIGN): Document two operand version.
1691 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1693 * ldlang.c (map_input_to_output_sections): Initialize sections
1694 mentioned in a data statement expression.
1695 (lang_do_assignments_1): Add data statement's expression's
1698 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1700 * ldgram.y (statement_anywhere): Add assert rule.
1701 * ldlang.c (exp_init_os): Add assert case.
1703 2004-02-14 Andrew Cagney <cagney@redhat.com>
1705 * ldmain.c (remove_output): Call bfd_cache_close.
1707 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1709 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1710 .MIPS.content* and .MIPS.events* sections.
1712 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1714 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1715 .note.gnu.arm.ident to after allocated sections. Mark its
1718 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1720 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1721 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1722 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1723 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1724 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1726 2004-02-05 Nick Clifton <nickc@redhat.com>
1728 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1730 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1732 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1734 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1736 * genscripts.sh: Fix typo.
1738 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1740 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1742 * emulparams/elf64_ia64.sh: Put .rela.opd into
1743 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1745 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1747 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1748 * ld.texinfo (--omagic): Note that writable text section
1749 does not conform to published PE-COFF specs.
1750 (--enable-auto-import): Likewise.
1752 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1754 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1756 2004-01-13 Nick Clifton <nickc@redhat.com>
1758 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1759 which if true will prevent the LMA region being used as a
1760 replacement for a default VMA region.
1761 (lang_leave_output_section_statement): Pass extra parameter.
1762 (lang_leave_overlay): Likewise.
1763 * ld.texinfo (Output Section LMA): Document that the LMA
1764 region can be set to the VMA region if no VMA has been set.
1765 * ldlang.h (struct lang_output_section_phdr_list): Create a
1766 typedef for this type. Minor formatting fixes.
1768 2004-01-13 Nick Clifton <nickc@redhat.com>
1770 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1771 assume that the section should be allocated.
1773 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1775 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1776 sections. Do ignore SEC_NEVER_LOAD sections.
1777 (lang_size_sections_1): Remove test made redundant with the above.
1779 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1781 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1782 program_header_size.
1784 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1786 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1787 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1788 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1789 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1790 (MAXPAGESIZE): Set to 64Kb.
1791 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1792 __ROFIXUP_END__. Don't map .rofixup.got any more.
1793 * emulparams/elf32frv.sh (NOP): Set.
1794 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1795 * configure.tgt: Add frv-*-*linux*.
1796 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1797 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1798 (eelf32frvfd.c): New.
1799 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1800 * emulparams/elf32frv.sh: Reverted previous two patches.
1801 * emulparams/elf32frvfd.sh: New.
1802 * Makefile.in: Rebuilt.
1803 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1804 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1805 .rofixup.got to .rofixup.
1806 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1807 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1808 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1810 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1812 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1813 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1815 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1817 * ldexp.c (align_n): Make static.
1818 * ldexp.h (align_n): Delete declaration.
1819 * ldlang.h (lang_enter_output_section_statement): Remove
1821 * ldlang.c (lang_enter_output_section_statement): Likewise.
1822 (TO_ADDR, TO_SIZE): Define.
1823 (opb_shift): New var.
1824 (init_opb): New function.
1825 (print_input_section): Call init_opb and use TO_ADDR.
1826 (print_data_statement, print_reloc_statement): Likewise.
1827 (print_padding_statement): Likewise.
1828 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1829 (lang_check_section_addresses): Likewise.
1830 (lang_size_sections_1): Likewise.
1831 (lang_do_assignments_1): Likewise.
1832 (lang_set_startof): Likewise.
1833 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1834 (lang_process): Call init_opb.
1835 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1836 (lang_enter_overlay_section): Adjust
1837 lang_enter_output_section_statement call.
1838 * ldgram.y: Likewise.
1839 * mri.c (mri_draw_tree): Likewise.
1840 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1841 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1842 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1844 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1845 * ldfile.h (ldfile_set_output_arch): Ditto.
1846 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1847 ldfile_set_output_arch.
1848 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1849 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1850 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1851 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1852 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1853 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1854 * ldgram.y: Adjust ldfile_set_output_arch call.
1855 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1856 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1857 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1858 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1859 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1860 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1861 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1863 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1865 * configure.tgt: Add m68k-uClinux target.
1867 For older changes see ChangeLog-0203
1873 version-control: never