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