1 2005-03-16 H.J. Lu <hongjiu.lu@intel.com>
3 * emultempl/elf32.em (gld${EMULATION_NAME}_finish): Remove
4 unused empty output sections for non-relocatable link.
6 * ld.h (args_type): Remove gc_sections.
8 * ldlang.c (lang_mark_used_section): New.
9 (lang_gc_sections): Use link_info.gc_sections instead of
10 command_line.gc_sections.
11 * ldmain.c (main): Likewise.
12 * lexsup.c (parse_args): Likewise.
13 * ldlang.c (lang_process): Call lang_mark_used_section.
15 * ldmain.c (main): Initialize link_info.gc_sections to FALSE.
17 2005-03-16 Nick Clifton <nickc@redhat.com>
18 Ben Elliston <bje@au.ibm.com>
20 * configure.in (werror): New switch: Add -Werror to the
21 compiler command line. Enabled by default. Disable via
23 * configure: Regenerate.
25 2005-03-16 Alan Modra <amodra@bigpond.net.au>
27 * emulparams/elf32ppclinux.sh (OTHER_READWRITE_SECTION): Delete.
28 (OTHER_RELRO_SECTIONS): Set this instead.
30 2005-03-15 Nick Clifton <nickc@redhat.com>
32 * NEWS: Add cutoff for changes in 2.16 release.
34 2005-03-15 Mikkel Krautz <krautz@gmail.com>
36 * configure.tgt (x86_64-elf): Add target.
38 2005-03-15 Alan Modra <amodra@bigpond.net.au>
40 * po/es.po: Commit new Spanish translation.
42 2005-03-14 Alan Modra <amodra@bigpond.net.au>
44 * ldexp.c (exp_fold_tree): Ensure return value is initialized.
45 Tidy etree_assert case.
47 2005-03-14 Alan Modra <amodra@bigpond.net.au>
49 * po/tr.po: Commit new Turkish translation.
51 2005-03-11 Daniel Jacobowitz <dan@codesourcery.com>
53 * Makefile.am: Remove references to em68klynx.o and esparclynx.o.
54 * Makefile.in: Regenerated.
55 * emulparams/m68klynx.sh, emulparams/sparclynx.sh: Remove.
57 2005-03-07 Nick Clifton <nickc@redhat.com>
59 * po/fr.po: Updated translation.
61 2005-03-05 Alan Modra <amodra@bigpond.net.au>
63 * po/ld.pot: Regenerate.
65 2005-03-02 Jan Beulich <jbeulich@novell.com>
67 * ldmain.c (remove_output): Use unlink_if_ordinary instead of unlink.
68 * pe-dll.c (pe_dll_generate_implib): Likewise.
70 2005-02-24 Ben Elliston <bje@au.ibm.com>
72 * ldfile.c: Remove GNU960 conditional code.
73 * emultempl/gld960.em: Likewise.
74 * emultempl/gld960c.em: Likewise.
75 * emultempl/lnk960.em: Likewise.
77 2005-02-24 Nick Clifton <nickc@redhat.com>
79 * emultempl/lnk960.em (lnk960_before_parse): Remove redundant
80 empty string from calls to concat.
82 2005-02-23 Nick Clifton <nickc@redhat.com>
84 * emultempl/lnk960.em (lnk960_before_parse): Terminate list of
85 arguments passed to concat() with a NULL.
87 * emultempl/m68kcoff.em: Include ldexp.h and ldlang.h because they
88 define types needed by ldfile.h
90 2005-02-23 Alan Modra <amodra@bigpond.net.au>
92 * pe-dll.c: Warning fixes.
93 * emultempl/sunos.em: Likewise.
95 2005-02-22 Daniel Jacobowitz <dan@codesourcery.com>
97 * ldlang.c (section_already_linked): Don't call
98 bfd_section_already_linked for dynamic objects.
100 2005-02-22 Alan Modra <amodra@bigpond.net.au>
102 * ldexp.c: Warning fixes.
103 * ldwrite.c: Likewise.
104 * emultempl/elf32.em: Likewise.
106 2005-02-21 H.J. Lu <hongjiu.lu@intel.com>
108 * ldlang.c (lang_add_section): Check SEC_TIC54X_BLOCK for TI
110 (lang_size_sections_1): Check SEC_COFF_SHARED_LIBRARY for COFF
111 and ECOFF output only.
113 2005-02-21 Alan Modra <amodra@bigpond.net.au>
115 * config.in: Regenerate.
116 * configure: Regenerate.
118 2005-02-17 Zack Weinberg <zack@codesourcery.com>
120 * ldexp.c (assigning_to_dot): New global flag.
121 (fold_name): If assigning_to_dot is true, object immediately to
123 (exp_fold_tree): Set and clear assigning_to_dot around the
124 recursive call to exp_fold_tree to process the right-hand side
125 of an assignment to the location counter.
127 2005-02-17 Paul Brook <paul@codesourcery.com>
129 * scripttempl/armbpabi.sc: Add dummy name to version block.
131 2005-02-17 Alan Modra <amodra@bigpond.net.au>
133 * ldexp.c (new_abs): Init new.str.
135 2005-02-15 Mark Mitchell <mark@codesourcery.com>
137 * configure.in (AC_CHECK_FUNCS): Add glob.
138 * configure: Regenerated.
139 * emultempl/elf32.em (<glob.h>): Do not include if HAVE_GLOB is
141 (gld${EMULATION_NAME}_parse_ld_so_conf_include): Do not use glob
142 if HAVE_GLOB is not defined.
144 2005-02-16 Kaz Kojima <kkojima@rr.iij4u.or.jp>
146 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Define
147 lib_path if NATIVE is yes.
149 2005-02-16 Alan Modra <amodra@bigpond.net.au>
151 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Make
152 an error creating fake bfd fatal.
153 (ppc_before_allocation): Continue on after errors.
154 (gld${EMULATION_NAME}_finish): Likewise.
156 2005-02-15 Nick Clifton <nickc@redhat.com>
158 * ldlex.l (YY_NO_UNPUT): Define so that the yy_unput function is
159 not declared. It is not used and its presence causes a compile
162 2005-02-11 Zack Weinberg <zack@codesourcery.com>
164 * emultempl/elf32.em (gld${EMULATION_NAME}_stat_needed):
165 If st.st_ino is zero, do not treat the library as a duplicate.
167 2005-02-10 Jakub Jelinek <jakub@redhat.com>
169 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
170 Set BFD_LINKER_CREATED on the stubs bfd.
171 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
174 2005-02-08 Mark Mitchell <mark@codesourcery.com>
176 * scripttempl/armbpabi.sc (VERSION): Make special section symbols
178 (Image$$ER_RO$$Base): Define whenever RELOCATING.
179 (Image$$ER_RO$$Limit): Likewise.
180 (SHT$$INIT_ARRAY$$Base): Likewise.
181 (SHT$$INIT_ARRAY$$Limit): Likeise.
183 2005-02-10 Ben Elliston <bje@au.ibm.com>
185 * emultempl/beos.em: Remove #if 0 and #if 1 blocks.
187 2005-02-08 Richard Sandiford <rsandifo@redhat.com>
189 * configure.tgt (mips64*el-*-linux-gnu*): Define targ_extra_libpath
190 to include o32 and n64 emulations.
191 (mips64*-*-linux-gnu*): Likewise.
193 2005-02-08 Hans-Peter Nilsson <hp@axis.com>
195 * ldmain.c (warning_callback, warning_find_reloc): Prepend
196 "warning: " to warning messages.
198 2005-02-04 Alan Modra <amodra@bigpond.net.au>
200 * emultempl/elf32.em (gld${EMULATION_NAME}_find_exp_assignment): Don't
201 look up symbol for etree_provide here.
203 2005-02-02 Daniel Jacobowitz <dan@codesourcery.com>
205 * emulparams/elf32bmip.sh (TEXT_DYNAMIC): Always set.
207 2005-02-01 Edward Welbourne <eddy@opera.com>
208 Nick Clifton <nickc@redhat.com>
210 * ld.texinfo (Source Code Reference): New node describing how to
211 access linker script defined variables from source code.
213 2005-02-01 Alan Modra <amodra@bigpond.net.au>
215 * ld.texinfo: Clarify --as-needed operation.
217 2005-01-31 Andrew Cagney <cagney@gnu.org>
219 * configure: Regenerate to track ../gettext.m4.
221 2005-01-31 Nick Clifton <nickc@redhat.com>
223 * ldver.c (ldversion): Bump reported copyright date to 2005.
225 2005-01-31 Nick Clifton <nickc@redhat.com>
227 * configure.tgt: Remove obsolete targets m68k-lynxos and
230 2005-01-28 Julian Brown <julian@codesourcery.com>
232 * emultempl/armelf.em (fix_v4bx): New variable.
233 (arm_elf_create_output_section_statements): Communicate fix_v4bx flag
235 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_FIX_V4BX.
236 (PARSE_AND_LIST_LONGOPTS): Add option --fix-v4bx.
237 (PARSE_AND_LIST_OPTIONS): Add option --fix-v4bx.
238 (PARSE_AND_LIST_ARGS_CASES): Add option OPTION_FIX_V4BX.
239 * NEWS: Mention --fix-v4bx.
240 * ld.texinfo: Document --fix-v4bx.
242 2005-01-25 Mark Mitchell <mark@codesourcery.com>
244 * emulparams/armsymbian.sh (OTHER_READONLY_SECTIONS): Define, so
245 as to include .ARM.exidx$${Base,Limit}.
246 * ld/scripttempl/armbpabi.sc: Move .plt to end of text segment.
247 Define IMAGE$$ER_RO$${Base,Limit} and SHT$$INIT_ARRAY$${Base,Limit}.
248 Put .init_array, .fini_array, etc. into the read-only data
251 2005-01-25 Alan Modra <amodra@bigpond.net.au>
253 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Formatting.
254 (gld${EMULATION_NAME}_after_open): Ignore needed libs if they were
255 only needed by an as-needed lib that didn't get linked.
257 2005-01-23 Alan Modra <amodra@bigpond.net.au>
259 * ld.texinfo (Output Section Keywords <CONSTRUCTORS>): Correct
260 __DTOR_LIST__ description.
262 2005-01-23 Alan Modra <amodra@bigpond.net.au>
264 * ld.texinfo (Location Counter <dot outside sections>): Document
265 effects of orphan section placement, and ". = ." workaround.
266 * Makefile.in: Regenerate.
268 2005-01-22 Richard Sandiford <rsandifo@redhat.com>
270 * emulparams/elf32bmip.sh (OTHER_GOT_SECTIONS): Add ". = .;".
271 * emulparams/elf32bmipn32-defs.sh (OTHER_GOT_SECTIONS): Likewise.
273 2005-01-21 Jakub Jelinek <jakub@redhat.com>
275 * ldgram.y (AS_NEEDED): New token.
276 (input_list): Handle AS_NEEDED ( input_list ).
277 * ldlex.l (AS_NEEDED): Add.
278 * ld.texinfo: Document AS_NEEDED ().
279 * NEWS: Mention AS_NEEDED ().
281 2005-01-21 Ben Elliston <bje@au.ibm.com>
283 * ldlang.c (lang_reasonable_defaults): Remove.
284 (lang_process): Don't call lang_reasonable_defaults.
286 * ldexp.c (exp_assop): Remove #if 0'd code.
287 (exp_print_tree): Likewise.
288 * ldlang.c (lang_memory_region_lookup): Likewise.
289 (open_output): Likewise.
290 (lang_do_assignments_1): Likewise.
291 (lang_place_orphans): Likewise.
292 (lang_enter_output_section_statement): Likewise.
293 (lang_reasonable_defaults): Likewise.
294 * ldlang.h (struct lang_input_statement_struct): Likewise.
295 * mri.c (mri_draw_tree): Likewise.
296 (mri_load): Likewise.
297 * pe-dll.c (generate_reloc): Likewise.
298 (make_import_fixup_entry): Likewise.
300 * emultempl/beos.em (set_pe_subsystem): Likewise.
301 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
302 * emultempl/pe.em: Likewise.
303 * emultempl/xtensaelf.em (xtensa_colocate_literals): Likewise.
305 2005-01-20 Daniel Jacobowitz <dan@codesourcery.com>
307 * Makefile.am (ALL_EMULATIONS): Add earmelfb_linux_eabi.o.
308 (earmelfb_linux_eabi.c): New target.
309 * Makefile.in: Regenerated.
310 * configure.tgt (arm*b-*-linux-gnueabi): New target.
311 * emulparams/armelfb_linux_eabi.sh: New file.
313 2005-01-20 Nick Hudson <skrll@netbsd.org>
316 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
317 Handle bfd_elf32_hppa_nbsd_vec.
319 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
321 * ldmain.h (ld_sysroot): Change type to a constant string.
322 * ldmain.c (ld_sysroot): Likewise.
323 (get_relative_sysroot, get_sysroot): New functions, adding command-line
324 support for changing the sysroot.
325 (main): Call the new functions.
326 * lexsup.c (OPTION_SYSROOT): New.
327 (ld_options): Add --sysroot.
328 (parse_args): Add a dummy handler for it.
329 * ld.texinfo (--sysroot): Document.
330 * NEWS: Mention the new --sysroot option.
332 2005-01-18 Alan Modra <amodra@bigpond.net.au>
334 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
335 (lang_place_orphans): Don't abort on just_syms_flag, instead call
338 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
340 * defilep.y (def_name, def_library): Combine into...
341 (def_image_name): New function. Strip name to basename,
344 2005-01-12 Mark Kettenis <kettenis@gnu.org>
346 * configure.in: Be sure to invoke config.sub using the shell.
347 * configure: Regenerate.
349 2005-01-11 Alan Modra <amodra@bigpond.net.au>
351 * configure.host: Correct sed patterns for last change.
353 2005-01-10 Nick Clifton <nickc@redhat.com>
356 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
357 to determine whether config.make_executable should be set to FALSE in
358 conjunction with config.fatal_warnings.
359 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
360 (einfo): Pass TRUE as the extra argument.
362 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
364 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
365 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
366 (ia64-*-aix): Delete - this target is obsolete, and would be
367 broken by this patch.
369 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
371 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
372 (sparc64-sun-solaris2*): New host.
374 2005-01-06 Paul Brook <paul@codesourcery.com>
376 * Makefie.am: Add earmelf_vxworks.
377 * Makefile.in: Regenerate.
378 * configure.tgt: Make arm-*-vxworks a separate case.
379 * emulparams/armelf_vxworks.sh: New function.
381 2005-01-06 Alan Modra <amodra@bigpond.net.au>
383 * emultempl/ppc64elf.em (no_multi_toc): New var.
384 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
385 (OPTION_NO_MULTI_TOC): Define.
386 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
387 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
389 2005-01-05 Nick Clifton <nickc@redhat.com>
392 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
393 Standard's specification for parsable error messages.
395 2005-01-04 Paul Brook <paul@codesourcery.com>
397 * Makefile.am: Correct dependency for earmsymbian.c.
398 * Makefile.in: Regenerate.
400 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
402 * emultempl/pe.em (set_pe_subsystem): Change second arg to
403 lang_add_entry to FALSE.
405 2004-12-23 Nick Clifton <nickc@redhat.com>
408 * emulparams/shelf.sh (.stack): Increase stack start address to
411 2004-12-20 Nick Clifton <nickc@redhat.com>
413 * ldmain.c (main): Issue an error message if -static and -shared
416 2004-12-17 Jakub Jelinek <jakub@redhat.com>
418 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
419 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
420 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
421 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
422 PT_GNU_RELRO segment end.
424 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
426 * configure.tgt: Add s390x-ibm-tpf support.
428 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
430 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
433 2004-12-07 Ben Elliston <bje@gnu.org>
435 * ldemul.h: Forward declare struct option.
437 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
439 * scripttempl/pe.sc (.data): Add .jcr subsection.
441 2004-11-30 Paul Brook <paul@codesourcery.com>
443 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
445 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
447 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
448 * Makefile.in: Regenerate.
450 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
452 * emultempl/pe.em: Add --subsystem:xbox as well as
454 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
455 and numeric subsystems.
457 2004-11-24 Alan Modra <amodra@bigpond.net.au>
459 * ldexp.c (fold_name): Correct PR 338 fix.
461 2004-11-19 Mark Mitchell <mark@codesourcery.com>
463 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
464 (earmelf_linux_eabi.c): New target.
465 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
466 * emulparams/armelf_linux_eabi.sh: New file.
467 * Makefile.in: Regenerated.
469 2004-11-19 Nick Clifton <nickc@redhat.com>
472 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
473 LENGTH fields in the MEMORY command, to explicitly state that
474 symbols cannot be used in their expressions.
476 2004-11-19 Jon Beniston <jon@beniston.com>
478 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
479 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
480 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
481 which return the length and origin of a memory.
482 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
483 * NEWS: Mention support for ORIGIN and LENGTH operators.
485 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
487 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
488 a dynamic object for stubs.
490 2004-11-04 Paul Brook <paul@codesourcery.com>
492 * ld.texinfo: Document --default-imported-symver.
493 * ldmain.c (main): Set link_info.default_imported_symver.
494 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
495 (ld_options): Add --default-imported-symver.
496 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
498 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
499 Vineet Sharma <vineets@noida.hcltech.com>
501 * Makefile.am: Add entries for new maxq-coff target.
502 * Makefile.in: Regenerate.
503 * configure.tgt: Add support for maxq.
504 * emulparams/maxqcoff.sh: New File.
505 * scripttempl/maxqcoff.sc: New linker script for target maxq.
506 * NEWS: Mention the new target.
508 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
510 * testsuite/ld-scripts/weak.exp: Enable test on PE,
512 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
514 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
516 2004-11-04 Daniel Jacobowitz <dan@debian.org>
518 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
519 (earmelf_oabi.c): Remove rule.
520 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
521 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
522 * Makefile.in: Regenerated.
524 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
526 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
527 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
529 (INIT_END): Remove emitted "jump [sp+]".
532 2004-11-04 Alan Modra <amodra@bigpond.net.au>
534 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
535 (no_opd_opt, no_toc_opt): New static vars.
536 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
538 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
539 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
540 (PARSE_AND_LIST_OPTIONS): Describe new options.
541 (PARSE_AND_LIST_ARGS_CASES): Handle them.
543 2004-10-27 Nick Clifton <nickc@redhat.com>
545 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
546 parameter to invocation of lang_section_start.
547 * emultempl/aix.em (_handle_option): Likewise.
549 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
550 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
551 * Makefile.in: Regenerate.
553 2004-10-26 Mark Mitchell <mark@codesourcery.com>
555 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
556 __exidx_{start,end} when not relocating.
558 2004-10-25 Mark Mitchell <mark@codesourcery.com>
560 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
561 * ldexp.h (segment_type): New type.
562 (segments): New variable.
563 * ldexp.c (segments): New variable.
564 (exp_print_token): Handle SEGMENT_START.
565 (fold_binary): Likewise.
566 * ldgram.y (SEGMENT_START): Declare it as a token.
567 (exp): Handle SEGMENT_START.
568 * ldlang.h (lang_address_statement_type): Add segment field.
569 (lang_section_start): Change prototype.
570 * ldlang.c (map_input_to_output_sections): Do not process section
571 assignments if a corresponding SEGMENT_START has already been
573 (lang_section_start): Add segment parameter.
574 * ldlex.l (SEGMENT_START): Add it.
575 * lexsup.c (seg_segment_start): New function.
576 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
577 * ld.texinfo (SEGMENT_START): Document it.
578 * emulparams/armsymbian.sh (EMBEDDED): Set it.
579 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
580 base addresses. Do not map relocations.
581 * NEWS: Mention SEGMENT_START.
583 2004-10-26 Paul Brook <paul@codesourcery.com>
585 * ld.texinfo: Document --default-symver.
586 * ldmain.c (main): Set link_info.create_default_symver.
587 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
588 (ld_options): Add default-symver.
589 (parse_args): Handle OPTION_DEFAULT_SYMVER.
591 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
593 * pe-dll.c (process_def_file): Don't export all symbols by default if
594 building a position-independent executable.
596 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
599 * ldmain.c (reloc_overflow): Accept a pointer to struct
600 bfd_link_hash_entry. Report symbol location for relocation
603 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
605 * genscripts.sh (libpath.exp): Really generate for first
608 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
610 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
611 comparison and replacement of filenames.
613 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
616 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
617 option on linker script as the one for linker script.
619 2004-10-16 Daniel Jacobowitz <dan@debian.org>
621 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
622 (check_excluded_libs): New.
623 (load_symbols): Call check_excluded_libs.
624 * ldlang.h (add_excluded_libs): New prototype.
625 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
626 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
627 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
628 * ld.texinfo (Command Line Variables): Document --exclude-libs.
629 (Options Specific to i386 PE Targets): Remove --exclude-libs.
631 2004-10-15 Alan Modra <amodra@bigpond.net.au>
633 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
634 failing link script assert.
636 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
638 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
641 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
642 (SMALL_DATA_DTOR): Set.
643 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
644 (SMALL_DATA_DTOR): Unset.
645 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
646 after .data. If SMALL_DATA_DTOR is set, move .dtors after
649 2004-10-14 Alan Modra <amodra@bigpond.net.au>
652 * ldlang.h (lang_output_section_statement_type): Make "next" a
653 struct lang_output_section_statement_struct *.
654 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
655 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
656 * ldlang.c (lang_output_section_find_1): Adjust for changed
657 output_section_statement "next".
658 (strip_excluded_output_sections): Likewise.
659 (lang_record_phdrs): Likewise.
660 (lang_output_section_find_by_flags): New function.
661 (output_prev_sec_find): Move from pe.em. Adjust iterator.
662 (lang_insert_orphan): New function. Tail end of elf32.em's
663 place_orphan merged with that from pe.em. Allow bfd_section to
664 be placed first. New heuristic for placing new output section
665 statement in existing script, and accompanying split of __start
666 symbol alignment into a separate assignment to dot.
667 (lang_add_section): Consistently use output->bfd_section rather than
668 an alias, section->output_section.
669 (map_input_to_output_sections): Rename overly long arg. Move
670 initialization of data_statement output section to here..
671 (lang_check_section_addresses): ..from here.
672 (print_assignment): Correct printing of etree_assert.
673 (print_all_symbols): Don't bomb if userdata is NULL.
674 (IGNORE_SECTION): Rearrange.
675 * emultempl/elf32.em (output_rel_find): Adjust interator.
676 (output_prev_sec_find): Delete.
677 (struct orphan_save): Delete.
678 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
679 flags without creating a duplicate output section statement.
680 Revise code holding history of various orphan section placements.
681 Allow orphan sections to place before script specified output
682 sections. Call lang_output_section_find_by_flags when placement
683 by name fails. Use lang_insert_orphan.
684 * emultempl/mmo.em (output_prev_sec_find): Delete.
685 (struct orphan_save): Delete.
686 (mmo_place_orphan): Revise code holding history of orphan placement.
687 Allow orphans to place before existing output sections. Use
689 * emultempl/pe.em (output_prev_sec_find): Delete.
690 (struct orphan_save): Delete.
691 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
694 2004-10-13 Mark Mitchell <mark@codesourcery.com>
696 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
699 2004-10-13 Alan Modra <amodra@bigpond.net.au>
702 * ldcref.c (check_section_sym_xref): Delete.
703 (check_local_sym_xref): New function.
704 (check_nocrossrefs): Adjust call.
705 * emultempl/pe.em (struct orphan_save): Add os_tail.
706 (place_orphan): Backport assorted fixes from elf32.em.
708 2004-10-12 Bob Wilson <bob.wilson@acm.org>
710 * emultempl/xtensaelf.em: Use ISO C90 formatting.
712 2004-10-11 Jakub Jelinek <jakub@redhat.com>
714 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
715 getline for portability.
717 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
718 (gld${EMULATION_NAME}_parse_ld_so_conf,
719 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
720 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
722 2004-10-11 Alan Modra <amodra@bigpond.net.au>
725 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
726 rejected when linking statically.
728 2004-10-08 Daniel Jacobowitz <dan@debian.org>
730 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
732 2004-10-07 Bob Wilson <bob.wilson@acm.org>
734 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
735 assembler-generated longcall sequences. Describe new --size-opt
737 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
738 * emultempl/xtensaelf.em (remove_section,
739 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
740 elf_xtensa_after_open): New.
741 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
742 OPTION_NO_LITERAL_MOVEMENT): Define.
743 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
744 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
745 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
746 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
747 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
748 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
749 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
750 * Makefile.am (eelf32xtensa.c): Update dependencies.
751 * Makefile.in: Regenerate.
753 2004-10-07 Jeff Baker <jbaker@qnx.com>
755 * lexsup.c: Handle --warn-shared-textrel option.
756 (ld_options): Restore alpha sorting of options.
757 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
758 * ld.texinfo: Add documentation for --warn-shared-textrel.
759 * NEWS: Added mention of --warn-shared-textrel option.
761 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
763 * emultempl/crxelf.em (disable_relaxation): Add.
764 (crxelf_before_allocation): Enable --relax option by default.
765 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
766 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
767 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
769 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
771 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
772 --sort-section name|alignment.
774 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
775 --sort-section name|alignment.
777 * ld.h (sort_type): New enum.
778 (wildcard_spec): Change the type of `sorted' to sort_type.
780 * ldgram.y (SORT): Removed.
781 (SORT_BY_NAME): Added.
782 (SORT_BY_ALIGNMENT): Added.
783 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
785 (input_section_spec_no_keep): Updated `sorted'.
786 (statement): Replace SORT with SORT_BY_NAME.
788 * ldlang.c (compare_section): New function to compare 2
789 sections with different sorting schemes.
790 (wild_sort): Updated. Use compare_section.
791 (update_wild_statements): New function.
792 (lang_process): Call update_wild_statements before
793 map_input_to_output_sections.
795 * ldlex.l (SORT_BY_NAME): New.
796 (SORT_BY_ALIGNMENT): New.
797 (SORT): Return SORT_BY_NAME.
799 * ldmain.c (sort_section): New. Defined.
800 (main): Initialize it to none.
802 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
803 (ld_options): Add an entry for OPTION_SORT_SECTION.
804 (parse_args): Handle OPTION_SORT_SECTION.
806 * mri.c (mri_draw_tree): Updated `sorted'.
808 2004-10-04 Jakub Jelinek <jakub@redhat.com>
810 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
811 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
813 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
814 and . as second argument.
815 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
816 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
817 (fold_binary): Add it here. Insert padding to make relro_end
818 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
819 exp_dataseg_relro_adjust phase just use previously computed
821 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
822 relro_adjust here. Call lang_size_sections_1 once more if there
823 was too big padding at DATA_SEGMENT_RELRO_END.
824 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
826 2004-10-01 Paul Brook <paul@codesourcery.com>
828 * emulparams/armelf.sh: Add unwinding table sections.
830 2004-09-30 Filip Navara <navaraf@reactos.com>
832 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
833 correct base address for position independant executables.
834 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
837 2004-09-30 Paul Brook <paul@codesourcery.com>
839 * ld.texinfo: Document --target2=abs.
840 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
842 2004-09-29 Nick Clifton <nickc@redhat.com>
844 * scripttempl/xstormy16.sc: Only perform the assignments to the
845 ROM region when not performing a relocatable link. The ROM region
846 does not start at address 0, but the sections will.
847 * Makefile.am: Fix linker script dependency for the generation of
849 * Makefile.in: Regenerate.
851 2004-09-18 Filip Navara <navaraf@reactos.com>
853 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
854 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
855 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
857 * scripttempl/pe.sc: Make the virtual address and file offset synced if
858 the alignment is lower than the target page size.
860 2004-09-27 Filip Navara <navaraf@reactos.com>
862 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
863 def_file_parse to handle pe_def_file if NULL and prevent crash with
866 2004-09-27 Alan Modra <amodra@bigpond.net.au>
868 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
869 --emit-stub-syms automatically when --emit-relocs.
871 2004-09-24 Paul Brook <paul@codeosurcery.com>
873 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
874 .fini_array sections.
876 2004-09-19 Andreas Schwab <schwab@suse.de>
878 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
879 base so that relro end is suitably aligned.
881 2004-09-17 Paul Brook <paul@codesourcery.com>
883 * ld.texinfo: Rename arm-specific section. Document --target*
884 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
885 * emulparams/armelf_linux.sh: Ditto.
886 * emulparams/armelf_nbsd.sh: Ditto.
887 * emultempl/armelf.em: Set default for TARGET2_TYPE.
888 (target2_type): New variable.
889 (arm_elf_before_allocation): Don't pass target1_type.
890 (arm_elf_create_output_section_statements): New function.
891 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
892 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
893 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
894 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
895 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
896 argument to bfd_elf32_arm_process_before_allocation.
898 2004-09-17 Alan Modra <amodra@bigpond.net.au>
900 * ldexp.c (fold_name): Update u.undef.next refs.
901 * emultempl/pe.em: Likewise.
902 * emultempl/sunos.em: Likewise.
904 2004-09-17 Alan Modra <amodra@bigpond.net.au>
906 * Makefile.am: Run "make dep-am".
907 * Makefile.in: Regenerate.
908 * config.in: Regenerate.
909 * configure: Regenerate.
910 * aclocal.m4: Regenerate.
911 * po/ld.pot: Regenerate.
913 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
915 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
919 2004-09-16 Alan Modra <amodra@bigpond.net.au>
921 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
922 to bfd_elf32_arm_process_before_allocation call.
924 2004-09-13 Paul Brook <paul@codesourcery.com>
926 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
927 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
929 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
931 * configure: Regenerated with autconfig 2.13.
933 2004-09-07 Andreas Schwab <schwab@suse.de>
935 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
936 alignment before adjusting DATA_SEGMENT_RELRO_END.
938 2004-09-06 Mark Mitchell <mark@codesourcery.com>
940 * emulparams/armsymbian.sh: Use armbpabi script.
941 * scripttempl/armbpabi.sc: New script.
943 2004-09-02 Mark Mitchell <mark@codesourcery.com>
945 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
946 (earmsymbian.c): New target.
947 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
948 * Makefile.in: Regenerated.
949 * aclocal.m4: Likewise.
950 * configure: Likewise.
951 * emulparams/armsymbian.sh: New file.
953 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
955 * scripttempl/elf32crx.sc: Edit file with comments.
956 (.init): Add new section.
958 (.ctor): Control the linkage order.
961 2004-08-27 Nick Clifton <nickc@redhat.com>
963 * emultempl/pe.em (after_open): Do not assume that either bfd is
966 2004-08-26 Alan Modra <amodra@bigpond.net.au>
968 * ldlang.c (lang_init): Don't compare with TRUE.
970 2004-08-25 Dmitry Diky <diwil@spec.ru>
972 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
973 * scripttempl/elf32msp430.sc: Add .profiler section definition.
975 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
977 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
979 2004-08-19 Mark Mitchell <mark@codesourcery.com>
981 * configure.tgt (arm*-*-symbianelf*): New target.
982 (arm*-*-eabi*): Likewise.
984 2004-08-19 Jakub Jelinek <jakub@redhat.com>
986 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
987 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
988 (OPTION_NON_OVERLAPPING_OPD): Define.
989 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
990 --non-overlapping-opd option.
992 2004-08-18 Alan Modra <amodra@bigpond.net.au>
995 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
996 was already on the undefs list.
998 2004-08-17 Alan Modra <amodra@bigpond.net.au>
1000 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
1001 prefix the symbol field too.
1003 2004-08-13 Alan Modra <amodra@bigpond.net.au>
1005 * ldmain.c (link_callbacks): Remove "error_handler".
1006 * ldmisc.c: Include elf-bfd.h.
1007 (vfinfo): Sort comment. Handle %A. Use %A instead of
1008 bfd_get_section_indent.
1009 (error_handler): Delete.
1010 * ldmisc.h (error_handler): Delete declaration.
1012 2004-08-10 Alan Modra <amodra@bigpond.net.au>
1014 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
1015 ppc64_elf_restore_symbols.
1017 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1019 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
1020 .toc is too large on relocatable linking.
1022 2004-08-09 Alan Modra <amodra@bigpond.net.au>
1024 * emultempl/ppc64elf.em (ppc_after_open): Delete.
1025 (LDEMUL_AFTER_OPEN): Don't define.
1027 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
1029 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
1031 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
1033 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
1036 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
1038 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
1040 2004-07-26 Dmitry Diky <diwil@spec.ru>
1042 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
1043 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
1045 * configure.tgt: Likewise.
1046 * emulparams/msp430all.sh: Likewise.
1047 * Makefile.in: Regenerate.
1049 2004-07-23 Nick Clifton <nickc@redhat.com>
1051 * emultempl/elf32.em (_place_orphan): Use an already existing
1052 section name if that section does not have any flags set.
1054 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
1056 * ldlang.c (already_linked_hash_entry): Removed.
1057 (already_linked): Likewise.
1058 (already_linked_table): Likewise.
1059 (section_already_linked): Call bfd_section_already_linked.
1060 (lang_process): Replace already_linked_table_init with
1061 bfd_section_already_linked_table_init and check return. Replace
1062 already_linked_table_free with bfd_section_already_linked_table_free.
1064 2004-07-21 Nick Clifton <nickc@redhat.com>
1066 * ldlang.c (init_os): Make sure that the newly allocated userdata
1067 structure is zeroed out.
1069 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1071 * NEWS: Mention the new --add-needed/--no-add-needed and
1072 --as-needed/--no-as-needed options.
1074 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
1076 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
1077 check the add_needed field.
1078 (dt_needed): New struct.
1079 (gld${EMULATION_NAME}_try_needed): Change the first argument
1080 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
1081 bit in the file where the DT_NEEDED entry comes from.
1082 (gld${EMULATION_NAME}_search_needed): Change the second
1083 argument to a pointer to struct dt_needed.
1084 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
1085 (gld${EMULATION_NAME}_after_open): Likewise.
1087 * ld.texinfo: Add --add-needed document.
1088 * ldlang.c (new_afile): Set p->add_needed.
1089 * ldlang.h (lang_input_statement_type): Add add_needed field.
1090 * ldmain.h (add_needed): Declare.
1091 * ldmain.c (add_needed): New global var.
1092 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
1093 OPTION_NO_ADD_NEEDED.
1094 (ld_options): Likewise.
1095 (parse_args): Handle them.
1097 2004-07-13 Christof Petig <christof@petig-baender.de>
1099 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
1100 for endian-ness of extracted addend.
1102 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
1104 * pe-dll.c (auto_export): Filter on just the import prefix,
1105 "_imp_", not "_imp__".
1107 2004-07-09 Nick Clifton <nickc@redhat.com>
1109 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
1111 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
1113 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
1114 (eelf32crx.c): New target.
1115 * Makefile.in: Regenerate.
1116 * configure.tgt: Handle crx-*-elf*.
1117 * emulparams/elf32crx.sh: New file.
1118 * emultempl/crxelf.em: New file.
1119 * scripttempl/elf32crx.sc: New file.
1120 * NEWS: Mention new target.
1122 2004-07-06 Nick Clifton <nickc@redhat.com>
1124 * Makefile.am: Add eshlsymbian.c.
1125 * Makefile.in: Regenerate.
1126 * configure.tgt: Add sh*-symbian-elf target.
1127 * emulparams/shlsymbian.sh: New file. Configure the
1128 sh-symbian-elf linker scripts.
1129 * scripttemp/elf32sh-symbian.sc: New file. Linker script
1130 template for the sh-symbian-elf target.
1132 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1134 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
1135 * emulparams/hppalinux.sh: Likewise.
1136 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
1137 data segment and PLT_BEFORE_GOT is defined.
1139 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1141 * ld.texinfo (WIN32): Document PE weak symbols.
1143 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1145 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
1147 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
1149 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
1152 2004-06-29 Alan Modra <amodra@bigpond.net.au>
1154 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
1157 2004-06-24 Alan Modra <amodra@bigpond.net.au>
1159 * ldlang.c (print_output_section_statement): Don't print size before
1161 (IGNORE_SECTION): Remove bfd arg. Update all callers.
1163 * ldexp.c (fold_name): .. See below.
1164 * ldlang.c (section_already_linked, print_output_section_statement,
1165 print_input_section, insert_pad, size_input_section,
1166 lang_check_section_addresses, lang_size_sections_1,
1167 lang_size_sections, lang_do_assignments_1, lang_set_startof,
1168 lang_one_common, lang_reset_memory_regions, lang_process,
1169 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
1170 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
1171 * pe-dll.c (process_def_file, generate_reloc): ..
1172 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
1173 gld${EMULATION_NAME}_before_allocation): ..
1174 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
1175 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
1176 sh64_elf_${EMULATION_NAME}_after_allocation): ..
1177 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
1178 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
1179 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
1180 "size" instead of "_raw_size" and "_cooked_size". Expand
1181 bfd_section_size macro invocations.
1183 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
1185 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
1186 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
1187 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
1189 (.tls): Define ___tls_start__ and ___tls_end__.
1191 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
1193 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
1195 2004-06-18 Adam Nemet <anemet@lnxw.com>
1197 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
1198 * configure: Regenerate.
1200 2004-06-15 Jakub Jelinek <jakub@redhat.com>
1202 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
1203 .gcc_except_table output sections lost accidentally with
1206 2004-06-15 Alan Modra <amodra@bigpond.net.au>
1208 * ldwrite.c (build_link_order): Use bfd_get_section_size
1209 instead of bfd_get_section_size_before_reloc or _raw_size.
1210 * pe-dll.c (process_def_file): Likewise.
1212 2004-06-14 Alan Modra <amodra@bigpond.net.au>
1214 From Richard Wirth <r.wirth@wirthware.de>
1215 * ldlang.c (lang_finish): Don't free lang_definedness_table.
1217 2004-05-29 Alan Modra <amodra@bigpond.net.au>
1219 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
1220 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
1222 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
1224 * testsuite/ld-sh/arch/arch.exp: New test script.
1225 * testsuite/ld-sh/arch/arch_expected.txt: New file.
1226 * testsuite/ld-sh/arch/sh.s: New file.
1227 * testsuite/ld-sh/arch/sh2.s: New file.
1228 * testsuite/ld-sh/arch/sh-dsp.s: New file.
1229 * testsuite/ld-sh/arch/sh2e.s: New file.
1230 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
1231 * testsuite/ld-sh/arch/sh3.s: New file.
1232 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
1233 * testsuite/ld-sh/arch/sh3e.s: New file.
1234 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
1235 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
1236 * testsuite/ld-sh/arch/sh4.s: New file.
1237 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
1238 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
1239 * testsuite/ld-sh/arch/sh4a.s: New file.
1241 2004-05-28 Alan Modra <amodra@bigpond.net.au>
1243 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
1245 * lexsup.c: Formatting. Wrap long lines.
1246 * ldwrite.c: Update copyright date.
1248 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
1249 (output_section_callback): Nor SEC_KEEP here.
1250 (gc_section_callback): Twiddle SEC_EXCLUDE here.
1251 (lang_gc_wild): Delete. Fold into..
1252 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
1254 (lang_process): Always call lang_gc_sections.
1255 (lang_place_orphans): Handle SEC_EXCLUDE sections.
1256 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
1259 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
1261 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
1262 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
1263 * ldlang.c (lang_add_section): Likewise.
1265 2004-05-26 Alan Modra <amodra@bigpond.net.au>
1267 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
1268 sections when doing a final link. Clear SEC_EXCLUDE when doing
1269 a relocable link, except for SEC_DEBUGGING sections.
1270 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
1271 same condition here to drop SEC_EXCLUDE orphan sections.
1273 2004-05-25 Alan Modra <amodra@bigpond.net.au>
1275 * ldlang.c (lang_process): Call bfd_merge_sections later, and
1276 only when not a relocatable link.
1277 (print_input_section): Handle SEC_EXCLUDE sections.
1278 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
1279 (lang_do_assignments_1): Likewise.
1280 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
1281 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
1282 * emultempl/hppaelf.em (build_section_lists): Likewise.
1283 * emultempl/ppc64elf.em (build_toc_list): Likewise.
1284 (build_section_lists): Likewise.
1286 2004-05-23 Andreas Schwab <schwab@suse.de>
1288 * ld.texinfo (Options): Fix typo in last change.
1290 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1292 * ld.h (ld_config_type): Add new field: hash_table_size.
1293 * ldmain.c: Initialise the new field to zero. If it is non-zero
1294 after parsing the linker's command line call
1295 bfd_hash_set_default_size.
1296 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
1297 (ld_options): Add hash-size.
1298 (parse_args): Parse --hash-size option. Allow
1299 --reduce-memory-overheads to set the default hash table size as
1301 * ld.texinfo: Document the new switch. Also mention that
1302 --reduce-memory-overheads can affect the hash table size.
1303 * NEWS: Mention the new feature.
1305 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
1307 * NEWS: Mention new linker map file generation and the
1308 --reduce-memory-overheads option.
1309 * ld.texinfo: Document --reduce-memory-overheads option.
1310 * ld.h (map_symbol_def): New struct.
1311 (struct user_section_struct, section_userdata_type): Rename to:
1312 (struct lean_user_section_struct, lean_section_userdata_type).
1313 (struct fat_user_section_struct, fat_section_userdata_type): New.
1314 (SECTION_USERDATA_SIZE): Define.
1315 (args_type): New member reduce_memory_overheads.
1316 * ldlang.c (map_obstack): New static variable.
1317 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1318 (lang_map): Unless command_line.reduce_memory_overheads is set,
1319 initialize lists of defined symbols for each section.
1320 (print_input_section): Unless command_line.reduce_memory_overheads
1321 is set, use print_all_symbols.
1322 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1323 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1324 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1325 (ld_options): Add entry for --reduce-memory-overheads.
1326 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1328 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1330 * ldgram.y (sect_constraint): New.
1331 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1332 (section): Add sect_constraint. Pass additional argument
1333 to lang_enter_output_section_statement.
1334 * mri.c (mri_draw_tree): Pass additional argument to
1335 lang_enter_output_section_statement.
1336 * emultempl/pe.em (place_orphan): Likewise.
1337 (output_prev_sec_find): Disregard output section statements with
1339 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1340 (mmo_place_orphan): Pass additional argument to
1341 lang_enter_output_section_statement.
1342 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1343 statements with constraint == -1.
1344 (place_orphan): Pass additional argument to
1345 lang_enter_output_section_statement.
1346 * ldlang.c (lang_enter_overlay_section): Likewise.
1347 (lang_output_section_find_1): New.
1348 (lang_output_section_find): Use it.
1349 (lang_output_section_statement_lookup_1): New.
1350 (lang_output_section_statement_lookup): Use it.
1351 (check_section_callback, check_input_sections): New.
1352 (map_input_to_output_sections): Check if all input sections
1353 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1354 (strip_excluded_output_sections): Disregard output section statements
1355 with constraint == -1.
1356 (lang_record_phdrs): Likewise.
1357 (lang_enter_output_section_statement): Add constraint argument.
1358 Use lang_output_section_statement_lookup_1.
1359 * ldlang.h (lang_output_section_statement_type): Add constraint
1360 and all_input_readonly fields.
1361 (lang_enter_output_section_statement): Adjust prototype.
1362 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1363 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1364 segment if all input sections are readonly.
1366 2004-05-19 Adam Nemet <anemet@lnxw.com>
1368 * scripttempl/i386lynx.sc: Remove file.
1370 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1372 * ld.texinfo (Output Section Address): Correct subsection name.
1374 2004-05-17 Adam Nemet <anemet@lnxw.com>
1376 * configure.tgt (powerpc-*-lynxos* case): New case.
1377 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1378 * emulparams/ppclynx.sh: New file.
1379 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1380 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1381 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1382 (eppclynx.c): New rule.
1383 * Makefile.in: Regenerate.
1385 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1387 * configure.tgt (or32-*-rtems*): Switch to elf and
1388 support versioned targets.
1390 2004-05-13 Nick Clifton <nickc@redhat.com>
1392 * po/fr.po: Updated French translation.
1394 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1396 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1397 for binaries, -shared and -pie.
1398 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1399 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1400 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1401 (OTHER_RELRO_SECTIONS): ... this.
1402 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1403 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1404 -z relro and -z norelro.
1405 (gld${EMULATION_NAME}_list_options): Add it to usage.
1406 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1407 -z relro scripts when appropriate.
1408 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1409 Create separate .got.plt section if SEPARATE_GOTPLT.
1410 Move sections which are only written during relocation handling
1411 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1412 before .data. Add DATA_SEGMENT_RELRO_END directive.
1413 Include OTHER_RELRO_SECTIONS.
1414 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1415 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1416 (fold_unary): Likewise.
1417 (fold_binary): Handle -z relro.
1418 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1419 exp_dataseg_relro_adjust phases. Add relro_end field.
1420 * ldmain.c (main): Initialize link_info.relro to FALSE.
1421 * ldlang.c (lang_size_sections): Handle -z relro.
1423 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1425 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1427 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1429 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1430 before printing it with %W.
1432 2004-05-07 Brian Ford <ford@vss.fsi.com>
1433 DJ Delorie <dj@redhat.com>
1435 * emultempl/pe.em (real_flags): New static.
1436 (OPTION_LARGE_ADDRESS_AWARE): New define.
1437 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1438 (gld_${EMULATION_NAME}_list_options): Likewise.
1439 (gld${EMULATION_NAME}_handle_option): Likewise.
1440 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1441 * ld.texinfo: Document it.
1444 2004-05-07 Brian Ford <ford@vss.fsi.com>
1446 * NEWS: Mention DWARF 2 support for i386pe.
1448 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1450 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1453 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1455 * ldlang.c (unique_section_p): Pass section parm, return true on
1457 (output_section_callback): Adjust.
1458 * ldlang.h (unique_section_p): Update prototype.
1459 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1461 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1463 * ld.texinfo (--gc-sections): Remove restriction for
1466 2004-04-29 Brian Ford <ford@vss.fsi.com>
1468 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1469 for DWARF 2/3. Update stab section's syntax.
1471 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1473 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1474 (fill_edata): Correct pointer arithmetic.
1476 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1478 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1479 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1480 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1481 (EXTRA_EM_FILE): Use mipsecoff.em
1482 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1483 (EXTRA_EM_FILE): Use mipsecoff.em
1484 * emultempl/mipsecoff.em: Restructure to be included as an
1485 extra emulation file.
1486 (check_sections, gld${EMULATION_NAME}_after_open)
1487 (gld${EMULATION_NAME}_after_allocation)
1488 (gld${EMULATION_NAME}_get_script)
1489 (ld_${EMULATION_NAME}_emulation): Remove
1490 (gld${EMULATION_NAME}_before_parse): Rename to...
1491 (mipsecoff_before_parse): This.
1492 (LDEMUL_BEFORE_PARSE): Define.
1493 * emultempl/mipself.em: Remove file.
1494 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1495 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1497 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1498 * Makefile.in: Regenerate.
1500 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1502 * ld.texinfo (synthesizing on H8/300): Information about linker
1503 relaxation support for bit manipulation instructions and system
1504 control instructions is added.
1506 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1508 * NEWS: Mention change in DEFINED semantics.
1510 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1512 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1513 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1514 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1516 2004-04-21 Ben Elliston <bje@au.ibm.com>
1518 * ld.texinfo (Simple Example): Add missing punctuation.
1520 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1522 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1524 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1526 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1529 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1531 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1532 with default priority. Likewise for dtors.
1534 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1536 * configure.host: Remove mips*-dec-bsd* target.
1537 * configure.tgt: Likewise.
1539 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1541 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1542 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1543 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1544 * emultempl/irix.em: New file.
1545 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1547 * Makefile.in: Regenerate.
1549 2004-04-01 Paul Brook <paul@codesourcery.com>
1551 * emultempl/armelf.em (byteswap_code): Add.
1552 (arm_elf_before_allocation): Pass extra parameter.
1553 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1554 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1555 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1556 * emultempl/armelf_oabi.em: Pass extra parameter.
1557 * ld.texinfo: Document --be8.
1559 2004-03-30 Stan Shebs <shebs@apple.com>
1561 Remove long-obsolete MPW support.
1562 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1563 * Makefile.am (mpw): Remove file-presynthesizing actions.
1564 * Makefile.in: Likewise.
1565 * ldfile.c (slash): Remove MPW case.
1566 * ldlex.l [MPW]: Remove unused definition.
1568 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1570 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1571 (eelf32cr16c.c): New target.
1572 * Makefile.in: Regenerate.
1573 * configure.tgt: Handle cr16c-*-elf*.
1574 * emulparams/elf32cr16c.sh: New file.
1575 * scripttempl/elfcr16c.sc: Likewise
1576 * NEWS: Mention support for new target.
1578 2004-03-30 Nick Clifton <nickc@redhat.com>
1580 * po/sv.po: Updated Swedish translation.
1582 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1584 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1585 * emultempl/hppaelf.em: Likewise.
1586 * emultempl/ppc64elf.em: Likewise.
1587 * emultempl/sh64elf.em: Likewise.
1589 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1591 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1592 size_dynamic_sections call.
1594 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1597 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1598 link_info.wrap_char.
1600 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1602 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1603 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1605 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1607 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1609 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1611 * config.in: Regenerate.
1612 * po/ld.pot: Regenerate.
1614 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1616 * ld.texinfo: Add --as-needed doco.
1617 * ldmain.c (as_needed): New global var.
1618 * ldmain.h (as_needed): Declare.
1619 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1620 OPTION_NO_AS_NEEDED.
1621 (ld_options): Likewise.
1622 (parse_args): Handle them.
1623 * ldlang.h (lang_input_statement_type): Add as_needed field.
1624 * ldlang.c (new_afile): Set p->as_needed.
1625 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1626 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1627 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1629 * ldlang.c (open_input_bfds): Remove useless cast.
1630 (lang_do_assignments_1): Likewise.
1631 (lang_for_each_input_section): Delete.
1633 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1635 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1637 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1639 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1640 private when building implib.
1642 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1644 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1646 (IGNORE_SECTION): Ignore .tbss sections too.
1647 (lang_size_sections_1): .tbss sections do not advance dot.
1649 2004-03-01 Andreas Schwab <schwab@suse.de>
1651 * ld.texinfo (Options): Fix example for --wrap.
1653 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1655 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1658 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1660 * ldlang.c (lang_check): Use %P, not %E, in error message.
1662 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1664 * ldlang.h (struct lang_output_section_state): Change processed
1666 * ldexp.c (check, invalid): Remove.
1667 (fold_name): Move valid_p assignments. Create undefined symbol
1668 when needed. Directly exampine section's processd flag.
1669 * ldlang.c (lang_output_section_statement_lookup): Adjust
1670 processed field init.
1671 (lang_size_sections_1): Allow LOADADDR when determining section's
1672 VMA. Adjust error message. Fold data statement's expr.
1673 (lang_size_sections): Correctly increment lang_statement_iteration.
1675 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1677 * ldexp.c (fold_tree): Follow indirect symbols.
1679 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1681 * ldgram.y (exp): Add two operand ALIGN.
1682 * ldexp.c (fold_binary): Add ALIGN_K case.
1683 * ld.texinfo (ALIGN): Document two operand version.
1685 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1687 * ldlang.c (map_input_to_output_sections): Initialize sections
1688 mentioned in a data statement expression.
1689 (lang_do_assignments_1): Add data statement's expression's
1692 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1694 * ldgram.y (statement_anywhere): Add assert rule.
1695 * ldlang.c (exp_init_os): Add assert case.
1697 2004-02-14 Andrew Cagney <cagney@redhat.com>
1699 * ldmain.c (remove_output): Call bfd_cache_close.
1701 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1703 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1704 .MIPS.content* and .MIPS.events* sections.
1706 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1708 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1709 .note.gnu.arm.ident to after allocated sections. Mark its
1712 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1714 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1715 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1716 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1717 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1718 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1720 2004-02-05 Nick Clifton <nickc@redhat.com>
1722 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1724 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1726 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1728 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1730 * genscripts.sh: Fix typo.
1732 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1734 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1736 * emulparams/elf64_ia64.sh: Put .rela.opd into
1737 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1739 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1741 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1742 * ld.texinfo (--omagic): Note that writable text section
1743 does not conform to published PE-COFF specs.
1744 (--enable-auto-import): Likewise.
1746 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1748 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1750 2004-01-13 Nick Clifton <nickc@redhat.com>
1752 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1753 which if true will prevent the LMA region being used as a
1754 replacement for a default VMA region.
1755 (lang_leave_output_section_statement): Pass extra parameter.
1756 (lang_leave_overlay): Likewise.
1757 * ld.texinfo (Output Section LMA): Document that the LMA
1758 region can be set to the VMA region if no VMA has been set.
1759 * ldlang.h (struct lang_output_section_phdr_list): Create a
1760 typedef for this type. Minor formatting fixes.
1762 2004-01-13 Nick Clifton <nickc@redhat.com>
1764 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1765 assume that the section should be allocated.
1767 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1769 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1770 sections. Do ignore SEC_NEVER_LOAD sections.
1771 (lang_size_sections_1): Remove test made redundant with the above.
1773 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1775 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1776 program_header_size.
1778 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1780 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1781 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1782 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1783 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1784 (MAXPAGESIZE): Set to 64Kb.
1785 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1786 __ROFIXUP_END__. Don't map .rofixup.got any more.
1787 * emulparams/elf32frv.sh (NOP): Set.
1788 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1789 * configure.tgt: Add frv-*-*linux*.
1790 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1791 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1792 (eelf32frvfd.c): New.
1793 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1794 * emulparams/elf32frv.sh: Reverted previous two patches.
1795 * emulparams/elf32frvfd.sh: New.
1796 * Makefile.in: Rebuilt.
1797 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1798 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1799 .rofixup.got to .rofixup.
1800 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1801 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1802 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1804 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1806 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1807 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1809 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1811 * ldexp.c (align_n): Make static.
1812 * ldexp.h (align_n): Delete declaration.
1813 * ldlang.h (lang_enter_output_section_statement): Remove
1815 * ldlang.c (lang_enter_output_section_statement): Likewise.
1816 (TO_ADDR, TO_SIZE): Define.
1817 (opb_shift): New var.
1818 (init_opb): New function.
1819 (print_input_section): Call init_opb and use TO_ADDR.
1820 (print_data_statement, print_reloc_statement): Likewise.
1821 (print_padding_statement): Likewise.
1822 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1823 (lang_check_section_addresses): Likewise.
1824 (lang_size_sections_1): Likewise.
1825 (lang_do_assignments_1): Likewise.
1826 (lang_set_startof): Likewise.
1827 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1828 (lang_process): Call init_opb.
1829 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1830 (lang_enter_overlay_section): Adjust
1831 lang_enter_output_section_statement call.
1832 * ldgram.y: Likewise.
1833 * mri.c (mri_draw_tree): Likewise.
1834 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1835 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1836 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1838 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1839 * ldfile.h (ldfile_set_output_arch): Ditto.
1840 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1841 ldfile_set_output_arch.
1842 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1843 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1844 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1845 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1846 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1847 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1848 * ldgram.y: Adjust ldfile_set_output_arch call.
1849 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1850 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1851 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1852 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1853 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1854 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1855 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1857 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1859 * configure.tgt: Add m68k-uClinux target.
1861 For older changes see ChangeLog-0203
1867 version-control: never