1 2005-01-19 Richard Sandiford <rsandifo@redhat.com>
3 * ldmain.h (ld_sysroot): Change type to a constant string.
4 * ldmain.c (ld_sysroot): Likewise.
5 (get_relative_sysroot, get_sysroot): New functions, adding command-line
6 support for changing the sysroot.
7 (main): Call the new functions.
8 * lexsup.c (OPTION_SYSROOT): New.
9 (ld_options): Add --sysroot.
10 (parse_args): Add a dummy handler for it.
11 * ld.texinfo (--sysroot): Document.
12 * NEWS: Mention the new --sysroot option.
14 2005-01-18 Alan Modra <amodra@bigpond.net.au>
16 * ldlang.c (section_already_linked): Adjust bfd_link_just_syms call.
17 (lang_place_orphans): Don't abort on just_syms_flag, instead call
20 2005-01-16 Danny Smith <dannysmith@users.sourceforge.net>
22 * defilep.y (def_name, def_library): Combine into...
23 (def_image_name): New function. Strip name to basename,
26 2005-01-12 Mark Kettenis <kettenis@gnu.org>
28 * configure.in: Be sure to invoke config.sub using the shell.
29 * configure: Regenerate.
31 2005-01-11 Alan Modra <amodra@bigpond.net.au>
33 * configure.host: Correct sed patterns for last change.
35 2005-01-10 Nick Clifton <nickc@redhat.com>
38 * ldmisc.c (vfinfo): Add an extra argument: is_warning. Use this
39 to determine whether config.make_executable should be set to FALSE in
40 conjunction with config.fatal_warnings.
41 (info_msg, minfo, lfinof): Pass FALSE as the extra argument.
42 (einfo): Pass TRUE as the extra argument.
44 2005-01-10 Greg Schaffer <gschafer@zip.com.au>
46 * configure.host (linux targets): Use "${CC} -dumpspecs" instead
47 of "${CC} --print-file-name=specs" to appease GCC versions >= 4.0.
48 (ia64-*-aix): Delete - this target is obsolete, and would be
51 2005-01-06 Eric Botcazou <ebotcazou@libertysurf.fr>
53 * configure.host (sparc*-*-solaris2*): Rename into sparc-*-solaris2*.
54 (sparc64-sun-solaris2*): New host.
56 2005-01-06 Paul Brook <paul@codesourcery.com>
58 * Makefie.am: Add earmelf_vxworks.
59 * Makefile.in: Regenerate.
60 * configure.tgt: Make arm-*-vxworks a separate case.
61 * emulparams/armelf_vxworks.sh: New function.
63 2005-01-06 Alan Modra <amodra@bigpond.net.au>
65 * emultempl/ppc64elf.em (no_multi_toc): New var.
66 (gld${EMULATION_NAME}_finish): Pass to ppc64_elf_setup_section_lists.
67 (OPTION_NO_MULTI_TOC): Define.
68 (PARSE_AND_LIST_LONGOPTS): Add --no-multi-toc support.
69 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Likewise.
71 2005-01-05 Nick Clifton <nickc@redhat.com>
74 * ldmisc.c (vfinfo): Alter output to conform to the GNU Coding
75 Standard's specification for parsable error messages.
77 2005-01-04 Paul Brook <paul@codesourcery.com>
79 * Makefile.am: Correct dependency for earmsymbian.c.
80 * Makefile.in: Regenerate.
82 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
84 * emultempl/pe.em (set_pe_subsystem): Change second arg to
85 lang_add_entry to FALSE.
87 2004-12-23 Nick Clifton <nickc@redhat.com>
90 * emulparams/shelf.sh (.stack): Increase stack start address to
93 2004-12-20 Nick Clifton <nickc@redhat.com>
95 * ldmain.c (main): Issue an error message if -static and -shared
98 2004-12-17 Jakub Jelinek <jakub@redhat.com>
100 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
101 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
102 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
103 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
104 PT_GNU_RELRO segment end.
106 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
108 * configure.tgt: Add s390x-ibm-tpf support.
110 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
112 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
115 2004-12-07 Ben Elliston <bje@gnu.org>
117 * ldemul.h: Forward declare struct option.
119 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
121 * scripttempl/pe.sc (.data): Add .jcr subsection.
123 2004-11-30 Paul Brook <paul@codesourcery.com>
125 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
127 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
129 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
130 * Makefile.in: Regenerate.
132 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
134 * emultempl/pe.em: Add --subsystem:xbox as well as
136 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
137 and numeric subsystems.
139 2004-11-24 Alan Modra <amodra@bigpond.net.au>
141 * ldexp.c (fold_name): Correct PR 338 fix.
143 2004-11-19 Mark Mitchell <mark@codesourcery.com>
145 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
146 (earmelf_linux_eabi.c): New target.
147 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
148 * emulparams/armelf_linux_eabi.sh: New file.
149 * Makefile.in: Regenerated.
151 2004-11-19 Nick Clifton <nickc@redhat.com>
154 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
155 LENGTH fields in the MEMORY command, to explicitly state that
156 symbols cannot be used in their expressions.
158 2004-11-19 Jon Beniston <jon@beniston.com>
160 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
161 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
162 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
163 which return the length and origin of a memory.
164 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
165 * NEWS: Mention support for ORIGIN and LENGTH operators.
167 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
169 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
170 a dynamic object for stubs.
172 2004-11-04 Paul Brook <paul@codesourcery.com>
174 * ld.texinfo: Document --default-imported-symver.
175 * ldmain.c (main): Set link_info.default_imported_symver.
176 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
177 (ld_options): Add --default-imported-symver.
178 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
180 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
181 Vineet Sharma <vineets@noida.hcltech.com>
183 * Makefile.am: Add entries for new maxq-coff target.
184 * Makefile.in: Regenerate.
185 * configure.tgt: Add support for maxq.
186 * emulparams/maxqcoff.sh: New File.
187 * scripttempl/maxqcoff.sc: New linker script for target maxq.
188 * NEWS: Mention the new target.
190 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
192 * testsuite/ld-scripts/weak.exp: Enable test on PE,
194 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
196 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
198 2004-11-04 Daniel Jacobowitz <dan@debian.org>
200 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
201 (earmelf_oabi.c): Remove rule.
202 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
203 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
204 * Makefile.in: Regenerated.
206 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
208 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
209 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
211 (INIT_END): Remove emitted "jump [sp+]".
214 2004-11-04 Alan Modra <amodra@bigpond.net.au>
216 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
217 (no_opd_opt, no_toc_opt): New static vars.
218 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
220 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
221 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
222 (PARSE_AND_LIST_OPTIONS): Describe new options.
223 (PARSE_AND_LIST_ARGS_CASES): Handle them.
225 2004-10-27 Nick Clifton <nickc@redhat.com>
227 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
228 parameter to invocation of lang_section_start.
229 * emultempl/aix.em (_handle_option): Likewise.
231 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
232 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
233 * Makefile.in: Regenerate.
235 2004-10-26 Mark Mitchell <mark@codesourcery.com>
237 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
238 __exidx_{start,end} when not relocating.
240 2004-10-25 Mark Mitchell <mark@codesourcery.com>
242 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
243 * ldexp.h (segment_type): New type.
244 (segments): New variable.
245 * ldexp.c (segments): New variable.
246 (exp_print_token): Handle SEGMENT_START.
247 (fold_binary): Likewise.
248 * ldgram.y (SEGMENT_START): Declare it as a token.
249 (exp): Handle SEGMENT_START.
250 * ldlang.h (lang_address_statement_type): Add segment field.
251 (lang_section_start): Change prototype.
252 * ldlang.c (map_input_to_output_sections): Do not process section
253 assignments if a corresponding SEGMENT_START has already been
255 (lang_section_start): Add segment parameter.
256 * ldlex.l (SEGMENT_START): Add it.
257 * lexsup.c (seg_segment_start): New function.
258 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
259 * ld.texinfo (SEGMENT_START): Document it.
260 * emulparams/armsymbian.sh (EMBEDDED): Set it.
261 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
262 base addresses. Do not map relocations.
263 * NEWS: Mention SEGMENT_START.
265 2004-10-26 Paul Brook <paul@codesourcery.com>
267 * ld.texinfo: Document --default-symver.
268 * ldmain.c (main): Set link_info.create_default_symver.
269 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
270 (ld_options): Add default-symver.
271 (parse_args): Handle OPTION_DEFAULT_SYMVER.
273 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
275 * pe-dll.c (process_def_file): Don't export all symbols by default if
276 building a position-independent executable.
278 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
281 * ldmain.c (reloc_overflow): Accept a pointer to struct
282 bfd_link_hash_entry. Report symbol location for relocation
285 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
287 * genscripts.sh (libpath.exp): Really generate for first
290 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
292 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
293 comparison and replacement of filenames.
295 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
298 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
299 option on linker script as the one for linker script.
301 2004-10-16 Daniel Jacobowitz <dan@debian.org>
303 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
304 (check_excluded_libs): New.
305 (load_symbols): Call check_excluded_libs.
306 * ldlang.h (add_excluded_libs): New prototype.
307 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
308 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
309 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
310 * ld.texinfo (Command Line Variables): Document --exclude-libs.
311 (Options Specific to i386 PE Targets): Remove --exclude-libs.
313 2004-10-15 Alan Modra <amodra@bigpond.net.au>
315 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
316 failing link script assert.
318 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
320 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
323 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
324 (SMALL_DATA_DTOR): Set.
325 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
326 (SMALL_DATA_DTOR): Unset.
327 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
328 after .data. If SMALL_DATA_DTOR is set, move .dtors after
331 2004-10-14 Alan Modra <amodra@bigpond.net.au>
334 * ldlang.h (lang_output_section_statement_type): Make "next" a
335 struct lang_output_section_statement_struct *.
336 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
337 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
338 * ldlang.c (lang_output_section_find_1): Adjust for changed
339 output_section_statement "next".
340 (strip_excluded_output_sections): Likewise.
341 (lang_record_phdrs): Likewise.
342 (lang_output_section_find_by_flags): New function.
343 (output_prev_sec_find): Move from pe.em. Adjust iterator.
344 (lang_insert_orphan): New function. Tail end of elf32.em's
345 place_orphan merged with that from pe.em. Allow bfd_section to
346 be placed first. New heuristic for placing new output section
347 statement in existing script, and accompanying split of __start
348 symbol alignment into a separate assignment to dot.
349 (lang_add_section): Consistently use output->bfd_section rather than
350 an alias, section->output_section.
351 (map_input_to_output_sections): Rename overly long arg. Move
352 initialization of data_statement output section to here..
353 (lang_check_section_addresses): ..from here.
354 (print_assignment): Correct printing of etree_assert.
355 (print_all_symbols): Don't bomb if userdata is NULL.
356 (IGNORE_SECTION): Rearrange.
357 * emultempl/elf32.em (output_rel_find): Adjust interator.
358 (output_prev_sec_find): Delete.
359 (struct orphan_save): Delete.
360 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
361 flags without creating a duplicate output section statement.
362 Revise code holding history of various orphan section placements.
363 Allow orphan sections to place before script specified output
364 sections. Call lang_output_section_find_by_flags when placement
365 by name fails. Use lang_insert_orphan.
366 * emultempl/mmo.em (output_prev_sec_find): Delete.
367 (struct orphan_save): Delete.
368 (mmo_place_orphan): Revise code holding history of orphan placement.
369 Allow orphans to place before existing output sections. Use
371 * emultempl/pe.em (output_prev_sec_find): Delete.
372 (struct orphan_save): Delete.
373 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
376 2004-10-13 Mark Mitchell <mark@codesourcery.com>
378 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
381 2004-10-13 Alan Modra <amodra@bigpond.net.au>
384 * ldcref.c (check_section_sym_xref): Delete.
385 (check_local_sym_xref): New function.
386 (check_nocrossrefs): Adjust call.
387 * emultempl/pe.em (struct orphan_save): Add os_tail.
388 (place_orphan): Backport assorted fixes from elf32.em.
390 2004-10-12 Bob Wilson <bob.wilson@acm.org>
392 * emultempl/xtensaelf.em: Use ISO C90 formatting.
394 2004-10-11 Jakub Jelinek <jakub@redhat.com>
396 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
397 getline for portability.
399 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
400 (gld${EMULATION_NAME}_parse_ld_so_conf,
401 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
402 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
404 2004-10-11 Alan Modra <amodra@bigpond.net.au>
407 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
408 rejected when linking statically.
410 2004-10-08 Daniel Jacobowitz <dan@debian.org>
412 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
414 2004-10-07 Bob Wilson <bob.wilson@acm.org>
416 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
417 assembler-generated longcall sequences. Describe new --size-opt
419 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
420 * emultempl/xtensaelf.em (remove_section,
421 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
422 elf_xtensa_after_open): New.
423 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
424 OPTION_NO_LITERAL_MOVEMENT): Define.
425 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
426 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
427 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
428 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
429 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
430 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
431 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
432 * Makefile.am (eelf32xtensa.c): Update dependencies.
433 * Makefile.in: Regenerate.
435 2004-10-07 Jeff Baker <jbaker@qnx.com>
437 * lexsup.c: Handle --warn-shared-textrel option.
438 (ld_options): Restore alpha sorting of options.
439 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
440 * ld.texinfo: Add documentation for --warn-shared-textrel.
441 * NEWS: Added mention of --warn-shared-textrel option.
443 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
445 * emultempl/crxelf.em (disable_relaxation): Add.
446 (crxelf_before_allocation): Enable --relax option by default.
447 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
448 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
449 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
451 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
453 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
454 --sort-section name|alignment.
456 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
457 --sort-section name|alignment.
459 * ld.h (sort_type): New enum.
460 (wildcard_spec): Change the type of `sorted' to sort_type.
462 * ldgram.y (SORT): Removed.
463 (SORT_BY_NAME): Added.
464 (SORT_BY_ALIGNMENT): Added.
465 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
467 (input_section_spec_no_keep): Updated `sorted'.
468 (statement): Replace SORT with SORT_BY_NAME.
470 * ldlang.c (compare_section): New function to compare 2
471 sections with different sorting schemes.
472 (wild_sort): Updated. Use compare_section.
473 (update_wild_statements): New function.
474 (lang_process): Call update_wild_statements before
475 map_input_to_output_sections.
477 * ldlex.l (SORT_BY_NAME): New.
478 (SORT_BY_ALIGNMENT): New.
479 (SORT): Return SORT_BY_NAME.
481 * ldmain.c (sort_section): New. Defined.
482 (main): Initialize it to none.
484 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
485 (ld_options): Add an entry for OPTION_SORT_SECTION.
486 (parse_args): Handle OPTION_SORT_SECTION.
488 * mri.c (mri_draw_tree): Updated `sorted'.
490 2004-10-04 Jakub Jelinek <jakub@redhat.com>
492 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
493 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
495 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
496 and . as second argument.
497 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
498 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
499 (fold_binary): Add it here. Insert padding to make relro_end
500 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
501 exp_dataseg_relro_adjust phase just use previously computed
503 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
504 relro_adjust here. Call lang_size_sections_1 once more if there
505 was too big padding at DATA_SEGMENT_RELRO_END.
506 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
508 2004-10-01 Paul Brook <paul@codesourcery.com>
510 * emulparams/armelf.sh: Add unwinding table sections.
512 2004-09-30 Filip Navara <navaraf@reactos.com>
514 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
515 correct base address for position independant executables.
516 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
519 2004-09-30 Paul Brook <paul@codesourcery.com>
521 * ld.texinfo: Document --target2=abs.
522 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
524 2004-09-29 Nick Clifton <nickc@redhat.com>
526 * scripttempl/xstormy16.sc: Only perform the assignments to the
527 ROM region when not performing a relocatable link. The ROM region
528 does not start at address 0, but the sections will.
529 * Makefile.am: Fix linker script dependency for the generation of
531 * Makefile.in: Regenerate.
533 2004-09-18 Filip Navara <navaraf@reactos.com>
535 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
536 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
537 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
539 * scripttempl/pe.sc: Make the virtual address and file offset synced if
540 the alignment is lower than the target page size.
542 2004-09-27 Filip Navara <navaraf@reactos.com>
544 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
545 def_file_parse to handle pe_def_file if NULL and prevent crash with
548 2004-09-27 Alan Modra <amodra@bigpond.net.au>
550 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
551 --emit-stub-syms automatically when --emit-relocs.
553 2004-09-24 Paul Brook <paul@codeosurcery.com>
555 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
556 .fini_array sections.
558 2004-09-19 Andreas Schwab <schwab@suse.de>
560 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
561 base so that relro end is suitably aligned.
563 2004-09-17 Paul Brook <paul@codesourcery.com>
565 * ld.texinfo: Rename arm-specific section. Document --target*
566 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
567 * emulparams/armelf_linux.sh: Ditto.
568 * emulparams/armelf_nbsd.sh: Ditto.
569 * emultempl/armelf.em: Set default for TARGET2_TYPE.
570 (target2_type): New variable.
571 (arm_elf_before_allocation): Don't pass target1_type.
572 (arm_elf_create_output_section_statements): New function.
573 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
574 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
575 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
576 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
577 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
578 argument to bfd_elf32_arm_process_before_allocation.
580 2004-09-17 Alan Modra <amodra@bigpond.net.au>
582 * ldexp.c (fold_name): Update u.undef.next refs.
583 * emultempl/pe.em: Likewise.
584 * emultempl/sunos.em: Likewise.
586 2004-09-17 Alan Modra <amodra@bigpond.net.au>
588 * Makefile.am: Run "make dep-am".
589 * Makefile.in: Regenerate.
590 * config.in: Regenerate.
591 * configure: Regenerate.
592 * aclocal.m4: Regenerate.
593 * po/ld.pot: Regenerate.
595 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
597 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
601 2004-09-16 Alan Modra <amodra@bigpond.net.au>
603 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
604 to bfd_elf32_arm_process_before_allocation call.
606 2004-09-13 Paul Brook <paul@codesourcery.com>
608 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
609 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
611 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
613 * configure: Regenerated with autconfig 2.13.
615 2004-09-07 Andreas Schwab <schwab@suse.de>
617 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
618 alignment before adjusting DATA_SEGMENT_RELRO_END.
620 2004-09-06 Mark Mitchell <mark@codesourcery.com>
622 * emulparams/armsymbian.sh: Use armbpabi script.
623 * scripttempl/armbpabi.sc: New script.
625 2004-09-02 Mark Mitchell <mark@codesourcery.com>
627 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
628 (earmsymbian.c): New target.
629 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
630 * Makefile.in: Regenerated.
631 * aclocal.m4: Likewise.
632 * configure: Likewise.
633 * emulparams/armsymbian.sh: New file.
635 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
637 * scripttempl/elf32crx.sc: Edit file with comments.
638 (.init): Add new section.
640 (.ctor): Control the linkage order.
643 2004-08-27 Nick Clifton <nickc@redhat.com>
645 * emultempl/pe.em (after_open): Do not assume that either bfd is
648 2004-08-26 Alan Modra <amodra@bigpond.net.au>
650 * ldlang.c (lang_init): Don't compare with TRUE.
652 2004-08-25 Dmitry Diky <diwil@spec.ru>
654 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
655 * scripttempl/elf32msp430.sc: Add .profiler section definition.
657 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
659 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
661 2004-08-19 Mark Mitchell <mark@codesourcery.com>
663 * configure.tgt (arm*-*-symbianelf*): New target.
664 (arm*-*-eabi*): Likewise.
666 2004-08-19 Jakub Jelinek <jakub@redhat.com>
668 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
669 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
670 (OPTION_NON_OVERLAPPING_OPD): Define.
671 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
672 --non-overlapping-opd option.
674 2004-08-18 Alan Modra <amodra@bigpond.net.au>
677 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
678 was already on the undefs list.
680 2004-08-17 Alan Modra <amodra@bigpond.net.au>
682 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
683 prefix the symbol field too.
685 2004-08-13 Alan Modra <amodra@bigpond.net.au>
687 * ldmain.c (link_callbacks): Remove "error_handler".
688 * ldmisc.c: Include elf-bfd.h.
689 (vfinfo): Sort comment. Handle %A. Use %A instead of
690 bfd_get_section_indent.
691 (error_handler): Delete.
692 * ldmisc.h (error_handler): Delete declaration.
694 2004-08-10 Alan Modra <amodra@bigpond.net.au>
696 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
697 ppc64_elf_restore_symbols.
699 2004-08-09 Alan Modra <amodra@bigpond.net.au>
701 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
702 .toc is too large on relocatable linking.
704 2004-08-09 Alan Modra <amodra@bigpond.net.au>
706 * emultempl/ppc64elf.em (ppc_after_open): Delete.
707 (LDEMUL_AFTER_OPEN): Don't define.
709 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
711 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
713 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
715 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
718 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
720 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
722 2004-07-26 Dmitry Diky <diwil@spec.ru>
724 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
725 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
727 * configure.tgt: Likewise.
728 * emulparams/msp430all.sh: Likewise.
729 * Makefile.in: Regenerate.
731 2004-07-23 Nick Clifton <nickc@redhat.com>
733 * emultempl/elf32.em (_place_orphan): Use an already existing
734 section name if that section does not have any flags set.
736 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
738 * ldlang.c (already_linked_hash_entry): Removed.
739 (already_linked): Likewise.
740 (already_linked_table): Likewise.
741 (section_already_linked): Call bfd_section_already_linked.
742 (lang_process): Replace already_linked_table_init with
743 bfd_section_already_linked_table_init and check return. Replace
744 already_linked_table_free with bfd_section_already_linked_table_free.
746 2004-07-21 Nick Clifton <nickc@redhat.com>
748 * ldlang.c (init_os): Make sure that the newly allocated userdata
749 structure is zeroed out.
751 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
753 * NEWS: Mention the new --add-needed/--no-add-needed and
754 --as-needed/--no-as-needed options.
756 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
758 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
759 check the add_needed field.
760 (dt_needed): New struct.
761 (gld${EMULATION_NAME}_try_needed): Change the first argument
762 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
763 bit in the file where the DT_NEEDED entry comes from.
764 (gld${EMULATION_NAME}_search_needed): Change the second
765 argument to a pointer to struct dt_needed.
766 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
767 (gld${EMULATION_NAME}_after_open): Likewise.
769 * ld.texinfo: Add --add-needed document.
770 * ldlang.c (new_afile): Set p->add_needed.
771 * ldlang.h (lang_input_statement_type): Add add_needed field.
772 * ldmain.h (add_needed): Declare.
773 * ldmain.c (add_needed): New global var.
774 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
775 OPTION_NO_ADD_NEEDED.
776 (ld_options): Likewise.
777 (parse_args): Handle them.
779 2004-07-13 Christof Petig <christof@petig-baender.de>
781 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
782 for endian-ness of extracted addend.
784 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
786 * pe-dll.c (auto_export): Filter on just the import prefix,
787 "_imp_", not "_imp__".
789 2004-07-09 Nick Clifton <nickc@redhat.com>
791 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
793 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
795 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
796 (eelf32crx.c): New target.
797 * Makefile.in: Regenerate.
798 * configure.tgt: Handle crx-*-elf*.
799 * emulparams/elf32crx.sh: New file.
800 * emultempl/crxelf.em: New file.
801 * scripttempl/elf32crx.sc: New file.
802 * NEWS: Mention new target.
804 2004-07-06 Nick Clifton <nickc@redhat.com>
806 * Makefile.am: Add eshlsymbian.c.
807 * Makefile.in: Regenerate.
808 * configure.tgt: Add sh*-symbian-elf target.
809 * emulparams/shlsymbian.sh: New file. Configure the
810 sh-symbian-elf linker scripts.
811 * scripttemp/elf32sh-symbian.sc: New file. Linker script
812 template for the sh-symbian-elf target.
814 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
816 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
817 * emulparams/hppalinux.sh: Likewise.
818 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
819 data segment and PLT_BEFORE_GOT is defined.
821 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
823 * ld.texinfo (WIN32): Document PE weak symbols.
825 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
827 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
829 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
831 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
834 2004-06-29 Alan Modra <amodra@bigpond.net.au>
836 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
839 2004-06-24 Alan Modra <amodra@bigpond.net.au>
841 * ldlang.c (print_output_section_statement): Don't print size before
843 (IGNORE_SECTION): Remove bfd arg. Update all callers.
845 * ldexp.c (fold_name): .. See below.
846 * ldlang.c (section_already_linked, print_output_section_statement,
847 print_input_section, insert_pad, size_input_section,
848 lang_check_section_addresses, lang_size_sections_1,
849 lang_size_sections, lang_do_assignments_1, lang_set_startof,
850 lang_one_common, lang_reset_memory_regions, lang_process,
851 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
852 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
853 * pe-dll.c (process_def_file, generate_reloc): ..
854 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
855 gld${EMULATION_NAME}_before_allocation): ..
856 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
857 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
858 sh64_elf_${EMULATION_NAME}_after_allocation): ..
859 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
860 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
861 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
862 "size" instead of "_raw_size" and "_cooked_size". Expand
863 bfd_section_size macro invocations.
865 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
867 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
868 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
869 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
871 (.tls): Define ___tls_start__ and ___tls_end__.
873 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
875 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
877 2004-06-18 Adam Nemet <anemet@lnxw.com>
879 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
880 * configure: Regenerate.
882 2004-06-15 Jakub Jelinek <jakub@redhat.com>
884 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
885 .gcc_except_table output sections lost accidentally with
888 2004-06-15 Alan Modra <amodra@bigpond.net.au>
890 * ldwrite.c (build_link_order): Use bfd_get_section_size
891 instead of bfd_get_section_size_before_reloc or _raw_size.
892 * pe-dll.c (process_def_file): Likewise.
894 2004-06-14 Alan Modra <amodra@bigpond.net.au>
896 From Richard Wirth <r.wirth@wirthware.de>
897 * ldlang.c (lang_finish): Don't free lang_definedness_table.
899 2004-05-29 Alan Modra <amodra@bigpond.net.au>
901 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
902 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
904 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
906 * testsuite/ld-sh/arch/arch.exp: New test script.
907 * testsuite/ld-sh/arch/arch_expected.txt: New file.
908 * testsuite/ld-sh/arch/sh.s: New file.
909 * testsuite/ld-sh/arch/sh2.s: New file.
910 * testsuite/ld-sh/arch/sh-dsp.s: New file.
911 * testsuite/ld-sh/arch/sh2e.s: New file.
912 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
913 * testsuite/ld-sh/arch/sh3.s: New file.
914 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
915 * testsuite/ld-sh/arch/sh3e.s: New file.
916 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
917 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
918 * testsuite/ld-sh/arch/sh4.s: New file.
919 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
920 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
921 * testsuite/ld-sh/arch/sh4a.s: New file.
923 2004-05-28 Alan Modra <amodra@bigpond.net.au>
925 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
927 * lexsup.c: Formatting. Wrap long lines.
928 * ldwrite.c: Update copyright date.
930 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
931 (output_section_callback): Nor SEC_KEEP here.
932 (gc_section_callback): Twiddle SEC_EXCLUDE here.
933 (lang_gc_wild): Delete. Fold into..
934 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
936 (lang_process): Always call lang_gc_sections.
937 (lang_place_orphans): Handle SEC_EXCLUDE sections.
938 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
941 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
943 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
944 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
945 * ldlang.c (lang_add_section): Likewise.
947 2004-05-26 Alan Modra <amodra@bigpond.net.au>
949 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
950 sections when doing a final link. Clear SEC_EXCLUDE when doing
951 a relocable link, except for SEC_DEBUGGING sections.
952 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
953 same condition here to drop SEC_EXCLUDE orphan sections.
955 2004-05-25 Alan Modra <amodra@bigpond.net.au>
957 * ldlang.c (lang_process): Call bfd_merge_sections later, and
958 only when not a relocatable link.
959 (print_input_section): Handle SEC_EXCLUDE sections.
960 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
961 (lang_do_assignments_1): Likewise.
962 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
963 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
964 * emultempl/hppaelf.em (build_section_lists): Likewise.
965 * emultempl/ppc64elf.em (build_toc_list): Likewise.
966 (build_section_lists): Likewise.
968 2004-05-23 Andreas Schwab <schwab@suse.de>
970 * ld.texinfo (Options): Fix typo in last change.
972 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
974 * ld.h (ld_config_type): Add new field: hash_table_size.
975 * ldmain.c: Initialise the new field to zero. If it is non-zero
976 after parsing the linker's command line call
977 bfd_hash_set_default_size.
978 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
979 (ld_options): Add hash-size.
980 (parse_args): Parse --hash-size option. Allow
981 --reduce-memory-overheads to set the default hash table size as
983 * ld.texinfo: Document the new switch. Also mention that
984 --reduce-memory-overheads can affect the hash table size.
985 * NEWS: Mention the new feature.
987 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
989 * NEWS: Mention new linker map file generation and the
990 --reduce-memory-overheads option.
991 * ld.texinfo: Document --reduce-memory-overheads option.
992 * ld.h (map_symbol_def): New struct.
993 (struct user_section_struct, section_userdata_type): Rename to:
994 (struct lean_user_section_struct, lean_section_userdata_type).
995 (struct fat_user_section_struct, fat_section_userdata_type): New.
996 (SECTION_USERDATA_SIZE): Define.
997 (args_type): New member reduce_memory_overheads.
998 * ldlang.c (map_obstack): New static variable.
999 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
1000 (lang_map): Unless command_line.reduce_memory_overheads is set,
1001 initialize lists of defined symbols for each section.
1002 (print_input_section): Unless command_line.reduce_memory_overheads
1003 is set, use print_all_symbols.
1004 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
1005 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
1006 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
1007 (ld_options): Add entry for --reduce-memory-overheads.
1008 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
1010 2004-05-19 Jakub Jelinek <jakub@redhat.com>
1012 * ldgram.y (sect_constraint): New.
1013 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1014 (section): Add sect_constraint. Pass additional argument
1015 to lang_enter_output_section_statement.
1016 * mri.c (mri_draw_tree): Pass additional argument to
1017 lang_enter_output_section_statement.
1018 * emultempl/pe.em (place_orphan): Likewise.
1019 (output_prev_sec_find): Disregard output section statements with
1021 * emultempl/mmo.em (output_prev_sec_find): Likewise.
1022 (mmo_place_orphan): Pass additional argument to
1023 lang_enter_output_section_statement.
1024 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
1025 statements with constraint == -1.
1026 (place_orphan): Pass additional argument to
1027 lang_enter_output_section_statement.
1028 * ldlang.c (lang_enter_overlay_section): Likewise.
1029 (lang_output_section_find_1): New.
1030 (lang_output_section_find): Use it.
1031 (lang_output_section_statement_lookup_1): New.
1032 (lang_output_section_statement_lookup): Use it.
1033 (check_section_callback, check_input_sections): New.
1034 (map_input_to_output_sections): Check if all input sections
1035 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
1036 (strip_excluded_output_sections): Disregard output section statements
1037 with constraint == -1.
1038 (lang_record_phdrs): Likewise.
1039 (lang_enter_output_section_statement): Add constraint argument.
1040 Use lang_output_section_statement_lookup_1.
1041 * ldlang.h (lang_output_section_statement_type): Add constraint
1042 and all_input_readonly fields.
1043 (lang_enter_output_section_statement): Adjust prototype.
1044 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
1045 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
1046 segment if all input sections are readonly.
1048 2004-05-19 Adam Nemet <anemet@lnxw.com>
1050 * scripttempl/i386lynx.sc: Remove file.
1052 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1054 * ld.texinfo (Output Section Address): Correct subsection name.
1056 2004-05-17 Adam Nemet <anemet@lnxw.com>
1058 * configure.tgt (powerpc-*-lynxos* case): New case.
1059 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
1060 * emulparams/ppclynx.sh: New file.
1061 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
1062 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
1063 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
1064 (eppclynx.c): New rule.
1065 * Makefile.in: Regenerate.
1067 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1069 * configure.tgt (or32-*-rtems*): Switch to elf and
1070 support versioned targets.
1072 2004-05-13 Nick Clifton <nickc@redhat.com>
1074 * po/fr.po: Updated French translation.
1076 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1078 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
1079 for binaries, -shared and -pie.
1080 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1081 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1082 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1083 (OTHER_RELRO_SECTIONS): ... this.
1084 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1085 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1086 -z relro and -z norelro.
1087 (gld${EMULATION_NAME}_list_options): Add it to usage.
1088 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1089 -z relro scripts when appropriate.
1090 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1091 Create separate .got.plt section if SEPARATE_GOTPLT.
1092 Move sections which are only written during relocation handling
1093 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1094 before .data. Add DATA_SEGMENT_RELRO_END directive.
1095 Include OTHER_RELRO_SECTIONS.
1096 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1097 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1098 (fold_unary): Likewise.
1099 (fold_binary): Handle -z relro.
1100 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1101 exp_dataseg_relro_adjust phases. Add relro_end field.
1102 * ldmain.c (main): Initialize link_info.relro to FALSE.
1103 * ldlang.c (lang_size_sections): Handle -z relro.
1105 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1107 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1109 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1111 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1112 before printing it with %W.
1114 2004-05-07 Brian Ford <ford@vss.fsi.com>
1115 DJ Delorie <dj@redhat.com>
1117 * emultempl/pe.em (real_flags): New static.
1118 (OPTION_LARGE_ADDRESS_AWARE): New define.
1119 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1120 (gld_${EMULATION_NAME}_list_options): Likewise.
1121 (gld${EMULATION_NAME}_handle_option): Likewise.
1122 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1123 * ld.texinfo: Document it.
1126 2004-05-07 Brian Ford <ford@vss.fsi.com>
1128 * NEWS: Mention DWARF 2 support for i386pe.
1130 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1132 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1135 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1137 * ldlang.c (unique_section_p): Pass section parm, return true on
1139 (output_section_callback): Adjust.
1140 * ldlang.h (unique_section_p): Update prototype.
1141 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1143 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1145 * ld.texinfo (--gc-sections): Remove restriction for
1148 2004-04-29 Brian Ford <ford@vss.fsi.com>
1150 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1151 for DWARF 2/3. Update stab section's syntax.
1153 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1155 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1156 (fill_edata): Correct pointer arithmetic.
1158 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1160 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1161 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1162 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1163 (EXTRA_EM_FILE): Use mipsecoff.em
1164 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1165 (EXTRA_EM_FILE): Use mipsecoff.em
1166 * emultempl/mipsecoff.em: Restructure to be included as an
1167 extra emulation file.
1168 (check_sections, gld${EMULATION_NAME}_after_open)
1169 (gld${EMULATION_NAME}_after_allocation)
1170 (gld${EMULATION_NAME}_get_script)
1171 (ld_${EMULATION_NAME}_emulation): Remove
1172 (gld${EMULATION_NAME}_before_parse): Rename to...
1173 (mipsecoff_before_parse): This.
1174 (LDEMUL_BEFORE_PARSE): Define.
1175 * emultempl/mipself.em: Remove file.
1176 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1177 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1179 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1180 * Makefile.in: Regenerate.
1182 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1184 * ld.texinfo (synthesizing on H8/300): Information about linker
1185 relaxation support for bit manipulation instructions and system
1186 control instructions is added.
1188 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1190 * NEWS: Mention change in DEFINED semantics.
1192 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1194 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1195 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1196 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1198 2004-04-21 Ben Elliston <bje@au.ibm.com>
1200 * ld.texinfo (Simple Example): Add missing punctuation.
1202 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1204 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1206 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1208 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1211 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1213 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1214 with default priority. Likewise for dtors.
1216 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1218 * configure.host: Remove mips*-dec-bsd* target.
1219 * configure.tgt: Likewise.
1221 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1223 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1224 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1225 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1226 * emultempl/irix.em: New file.
1227 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1229 * Makefile.in: Regenerate.
1231 2004-04-01 Paul Brook <paul@codesourcery.com>
1233 * emultempl/armelf.em (byteswap_code): Add.
1234 (arm_elf_before_allocation): Pass extra parameter.
1235 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1236 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1237 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1238 * emultempl/armelf_oabi.em: Pass extra parameter.
1239 * ld.texinfo: Document --be8.
1241 2004-03-30 Stan Shebs <shebs@apple.com>
1243 Remove long-obsolete MPW support.
1244 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1245 * Makefile.am (mpw): Remove file-presynthesizing actions.
1246 * Makefile.in: Likewise.
1247 * ldfile.c (slash): Remove MPW case.
1248 * ldlex.l [MPW]: Remove unused definition.
1250 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1252 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1253 (eelf32cr16c.c): New target.
1254 * Makefile.in: Regenerate.
1255 * configure.tgt: Handle cr16c-*-elf*.
1256 * emulparams/elf32cr16c.sh: New file.
1257 * scripttempl/elfcr16c.sc: Likewise
1258 * NEWS: Mention support for new target.
1260 2004-03-30 Nick Clifton <nickc@redhat.com>
1262 * po/sv.po: Updated Swedish translation.
1264 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1266 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1267 * emultempl/hppaelf.em: Likewise.
1268 * emultempl/ppc64elf.em: Likewise.
1269 * emultempl/sh64elf.em: Likewise.
1271 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1273 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1274 size_dynamic_sections call.
1276 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1279 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1280 link_info.wrap_char.
1282 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1284 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1285 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1287 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1289 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1291 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1293 * config.in: Regenerate.
1294 * po/ld.pot: Regenerate.
1296 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1298 * ld.texinfo: Add --as-needed doco.
1299 * ldmain.c (as_needed): New global var.
1300 * ldmain.h (as_needed): Declare.
1301 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1302 OPTION_NO_AS_NEEDED.
1303 (ld_options): Likewise.
1304 (parse_args): Handle them.
1305 * ldlang.h (lang_input_statement_type): Add as_needed field.
1306 * ldlang.c (new_afile): Set p->as_needed.
1307 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1308 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1309 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1311 * ldlang.c (open_input_bfds): Remove useless cast.
1312 (lang_do_assignments_1): Likewise.
1313 (lang_for_each_input_section): Delete.
1315 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1317 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1319 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1321 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1322 private when building implib.
1324 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1326 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1328 (IGNORE_SECTION): Ignore .tbss sections too.
1329 (lang_size_sections_1): .tbss sections do not advance dot.
1331 2004-03-01 Andreas Schwab <schwab@suse.de>
1333 * ld.texinfo (Options): Fix example for --wrap.
1335 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1337 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1340 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1342 * ldlang.c (lang_check): Use %P, not %E, in error message.
1344 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1346 * ldlang.h (struct lang_output_section_state): Change processed
1348 * ldexp.c (check, invalid): Remove.
1349 (fold_name): Move valid_p assignments. Create undefined symbol
1350 when needed. Directly exampine section's processd flag.
1351 * ldlang.c (lang_output_section_statement_lookup): Adjust
1352 processed field init.
1353 (lang_size_sections_1): Allow LOADADDR when determining section's
1354 VMA. Adjust error message. Fold data statement's expr.
1355 (lang_size_sections): Correctly increment lang_statement_iteration.
1357 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1359 * ldexp.c (fold_tree): Follow indirect symbols.
1361 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1363 * ldgram.y (exp): Add two operand ALIGN.
1364 * ldexp.c (fold_binary): Add ALIGN_K case.
1365 * ld.texinfo (ALIGN): Document two operand version.
1367 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1369 * ldlang.c (map_input_to_output_sections): Initialize sections
1370 mentioned in a data statement expression.
1371 (lang_do_assignments_1): Add data statement's expression's
1374 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1376 * ldgram.y (statement_anywhere): Add assert rule.
1377 * ldlang.c (exp_init_os): Add assert case.
1379 2004-02-14 Andrew Cagney <cagney@redhat.com>
1381 * ldmain.c (remove_output): Call bfd_cache_close.
1383 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1385 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1386 .MIPS.content* and .MIPS.events* sections.
1388 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1390 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1391 .note.gnu.arm.ident to after allocated sections. Mark its
1394 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1396 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1397 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1398 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1399 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1400 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1402 2004-02-05 Nick Clifton <nickc@redhat.com>
1404 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1406 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1408 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1410 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1412 * genscripts.sh: Fix typo.
1414 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1416 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1418 * emulparams/elf64_ia64.sh: Put .rela.opd into
1419 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1421 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1423 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1424 * ld.texinfo (--omagic): Note that writable text section
1425 does not conform to published PE-COFF specs.
1426 (--enable-auto-import): Likewise.
1428 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1430 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1432 2004-01-13 Nick Clifton <nickc@redhat.com>
1434 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1435 which if true will prevent the LMA region being used as a
1436 replacement for a default VMA region.
1437 (lang_leave_output_section_statement): Pass extra parameter.
1438 (lang_leave_overlay): Likewise.
1439 * ld.texinfo (Output Section LMA): Document that the LMA
1440 region can be set to the VMA region if no VMA has been set.
1441 * ldlang.h (struct lang_output_section_phdr_list): Create a
1442 typedef for this type. Minor formatting fixes.
1444 2004-01-13 Nick Clifton <nickc@redhat.com>
1446 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1447 assume that the section should be allocated.
1449 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1451 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1452 sections. Do ignore SEC_NEVER_LOAD sections.
1453 (lang_size_sections_1): Remove test made redundant with the above.
1455 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1457 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1458 program_header_size.
1460 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1462 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1463 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1464 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1465 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1466 (MAXPAGESIZE): Set to 64Kb.
1467 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1468 __ROFIXUP_END__. Don't map .rofixup.got any more.
1469 * emulparams/elf32frv.sh (NOP): Set.
1470 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1471 * configure.tgt: Add frv-*-*linux*.
1472 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1473 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1474 (eelf32frvfd.c): New.
1475 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1476 * emulparams/elf32frv.sh: Reverted previous two patches.
1477 * emulparams/elf32frvfd.sh: New.
1478 * Makefile.in: Rebuilt.
1479 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1480 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1481 .rofixup.got to .rofixup.
1482 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1483 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1484 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1486 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1488 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1489 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1491 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1493 * ldexp.c (align_n): Make static.
1494 * ldexp.h (align_n): Delete declaration.
1495 * ldlang.h (lang_enter_output_section_statement): Remove
1497 * ldlang.c (lang_enter_output_section_statement): Likewise.
1498 (TO_ADDR, TO_SIZE): Define.
1499 (opb_shift): New var.
1500 (init_opb): New function.
1501 (print_input_section): Call init_opb and use TO_ADDR.
1502 (print_data_statement, print_reloc_statement): Likewise.
1503 (print_padding_statement): Likewise.
1504 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1505 (lang_check_section_addresses): Likewise.
1506 (lang_size_sections_1): Likewise.
1507 (lang_do_assignments_1): Likewise.
1508 (lang_set_startof): Likewise.
1509 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1510 (lang_process): Call init_opb.
1511 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1512 (lang_enter_overlay_section): Adjust
1513 lang_enter_output_section_statement call.
1514 * ldgram.y: Likewise.
1515 * mri.c (mri_draw_tree): Likewise.
1516 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1517 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1518 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1520 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1521 * ldfile.h (ldfile_set_output_arch): Ditto.
1522 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1523 ldfile_set_output_arch.
1524 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1525 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1526 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1527 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1528 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1529 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1530 * ldgram.y: Adjust ldfile_set_output_arch call.
1531 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1532 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1533 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1534 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1535 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1536 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1537 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1539 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1541 * configure.tgt: Add m68k-uClinux target.
1543 For older changes see ChangeLog-0203
1549 version-control: never