1 2004-12-16 Martin Kögler <mkoegler@auto.tuwien.ac.at>
3 * ldmisc.c (vfinfo): Handle the case where %B is passed a NULL
6 2004-12-07 Ben Elliston <bje@gnu.org>
8 * ldemul.h: Forward declare struct option.
10 2004-12-01 Danny Smith <dannysmith@users.sourceforge.net>
12 * scripttempl/pe.sc (.data): Add .jcr subsection.
14 2004-11-30 Paul Brook <paul@codesourcery.com>
16 * emultempl/armelf.em: Ignore -p and -no-pipeline-knowledge.
18 2004-11-30 Tero Niemela <tero_niemela@yahoo.com>
20 * Makefile.am: Change LOCALEDIR to $(datadir)/share.
21 * Makefile.in: Regenerate.
23 2004-11-26 Melissa Mears <asterisk@graces.dricas.com>
25 * emultempl/pe.em: Add --subsystem:xbox as well as
27 * ld.texinfo: (ld_options): Document acceptance of subsystem xbox
28 and numeric subsystems.
30 2004-11-24 Alan Modra <amodra@bigpond.net.au>
32 * ldexp.c (fold_name): Correct PR 338 fix.
34 2004-11-19 Mark Mitchell <mark@codesourcery.com>
36 * Makefile.am (ALL_EMULATIONS): Add earmelf_linux_eabi.o.
37 (earmelf_linux_eabi.c): New target.
38 * configure.tgt (arm*-*-linux-gnueabi): Handle it.
39 * emulparams/armelf_linux_eabi.sh: New file.
40 * Makefile.in: Regenerated.
42 2004-11-19 Nick Clifton <nickc@redhat.com>
45 * ld.texinfo (MEMORY): Update the descriptions of the ORIGIN and
46 LENGTH fields in the MEMORY command, to explicitly state that
47 symbols cannot be used in their expressions.
49 2004-11-19 Jon Beniston <jon@beniston.com>
51 * ld/ldlex.l: Allow ORIGIN and LENGTH in EXPRESSION.
52 * ld/ldgram.y: Add ORIGIN and LENGTH expressions.
53 * ld/ldexp.c (fold_name): Implement LENGTH() and ORIGIN() functions
54 which return the length and origin of a memory.
55 * ld/ld.texinfo: Document LENGTH() and ORIGIN() functions.
56 * NEWS: Mention support for ORIGIN and LENGTH operators.
58 2004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
60 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Don't use
61 a dynamic object for stubs.
63 2004-11-04 Paul Brook <paul@codesourcery.com>
65 * ld.texinfo: Document --default-imported-symver.
66 * ldmain.c (main): Set link_info.default_imported_symver.
67 * lexsup.c (option_values): Add OPTION_DEFAULT_IMPORTED_SYMVER.
68 (ld_options): Add --default-imported-symver.
69 (parse_args): Handle OPTION_DEFAULT_IMPORTED_SYMVER.
71 2004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
72 Vineet Sharma <vineets@noida.hcltech.com>
74 * Makefile.am: Add entries for new maxq-coff target.
75 * Makefile.in: Regenerate.
76 * configure.tgt: Add support for maxq.
77 * emulparams/maxqcoff.sh: New File.
78 * scripttempl/maxqcoff.sc: New linker script for target maxq.
79 * NEWS: Mention the new target.
81 2004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
83 * testsuite/ld-scripts/weak.exp: Enable test on PE,
85 * testsuite/ld-undefined/weak-undef.exp: Enable test on PE,
87 * testsuite/lib/ld-lib.exp (is_pecoff_format): New.
89 2004-11-04 Daniel Jacobowitz <dan@debian.org>
91 * Makefile.am (ALL_EMULATIONS): Remove earmelf_oabi.o.
92 (earmelf_oabi.c): Remove rule.
93 * configure.tgt: Remove arm-*-oabi and thumb-*-oabi.
94 * emulparams/armelf_oabi.sh, emultempl/armelf_oabi.em: Delete files.
95 * Makefile.in: Regenerated.
97 2004-11-04 Hans-Peter Nilsson <hp@axis.com>
99 * configure.tgt (crisv32-*-*): Handle like cris-*-* for non-aout.
100 * emulparams/criself.sh (INIT_START): Remove emitted "push srp".
102 (INIT_END): Remove emitted "jump [sp+]".
105 2004-11-04 Alan Modra <amodra@bigpond.net.au>
107 * emultempl/ppc64elf.em (no_tls_opt): Rename from notlsopt.
108 (no_opd_opt, no_toc_opt): New static vars.
109 (ppc_before_allocation): Don't edit opt if no_opd_opt. Call
111 (OPTION_NO_OPD_OPT, OPTION_NO_TOC_OPT): Define.
112 (PARSE_AND_LIST_LONGOPTS): Add no-opd-optimize and no-toc-optimize.
113 (PARSE_AND_LIST_OPTIONS): Describe new options.
114 (PARSE_AND_LIST_ARGS_CASES): Handle them.
116 2004-10-27 Nick Clifton <nickc@redhat.com>
118 * emultempl/alphaelf.em (alpha_after_parse): Add extra, NULL,
119 parameter to invocation of lang_section_start.
120 * emultempl/aix.em (_handle_option): Likewise.
122 * Makefile.am (eelf64alpha.c, eelf64alpha_fbsd.c,
123 eelf64alpha_nbsd.c): Add dependency upon emultempl/alphaelf.em.
124 * Makefile.in: Regenerate.
126 2004-10-26 Mark Mitchell <mark@codesourcery.com>
128 * emulparams/armelf.sh (OTHER_READONLY_SECTIONS): Do not emit
129 __exidx_{start,end} when not relocating.
131 2004-10-25 Mark Mitchell <mark@codesourcery.com>
133 * Makefile.in (earmsymbian.c): Depend on armbpabi.sc, not elf.sc.
134 * ldexp.h (segment_type): New type.
135 (segments): New variable.
136 * ldexp.c (segments): New variable.
137 (exp_print_token): Handle SEGMENT_START.
138 (fold_binary): Likewise.
139 * ldgram.y (SEGMENT_START): Declare it as a token.
140 (exp): Handle SEGMENT_START.
141 * ldlang.h (lang_address_statement_type): Add segment field.
142 (lang_section_start): Change prototype.
143 * ldlang.c (map_input_to_output_sections): Do not process section
144 assignments if a corresponding SEGMENT_START has already been
146 (lang_section_start): Add segment parameter.
147 * ldlex.l (SEGMENT_START): Add it.
148 * lexsup.c (seg_segment_start): New function.
149 (parse_args): Use it for -Tbss, -Tdata, and -Ttext.
150 * ld.texinfo (SEGMENT_START): Document it.
151 * emulparams/armsymbian.sh (EMBEDDED): Set it.
152 * scripttempl/armbpabi.sc: Use SEGMENT_START to control segment
153 base addresses. Do not map relocations.
154 * NEWS: Mention SEGMENT_START.
156 2004-10-26 Paul Brook <paul@codesourcery.com>
158 * ld.texinfo: Document --default-symver.
159 * ldmain.c (main): Set link_info.create_default_symver.
160 * lexsup.c (enum option_values): Add OPTION_DEFAULT_SYMVER.
161 (ld_options): Add default-symver.
162 (parse_args): Handle OPTION_DEFAULT_SYMVER.
164 2004-10-24 Danny Smith <dannysmith@users.sourceforge.net>
166 * pe-dll.c (process_def_file): Don't export all symbols by default if
167 building a position-independent executable.
169 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
172 * ldmain.c (reloc_overflow): Accept a pointer to struct
173 bfd_link_hash_entry. Report symbol location for relocation
176 2004-10-21 H.J. Lu <hongjiu.lu@intel.com>
178 * genscripts.sh (libpath.exp): Really generate for first
181 2004-10-19 Danny Smith <dannysmith@users.sourceforge.net>
183 * emultempl/pe.em (gld_${EMULATION_NAME}_after_open): Simplify
184 comparison and replacement of filenames.
186 2004-10-19 H.J. Lu <hongjiu.lu@intel.com>
189 * ldlang.c (load_symbols): Use the same -Bdynamic/-Bstatic
190 option on linker script as the one for linker script.
192 2004-10-16 Daniel Jacobowitz <dan@debian.org>
194 * ldlang.c (struct excluded_lib, excluded_libs, add_excluded_libs)
195 (check_excluded_libs): New.
196 (load_symbols): Call check_excluded_libs.
197 * ldlang.h (add_excluded_libs): New prototype.
198 * emultempl/elf32.em (OPTION_EXCLUDED_LIBS): Define.
199 (gld${EMULATION_NAME}_add_options): Add --exclude-libs.
200 (gld${EMULATION_NAME}_handle_option): Handle --exclude-libs.
201 * ld.texinfo (Command Line Variables): Document --exclude-libs.
202 (Options Specific to i386 PE Targets): Remove --exclude-libs.
204 2004-10-15 Alan Modra <amodra@bigpond.net.au>
206 * ldexp.c (exp_fold_tree): Don't immediately exit ld on a
207 failing link script assert.
209 * ldctor.c (ldctor_add_set_entry): Fix comment typo.
211 2004-10-14 H.J. Lu <hongjiu.lu@intel.com>
214 * emulparams/elf64_ia64.sh (SMALL_DATA_CTOR): Set.
215 (SMALL_DATA_DTOR): Set.
216 * emulparams/elf64_ia64_fbsd.sh (SMALL_DATA_CTOR): Unset.
217 (SMALL_DATA_DTOR): Unset.
218 * scripttempl/elf.sc: If SMALL_DATA_CTOR is set, move .ctors
219 after .data. If SMALL_DATA_DTOR is set, move .dtors after
222 2004-10-14 Alan Modra <amodra@bigpond.net.au>
225 * ldlang.h (lang_output_section_statement_type): Make "next" a
226 struct lang_output_section_statement_struct *.
227 (struct orphan_save): Move from elf32.em. Add "name" and "flags".
228 (lang_output_section_find_by_flags, lang_insert_orphan): Declare.
229 * ldlang.c (lang_output_section_find_1): Adjust for changed
230 output_section_statement "next".
231 (strip_excluded_output_sections): Likewise.
232 (lang_record_phdrs): Likewise.
233 (lang_output_section_find_by_flags): New function.
234 (output_prev_sec_find): Move from pe.em. Adjust iterator.
235 (lang_insert_orphan): New function. Tail end of elf32.em's
236 place_orphan merged with that from pe.em. Allow bfd_section to
237 be placed first. New heuristic for placing new output section
238 statement in existing script, and accompanying split of __start
239 symbol alignment into a separate assignment to dot.
240 (lang_add_section): Consistently use output->bfd_section rather than
241 an alias, section->output_section.
242 (map_input_to_output_sections): Rename overly long arg. Move
243 initialization of data_statement output section to here..
244 (lang_check_section_addresses): ..from here.
245 (print_assignment): Correct printing of etree_assert.
246 (print_all_symbols): Don't bomb if userdata is NULL.
247 (IGNORE_SECTION): Rearrange.
248 * emultempl/elf32.em (output_rel_find): Adjust interator.
249 (output_prev_sec_find): Delete.
250 (struct orphan_save): Delete.
251 (gld${EMULATION_NAME}_place_orphan): Cater for zero bfd_section
252 flags without creating a duplicate output section statement.
253 Revise code holding history of various orphan section placements.
254 Allow orphan sections to place before script specified output
255 sections. Call lang_output_section_find_by_flags when placement
256 by name fails. Use lang_insert_orphan.
257 * emultempl/mmo.em (output_prev_sec_find): Delete.
258 (struct orphan_save): Delete.
259 (mmo_place_orphan): Revise code holding history of orphan placement.
260 Allow orphans to place before existing output sections. Use
262 * emultempl/pe.em (output_prev_sec_find): Delete.
263 (struct orphan_save): Delete.
264 (gld_${EMULATION_NAME}_place_orphan): Revise to suit use of
267 2004-10-13 Mark Mitchell <mark@codesourcery.com>
269 * scripttempl/armbpabi.sc: Do not put .gnu.version.* into a
272 2004-10-13 Alan Modra <amodra@bigpond.net.au>
275 * ldcref.c (check_section_sym_xref): Delete.
276 (check_local_sym_xref): New function.
277 (check_nocrossrefs): Adjust call.
278 * emultempl/pe.em (struct orphan_save): Add os_tail.
279 (place_orphan): Backport assorted fixes from elf32.em.
281 2004-10-12 Bob Wilson <bob.wilson@acm.org>
283 * emultempl/xtensaelf.em: Use ISO C90 formatting.
285 2004-10-11 Jakub Jelinek <jakub@redhat.com>
287 * emultempl/elf32.em (gld${EMULATION_NAME}_parse_ld_so_conf): Avoid
288 getline for portability.
290 * emultempl/elf32.em (gld${EMULATION_NAME}_ld_so_conf): New structure.
291 (gld${EMULATION_NAME}_parse_ld_so_conf,
292 gld${EMULATION_NAME}_parse_ld_so_conf_include): New functions.
293 (gld${EMULATION_NAME}_check_ld_so_conf): Use them.
295 2004-10-11 Alan Modra <amodra@bigpond.net.au>
298 * ldfile.c (ldfile_try_open_bfd): Ensure dynamic objects are
299 rejected when linking statically.
301 2004-10-08 Daniel Jacobowitz <dan@debian.org>
303 * configure.tgt: Include elf_x86_64 for i[3-7]86-*-solaris2*.
305 2004-10-07 Bob Wilson <bob.wilson@acm.org>
307 * ld.texinfo (Xtensa): Describe new linker relaxation to optimize
308 assembler-generated longcall sequences. Describe new --size-opt
310 * emulparams/elf32xtensa.sh (OTHER_SECTIONS): Add .xt.prop section.
311 * emultempl/xtensaelf.em (remove_section,
312 replace_insn_sec_with_prop_sec, replace_instruction_table_sections,
313 elf_xtensa_after_open): New.
314 (OPTION_OPT_SIZEOPT, OPTION_LITERAL_MOVEMENT,
315 OPTION_NO_LITERAL_MOVEMENT): Define.
316 (elf32xtensa_size_opt, elf32xtensa_no_literal_movement): New globals.
317 (PARSE_AND_LIST_LONGOPTS): Add size-opt and [no-]literal-movement.
318 (PARSE_AND_LIST_OPTIONS): Add --size-opt.
319 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_OPT_SIZEOPT,
320 OPTION_LITERAL_MOVEMENT, and OPTION_NO_LITERAL_MOVEMENT.
321 (LDEMUL_AFTER_OPEN): Set to elf_xtensa_after_open.
322 * scripttempl/elfxtensa.sc: Update with changes from elf.sc.
323 * Makefile.am (eelf32xtensa.c): Update dependencies.
324 * Makefile.in: Regenerate.
326 2004-10-07 Jeff Baker <jbaker@qnx.com>
328 * lexsup.c: Handle --warn-shared-textrel option.
329 (ld_options): Restore alpha sorting of options.
330 * ldmain.c (main): Initialise warn_shared_info field to FALSE.
331 * ld.texinfo: Add documentation for --warn-shared-textrel.
332 * NEWS: Added mention of --warn-shared-textrel option.
334 2004-10-05 Tomer Levi <Tomer.Levi@nsc.com>
336 * emultempl/crxelf.em (disable_relaxation): Add.
337 (crxelf_before_allocation): Enable --relax option by default.
338 (PARSE_AND_LIST_PROLOGUE): Add OPTION_NO_RELAX.
339 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --no-relax.
340 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_NO_RELAX.
342 2004-10-04 H.J. Lu <hongjiu.lu@intel.com>
344 * NEWS: Mention SORT_BY_NAME, SORT_BY_ALIGNMENT and
345 --sort-section name|alignment.
347 * ld.texinfo: Document SORT_BY_NAME, SORT_BY_ALIGNMENT and
348 --sort-section name|alignment.
350 * ld.h (sort_type): New enum.
351 (wildcard_spec): Change the type of `sorted' to sort_type.
353 * ldgram.y (SORT): Removed.
354 (SORT_BY_NAME): Added.
355 (SORT_BY_ALIGNMENT): Added.
356 (wildcard_spec): Updated `sorted'. Handle SORT_BY_NAME and
358 (input_section_spec_no_keep): Updated `sorted'.
359 (statement): Replace SORT with SORT_BY_NAME.
361 * ldlang.c (compare_section): New function to compare 2
362 sections with different sorting schemes.
363 (wild_sort): Updated. Use compare_section.
364 (update_wild_statements): New function.
365 (lang_process): Call update_wild_statements before
366 map_input_to_output_sections.
368 * ldlex.l (SORT_BY_NAME): New.
369 (SORT_BY_ALIGNMENT): New.
370 (SORT): Return SORT_BY_NAME.
372 * ldmain.c (sort_section): New. Defined.
373 (main): Initialize it to none.
375 * lexsup.c (option_values): Add OPTION_SORT_SECTION.
376 (ld_options): Add an entry for OPTION_SORT_SECTION.
377 (parse_args): Handle OPTION_SORT_SECTION.
379 * mri.c (mri_draw_tree): Updated `sorted'.
381 2004-10-04 Jakub Jelinek <jakub@redhat.com>
383 * ldgram.y (DATA_SEGMENT_RELRO_END): Add one argument.
384 * scripttempl/elf.sc (DATA_SEGMENT_RELRO_END): Add 0 as first
386 (DATA_SEGMENT_RELRO_GOTPLT_END): Pass $SEPARATE_GOTPLT as first
387 and . as second argument.
388 (GOTPLT): Move $DATA_SEGMENT_RELRO_GOTPLT_END before the section.
389 * ldexp.c (fold_unary): Remove DATA_SEGMENT_RELRO_END handling here.
390 (fold_binary): Add it here. Insert padding to make relro_end
391 COMMONPAGESIZE bytes aligned. For DATA_SEGMENT_ALIGN in
392 exp_dataseg_relro_adjust phase just use previously computed
394 * ldlang.c (lang_size_sections): Set exp_data_seg.base for
395 relro_adjust here. Call lang_size_sections_1 once more if there
396 was too big padding at DATA_SEGMENT_RELRO_END.
397 * ld.texinfo (DATA_SEGMENT_RELRO_END): Add documentation.
399 2004-10-01 Paul Brook <paul@codesourcery.com>
401 * emulparams/armelf.sh: Add unwinding table sections.
403 2004-09-30 Filip Navara <navaraf@reactos.com>
405 * emultempl/pe.em (gld_${EMULATION_NAME}_set_symbols): Generate
406 correct base address for position independant executables.
407 * pe-dll.c (pe_dll_fill_sections): Don't mark position independant
410 2004-09-30 Paul Brook <paul@codesourcery.com>
412 * ld.texinfo: Document --target2=abs.
413 * emulparms/armsymbian.sh (TARGET2_TYPE): Set.
415 2004-09-29 Nick Clifton <nickc@redhat.com>
417 * scripttempl/xstormy16.sc: Only perform the assignments to the
418 ROM region when not performing a relocatable link. The ROM region
419 does not start at address 0, but the sections will.
420 * Makefile.am: Fix linker script dependency for the generation of
422 * Makefile.in: Regenerate.
424 2004-09-18 Filip Navara <navaraf@reactos.com>
426 * emulparams/arm_epoc_pe.sh, emulparams/armpe.sh, emulparams/i386pe.sh,
427 emulparams/i386pe_posix.sh, emulparams/mcorepe.sh,
428 emulparams/mipspe.sh, emulparams/ppcpe.sh, scripttempl/pe.sc: Define
430 * scripttempl/pe.sc: Make the virtual address and file offset synced if
431 the alignment is lower than the target page size.
433 2004-09-27 Filip Navara <navaraf@reactos.com>
435 * emultempl/pe.em (gld_${EMULATION_NAME}_unrecognized_file): Allow
436 def_file_parse to handle pe_def_file if NULL and prevent crash with
439 2004-09-27 Alan Modra <amodra@bigpond.net.au>
441 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Enable
442 --emit-stub-syms automatically when --emit-relocs.
444 2004-09-24 Paul Brook <paul@codeosurcery.com>
446 * scripttempl/elf.sc: Keep .preinit_array, .init_array and
447 .fini_array sections.
449 2004-09-19 Andreas Schwab <schwab@suse.de>
451 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Adjust data segment
452 base so that relro end is suitably aligned.
454 2004-09-17 Paul Brook <paul@codesourcery.com>
456 * ld.texinfo: Rename arm-specific section. Document --target*
457 * emulparams/armelf_fbsd.sh: Set TARGET2_TYPE.
458 * emulparams/armelf_linux.sh: Ditto.
459 * emulparams/armelf_nbsd.sh: Ditto.
460 * emultempl/armelf.em: Set default for TARGET2_TYPE.
461 (target2_type): New variable.
462 (arm_elf_before_allocation): Don't pass target1_type.
463 (arm_elf_create_output_section_statements): New function.
464 (PARSE_AND_LIST_PROLOGUE): Add OPTION_TARGET2.
465 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --target=.
466 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_TARGET2.
467 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Set.
468 * emultempl/armelf_oabi.em (_before_allocation): Remove extra
469 argument to bfd_elf32_arm_process_before_allocation.
471 2004-09-17 Alan Modra <amodra@bigpond.net.au>
473 * ldexp.c (fold_name): Update u.undef.next refs.
474 * emultempl/pe.em: Likewise.
475 * emultempl/sunos.em: Likewise.
477 2004-09-17 Alan Modra <amodra@bigpond.net.au>
479 * Makefile.am: Run "make dep-am".
480 * Makefile.in: Regenerate.
481 * config.in: Regenerate.
482 * configure: Regenerate.
483 * aclocal.m4: Regenerate.
484 * po/ld.pot: Regenerate.
486 2004-09-16 Tomer Levi <Tomer.Levi@nsc.com>
488 * scripttempl/elf32crx.sc (.init): Add KEEP for section's *personality*.
492 2004-09-16 Alan Modra <amodra@bigpond.net.au>
494 * emultempl/armelf_oabi.em (before_allocation): Add extra zero param
495 to bfd_elf32_arm_process_before_allocation call.
497 2004-09-13 Paul Brook <paul@codesourcery.com>
499 * emulparams/armsymbian.sh: Set TARGET1_IS_REL.
500 * emultempl/armelf.em: Use TARGET1_IS_REL. Add --target1-{rel,abs}.
502 2004-09-07 H.J. Lu <hongjiu.lu@intel.com>
504 * configure: Regenerated with autconfig 2.13.
506 2004-09-07 Andreas Schwab <schwab@suse.de>
508 * ldexp.c (fold_binary) [DATA_SEGMENT_ALIGN]: Apply data segment
509 alignment before adjusting DATA_SEGMENT_RELRO_END.
511 2004-09-06 Mark Mitchell <mark@codesourcery.com>
513 * emulparams/armsymbian.sh: Use armbpabi script.
514 * scripttempl/armbpabi.sc: New script.
516 2004-09-02 Mark Mitchell <mark@codesourcery.com>
518 * Makefile.am (ALL_EMULATIONS): Add earmsymbian.o.
519 (earmsymbian.c): New target.
520 * configure.tgt: Use armsymbian emulation for arm*-*-symbianelf*.
521 * Makefile.in: Regenerated.
522 * aclocal.m4: Likewise.
523 * configure: Likewise.
524 * emulparams/armsymbian.sh: New file.
526 2004-09-03 Tomer Levi <Tomer.Levi@nsc.com>
528 * scripttempl/elf32crx.sc: Edit file with comments.
529 (.init): Add new section.
531 (.ctor): Control the linkage order.
534 2004-08-27 Nick Clifton <nickc@redhat.com>
536 * emultempl/pe.em (after_open): Do not assume that either bfd is
539 2004-08-26 Alan Modra <amodra@bigpond.net.au>
541 * ldlang.c (lang_init): Don't compare with TRUE.
543 2004-08-25 Dmitry Diky <diwil@spec.ru>
545 * emulparams/msp430all.sh: Fix RAM sizes for all targets.
546 * scripttempl/elf32msp430.sc: Add .profiler section definition.
548 2004-08-24 H.J. Lu <hongjiu.lu@intel.com>
550 * ldlang.c (wildcardp): Defined as a macro with strpbrk.
552 2004-08-19 Mark Mitchell <mark@codesourcery.com>
554 * configure.tgt (arm*-*-symbianelf*): New target.
555 (arm*-*-eabi*): Likewise.
557 2004-08-19 Jakub Jelinek <jakub@redhat.com>
559 * emultempl/ppc64elf.em (non_overlapping_opd): New variable.
560 (ppc_before_allocation): Pass it to ppc64_elf_edit_opd).
561 (OPTION_NON_OVERLAPPING_OPD): Define.
562 (PARSE_AND_LIST_OPTIONS, PARSE_AND_LIST_ARGS_CASES): Add
563 --non-overlapping-opd option.
565 2004-08-18 Alan Modra <amodra@bigpond.net.au>
568 * ldexp.c (fold_name): Don't call bfd_link_add_undef if the symbol
569 was already on the undefs list.
571 2004-08-17 Alan Modra <amodra@bigpond.net.au>
573 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Dot
574 prefix the symbol field too.
576 2004-08-13 Alan Modra <amodra@bigpond.net.au>
578 * ldmain.c (link_callbacks): Remove "error_handler".
579 * ldmisc.c: Include elf-bfd.h.
580 (vfinfo): Sort comment. Handle %A. Use %A instead of
581 bfd_get_section_indent.
582 (error_handler): Delete.
583 * ldmisc.h (error_handler): Delete declaration.
585 2004-08-10 Alan Modra <amodra@bigpond.net.au>
587 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Call
588 ppc64_elf_restore_symbols.
590 2004-08-09 Alan Modra <amodra@bigpond.net.au>
592 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Error if
593 .toc is too large on relocatable linking.
595 2004-08-09 Alan Modra <amodra@bigpond.net.au>
597 * emultempl/ppc64elf.em (ppc_after_open): Delete.
598 (LDEMUL_AFTER_OPEN): Don't define.
600 2004-08-02 Stephane Carrez <stcarrez@nerim.fr>
602 * ld.texinfo (Top): Document specific options of 68HC11 and 68HC12.
604 2004-08-01 Stephane Carrez <stcarrez@nerim.fr>
606 * scripttempl/elfm68hc12.sc: Align text, rodata and data section
609 2004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
611 * emulparams/hppanbsd.sh (OUTPUT_FORMAT): Set to "elf32-hppa-netbsd".
613 2004-07-26 Dmitry Diky <diwil@spec.ru>
615 * Makefile.am: Add new subtargets: msp430x1610, msp430x1611,
616 msp430x1612, msp430x415, msp430x417, msp430xG437, msp430xG438,
618 * configure.tgt: Likewise.
619 * emulparams/msp430all.sh: Likewise.
620 * Makefile.in: Regenerate.
622 2004-07-23 Nick Clifton <nickc@redhat.com>
624 * emultempl/elf32.em (_place_orphan): Use an already existing
625 section name if that section does not have any flags set.
627 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
629 * ldlang.c (already_linked_hash_entry): Removed.
630 (already_linked): Likewise.
631 (already_linked_table): Likewise.
632 (section_already_linked): Call bfd_section_already_linked.
633 (lang_process): Replace already_linked_table_init with
634 bfd_section_already_linked_table_init and check return. Replace
635 already_linked_table_free with bfd_section_already_linked_table_free.
637 2004-07-21 Nick Clifton <nickc@redhat.com>
639 * ldlang.c (init_os): Make sure that the newly allocated userdata
640 structure is zeroed out.
642 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
644 * NEWS: Mention the new --add-needed/--no-add-needed and
645 --as-needed/--no-as-needed options.
647 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
649 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): Also
650 check the add_needed field.
651 (dt_needed): New struct.
652 (gld${EMULATION_NAME}_try_needed): Change the first argument
653 to a pointer to struct dt_needed. Check the DYN_NO_ADD_NEEDED
654 bit in the file where the DT_NEEDED entry comes from.
655 (gld${EMULATION_NAME}_search_needed): Change the second
656 argument to a pointer to struct dt_needed.
657 (gld${EMULATION_NAME}_check_ld_so_conf): Updated.
658 (gld${EMULATION_NAME}_after_open): Likewise.
660 * ld.texinfo: Add --add-needed document.
661 * ldlang.c (new_afile): Set p->add_needed.
662 * ldlang.h (lang_input_statement_type): Add add_needed field.
663 * ldmain.h (add_needed): Declare.
664 * ldmain.c (add_needed): New global var.
665 * lexsup.c (option_values): Add OPTION_ADD_NEEDED and
666 OPTION_NO_ADD_NEEDED.
667 (ld_options): Likewise.
668 (parse_args): Handle them.
670 2004-07-13 Christof Petig <christof@petig-baender.de>
672 * emultempl/pe.em (make_import_fixup): Use bfd_get_32 to correct
673 for endian-ness of extracted addend.
675 2004-07-13 Danny Smith <dannysmith@usesr.sourceforge.net>
677 * pe-dll.c (auto_export): Filter on just the import prefix,
678 "_imp_", not "_imp__".
680 2004-07-09 Nick Clifton <nickc@redhat.com>
682 * configure.tgt: Change sh-sybmian-elf to sh-*-symbianelf.
684 2004-07-06 Tomer Levi <Tomer.Levi@nsc.com>
686 * Makefile.am (ALL_EMULATIONS): Add eelf32crx.o.
687 (eelf32crx.c): New target.
688 * Makefile.in: Regenerate.
689 * configure.tgt: Handle crx-*-elf*.
690 * emulparams/elf32crx.sh: New file.
691 * emultempl/crxelf.em: New file.
692 * scripttempl/elf32crx.sc: New file.
693 * NEWS: Mention new target.
695 2004-07-06 Nick Clifton <nickc@redhat.com>
697 * Makefile.am: Add eshlsymbian.c.
698 * Makefile.in: Regenerate.
699 * configure.tgt: Add sh*-symbian-elf target.
700 * emulparams/shlsymbian.sh: New file. Configure the
701 sh-symbian-elf linker scripts.
702 * scripttemp/elf32sh-symbian.sc: New file. Linker script
703 template for the sh-symbian-elf target.
705 2004-07-05 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
707 * emulparams/hppa64linux.sh: Define PLT_BEFORE_GOT.
708 * emulparams/hppalinux.sh: Likewise.
709 * scripttempl/elf.sc: Place .plt just before .got when .plt is in
710 data segment and PLT_BEFORE_GOT is defined.
712 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
714 * ld.texinfo (WIN32): Document PE weak symbols.
716 2004-07-02 Kaz Kojima <kkojima@rr.iij4u.or.jp>
718 * emulparams/shlelf32_linux.sh (COMMONPAGESIZE): Set to 4KB.
720 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
722 * ldmisc.c (vfinfo): Call bfd_get_section_ident to identify
725 2004-06-29 Alan Modra <amodra@bigpond.net.au>
727 * ldlang.c (lang_reset_memory_regions): Save last relax pass section
730 2004-06-24 Alan Modra <amodra@bigpond.net.au>
732 * ldlang.c (print_output_section_statement): Don't print size before
734 (IGNORE_SECTION): Remove bfd arg. Update all callers.
736 * ldexp.c (fold_name): .. See below.
737 * ldlang.c (section_already_linked, print_output_section_statement,
738 print_input_section, insert_pad, size_input_section,
739 lang_check_section_addresses, lang_size_sections_1,
740 lang_size_sections, lang_do_assignments_1, lang_set_startof,
741 lang_one_common, lang_reset_memory_regions, lang_process,
742 lang_abs_symbol_at_end_of, lang_do_version_exports_section): ..
743 * ldwrite.c (build_link_order, clone_section, ds, split_sections): ..
744 * pe-dll.c (process_def_file, generate_reloc): ..
745 * emultempl/elf32.em (gld${EMULATION_NAME}_find_statement_assignment,
746 gld${EMULATION_NAME}_before_allocation): ..
747 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): ..
748 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation,
749 sh64_elf_${EMULATION_NAME}_after_allocation): ..
750 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): ..
751 * emultempl/xtensaelf.em (ld_assign_relative_paged_dot,
752 ld_local_file_relocations_fit, ld_xtensa_insert_page_offsets): Use
753 "size" instead of "_raw_size" and "_cooked_size". Expand
754 bfd_section_size macro invocations.
756 2004-06-22 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
758 * ld/scripttemp/pe.sc (.CRT): Define ___crt_xc_start__,
759 ___crt_xc_end__, ___crt_xi_start__, ___crt_xi_end__, ___crt_xl_start__,
760 ___crt_xp_start__, ___crt_xp_end__, ___crt_xt_start__ and
762 (.tls): Define ___tls_start__ and ___tls_end__.
764 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
766 * emulparams/elf32frvfd.sh (GENERATE_PIE_SCRIPT): Set to yes.
768 2004-06-18 Adam Nemet <anemet@lnxw.com>
770 * configure.in: Set EXTRA_SHLIB_EXTENSION to .a for LynxOS.
771 * configure: Regenerate.
773 2004-06-15 Jakub Jelinek <jakub@redhat.com>
775 * scripttempl/elf.sc: Readd KEEP and .gcc_except_table.* to
776 .gcc_except_table output sections lost accidentally with
779 2004-06-15 Alan Modra <amodra@bigpond.net.au>
781 * ldwrite.c (build_link_order): Use bfd_get_section_size
782 instead of bfd_get_section_size_before_reloc or _raw_size.
783 * pe-dll.c (process_def_file): Likewise.
785 2004-06-14 Alan Modra <amodra@bigpond.net.au>
787 From Richard Wirth <r.wirth@wirthware.de>
788 * ldlang.c (lang_finish): Don't free lang_definedness_table.
790 2004-05-29 Alan Modra <amodra@bigpond.net.au>
792 * ldlang.c (gc_section_callback): Move SEC_EXCLUDE twiddles..
793 (lang_gc_sections): .. to a LANG_FOR_EACH_INPUT_STATEMENT loop here.
795 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
797 * testsuite/ld-sh/arch/arch.exp: New test script.
798 * testsuite/ld-sh/arch/arch_expected.txt: New file.
799 * testsuite/ld-sh/arch/sh.s: New file.
800 * testsuite/ld-sh/arch/sh2.s: New file.
801 * testsuite/ld-sh/arch/sh-dsp.s: New file.
802 * testsuite/ld-sh/arch/sh2e.s: New file.
803 * testsuite/ld-sh/arch/sh3-nommu.s: New file.
804 * testsuite/ld-sh/arch/sh3.s: New file.
805 * testsuite/ld-sh/arch/sh3-dsp.s: New file.
806 * testsuite/ld-sh/arch/sh3e.s: New file.
807 * testsuite/ld-sh/arch/sh4-nommu-nofpu.s: New file.
808 * testsuite/ld-sh/arch/sh4-nofpu.s: New file.
809 * testsuite/ld-sh/arch/sh4.s: New file.
810 * testsuite/ld-sh/arch/sh4a-nofpu.s: New file.
811 * testsuite/ld-sh/arch/sh4al-dsp.s: New file.
812 * testsuite/ld-sh/arch/sh4a.s: New file.
814 2004-05-28 Alan Modra <amodra@bigpond.net.au>
816 * ldlang.c: Formatting. Wrap long lines, expand bfd_get_section_flags
818 * lexsup.c: Formatting. Wrap long lines.
819 * ldwrite.c: Update copyright date.
821 * ldlang.c (lang_add_section): Don't twidlle SEC_EXCLUDE here.
822 (output_section_callback): Nor SEC_KEEP here.
823 (gc_section_callback): Twiddle SEC_EXCLUDE here.
824 (lang_gc_wild): Delete. Fold into..
825 (lang_gc_sections_1): ..here. Only call bfd_gc_sections when garbage
827 (lang_process): Always call lang_gc_sections.
828 (lang_place_orphans): Handle SEC_EXCLUDE sections.
829 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Remove
832 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
834 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Clear
835 SEC_EXCLUDE on non-SEC_DEBUGGING sections for relocatable link.
836 * ldlang.c (lang_add_section): Likewise.
838 2004-05-26 Alan Modra <amodra@bigpond.net.au>
840 * ldlang.c (lang_add_section): Set SEC_EXCLUDE for SEC_GROUP
841 sections when doing a final link. Clear SEC_EXCLUDE when doing
842 a relocable link, except for SEC_DEBUGGING sections.
843 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Use the
844 same condition here to drop SEC_EXCLUDE orphan sections.
846 2004-05-25 Alan Modra <amodra@bigpond.net.au>
848 * ldlang.c (lang_process): Call bfd_merge_sections later, and
849 only when not a relocatable link.
850 (print_input_section): Handle SEC_EXCLUDE sections.
851 (size_input_section): Don't update dot on SEC_EXCLUDE sections.
852 (lang_do_assignments_1): Likewise.
853 * ldwrite.c (build_link_order): Ignore SEC_EXCLUDE input sections.
854 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Likewise.
855 * emultempl/hppaelf.em (build_section_lists): Likewise.
856 * emultempl/ppc64elf.em (build_toc_list): Likewise.
857 (build_section_lists): Likewise.
859 2004-05-23 Andreas Schwab <schwab@suse.de>
861 * ld.texinfo (Options): Fix typo in last change.
863 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
865 * ld.h (ld_config_type): Add new field: hash_table_size.
866 * ldmain.c: Initialise the new field to zero. If it is non-zero
867 after parsing the linker's command line call
868 bfd_hash_set_default_size.
869 * lexsup.c (option_values): Add OPTION_HASH_SIZE.
870 (ld_options): Add hash-size.
871 (parse_args): Parse --hash-size option. Allow
872 --reduce-memory-overheads to set the default hash table size as
874 * ld.texinfo: Document the new switch. Also mention that
875 --reduce-memory-overheads can affect the hash table size.
876 * NEWS: Mention the new feature.
878 2004-05-19 J"orn Rennecke <joern.rennecke@superh.com>
880 * NEWS: Mention new linker map file generation and the
881 --reduce-memory-overheads option.
882 * ld.texinfo: Document --reduce-memory-overheads option.
883 * ld.h (map_symbol_def): New struct.
884 (struct user_section_struct, section_userdata_type): Rename to:
885 (struct lean_user_section_struct, lean_section_userdata_type).
886 (struct fat_user_section_struct, fat_section_userdata_type): New.
887 (SECTION_USERDATA_SIZE): Define.
888 (args_type): New member reduce_memory_overheads.
889 * ldlang.c (map_obstack): New static variable.
890 (init_map_userdata, print_all_symbols, sort_def_symbol): New functions.
891 (lang_map): Unless command_line.reduce_memory_overheads is set,
892 initialize lists of defined symbols for each section.
893 (print_input_section): Unless command_line.reduce_memory_overheads
894 is set, use print_all_symbols.
895 (init_os): Use lean_section_userdata_type / SECTION_USERDATA_SIZE.
896 * ldmain.c (main): Initialize command_line.reduce_memory_overheads.
897 * lexsup.c (enum option_values): Add OPTION_REDUCE_MEMORY_OVERHEADS.
898 (ld_options): Add entry for --reduce-memory-overheads.
899 (parse_args): Handle OPTION_REDUCE_MEMORY_OVERHEADS.
901 2004-05-19 Jakub Jelinek <jakub@redhat.com>
903 * ldgram.y (sect_constraint): New.
904 (ONLY_IF_RO, ONLY_IF_RW): New tokens.
905 (section): Add sect_constraint. Pass additional argument
906 to lang_enter_output_section_statement.
907 * mri.c (mri_draw_tree): Pass additional argument to
908 lang_enter_output_section_statement.
909 * emultempl/pe.em (place_orphan): Likewise.
910 (output_prev_sec_find): Disregard output section statements with
912 * emultempl/mmo.em (output_prev_sec_find): Likewise.
913 (mmo_place_orphan): Pass additional argument to
914 lang_enter_output_section_statement.
915 * emultempl/elf32.em (output_prev_sec_find): Disregard output section
916 statements with constraint == -1.
917 (place_orphan): Pass additional argument to
918 lang_enter_output_section_statement.
919 * ldlang.c (lang_enter_overlay_section): Likewise.
920 (lang_output_section_find_1): New.
921 (lang_output_section_find): Use it.
922 (lang_output_section_statement_lookup_1): New.
923 (lang_output_section_statement_lookup): Use it.
924 (check_section_callback, check_input_sections): New.
925 (map_input_to_output_sections): Check if all input sections
926 are readonly if ONLY_IF_RO or ONLY_IF_RW was seen.
927 (strip_excluded_output_sections): Disregard output section statements
928 with constraint == -1.
929 (lang_record_phdrs): Likewise.
930 (lang_enter_output_section_statement): Add constraint argument.
931 Use lang_output_section_statement_lookup_1.
932 * ldlang.h (lang_output_section_statement_type): Add constraint
933 and all_input_readonly fields.
934 (lang_enter_output_section_statement): Adjust prototype.
935 * ldlex.l (ONLY_IF_RO, ONLY_IF_RW): New tokens.
936 * scripttempl/elf.sc (.eh_frame, .gcc_except_table): Move into text
937 segment if all input sections are readonly.
939 2004-05-19 Adam Nemet <anemet@lnxw.com>
941 * scripttempl/i386lynx.sc: Remove file.
943 2004-05-17 Bob Wilson <bob.wilson@acm.org>
945 * ld.texinfo (Output Section Address): Correct subsection name.
947 2004-05-17 Adam Nemet <anemet@lnxw.com>
949 * configure.tgt (powerpc-*-lynxos* case): New case.
950 * configure.host (i[3-7]86-*-lynxos* case): Remove case.
951 * emulparams/ppclynx.sh: New file.
952 * emulparams/i386lynx.sh (SCRIPT_NAME): Update to LynxOS 4.0.
953 * Makefile.am (ALL_EMULATIONS): Add eppclynx.o
954 (ei386lynx.c): Update rule to LynxOS 4.0 ELF.
955 (eppclynx.c): New rule.
956 * Makefile.in: Regenerate.
958 2004-05-13 Joel Sherrill <joel@oarcorp.com>
960 * configure.tgt (or32-*-rtems*): Switch to elf and
961 support versioned targets.
963 2004-05-13 Nick Clifton <nickc@redhat.com>
965 * po/fr.po: Updated French translation.
967 2004-05-11 Jakub Jelinek <jakub@redhat.com>
969 * genscripts.sh: Generate -z combreloc -z now -z relro scripts
970 for binaries, -shared and -pie.
971 * emulparams/elf_i386.sh (SEPARATE_GOTPLT): Set.
972 * emulparams/elf_x86_64.sh (SEPARATE_GOTPLT): Set.
973 * emulparams/elf32ppc.sh (OTHER_READWRITE_SECTIONS): Rename to...
974 (OTHER_RELRO_SECTIONS): ... this.
975 * ldlex.l (DATA_SEGMENT_RELRO_END): Add.
976 * emultempl/elf32.em (gld${EMULATION_NAME}_handle_option): Handle
977 -z relro and -z norelro.
978 (gld${EMULATION_NAME}_list_options): Add it to usage.
979 (gld${EMULATION_NAME}_get_script): Return -z combreloc -z now
980 -z relro scripts when appropriate.
981 * scripttempl/elf.sc: Unset SEPARATE_GOTPLT if RELRO_NOW is set.
982 Create separate .got.plt section if SEPARATE_GOTPLT.
983 Move sections which are only written during relocation handling
984 to the beginning of RW segment. If NO_SMALL_DATA, move .got
985 before .data. Add DATA_SEGMENT_RELRO_END directive.
986 Include OTHER_RELRO_SECTIONS.
987 * ldgram.y (DATA_SEGMENT_RELRO_END): Add.
988 * ldexp.c (exp_print_token): Handle DATA_SEGMENT_RELRO_END.
989 (fold_unary): Likewise.
990 (fold_binary): Handle -z relro.
991 * ldexp.h (struct exp_data_seg): Add exp_dataseg_relro_seen and
992 exp_dataseg_relro_adjust phases. Add relro_end field.
993 * ldmain.c (main): Initialize link_info.relro to FALSE.
994 * ldlang.c (lang_size_sections): Handle -z relro.
996 2004-05-08 Marek Michalkiewicz <marekm@amelek.gda.pl>
998 * scripttempl/avr.sc: Do not set LMA for "eeprom" section.
1000 2004-05-07 J"orn Rennecke <joern.rennecke@superh.com>
1002 * ldlang.c (print_padding_statement): Cast size_t to bfd_vma
1003 before printing it with %W.
1005 2004-05-07 Brian Ford <ford@vss.fsi.com>
1006 DJ Delorie <dj@redhat.com>
1008 * emultempl/pe.em (real_flags): New static.
1009 (OPTION_LARGE_ADDRESS_AWARE): New define.
1010 (gld${EMULATION_NAME}_add_options): Add --large-address-aware option.
1011 (gld_${EMULATION_NAME}_list_options): Likewise.
1012 (gld${EMULATION_NAME}_handle_option): Likewise.
1013 (gld_${EMULATION_NAME}_after_open): Pass real_flags to PE private data.
1014 * ld.texinfo: Document it.
1017 2004-05-07 Brian Ford <ford@vss.fsi.com>
1019 * NEWS: Mention DWARF 2 support for i386pe.
1021 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1023 * emulparams/elf32frvfd.sh (OUTPUT_FORMAT): Switch to new
1026 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1028 * ldlang.c (unique_section_p): Pass section parm, return true on
1030 (output_section_callback): Adjust.
1031 * ldlang.h (unique_section_p): Update prototype.
1032 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Adjust.
1034 2004-04-30 Eric Botcazou <ebotcazou@act-europe.fr>
1036 * ld.texinfo (--gc-sections): Remove restriction for
1039 2004-04-29 Brian Ford <ford@vss.fsi.com>
1041 * scripttempl/pe.sc: Handle .debug* and .gnu.linkonce.wi.* sections
1042 for DWARF 2/3. Update stab section's syntax.
1044 2004-04-29 Alan Modra <amodra@bigpond.net.au>
1046 * pe-dll.c: Revert changes accidentally committed 2004-03-08.
1047 (fill_edata): Correct pointer arithmetic.
1049 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1051 * ld.texinfo: Remove MIPS --embedded-relocs documentation.
1052 * emulparams/elf32bmip.sh (EXTRA_EM_FILE): Remove definition.
1053 * emulparams/mipsidt.sh (TEMPLATE_NAME): Use generic.em.
1054 (EXTRA_EM_FILE): Use mipsecoff.em
1055 * emulparams/mipsidtl.sh (TEMPLATE_NAME): Use generic.em.
1056 (EXTRA_EM_FILE): Use mipsecoff.em
1057 * emultempl/mipsecoff.em: Restructure to be included as an
1058 extra emulation file.
1059 (check_sections, gld${EMULATION_NAME}_after_open)
1060 (gld${EMULATION_NAME}_after_allocation)
1061 (gld${EMULATION_NAME}_get_script)
1062 (ld_${EMULATION_NAME}_emulation): Remove
1063 (gld${EMULATION_NAME}_before_parse): Rename to...
1064 (mipsecoff_before_parse): This.
1065 (LDEMUL_BEFORE_PARSE): Define.
1066 * emultempl/mipself.em: Remove file.
1067 * scripttempl/mips.sc (.rel.sdata): Do not include in output.
1068 (__runtime_reloc_start, __runtime_reloc_stop): Stop providing
1070 * Makefile.am: Remove dependencies on emultempl/mipself.em.
1071 * Makefile.in: Regenerate.
1073 2004-04-21 Anil Paranjpe <anilp1@kpitcummins.com>
1075 * ld.texinfo (synthesizing on H8/300): Information about linker
1076 relaxation support for bit manipulation instructions and system
1077 control instructions is added.
1079 2004-04-21 Hans-Peter Nilsson <hp@axis.com>
1081 * NEWS: Mention change in DEFINED semantics.
1083 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1085 * scripttempl/elf.sc (.text): Add KEEP for .text.*personality*.
1086 (.data): Add KEEP for .gnu.linkonce.d.*personality*.
1087 (.gcc_except_table): Add KEEP for self and accept .gcc_except_table.*.
1089 2004-04-21 Ben Elliston <bje@au.ibm.com>
1091 * ld.texinfo (Simple Example): Add missing punctuation.
1093 2004-04-20 Chris Demetriou <cgd@broadcom.com>
1095 * NEWS: Note that MIPS --embedded-relocs option is deprecated.
1097 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1099 * ldlang.c (lang_do_assignments_1): Handle .tbss output section
1102 2004-04-18 Danny Smith <dannysmith@users.sourceforge.net>
1104 * scriptempl/pe.sc: Put numbered .ctors.* after .ctors
1105 with default priority. Likewise for dtors.
1107 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1109 * configure.host: Remove mips*-dec-bsd* target.
1110 * configure.tgt: Likewise.
1112 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1114 * emulparams/elf32bsmip.sh (EXTRA_EM_FILE): Define to irix.
1115 * emulparams/elf64bmip.sh (EXTRA_EM_FILE): Likewise.
1116 * emulparams/elf32bmipn32.sh (EXTRA_EM_FILE): Likewise.
1117 * emultempl/irix.em: New file.
1118 * Makefile.am (eelf32bsmip.c, eelf32bmipn32.c, eelf64bmip.c): Update
1120 * Makefile.in: Regenerate.
1122 2004-04-01 Paul Brook <paul@codesourcery.com>
1124 * emultempl/armelf.em (byteswap_code): Add.
1125 (arm_elf_before_allocation): Pass extra parameter.
1126 (PARSE_AND_LIST_PROLOGUE): Add OPTION_BE8.
1127 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add be8.
1128 (PARSE_AND_LIST_ARGS_CASES): Handle OPTION_BE8.
1129 * emultempl/armelf_oabi.em: Pass extra parameter.
1130 * ld.texinfo: Document --be8.
1132 2004-03-30 Stan Shebs <shebs@apple.com>
1134 Remove long-obsolete MPW support.
1135 * mpw-config.in, mpw-make.sed, mac-ld.r: Remove files.
1136 * Makefile.am (mpw): Remove file-presynthesizing actions.
1137 * Makefile.in: Likewise.
1138 * ldfile.c (slash): Remove MPW case.
1139 * ldlex.l [MPW]: Remove unused definition.
1141 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1143 * Makefile.am (ALL_EMULATIONS): Add eelf32cr16c.o.
1144 (eelf32cr16c.c): New target.
1145 * Makefile.in: Regenerate.
1146 * configure.tgt: Handle cr16c-*-elf*.
1147 * emulparams/elf32cr16c.sh: New file.
1148 * scripttempl/elfcr16c.sc: Likewise
1149 * NEWS: Mention support for new target.
1151 2004-03-30 Nick Clifton <nickc@redhat.com>
1153 * po/sv.po: Updated Swedish translation.
1155 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1157 * emultempl/elf32.em: Update new bfd_elf_discard_info name.
1158 * emultempl/hppaelf.em: Likewise.
1159 * emultempl/ppc64elf.em: Likewise.
1160 * emultempl/sh64elf.em: Likewise.
1162 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1164 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Update
1165 size_dynamic_sections call.
1167 2004-03-23 Alan Modra <amodra@bigpond.net.au>
1170 * emultempl/ppc64elf.em (ppc_create_output_section_statements): Set
1171 link_info.wrap_char.
1173 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
1175 * lexsup.c (parse_args): Don't set unresolved_syms_in_objects
1176 or unresolved_syms_in_shared_libs for -Bdynamic and -Bstatic.
1178 2004-03-20 Alexandre Oliva <aoliva@redhat.com>
1180 * emulparams/elf32frvfd.sh (MAXPAGESIZE): Change to 16Kb.
1182 2004-03-19 Alan Modra <amodra@bigpond.net.au>
1184 * config.in: Regenerate.
1185 * po/ld.pot: Regenerate.
1187 2004-03-18 Alan Modra <amodra@bigpond.net.au>
1189 * ld.texinfo: Add --as-needed doco.
1190 * ldmain.c (as_needed): New global var.
1191 * ldmain.h (as_needed): Declare.
1192 * lexsup.c (option_values): Add OPTION_AS_NEEDED and
1193 OPTION_NO_AS_NEEDED.
1194 (ld_options): Likewise.
1195 (parse_args): Handle them.
1196 * ldlang.h (lang_input_statement_type): Add as_needed field.
1197 * ldlang.c (new_afile): Set p->as_needed.
1198 * emultempl/elf32.em (gld${EMULATION_NAME}_load_symbols): New function.
1199 (gld${EMULATION_NAME}_try_needed): Use bfd_elf_set_dyn_lib_class.
1200 (ld_${EMULATION_NAME}_emulation): Set LDEMUL_RECOGNIZED_FILE entry.
1202 * ldlang.c (open_input_bfds): Remove useless cast.
1203 (lang_do_assignments_1): Likewise.
1204 (lang_for_each_input_section): Delete.
1206 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
1208 * configure.tgt: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
1210 2004-03-08 Danny Smith <dannysmith@users.sourceforge.net>
1212 * pe-dll.c (pe_dll_generate_implib): Skip sections marked as
1213 private when building implib.
1215 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
1217 * ldlang.c (lang_add_section): Don't force SEC_LOAD on
1219 (IGNORE_SECTION): Ignore .tbss sections too.
1220 (lang_size_sections_1): .tbss sections do not advance dot.
1222 2004-03-01 Andreas Schwab <schwab@suse.de>
1224 * ld.texinfo (Options): Fix example for --wrap.
1226 2004-02-25 Danny Smith <dannysmith@users.sourceforge.net>
1228 * pe-dll.c (fill_edata): Check that exported_symbol_sections is
1231 2004-02-23 Ian Lance Taylor <ian@wasabisystems.com>
1233 * ldlang.c (lang_check): Use %P, not %E, in error message.
1235 2004-02-23 Nathan Sidwell <nathan@codesourcery.com>
1237 * ldlang.h (struct lang_output_section_state): Change processed
1239 * ldexp.c (check, invalid): Remove.
1240 (fold_name): Move valid_p assignments. Create undefined symbol
1241 when needed. Directly exampine section's processd flag.
1242 * ldlang.c (lang_output_section_statement_lookup): Adjust
1243 processed field init.
1244 (lang_size_sections_1): Allow LOADADDR when determining section's
1245 VMA. Adjust error message. Fold data statement's expr.
1246 (lang_size_sections): Correctly increment lang_statement_iteration.
1248 2004-02-23 Alan Modra <amodra@bigpond.net.au>
1250 * ldexp.c (fold_tree): Follow indirect symbols.
1252 2004-02-20 Nathan Sidwell <nathan@codesourcery.com>
1254 * ldgram.y (exp): Add two operand ALIGN.
1255 * ldexp.c (fold_binary): Add ALIGN_K case.
1256 * ld.texinfo (ALIGN): Document two operand version.
1258 2004-02-19 Nathan Sidwell <nathan@codesourcery.com>
1260 * ldlang.c (map_input_to_output_sections): Initialize sections
1261 mentioned in a data statement expression.
1262 (lang_do_assignments_1): Add data statement's expression's
1265 2004-02-18 Nathan Sidwell <nathan@codesourcery.com>
1267 * ldgram.y (statement_anywhere): Add assert rule.
1268 * ldlang.c (exp_init_os): Add assert case.
1270 2004-02-14 Andrew Cagney <cagney@redhat.com>
1272 * ldmain.c (remove_output): Call bfd_cache_close.
1274 2004-02-14 Richard Sandiford <rsandifo@redhat.com>
1276 * emulparams/elf32bmipn32-defs.sh (OTHER_SECTIONS): Discard
1277 .MIPS.content* and .MIPS.events* sections.
1279 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1281 * emulparams/armelf.sh, emulparams/armelf_linux.sh: Move
1282 .note.gnu.arm.ident to after allocated sections. Mark its
1285 2004-02-09 Daniel Jacobowitz <drow@mvista.com>
1287 * emulparams/armelf_linux.sh (COMMONPAGESIZE): Set to 4KB.
1288 * emulparams/elf32bmip.sh (COMMONPAGESIZE): Likewise.
1289 * emulparams/elf32bmipn32.sh (COMMONPAGESIZE): Likewise.
1290 * emulparams/elf32btsmipn32.sh (COMMONPAGESIZE): Likewise.
1291 * emulparams/shlelf_linux.sh (COMMONPAGESIZE): Likewise.
1293 2004-02-05 Nick Clifton <nickc@redhat.com>
1295 * emultempl/pe.em (_after_open): Fix typo in previous delta.
1297 2004-02-04 Danny Smith <dannysmith@users.sourceforge.net>
1299 * emultempl/pe.em (_after_open): Fix thinko in 2003-12-18 patch.
1301 2004-01-28 Alan Modra <amodra@bigpond.net.au>
1303 * genscripts.sh: Fix typo.
1305 * genscripts.sh: Apply $LIBPATH_SUFFIX to $tool_lib and $libdir too.
1307 2004-01-24 Jakub Jelinek <jakub@redhat.com>
1309 * emulparams/elf64_ia64.sh: Put .rela.opd into
1310 OTHER_GOT_RELOC_SECTIONS instead of OTHER_PLT_RELOC_SECTIONS.
1312 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
1314 * pe-dll.c (pe_create_import_fixup): Clear WP_TEXT flag.
1315 * ld.texinfo (--omagic): Note that writable text section
1316 does not conform to published PE-COFF specs.
1317 (--enable-auto-import): Likewise.
1319 2004-01-15 Alan Modra <amodra@bigpond.net.au>
1321 * emulparams/elf32ppc.sh (COMMONPAGESIZE): Define.
1323 2004-01-13 Nick Clifton <nickc@redhat.com>
1325 * ldlang.c (lang_get_regions): Add extra parameter 'have_vma'
1326 which if true will prevent the LMA region being used as a
1327 replacement for a default VMA region.
1328 (lang_leave_output_section_statement): Pass extra parameter.
1329 (lang_leave_overlay): Likewise.
1330 * ld.texinfo (Output Section LMA): Document that the LMA
1331 region can be set to the VMA region if no VMA has been set.
1332 * ldlang.h (struct lang_output_section_phdr_list): Create a
1333 typedef for this type. Minor formatting fixes.
1335 2004-01-13 Nick Clifton <nickc@redhat.com>
1337 * ldlang.c (lang_size_sections_1): If dot is advanced, then
1338 assume that the section should be allocated.
1340 2004-01-13 Alan Modra <amodra@bigpond.net.au>
1342 * ldlang.c (IGNORE_SECTION): Don't ignore SEC_ALLOC && !SEC_LOAD
1343 sections. Do ignore SEC_NEVER_LOAD sections.
1344 (lang_size_sections_1): Remove test made redundant with the above.
1346 2004-01-09 Alan Modra <amodra@bigpond.net.au>
1348 * emultempl/ppc64elf.em (ppc_before_allocation): Clear cached
1349 program_header_size.
1351 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
1353 2003-11-28 Alexandre Oliva <aoliva@redhat.com>
1354 * emulparams/elf32frvfd.sh (EMBEDDED): Clear.
1355 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
1356 * emulparams/elf32frvfd.sh (STACK_ADDR): Unset.
1357 (MAXPAGESIZE): Set to 64Kb.
1358 (OTHER_READONLY_SECTIONS): Define __ROFIXUP_LIST__ and
1359 __ROFIXUP_END__. Don't map .rofixup.got any more.
1360 * emulparams/elf32frv.sh (NOP): Set.
1361 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
1362 * configure.tgt: Add frv-*-*linux*.
1363 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
1364 * Makefile.am (ALL_EMULATIONS): Added eelf32frvfd.o.
1365 (eelf32frvfd.c): New.
1366 * configure.tgt <frv-*-*>: Added it to targ_extra_emuls.
1367 * emulparams/elf32frv.sh: Reverted previous two patches.
1368 * emulparams/elf32frvfd.sh: New.
1369 * Makefile.in: Rebuilt.
1370 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
1371 * emulparams/elf32frv.sh (OTHER_READONLY_SECTIONS): Added
1372 .rofixup.got to .rofixup.
1373 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
1374 * emulparams/elf32frv.sh (MAXPAGESIZE): Make it 256KiB, not 256B.
1375 (TEMPLATE_NAME, GENERATE_SHLIB_SCRIPT): Set.
1377 2004-01-05 Jakub Jelinek <jakub@redhat.com>
1379 * emulparams/elf_s390.sh (NO_SMALL_DATA): Set to yes.
1380 * emulparams/elf64_s390.sh (NO_SMALL_DATA): Set to yes.
1382 2004-01-03 Alan Modra <amodra@bigpond.net.au>
1384 * ldexp.c (align_n): Make static.
1385 * ldexp.h (align_n): Delete declaration.
1386 * ldlang.h (lang_enter_output_section_statement): Remove
1388 * ldlang.c (lang_enter_output_section_statement): Likewise.
1389 (TO_ADDR, TO_SIZE): Define.
1390 (opb_shift): New var.
1391 (init_opb): New function.
1392 (print_input_section): Call init_opb and use TO_ADDR.
1393 (print_data_statement, print_reloc_statement): Likewise.
1394 (print_padding_statement): Likewise.
1395 (size_input_section): Use TO_SIZE and TO_ADDR, and global opb_shift.
1396 (lang_check_section_addresses): Likewise.
1397 (lang_size_sections_1): Likewise.
1398 (lang_do_assignments_1): Likewise.
1399 (lang_set_startof): Likewise.
1400 (lang_one_common): Likewise. Combine power_of_two and opb_shift align.
1401 (lang_process): Call init_opb.
1402 (lang_abs_symbol_at_end_of): Use TO_ADDR and global opb_shift.
1403 (lang_enter_overlay_section): Adjust
1404 lang_enter_output_section_statement call.
1405 * ldgram.y: Likewise.
1406 * mri.c (mri_draw_tree): Likewise.
1407 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1408 * emultempl/mmo.em (mmo_place_orphan): Likewise.
1409 * emultempl/pe.em (gld${EMULATION_NAME}_place_orphan): Likewise.
1411 * ldfile.c (ldfile_set_output_arch): Add defarch param.
1412 * ldfile.h (ldfile_set_output_arch): Ditto.
1413 * emultempl/aix.em (gld${EMULATION_NAME}_before_parse): Use
1414 ldfile_set_output_arch.
1415 * emultempl/beos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1416 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Ditto.
1417 * emultempl/linux.em (gld${EMULATION_NAME}_before_parse): Ditto.
1418 * emultempl/mipsecoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1419 * emultempl/pe.em (gld${EMULATION_NAME}_before_parse): Ditto.
1420 * emultempl/sunos.em (gld${EMULATION_NAME}_before_parse): Ditto.
1421 * ldgram.y: Adjust ldfile_set_output_arch call.
1422 * emultempl/armcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1423 * emultempl/armelf.em (gld${EMULATION_NAME}_before_parse): Ditto.
1424 * emultempl/armelf_oabi.em (gld${EMULATION_NAME}_before_parse): Ditto.
1425 * emultempl/generic.em (gld${EMULATION_NAME}_before_parse): Ditto.
1426 * emultempl/gld960c.em (gld960_set_output_arch): Ditto.
1427 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1428 * emultempl/ticoff.em (gld${EMULATION_NAME}_before_parse): Ditto.
1430 2004-01-02 Bernardo Innocenti <bernie@develer.com>
1432 * configure.tgt: Add m68k-uClinux target.
1434 For older changes see ChangeLog-0203
1440 version-control: never