1 2004-12-28 Danny Smith <dannysmith@users.sourceforge.net>
3 * emultempl/pe.em (set_pe_subsystem): Change second arg to
4 lang_add_entry to FALSE.
6 2004-12-23 Nick Clifton <nickc@redhat.com>
9 * emulparams/shelf.sh (.stack): Increase stack start address to
12 2004-12-20 Nick Clifton <nickc@redhat.com>
14 * ldmain.c (main): Issue an error message if -static and -shared
17 2004-12-17 Jakub Jelinek <jakub@redhat.com>
19 * ldexp.h (exp_data_seg): Add min_base and maxpagesize fields.
20 * ldexp.c (fold_binary) <case DATA_SEGMENT_ALIGN>: Initialize them.
21 * ldlang.c (lang_size_sections): Use them to avoid wasting virtual
22 address space at DATA_SEGMENT_ALIGN. Fix computation of expected
23 PT_GNU_RELRO segment end.
25 2004-12-14 P.J. Darcy <darcypj@us.ibm.com>
27 * configure.tgt: Add s390x-ibm-tpf support.
29 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
31 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
34 2004-12-07 Ben Elliston <bje@gnu.org>
36 * ldemul.h: Forward declare struct option.
38 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
40 * scripttempl/pe.sc (.data): Add .jcr subsection.
42 2004-11-30 Paul Brook <paul@codesourcery.com>
44 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
46 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
48 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
49 * Makefile.in: Regenerate.
51 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
53 * emultempl/pe.em: Add --subsystem:xbox as well as
55 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
56 and numeric subsystems.
58 2004-11-24 Alan Modra <amodra@bigpond.net.au>
60 * ldexp.c (fold_name): Correct PR 338 fix.
62 2004-11-19 Mark Mitchell <mark@codesourcery.com>
64 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
65 (earmelf_linux_eabi.c): New target.
66 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
67 * emulparams/armelf_linux_eabi.sh: New file.
68 * Makefile.in: Regenerated.
70 2004-11-19 Nick Clifton <nickc@redhat.com>
73 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
74 LENGTH fields in the MEMORY command, to explicitly state that
75 symbols cannot be used in their expressions.
77 2004-11-19 Jon Beniston <jon@beniston.com>
79 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
80 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
81 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
82 which return the length and origin of a memory.
83 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
84 * NEWS: Mention support for ORIGIN and LENGTH operators.
86 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
88 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
89 a dynamic object for stubs.
91 2004-11-04 Paul Brook <paul@codesourcery.com>
93 * ld.texinfo: Document --default-imported-symver.
94 * ldmain.c (main): Set link_info.default_imported_symver.
95 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
96 (ld_options): Add --default-imported-symver.
97 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
99 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
100 Vineet Sharma <vineets@noida.hcltech.com>
102 * Makefile.am: Add entries for new maxq-coff target.
103 * Makefile.in: Regenerate.
104 * configure.tgt: Add support for maxq.
105 * emulparams/maxqcoff.sh: New File.
106 * scripttempl/maxqcoff.sc: New linker script for target maxq.
107 * NEWS: Mention the new target.
109 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
111 * testsuite/ld-scripts/weak.exp: Enable test on PE,
113 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
115 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
117 2004-11-04 Daniel Jacobowitz <dan@debian.org>
119 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
120 (earmelf_oabi.c): Remove rule.
121 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
122 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
123 * Makefile.in: Regenerated.
125 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
127 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
128 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
130 (INIT_END): Remove emitted "jump [sp+]".
133 2004-11-04 Alan Modra <amodra@bigpond.net.au>
135 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
136 (no_opd_opt, no_toc_opt): New static vars.
137 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
139 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
140 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
141 (PARSE_AND_LIST_OPTIONS): Describe new options.
142 (PARSE_AND_LIST_ARGS_CASES): Handle them.
144 2004-10-27 Nick Clifton <nickc@redhat.com>
146 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
147 parameter to invocation of lang_section_start.
148 * emultempl/aix.em (_handle_option): Likewise.
150 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
151 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
152 * Makefile.in: Regenerate.
154 2004-10-26 Mark Mitchell <mark@codesourcery.com>
156 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
157 __exidx_{start,end} when not relocating.
159 2004-10-25 Mark Mitchell <mark@codesourcery.com>
161 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
162 * ldexp.h (segment_type): New type.
163 (segments): New variable.
164 * ldexp.c (segments): New variable.
165 (exp_print_token): Handle SEGMENT_START.
166 (fold_binary): Likewise.
167 * ldgram.y (SEGMENT_START): Declare it as a token.
168 (exp): Handle SEGMENT_START.
169 * ldlang.h (lang_address_statement_type): Add segment field.
170 (lang_section_start): Change prototype.
171 * ldlang.c (map_input_to_output_sections): Do not process section
172 assignments if a corresponding SEGMENT_START has already been
174 (lang_section_start): Add segment parameter.
175 * ldlex.l (SEGMENT_START): Add it.
176 * lexsup.c (seg_segment_start): New function.
177 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
178 * ld.texinfo (SEGMENT_START): Document it.
179 * emulparams/armsymbian.sh (EMBEDDED): Set it.
180 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
181 base addresses. Do not map relocations.
182 * NEWS: Mention SEGMENT_START.
184 2004-10-26 Paul Brook <paul@codesourcery.com>
186 * ld.texinfo: Document --default-symver.
187 * ldmain.c (main): Set link_info.create_default_symver.
188 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
189 (ld_options): Add default-symver.
190 (parse_args): Handle OPTION_DEFAULT_SYMVER.
192 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
194 * pe-dll.c (process_def_file): Don't export all symbols by default if
195 building a position-independent executable.
197 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
200 * ldmain.c (reloc_overflow): Accept a pointer to struct
201 bfd_link_hash_entry. Report symbol location for relocation
204 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
206 * genscripts.sh (libpath.exp): Really generate for first
209 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
211 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
212 comparison and replacement of filenames.
214 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
217 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
218 option on linker script as the one for linker script.
220 2004-10-16 Daniel Jacobowitz <dan@debian.org>
222 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
223 (check_excluded_libs): New.
224 (load_symbols): Call check_excluded_libs.
225 * ldlang.h (add_excluded_libs): New prototype.
226 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
227 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
228 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
229 * ld.texinfo (Command Line Variables): Document --exclude-libs.
230 (Options Specific to i386 PE Targets): Remove --exclude-libs.
232 2004-10-15 Alan Modra <amodra@bigpond.net.au>
234 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
235 failing link script assert.
237 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
239 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
242 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
243 (SMALL_DATA_DTOR): Set.
244 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
245 (SMALL_DATA_DTOR): Unset.
246 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
247 after .data. If SMALL_DATA_DTOR is set, move .dtors after
250 2004-10-14 Alan Modra <amodra@bigpond.net.au>
253 * ldlang.h (lang_output_section_statement_type): Make "next" a
254 struct lang_output_section_statement_struct *.
255 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
256 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
257 * ldlang.c (lang_output_section_find_1): Adjust for changed
258 output_section_statement "next".
259 (strip_excluded_output_sections): Likewise.
260 (lang_record_phdrs): Likewise.
261 (lang_output_section_find_by_flags): New function.
262 (output_prev_sec_find): Move from pe.em. Adjust iterator.
263 (lang_insert_orphan): New function. Tail end of elf32.em's
264 place_orphan merged with that from pe.em. Allow bfd_section to
265 be placed first. New heuristic for placing new output section
266 statement in existing script, and accompanying split of __start
267 symbol alignment into a separate assignment to dot.
268 (lang_add_section): Consistently use output->bfd_section rather than
269 an alias, section->output_section.
270 (map_input_to_output_sections): Rename overly long arg. Move
271 initialization of data_statement output section to here..
272 (lang_check_section_addresses): ..from here.
273 (print_assignment): Correct printing of etree_assert.
274 (print_all_symbols): Don't bomb if userdata is NULL.
275 (IGNORE_SECTION): Rearrange.
276 * emultempl/elf32.em (output_rel_find): Adjust interator.
277 (output_prev_sec_find): Delete.
278 (struct orphan_save): Delete.
279 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
280 flags without creating a duplicate output section statement.
281 Revise code holding history of various orphan section placements.
282 Allow orphan sections to place before script specified output
283 sections. Call lang_output_section_find_by_flags when placement
284 by name fails. Use lang_insert_orphan.
285 * emultempl/mmo.em (output_prev_sec_find): Delete.
286 (struct orphan_save): Delete.
287 (mmo_place_orphan): Revise code holding history of orphan placement.
288 Allow orphans to place before existing output sections. Use
290 * emultempl/pe.em (output_prev_sec_find): Delete.
291 (struct orphan_save): Delete.
292 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
295 2004-10-13 Mark Mitchell <mark@codesourcery.com>
297 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
300 2004-10-13 Alan Modra <amodra@bigpond.net.au>
303 * ldcref.c (check_section_sym_xref): Delete.
304 (check_local_sym_xref): New function.
305 (check_nocrossrefs): Adjust call.
306 * emultempl/pe.em (struct orphan_save): Add os_tail.
307 (place_orphan): Backport assorted fixes from elf32.em.
309 2004-10-12 Bob Wilson <bob.wilson@acm.org>
311 * emultempl/xtensaelf.em: Use ISO C90 formatting.
313 2004-10-11 Jakub Jelinek <jakub@redhat.com>
315 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
316 getline for portability.
318 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
319 (gld${EMULATION_NAME}_parse_ld_so_conf,
320 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
321 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
323 2004-10-11 Alan Modra <amodra@bigpond.net.au>
326 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
327 rejected when linking statically.
329 2004-10-08 Daniel Jacobowitz <dan@debian.org>
331 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
333 2004-10-07 Bob Wilson <bob.wilson@acm.org>
335 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
336 assembler-generated longcall sequences. Describe new --size-opt
338 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
339 * emultempl/xtensaelf.em (remove_section,
340 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
341 elf_xtensa_after_open): New.
342 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
343 OPTION_NO_LITERAL_MOVEMENT): Define.
344 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
345 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
346 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
347 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
348 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
349 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
350 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
351 * Makefile.am (eelf32xtensa.c): Update dependencies.
352 * Makefile.in: Regenerate.
354 2004-10-07 Jeff Baker <jbaker@qnx.com>
356 * lexsup.c: Handle --warn-shared-textrel option.
357 (ld_options): Restore alpha sorting of options.
358 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
359 * ld.texinfo: Add documentation for --warn-shared-textrel.
360 * NEWS: Added mention of --warn-shared-textrel option.
362 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
364 * emultempl/crxelf.em (disable_relaxation): Add.
365 (crxelf_before_allocation): Enable --relax option by default.
366 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
367 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
368 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
370 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
372 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
373 --sort-section name|alignment.
375 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
376 --sort-section name|alignment.
378 * ld.h (sort_type): New enum.
379 (wildcard_spec): Change the type of `sorted' to sort_type.
381 * ldgram.y (SORT): Removed.
382 (SORT_BY_NAME): Added.
383 (SORT_BY_ALIGNMENT): Added.
384 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
386 (input_section_spec_no_keep): Updated `sorted'.
387 (statement): Replace SORT with SORT_BY_NAME.
389 * ldlang.c (compare_section): New function to compare 2
390 sections with different sorting schemes.
391 (wild_sort): Updated. Use compare_section.
392 (update_wild_statements): New function.
393 (lang_process): Call update_wild_statements before
394 map_input_to_output_sections.
396 * ldlex.l (SORT_BY_NAME): New.
397 (SORT_BY_ALIGNMENT): New.
398 (SORT): Return SORT_BY_NAME.
400 * ldmain.c (sort_section): New. Defined.
401 (main): Initialize it to none.
403 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
404 (ld_options): Add an entry for OPTION_SORT_SECTION.
405 (parse_args): Handle OPTION_SORT_SECTION.
407 * mri.c (mri_draw_tree): Updated `sorted'.
409 2004-10-04 Jakub Jelinek <jakub@redhat.com>
411 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
412 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
414 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
415 and . as second argument.
416 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
417 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
418 (fold_binary): Add it here. Insert padding to make relro_end
419 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
420 exp_dataseg_relro_adjust phase just use previously computed
422 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
423 relro_adjust here. Call lang_size_sections_1 once more if there
424 was too big padding at DATA_SEGMENT_RELRO_END.
425 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
427 2004-10-01 Paul Brook <paul@codesourcery.com>
429 * emulparams/armelf.sh: Add unwinding table sections.
431 2004-09-30 Filip Navara <navaraf@reactos.com>
433 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
434 correct base address for position independant executables.
435 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
438 2004-09-30 Paul Brook <paul@codesourcery.com>
440 * ld.texinfo: Document --target2=abs.
441 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
443 2004-09-29 Nick Clifton <nickc@redhat.com>
445 * scripttempl/xstormy16.sc: Only perform the assignments to the
446 ROM region when not performing a relocatable link. The ROM region
447 does not start at address 0, but the sections will.
448 * Makefile.am: Fix linker script dependency for the generation of
450 * Makefile.in: Regenerate.
452 2004-09-18 Filip Navara <navaraf@reactos.com>
454 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
455 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
456 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
458 * scripttempl/pe.sc: Make the virtual address and file offset synced if
459 the alignment is lower than the target page size.
461 2004-09-27 Filip Navara <navaraf@reactos.com>
463 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
464 def_file_parse to handle pe_def_file if NULL and prevent crash with
467 2004-09-27 Alan Modra <amodra@bigpond.net.au>
469 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
470 --emit-stub-syms automatically when --emit-relocs.
472 2004-09-24 Paul Brook <paul@codeosurcery.com>
474 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
475 .fini_array sections.
477 2004-09-19 Andreas Schwab <schwab@suse.de>
479 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
480 base so that relro end is suitably aligned.
482 2004-09-17 Paul Brook <paul@codesourcery.com>
484 * ld.texinfo: Rename arm-specific section. Document --target*
485 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
486 * emulparams/armelf_linux.sh: Ditto.
487 * emulparams/armelf_nbsd.sh: Ditto.
488 * emultempl/armelf.em: Set default for TARGET2_TYPE.
489 (target2_type): New variable.
490 (arm_elf_before_allocation): Don't pass target1_type.
491 (arm_elf_create_output_section_statements): New function.
492 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
493 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
494 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
495 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
496 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
497 argument to bfd_elf32_arm_process_before_allocation.
499 2004-09-17 Alan Modra <amodra@bigpond.net.au>
501 * ldexp.c (fold_name): Update u.undef.next refs.
502 * emultempl/pe.em: Likewise.
503 * emultempl/sunos.em: Likewise.
505 2004-09-17 Alan Modra <amodra@bigpond.net.au>
507 * Makefile.am: Run "make dep-am".
508 * Makefile.in: Regenerate.
509 * config.in: Regenerate.
510 * configure: Regenerate.
511 * aclocal.m4: Regenerate.
512 * po/ld.pot: Regenerate.
514 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
516 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
520 2004-09-16 Alan Modra <amodra@bigpond.net.au>
522 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
523 to bfd_elf32_arm_process_before_allocation call.
525 2004-09-13 Paul Brook <paul@codesourcery.com>
527 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
528 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
530 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
532 * configure: Regenerated with autconfig 2.13.
534 2004-09-07 Andreas Schwab <schwab@suse.de>
536 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
537 alignment before adjusting DATA_SEGMENT_RELRO_END.
539 2004-09-06 Mark Mitchell <mark@codesourcery.com>
541 * emulparams/armsymbian.sh: Use armbpabi script.
542 * scripttempl/armbpabi.sc: New script.
544 2004-09-02 Mark Mitchell <mark@codesourcery.com>
546 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
547 (earmsymbian.c): New target.
548 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
549 * Makefile.in: Regenerated.
550 * aclocal.m4: Likewise.
551 * configure: Likewise.
552 * emulparams/armsymbian.sh: New file.
554 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
556 * scripttempl/elf32crx.sc: Edit file with comments.
557 (.init): Add new section.
559 (.ctor): Control the linkage order.
562 2004-08-27 Nick Clifton <nickc@redhat.com>
564 * emultempl/pe.em (after_open): Do not assume that either bfd is
567 2004-08-26 Alan Modra <amodra@bigpond.net.au>
569 * ldlang.c (lang_init): Don't compare with TRUE.
571 2004-08-25 Dmitry Diky <diwil@spec.ru>
573 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
574 * scripttempl/elf32msp430.sc: Add .profiler section definition.
576 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
578 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
580 2004-08-19 Mark Mitchell <mark@codesourcery.com>
582 * configure.tgt (arm*-*-symbianelf*): New target.
583 (arm*-*-eabi*): Likewise.
585 2004-08-19 Jakub Jelinek <jakub@redhat.com>
587 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
588 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
589 (OPTION_NON_OVERLAPPING_OPD): Define.
590 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
591 --non-overlapping-opd option.
593 2004-08-18 Alan Modra <amodra@bigpond.net.au>
596 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
597 was already on the undefs list.
599 2004-08-17 Alan Modra <amodra@bigpond.net.au>
601 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
602 prefix the symbol field too.
604 2004-08-13 Alan Modra <amodra@bigpond.net.au>
606 * ldmain.c (link_callbacks): Remove "error_handler".
607 * ldmisc.c: Include elf-bfd.h.
608 (vfinfo): Sort comment. Handle %A. Use %A instead of
609 bfd_get_section_indent.
610 (error_handler): Delete.
611 * ldmisc.h (error_handler): Delete declaration.
613 2004-08-10 Alan Modra <amodra@bigpond.net.au>
615 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
616 ppc64_elf_restore_symbols.
618 2004-08-09 Alan Modra <amodra@bigpond.net.au>
620 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
621 .toc is too large on relocatable linking.
623 2004-08-09 Alan Modra <amodra@bigpond.net.au>
625 * emultempl/ppc64elf.em (ppc_after_open): Delete.
626 (LDEMUL_AFTER_OPEN): Don't define.
628 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
630 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
632 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
634 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
637 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
639 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
641 2004-07-26 Dmitry Diky <diwil@spec.ru>
643 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
644 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
646 * configure.tgt: Likewise.
647 * emulparams/msp430all.sh: Likewise.
648 * Makefile.in: Regenerate.
650 2004-07-23 Nick Clifton <nickc@redhat.com>
652 * emultempl/elf32.em (_place_orphan): Use an already existing
653 section name if that section does not have any flags set.
655 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
657 * ldlang.c (already_linked_hash_entry): Removed.
658 (already_linked): Likewise.
659 (already_linked_table): Likewise.
660 (section_already_linked): Call bfd_section_already_linked.
661 (lang_process): Replace already_linked_table_init with
662 bfd_section_already_linked_table_init and check return. Replace
663 already_linked_table_free with bfd_section_already_linked_table_free.
665 2004-07-21 Nick Clifton <nickc@redhat.com>
667 * ldlang.c (init_os): Make sure that the newly allocated userdata
668 structure is zeroed out.
670 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
672 * NEWS: Mention the new --add-needed/--no-add-needed and
673 --as-needed/--no-as-needed options.
675 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
677 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
678 check the add_needed field.
679 (dt_needed): New struct.
680 (gld${EMULATION_NAME}_try_needed): Change the first argument
681 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
682 bit in the file where the DT_NEEDED entry comes from.
683 (gld${EMULATION_NAME}_search_needed): Change the second
684 argument to a pointer to struct dt_needed.
685 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
686 (gld${EMULATION_NAME}_after_open): Likewise.
688 * ld.texinfo: Add --add-needed document.
689 * ldlang.c (new_afile): Set p->add_needed.
690 * ldlang.h (lang_input_statement_type): Add add_needed field.
691 * ldmain.h (add_needed): Declare.
692 * ldmain.c (add_needed): New global var.
693 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
694 OPTION_NO_ADD_NEEDED.
695 (ld_options): Likewise.
696 (parse_args): Handle them.
698 2004-07-13 Christof Petig <christof@petig-baender.de>
700 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
701 for endian-ness of extracted addend.
703 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
705 * pe-dll.c (auto_export): Filter on just the import prefix,
706 "_imp_", not "_imp__".
708 2004-07-09 Nick Clifton <nickc@redhat.com>
710 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
712 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
714 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
715 (eelf32crx.c): New target.
716 * Makefile.in: Regenerate.
717 * configure.tgt: Handle crx-*-elf*.
718 * emulparams/elf32crx.sh: New file.
719 * emultempl/crxelf.em: New file.
720 * scripttempl/elf32crx.sc: New file.
721 * NEWS: Mention new target.
723 2004-07-06 Nick Clifton <nickc@redhat.com>
725 * Makefile.am: Add eshlsymbian.c.
726 * Makefile.in: Regenerate.
727 * configure.tgt: Add sh*-symbian-elf target.
728 * emulparams/shlsymbian.sh: New file. Configure the
729 sh-symbian-elf linker scripts.
730 * scripttemp/elf32sh-symbian.sc: New file. Linker script
731 template for the sh-symbian-elf target.
733 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
735 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
736 * emulparams/hppalinux.sh: Likewise.
737 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
738 data segment and PLT_BEFORE_GOT is defined.
740 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
742 * ld.texinfo (WIN32): Document PE weak symbols.
744 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
746 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
748 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
750 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
753 2004-06-29 Alan Modra <amodra@bigpond.net.au>
755 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
758 2004-06-24 Alan Modra <amodra@bigpond.net.au>
760 * ldlang.c (print_output_section_statement): Don't print size before
762 (IGNORE_SECTION): Remove bfd arg. Update all callers.
764 * ldexp.c (fold_name): .. See below.
765 * ldlang.c (section_already_linked, print_output_section_statement,
766 print_input_section, insert_pad, size_input_section,
767 lang_check_section_addresses, lang_size_sections_1,
768 lang_size_sections, lang_do_assignments_1, lang_set_startof,
769 lang_one_common, lang_reset_memory_regions, lang_process,
770 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
771 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
772 * pe-dll.c (process_def_file, generate_reloc): ..
773 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
774 gld${EMULATION_NAME}_before_allocation): ..
775 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
776 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
777 sh64_elf_${EMULATION_NAME}_after_allocation): ..
778 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
779 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
780 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
781 "size" instead of "_raw_size" and "_cooked_size". Expand
782 bfd_section_size macro invocations.
784 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
786 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
787 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
788 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
790 (.tls): Define ___tls_start__ and ___tls_end__.
792 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
794 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
796 2004-06-18 Adam Nemet <anemet@lnxw.com>
798 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
799 * configure: Regenerate.
801 2004-06-15 Jakub Jelinek <jakub@redhat.com>
803 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
804 .gcc_except_table output sections lost accidentally with
807 2004-06-15 Alan Modra <amodra@bigpond.net.au>
809 * ldwrite.c (build_link_order): Use bfd_get_section_size
810 instead of bfd_get_section_size_before_reloc or _raw_size.
811 * pe-dll.c (process_def_file): Likewise.
813 2004-06-14 Alan Modra <amodra@bigpond.net.au>
815 From Richard Wirth <r.wirth@wirthware.de>
816 * ldlang.c (lang_finish): Don't free lang_definedness_table.
818 2004-05-29 Alan Modra <amodra@bigpond.net.au>
820 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
821 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
823 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
825 * testsuite/ld-sh/arch/arch.exp: New test script.
826 * testsuite/ld-sh/arch/arch_expected.txt: New file.
827 * testsuite/ld-sh/arch/sh.s: New file.
828 * testsuite/ld-sh/arch/sh2.s: New file.
829 * testsuite/ld-sh/arch/sh-dsp.s: New file.
830 * testsuite/ld-sh/arch/sh2e.s: New file.
831 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
832 * testsuite/ld-sh/arch/sh3.s: New file.
833 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
834 * testsuite/ld-sh/arch/sh3e.s: New file.
835 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
836 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
837 * testsuite/ld-sh/arch/sh4.s: New file.
838 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
839 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
840 * testsuite/ld-sh/arch/sh4a.s: New file.
842 2004-05-28 Alan Modra <amodra@bigpond.net.au>
844 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
846 * lexsup.c: Formatting. Wrap long lines.
847 * ldwrite.c: Update copyright date.
849 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
850 (output_section_callback): Nor SEC_KEEP here.
851 (gc_section_callback): Twiddle SEC_EXCLUDE here.
852 (lang_gc_wild): Delete. Fold into..
853 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
855 (lang_process): Always call lang_gc_sections.
856 (lang_place_orphans): Handle SEC_EXCLUDE sections.
857 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
860 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
862 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
863 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
864 * ldlang.c (lang_add_section): Likewise.
866 2004-05-26 Alan Modra <amodra@bigpond.net.au>
868 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
869 sections when doing a final link. Clear SEC_EXCLUDE when doing
870 a relocable link, except for SEC_DEBUGGING sections.
871 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
872 same condition here to drop SEC_EXCLUDE orphan sections.
874 2004-05-25 Alan Modra <amodra@bigpond.net.au>
876 * ldlang.c (lang_process): Call bfd_merge_sections later, and
877 only when not a relocatable link.
878 (print_input_section): Handle SEC_EXCLUDE sections.
879 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
880 (lang_do_assignments_1): Likewise.
881 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
882 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
883 * emultempl/hppaelf.em (build_section_lists): Likewise.
884 * emultempl/ppc64elf.em (build_toc_list): Likewise.
885 (build_section_lists): Likewise.
887 2004-05-23 Andreas Schwab <schwab@suse.de>
889 * ld.texinfo (Options): Fix typo in last change.
891 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
893 * ld.h (ld_config_type): Add new field: hash_table_size.
894 * ldmain.c: Initialise the new field to zero. If it is non-zero
895 after parsing the linker's command line call
896 bfd_hash_set_default_size.
897 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
898 (ld_options): Add hash-size.
899 (parse_args): Parse --hash-size option. Allow
900 --reduce-memory-overheads to set the default hash table size as
902 * ld.texinfo: Document the new switch. Also mention that
903 --reduce-memory-overheads can affect the hash table size.
904 * NEWS: Mention the new feature.
906 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
908 * NEWS: Mention new linker map file generation and the
909 --reduce-memory-overheads option.
910 * ld.texinfo: Document --reduce-memory-overheads option.
911 * ld.h (map_symbol_def): New struct.
912 (struct user_section_struct, section_userdata_type): Rename to:
913 (struct lean_user_section_struct, lean_section_userdata_type).
914 (struct fat_user_section_struct, fat_section_userdata_type): New.
915 (SECTION_USERDATA_SIZE): Define.
916 (args_type): New member reduce_memory_overheads.
917 * ldlang.c (map_obstack): New static variable.
918 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
919 (lang_map): Unless command_line.reduce_memory_overheads is set,
920 initialize lists of defined symbols for each section.
921 (print_input_section): Unless command_line.reduce_memory_overheads
922 is set, use print_all_symbols.
923 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
924 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
925 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
926 (ld_options): Add entry for --reduce-memory-overheads.
927 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
929 2004-05-19 Jakub Jelinek <jakub@redhat.com>
931 * ldgram.y (sect_constraint): New.
932 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
933 (section): Add sect_constraint. Pass additional argument
934 to lang_enter_output_section_statement.
935 * mri.c (mri_draw_tree): Pass additional argument to
936 lang_enter_output_section_statement.
937 * emultempl/pe.em (place_orphan): Likewise.
938 (output_prev_sec_find): Disregard output section statements with
940 * emultempl/mmo.em (output_prev_sec_find): Likewise.
941 (mmo_place_orphan): Pass additional argument to
942 lang_enter_output_section_statement.
943 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
944 statements with constraint == -1.
945 (place_orphan): Pass additional argument to
946 lang_enter_output_section_statement.
947 * ldlang.c (lang_enter_overlay_section): Likewise.
948 (lang_output_section_find_1): New.
949 (lang_output_section_find): Use it.
950 (lang_output_section_statement_lookup_1): New.
951 (lang_output_section_statement_lookup): Use it.
952 (check_section_callback, check_input_sections): New.
953 (map_input_to_output_sections): Check if all input sections
954 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
955 (strip_excluded_output_sections): Disregard output section statements
956 with constraint == -1.
957 (lang_record_phdrs): Likewise.
958 (lang_enter_output_section_statement): Add constraint argument.
959 Use lang_output_section_statement_lookup_1.
960 * ldlang.h (lang_output_section_statement_type): Add constraint
961 and all_input_readonly fields.
962 (lang_enter_output_section_statement): Adjust prototype.
963 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
964 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
965 segment if all input sections are readonly.
967 2004-05-19 Adam Nemet <anemet@lnxw.com>
969 * scripttempl/i386lynx.sc: Remove file.
971 2004-05-17 Bob Wilson <bob.wilson@acm.org>
973 * ld.texinfo (Output Section Address): Correct subsection name.
975 2004-05-17 Adam Nemet <anemet@lnxw.com>
977 * configure.tgt (powerpc-*-lynxos* case): New case.
978 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
979 * emulparams/ppclynx.sh: New file.
980 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
981 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
982 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
983 (eppclynx.c): New rule.
984 * Makefile.in: Regenerate.
986 2004-05-13 Joel Sherrill <joel@oarcorp.com>
988 * configure.tgt (or32-*-rtems*): Switch to elf and
989 support versioned targets.
991 2004-05-13 Nick Clifton <nickc@redhat.com>
993 * po/fr.po: Updated French translation.
995 2004-05-11 Jakub Jelinek <jakub@redhat.com>
997 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
998 for binaries, -shared and -pie.
999 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
1000 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
1001 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
1002 (OTHER_RELRO_SECTIONS): ... this.
1003 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
1004 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
1005 -z relro and -z norelro.
1006 (gld${EMULATION_NAME}_list_options): Add it to usage.
1007 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
1008 -z relro scripts when appropriate.
1009 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
1010 Create separate .got.plt section if SEPARATE_GOTPLT.
1011 Move sections which are only written during relocation handling
1012 to the beginning of RW segment. If NO_SMALL_DATA, move .got
1013 before .data. Add DATA_SEGMENT_RELRO_END directive.
1014 Include OTHER_RELRO_SECTIONS.
1015 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
1016 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
1017 (fold_unary): Likewise.
1018 (fold_binary): Handle -z relro.
1019 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
1020 exp_dataseg_relro_adjust phases. Add relro_end field.
1021 * ldmain.c (main): Initialize link_info.relro to FALSE.
1022 * ldlang.c (lang_size_sections): Handle -z relro.
1024 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
1026 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1028 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1030 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1031 before printing it with %W.
1033 2004-05-07 Brian Ford <ford@vss.fsi.com>
1034 DJ Delorie <dj@redhat.com>
1036 * emultempl/pe.em (real_flags): New static.
1037 (OPTION_LARGE_ADDRESS_AWARE): New define.
1038 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1039 (gld_${EMULATION_NAME}_list_options): Likewise.
1040 (gld${EMULATION_NAME}_handle_option): Likewise.
1041 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1042 * ld.texinfo: Document it.
1045 2004-05-07 Brian Ford <ford@vss.fsi.com>
1047 * NEWS: Mention DWARF 2 support for i386pe.
1049 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1051 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1054 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1056 * ldlang.c (unique_section_p): Pass section parm, return true on
1058 (output_section_callback): Adjust.
1059 * ldlang.h (unique_section_p): Update prototype.
1060 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1062 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1064 * ld.texinfo (--gc-sections): Remove restriction for
1067 2004-04-29 Brian Ford <ford@vss.fsi.com>
1069 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1070 for DWARF 2/3. Update stab section's syntax.
1072 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1074 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1075 (fill_edata): Correct pointer arithmetic.
1077 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1079 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1080 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1081 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1082 (EXTRA_EM_FILE): Use mipsecoff.em
1083 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1084 (EXTRA_EM_FILE): Use mipsecoff.em
1085 * emultempl/mipsecoff.em: Restructure to be included as an
1086 extra emulation file.
1087 (check_sections, gld${EMULATION_NAME}_after_open)
1088 (gld${EMULATION_NAME}_after_allocation)
1089 (gld${EMULATION_NAME}_get_script)
1090 (ld_${EMULATION_NAME}_emulation): Remove
1091 (gld${EMULATION_NAME}_before_parse): Rename to...
1092 (mipsecoff_before_parse): This.
1093 (LDEMUL_BEFORE_PARSE): Define.
1094 * emultempl/mipself.em: Remove file.
1095 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1096 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1098 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1099 * Makefile.in: Regenerate.
1101 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1103 * ld.texinfo (synthesizing on H8/300): Information about linker
1104 relaxation support for bit manipulation instructions and system
1105 control instructions is added.
1107 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1109 * NEWS: Mention change in DEFINED semantics.
1111 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1113 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1114 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1115 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1117 2004-04-21 Ben Elliston <bje@au.ibm.com>
1119 * ld.texinfo (Simple Example): Add missing punctuation.
1121 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1123 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1125 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1127 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1130 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1132 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1133 with default priority. Likewise for dtors.
1135 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1137 * configure.host: Remove mips*-dec-bsd* target.
1138 * configure.tgt: Likewise.
1140 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1142 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1143 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1144 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1145 * emultempl/irix.em: New file.
1146 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1148 * Makefile.in: Regenerate.
1150 2004-04-01 Paul Brook <paul@codesourcery.com>
1152 * emultempl/armelf.em (byteswap_code): Add.
1153 (arm_elf_before_allocation): Pass extra parameter.
1154 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1155 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1156 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1157 * emultempl/armelf_oabi.em: Pass extra parameter.
1158 * ld.texinfo: Document --be8.
1160 2004-03-30 Stan Shebs <shebs@apple.com>
1162 Remove long-obsolete MPW support.
1163 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1164 * Makefile.am (mpw): Remove file-presynthesizing actions.
1165 * Makefile.in: Likewise.
1166 * ldfile.c (slash): Remove MPW case.
1167 * ldlex.l [MPW]: Remove unused definition.
1169 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1171 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1172 (eelf32cr16c.c): New target.
1173 * Makefile.in: Regenerate.
1174 * configure.tgt: Handle cr16c-*-elf*.
1175 * emulparams/elf32cr16c.sh: New file.
1176 * scripttempl/elfcr16c.sc: Likewise
1177 * NEWS: Mention support for new target.
1179 2004-03-30 Nick Clifton <nickc@redhat.com>
1181 * po/sv.po: Updated Swedish translation.
1183 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1185 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1186 * emultempl/hppaelf.em: Likewise.
1187 * emultempl/ppc64elf.em: Likewise.
1188 * emultempl/sh64elf.em: Likewise.
1190 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1192 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1193 size_dynamic_sections call.
1195 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1198 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1199 link_info.wrap_char.
1201 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1203 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1204 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1206 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1208 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1210 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1212 * config.in: Regenerate.
1213 * po/ld.pot: Regenerate.
1215 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1217 * ld.texinfo: Add --as-needed doco.
1218 * ldmain.c (as_needed): New global var.
1219 * ldmain.h (as_needed): Declare.
1220 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1221 OPTION_NO_AS_NEEDED.
1222 (ld_options): Likewise.
1223 (parse_args): Handle them.
1224 * ldlang.h (lang_input_statement_type): Add as_needed field.
1225 * ldlang.c (new_afile): Set p->as_needed.
1226 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1227 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1228 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1230 * ldlang.c (open_input_bfds): Remove useless cast.
1231 (lang_do_assignments_1): Likewise.
1232 (lang_for_each_input_section): Delete.
1234 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1236 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1238 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1240 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1241 private when building implib.
1243 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1245 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1247 (IGNORE_SECTION): Ignore .tbss sections too.
1248 (lang_size_sections_1): .tbss sections do not advance dot.
1250 2004-03-01 Andreas Schwab <schwab@suse.de>
1252 * ld.texinfo (Options): Fix example for --wrap.
1254 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1256 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1259 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1261 * ldlang.c (lang_check): Use %P, not %E, in error message.
1263 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1265 * ldlang.h (struct lang_output_section_state): Change processed
1267 * ldexp.c (check, invalid): Remove.
1268 (fold_name): Move valid_p assignments. Create undefined symbol
1269 when needed. Directly exampine section's processd flag.
1270 * ldlang.c (lang_output_section_statement_lookup): Adjust
1271 processed field init.
1272 (lang_size_sections_1): Allow LOADADDR when determining section's
1273 VMA. Adjust error message. Fold data statement's expr.
1274 (lang_size_sections): Correctly increment lang_statement_iteration.
1276 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1278 * ldexp.c (fold_tree): Follow indirect symbols.
1280 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1282 * ldgram.y (exp): Add two operand ALIGN.
1283 * ldexp.c (fold_binary): Add ALIGN_K case.
1284 * ld.texinfo (ALIGN): Document two operand version.
1286 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1288 * ldlang.c (map_input_to_output_sections): Initialize sections
1289 mentioned in a data statement expression.
1290 (lang_do_assignments_1): Add data statement's expression's
1293 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1295 * ldgram.y (statement_anywhere): Add assert rule.
1296 * ldlang.c (exp_init_os): Add assert case.
1298 2004-02-14 Andrew Cagney <cagney@redhat.com>
1300 * ldmain.c (remove_output): Call bfd_cache_close.
1302 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1304 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1305 .MIPS.content* and .MIPS.events* sections.
1307 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1309 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1310 .note.gnu.arm.ident to after allocated sections. Mark its
1313 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1315 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1316 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1317 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1318 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1319 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1321 2004-02-05 Nick Clifton <nickc@redhat.com>
1323 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1325 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1327 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1329 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1331 * genscripts.sh: Fix typo.
1333 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1335 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1337 * emulparams/elf64_ia64.sh: Put .rela.opd into
1338 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1340 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1342 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1343 * ld.texinfo (--omagic): Note that writable text section
1344 does not conform to published PE-COFF specs.
1345 (--enable-auto-import): Likewise.
1347 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1349 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1351 2004-01-13 Nick Clifton <nickc@redhat.com>
1353 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1354 which if true will prevent the LMA region being used as a
1355 replacement for a default VMA region.
1356 (lang_leave_output_section_statement): Pass extra parameter.
1357 (lang_leave_overlay): Likewise.
1358 * ld.texinfo (Output Section LMA): Document that the LMA
1359 region can be set to the VMA region if no VMA has been set.
1360 * ldlang.h (struct lang_output_section_phdr_list): Create a
1361 typedef for this type. Minor formatting fixes.
1363 2004-01-13 Nick Clifton <nickc@redhat.com>
1365 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1366 assume that the section should be allocated.
1368 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1370 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1371 sections. Do ignore SEC_NEVER_LOAD sections.
1372 (lang_size_sections_1): Remove test made redundant with the above.
1374 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1376 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1377 program_header_size.
1379 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1381 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1382 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1383 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1384 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1385 (MAXPAGESIZE): Set to 64Kb.
1386 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1387 __ROFIXUP_END__. Don't map .rofixup.got any more.
1388 * emulparams/elf32frv.sh (NOP): Set.
1389 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1390 * configure.tgt: Add frv-*-*linux*.
1391 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1392 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1393 (eelf32frvfd.c): New.
1394 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1395 * emulparams/elf32frv.sh: Reverted previous two patches.
1396 * emulparams/elf32frvfd.sh: New.
1397 * Makefile.in: Rebuilt.
1398 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1399 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1400 .rofixup.got to .rofixup.
1401 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1402 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1403 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1405 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1407 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1408 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1410 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1412 * ldexp.c (align_n): Make static.
1413 * ldexp.h (align_n): Delete declaration.
1414 * ldlang.h (lang_enter_output_section_statement): Remove
1416 * ldlang.c (lang_enter_output_section_statement): Likewise.
1417 (TO_ADDR, TO_SIZE): Define.
1418 (opb_shift): New var.
1419 (init_opb): New function.
1420 (print_input_section): Call init_opb and use TO_ADDR.
1421 (print_data_statement, print_reloc_statement): Likewise.
1422 (print_padding_statement): Likewise.
1423 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1424 (lang_check_section_addresses): Likewise.
1425 (lang_size_sections_1): Likewise.
1426 (lang_do_assignments_1): Likewise.
1427 (lang_set_startof): Likewise.
1428 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1429 (lang_process): Call init_opb.
1430 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1431 (lang_enter_overlay_section): Adjust
1432 lang_enter_output_section_statement call.
1433 * ldgram.y: Likewise.
1434 * mri.c (mri_draw_tree): Likewise.
1435 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1436 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1437 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1439 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1440 * ldfile.h (ldfile_set_output_arch): Ditto.
1441 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1442 ldfile_set_output_arch.
1443 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1444 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1445 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1446 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1447 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1448 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1449 * ldgram.y: Adjust ldfile_set_output_arch call.
1450 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1451 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1452 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1453 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1454 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1455 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1456 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1458 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1460 * configure.tgt: Add m68k-uClinux target.
1462 For older changes see ChangeLog-0203
1468 version-control: never