1 2008-12-03 Nick Clifton <nickc@redhat.com>
3 * NEWS: Mention new feature.
4 * pe-dll.c (process_def_file): Replace use of redundant
5 BFD_FORT_COMM_DEFAULT_VALUE with 0.
6 * scripttempl/elf.sc: Add .rel.ifunc.dyn and .rela.ifunc.dyn
9 2008-12-02 Kai Tietz <kai.tietz@onevision.com>
11 * pe-dll.c (make_runtime_pseudo_reloc): Make symtab big enough to
14 2008-11-27 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
16 * emultempl/cr16elf.em (cr16_after_open): New function to handle
17 CR16 ELF embedded reloc creation (ld --embedded-relocs).
18 (check_sections): New function.
19 (LDEMUL_AFTER_OPEN): Define.
20 * emulparams/elf32cr16.sh (EMBEDDED): Define.
22 2008-11-26 Alan Modra <amodra@bigpond.net.au>
25 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Update
26 for changes to struct bfd_elf_version_expr.
27 * ldlang.c (lang_vers_match, version_expr_head_hash): Likewise.
28 (version_expr_head_eq, lang_finalize_version_expr_head): Likewise.
29 (lang_register_vers_node): Likewise.
30 (lang_new_vers_pattern): Likewise. Ensure "literal" is set when
31 no glob chars found in "pattern".
32 (realsymbol): Correct backslash quote logic.
33 * ld.texinfo (VERSION): Warn about global wildcards.
35 2008-11-24 Alan Modra <amodra@bigpond.net.au>
37 * ldlang.c (lang_record_phdrs): Don't add orphans to PT_INTERP header.
39 2008-11-19 Nick Clifton <nickc@redhat.com>
41 * fdl.texi: Update to v1.3
42 * ld.texinfo: Change license to v1.3.
44 2008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
46 * configure.tgt [spu-*-elf*]: Set NATIVE_LIB_DIRS to '/lib'.
48 2008-11-17 Nick Clifton <nickc@redhat.com>
50 * ldver.c: Update copyright year.
52 2008-11-14 Kai Tietz <kai.tietz@onevision.com>
54 * emultempl/pep.em (..._before_parse): initialize
55 pei386_runtime_pseudo_reloc by version 2.
56 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
57 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
58 (make_import_fixup): Use relocation size to read addend.
59 * emultempl/pe.em (..._before_parse): initialize
60 pei386_runtime_pseudo_reloc by version 1.
61 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
62 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
63 * pe-dll.c (pe-dll.h): Remove useless include.
64 (make_runtime_pseudo_reloc): Change addend to use bfd_vma.
65 Handle the two variants of pseudo-relocation.
66 (pe_create_import_fixup): Change addend to type bfd_vma.
67 Modify for the two pseudo_relocation variants.
68 (runtime_pseudp_reloc_v2_init): New static variable.
69 * pe-dll.h (pe_create_import_fixup): Change addend argument type
71 * pep-dll.h (pep_create_import_fixup): Likewise.
74 2008-11-14 Alan Modra <amodra@bigpond.net.au>
76 * Makefile.am (spu_ovl.o_c): Add missing line continuations.
77 * Makefile.in: Regenerate.
79 2008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>
81 * configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*.
83 2008-11-03 Bob Wilson <bob.wilson@acm.org>
85 * emulparams/elf32xtensa.sh (NO_REL_RELOCS): Set.
86 * scripttempl/elfxtensa.sc (NO_REL_RELOCS, NO_RELA_RELOCS)
87 (NON_ALLOC_DYN): Import changes from elf.sc.
89 2008-10-25 Nick Clifton <nickc@redhat.com>
92 * ldlang.c (lang_size_sections_1): Do not update the VMAs of
93 output sections when performing a relocatable link on COFF
96 2008-10-22 Nick Clifton <nickc@redhat.com>
98 * emultempl/armelf.em (arm_elf_after_open): Move check for using a
99 non-arm output target from here...
100 (arm_elf_create_output_section_statements): ... to here, so that
101 the check is made at the earliest possible opportunity.
103 2008-10-22 Alan Modra <amodra@bigpond.net.au>
105 * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32".
106 (EXTRA_EM_FILE): Define.
108 2008-10-22 Alan Modra <amodra@bigpond.net.au>
110 * scripttempl/elf.sc (NO_REL_RELOCS, NO_RELA_RELOCS, NON_ALLOC_DYN):
111 Handle these defines.
112 * emulparams/criself.sh, * emulparams/crislinux.sh,
113 * emulparams/elf32am33lin.sh, * emulparams/elf32fr30.sh,
114 * emulparams/elf32_i860.sh, * emulparams/elf32ip2k.sh,
115 * emulparams/elf32mcore.sh, * emulparams/elf32ppccommon.sh,
116 * emulparams/elf32ppcwindiss.sh, * emulparams/elf32_sparc.sh,
117 * emulparams/elf32_spu.sh, * emulparams/elf32vax.sh,
118 * emulparams/elf64alpha.sh, * emulparams/elf64mmix.sh,
119 * emulparams/elf64ppc.sh, * emulparams/elf64_s390.sh,
120 * emulparams/elf64_sparc.sh, * emulparams/elf_s390.sh,
121 * emulparams/elf_x86_64.sh, * emulparams/h8300elf.sh,
122 * emulparams/hppa64linux.sh, * emulparams/hppalinux.sh,
123 * emulparams/m68kelf.sh, * emulparams/mn10200.sh,
124 * emulparams/pjelf.sh, * emulparams/ppclynx.sh,
125 * emulparams/shelf32.sh, * emulparams/shelf_nto.sh,
126 * emulparams/shelf.sh, * emulparams/shelf_vxworks.sh,
127 * emulparams/shlelf32_linux.sh, * emulparams/shlelf_linux.sh,
128 * emulparams/shlelf_nto.sh (NO_REL_RELOCS): Set.
129 * emulparams/arcelf.sh, * emulparams/elf32_i960.sh,
130 * emulparams/elf32openrisc.sh, * emulparams/elf_i386_be.sh,
131 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386.sh,
132 * emulparams/elf_i386_vxworks.sh, * emulparams/i386lynx.sh,
133 * emulparams/i386moss.sh, * emulparams/i386nto.sh,
134 * emulparams/or32elf.sh, * emulparams/scoreelf.sh (NO_RELA_RELOCS): Set.
136 2008-10-22 Alan Modra <amodra@bigpond.net.au>
138 * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
140 * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc.
142 (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans.
144 2008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
146 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in
149 2008-10-20 Alan Modra <amodra@bigpond.net.au>
151 * ldemul.h (ldemul_place_orphan): Update prototype.
152 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
153 * ldemul.c (ldemul_place_orphan): Return pointer to output
155 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
156 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
157 * emultempl/mmo.em (mmo_place_orphan): Likewise.
158 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
159 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
161 2008-10-08 Nick Clifton <nickc@redhat.com>
163 * configure.in (ALL_LINGUAS): Add "id".
164 * configure: Regenerate.
165 * po/id.po: New Indonesian translation.
167 2008-10-05 Alan Modra <amodra@bigpond.net.au>
170 * scripttempl/avr.sc (.bss): Set lma when relocating.
171 (.bss, .noinit): No need to set vma when relocating.
172 (.text, .bss, ,noinit): Set vma to zero when not relocating.
174 2008-10-04 Alan Modra <amodra@bigpond.net.au>
177 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
178 * ldemul.h (ldemul_place_orphan): Update prototype.
179 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
180 * ldlang.c (unique_section_p): Make static.
181 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
183 (lang_insert_orphan): Add "constraint" param. Pass to
184 lang_enter_output_section_statement.
185 (init_os): Don't use an existing bfd section for SPECIAL sections.
186 (lang_place_orphans): Don't rename unique output sections, instead
187 mark their output section statements SPECIAL.
188 * ldlang.h (lang_insert_orphan): Update prototype.
189 (unique_section_p): Delete.
190 * emultempl/beos.em (place_orphan): Add "constraint" param.
191 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
192 output sections if set.
193 * emultempl/pe.em (place_orphan): Likewise.
194 * emultempl/pep.em (place_orphan): Likewise.
195 * emultempl/mmo.em (mmo_place_orphan): Update.
196 * emultempl/spuelf.em (spu_place_special_section): Update.
198 2008-10-03 Alan Modra <amodra@bigpond.net.au>
201 * ldemul.c (ldemul_place_orphan): Add "name" param.
202 * ldemul.h (ldemul_place_orphan): Update prototype.
203 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
204 * ldlang.c (lang_place_orphans): Generate unique section names here..
205 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
206 directly use an existing output section statement that has no
208 * emultempl/pe.em (place_orphan): Likewise.
209 * emultempl/pep.em (place_orphan): Likewise.
210 * emultempl/beos.em (place_orphan): Adjust.
211 * emultempl/spuelf.em (spu_place_special_section): Adjust
213 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
214 (LDEMUL_AFTER_OPEN): Define.
216 2008-09-30 Joseph Myers <joseph@codesourcery.com>
218 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
221 2008-09-30 Alan Modra <amodra@bigpond.net.au>
223 * Makefile.am: Run "make dep-am".
224 * Makefile.in: Regenerate.
226 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
227 Steve Ellcey <sje@cup.hp.com>
229 * configure: Regenerate for new libtool.
231 * Makefile.in: Ditto.
233 2008-09-29 Kai Tietz <kai.tietz@onevision.com>
235 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
237 2008-09-29 Nick Clifton <nickc@redhat.com>
239 * po/vi.po: Updated Vietnamese translation.
241 2008-09-25 Alan Modra <amodra@bigpond.net.au>
243 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
245 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
247 * configure.in: Call AC_SYS_LARGEFILE.
248 * config.in: Regenerate.
249 * configure: Regenerate.
251 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
253 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
255 * emultempl/pep.em (pep_find_data_imports): Likewise.
257 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
259 2008-09-07 Alan Modra <amodra@bigpond.net.au>
261 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
262 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
264 2008-09-08 Tristan Gingold <gingold@adacore.com>
266 * NEWS: Add a marker for the 2.19 features.
268 2008-09-07 Alan Modra <amodra@bigpond.net.au>
270 * ldlang.h (lang_output_section_find): Define.
271 (lang_output_section_statement_lookup): Update prototype.
272 * ldlang.c (lang_output_section_find,
273 lang_output_section_statement_lookup_1): Merge into..
274 (lang_output_section_statement_lookup): ..here. Update all callers.
275 (process_insert_statements): Set constraint negative
276 for output section statements we might be inserting. Make error
277 fatal on not finding insertion section.
278 (lang_output_section_find): Rather than comparing
279 output_section_statement.constraint against -1, test whether
281 (lang_output_section_statement_lookup_1): Likewise.
282 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
283 (lang_record_phdrs): Likewise.
284 * emultempl/elf32.em (output_rel_find): Likewise.
285 * NEWS: Mention INSERT.
287 2008-08-26 Nick Clifton <nickc@redhat.com>
290 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
291 input sections in all input bfds and always select the last
292 suitable one, so that interworking stubs are always processed
293 after all other input sections.
294 (arm_elf_before_allocation): Remove redundant use of
295 output_has_begun flag.
297 2008-08-24 Alan Modra <amodra@bigpond.net.au>
299 * configure.in: Update a number of obsolete autoconf macros.
300 * configure: Regenerate.
301 * aclocal.m4: Regenerate.
303 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
306 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
307 EXPLD.DATASEG.MIN_BASE.
308 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
309 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
310 Use OLD_BASE now for the minimal base check after the base decrease by
311 the maximum alignment found.
313 2008-08-17 Alan Modra <amodra@bigpond.net.au>
316 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
317 Don't free symbol pointer array.
318 (check_refs): Likewise.
319 * ldmain.c (warning_callback): Likewise.
320 * ldmisc.c (vfinfo): Likewise.
321 * pe-dll.c (process_def_file): Likewise.
322 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
323 * emultempl/pe.em (pe_find_data_imports): Likewise.
324 (gld_${EMULATION_NAME}_after_open): Likewise.
325 * emultempl/pep.em (pep_find_data_imports): Likewise.
326 (gld_${EMULATION_NAME}_after_open): Likewise.
327 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
328 passive_position, closed.
329 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
330 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
332 2008-08-15 Alan Modra <amodra@bigpond.net.au>
335 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
336 * Makefile.in: Regenerate.
337 * aclocal.m4: Regenerate.
338 * config.in: Regenerate.
339 * configure: Regenerate.
341 2008-08-09 Alan Modra <amodra@bigpond.net.au>
344 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
345 (main): Don't set_scripts_dir here.
346 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
347 largely based on ldmain.c versions.
348 (ldfile_find_command_file): Set up search in script dir here without
349 affecting library search.
350 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
351 (ldfile.o): New rule.
352 * Makefile.in: Regenerate.
354 2008-08-08 Anatoly Sokolov <aesok@post.ru>
356 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
358 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
359 * Makefile.in: Regenerate.
360 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
362 * emulparams/avr25.sh: New file.
363 * emulparams/avr31.sh: New file.
364 * emulparams/avr35.sh: New file.
365 * emulparams/avr51.sh: New file.
367 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
368 Daniel Jacobowitz <dan@codesourcery.com>
370 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
371 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
373 * emulparams/elf32bmipn32-defs.sh: Likewise.
374 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
375 (is_mips_elf): New macro.
376 (stub_file, stub_bfd): New variables.
377 (hook_stub_info): New structure.
378 (hook_in_stub): New function.
379 (mips_add_stub_section): Likewise.
380 (mips_create_output_section_statements): Likewise.
381 (mips_before_allocation): Likewise.
382 (real_func): New variable.
383 (mips_for_each_input_file_wrapper): New function.
384 (mips_lang_for_each_input_file): Likewise.
385 (lang_for_each_input_file): Define.
386 (LDEMUL_BEFORE_ALLOCATION): Likewise.
387 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
389 2008-08-08 Alan Modra <amodra@bigpond.net.au>
391 * ldfile.c (ldfile_open_file_search): Use concat.
392 (try_open): Don't use a fixed size pathname buffer.
393 (ldfile_find_command_file): Likewise.
394 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
395 using EXTRA_SHLIB_EXTENSION, don't open twice.
397 2008-08-04 Alan Modra <amodra@bigpond.net.au>
399 * Makefile.am (POTFILES.in): Set LC_ALL=C.
400 * Makefile.in: Regenerate.
401 * po/POTFILES.in: Regenerate.
403 2008-08-03 Alan Modra <amodra@bigpond.net.au>
405 * Makefile.am (spu_ovl.o): Merge rule into..
406 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
407 * Makefile.in: Regenerate.
409 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
411 Include the spu_ovl ASCII form in the repository files.
412 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
413 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
414 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
415 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
416 (spu_ovl.o): ...this one.
417 * Makefile.in: Regenerate.
418 * emultempl/spu_ovl.o_c: New file.
419 * emultempl/spu_ovl.o: File removed.
421 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
423 * pe-dll.c (generate_relocs): Don't generate relocs for
424 undefined weak symbols.
426 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
428 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
430 2008-07-30 Alan Modra <amodra@bigpond.net.au>
432 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
434 2008-07-18 Joseph Myers <joseph@codesourcery.com>
436 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
437 * emultempl/armelf.em (no_wchar_size_warning): New.
438 (arm_elf_create_output_section_statements): Pass
439 no_wchar_size_warning to arm_elf_create_output_section_statements.
440 (OPTION_NO_WCHAR_SIZE_WARNING): New.
441 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
442 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
443 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
445 2008-07-15 Jie Zhang <jie.zhang@analog.com>
447 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
449 2008-07-12 Craig Silverstein <csilvers@google.com>
452 * configure.in: Check for, and include, libz.a if it is present.
453 * configure: Regenerate.
454 * config.in: Regenerate.
456 2008-07-12 Jie Zhang <jie.zhang@analog.com>
459 2008-07-12 Jie Zhang <jie.zhang@analog.com>
460 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
461 (eelf32bfinfd.c): Likewise.
462 * Makefile.in: Regenerate.
463 * gen-doc.texi: Set Blackfin.
464 * ld.texinfo: Document --sep-code and Blackfin specific
466 * ldmain.c (main): Initialize link_info.sep_code.
467 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
468 (ld_options[]): Add --sep-code.
469 (parse_args): Deal with --sep-code.
470 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
471 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
472 * emultempl/bfin.em: New file.
474 2008-07-12 Jie Zhang <jie.zhang@analog.com>
476 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
477 (eelf32bfinfd.c): Likewise.
478 * Makefile.in: Regenerate.
479 * gen-doc.texi: Set Blackfin.
480 * ld.texinfo: Document --sep-code and Blackfin specific
482 * ldmain.c (main): Initialize link_info.sep_code.
483 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
484 (ld_options[]): Add --sep-code.
485 (parse_args): Deal with --sep-code.
486 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
487 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
488 * emultempl/bfin.em: New file.
490 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
492 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
494 Exclude "_IMPORT_DESCRIPTOR_".
495 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
496 (autofilter_symbollist_generic): Don't check for ".text".
497 Exclude "_NULL_IMPORT_DESCRIPTOR".
498 (autofilter_symbollist_i386): Likewise.
500 2008-07-07 Alan Modra <amodra@bigpond.net.au>
502 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
503 bfd_make_section_with_flags.
504 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
506 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
507 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
508 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
509 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
510 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
511 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
514 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
516 * ld.texinfo (File Commands): Document that INCLUDE can be used in
517 several different places.
518 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
519 (memory, memory_spec_list): Simplify BNF
520 (memory_spec_list_opt): New rule.
521 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
523 2008-06-20 Alan Modra <amodra@bigpond.net.au>
525 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
526 build overlay stubs" a fatal error.
528 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
530 * config.in: Regenerate.
531 * configure: Regenerate.
533 2008-06-17 Alan Modra <amodra@bigpond.net.au>
535 * emultempl/spuelf.em (extra_stack_space): New variable.
536 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
537 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
538 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
539 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
540 overlay manager structures.
541 * emultempl/spu_ovl.o: Regenerate.
543 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
545 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
546 mention it as being special for global symbols.
548 2008-06-12 Nick Clifton <nickc@redhat.com>
550 * ldlang.c (print_output_section_statement): If the output section
551 statement has an update_dot_tree expression, apply it to
553 (print_input_section): Do not update print_dot if it would move
555 (lang_do_assignments_1): If the output section statement has an
556 update_dot_tree expression apply it to dot.
558 2008-06-07 Alan Modra <amodra@bigpond.net.au>
560 * NEWS: Mention archive:path patterns.
561 * ld.texinfo: Likewise.
562 * ldlang.c: Formatting throughout.
563 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
564 (input_statement_is_archive_path): New function, extracted from..
566 (walk_wild_consider_section): Match archive:path here too.
567 (init_map_userdata, sort_def_symbol): Convert to ISO C.
568 * ldmain.c (main): Set link_info.path_separator.
569 * emultempl/spuelf.em (choose_target): Don't set it here.
571 2008-06-06 Alan Modra <amodra@bigpond.net.au>
573 * ldlang.c (name_match): New function.
574 (unique_section_p, walk_wild_consider_section): Use it here.
575 (walk_wild_section_general): And here.
576 (archive_path): New function.
577 (walk_wild): Match archive:path filespecs.
578 (open_input_bfds): Don't load archive:path files.
579 * emultempl/spuelf.em (choose_target): Set path_separator.
580 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
582 2008-06-04 Nick Clifton <nickc@redhat.com>
584 * ld.texinfo (Orphan Sections): Fix texi typo.
586 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
588 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
589 (ld_options): Add entry for --no-fatal-warnings.
590 (parse_args): Handle OPTION_NO_WARN_FATAL.
591 * ld.texinfo (Options): Document new command line switch.
593 2008-06-04 Alan Modra <amodra@bigpond.net.au>
595 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
597 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
599 * ldlang.c (closest_target_match): Skip generic big and little
602 2008-05-31 Evandro Menezes <evandro@yahoo.com>
605 * ld.h (enum sort_order): New.
606 * ldlang.c (lang_check: Fix comment.
607 (lang_common): Sort commons in ascending or descending order.
608 (lang_one_common): Likewise.
609 * lexsup.c (ld_options): Have --sort-common take an option
611 (parse_args): Handle argument to --sort-common.
612 * ld.texinfo (--sort-common): Document new optional argument.
613 * NEWS: Mention new feature.
615 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
617 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
620 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
622 * pe-dll.c (fill_edata): Make sure we calculate vma's in
624 (generate_reloc): Likewise.
625 (pe_implied_import_dll): Likewise.
627 2008-05-21 Nick Clifton <nickc@redhat.com>
630 * ld.texinfo (Orphan Sections): Mention that the linker will
631 provide start and stop symbols for orphaned sections if their
632 names are valid C identifiers.
633 * NEWS: Add an addendum to the description of the linker feature
634 for providing orphan section start and end symbols.
636 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
638 * configure.in (--enable-got): New option. Handle it.
639 * configure: Regenerate.
640 * config.in: Regenerate.
641 * emultempl/m68kelf.em: (got_handling_target_default): New shell
643 (GOT_HANDLING_TARGET_DEFAULT): New macro.
644 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
645 option if one was given.
646 (got_handling): New static variable.
647 (elf_m68k_create_output_section_statements): New static function
649 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
650 (OPTION_GOT): New macro.
651 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
653 (got): New linker option.
654 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
656 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
658 * ld.texinfo: Document --got=<type> option.
659 * gen-doc.texi: Add M68K.
660 * NEWS: Mention the new feature.
662 2008-05-21 Evandro Menezes <evandro@yahoo.com>
665 * ld.texinfo (--sort-common): Correct documentation to indicate
666 that sorting is performed by alignment, not size, biggest
669 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
670 Nick Clifton <nickc@redhat.com>
672 * ld.texinfo (ARM): Document --stub-group-size=N option.
673 Move description of --pic-veneer option into the ARM section.
674 * NEWS: Mention the support for long function calls.
676 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
678 * emultempl/armelf.em (build_section_lists): New function.
680 (need_laying_out): Define.
681 (group_size): Define.
682 (hook_stub_info): Define.
683 (hook_in_stub): New function.
684 (elf32_arm_add_stub_section): New function.
685 (gldarm_layout_sections_again): New function.
686 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
687 stubs for long calls if needed.
688 (arm_elf_create_output_section_statements): create stub_file bfd.
689 (arm_for_each_input_file_wrapper): New function.
690 (arm_lang_for_each_input_file): New function.
691 (lang_for_each_input_file): Define.
692 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
693 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
694 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
695 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
696 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
697 * lang.c (print_input_statement): Skip if bfd has
700 2008-05-14 Alan Modra <amodra@bigpond.net.au>
702 * Makefile.in: Regenerate.
704 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
707 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
708 of long and change return type to bfd_vma.
709 (definfo): Change type of address from long to bfd_vma.
710 (set_pep_value): Replace strtoul to strtoull.
711 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
712 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
714 (quick_reloc): Change argument address from int to bfd_size_type.
716 2008-05-08 Tom Tromey <tromey@redhat.com>
718 * ld.texinfo (PowerPC64 ELF64): Fix typo.
720 2008-05-08 Alan Modra <amodra@bigpond.net.au>
722 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
723 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
724 sections at the start of ".data" and provide a symbol to locate
725 the directory of embedded spe programs.
727 2008-05-08 Alan Modra <amodra@bigpond.net.au>
729 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
731 (fold_binary <SEGMENT_START>): Set expld.result.section to
732 current section. Expand comment. Formatting.
733 (fold_name <DEFINED>): Set expld.result.section to current section.
735 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
737 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
740 2008-04-25 Michael Frysinger <vapier@gentoo.org>
742 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
743 and targ_extra_emuls to elf32bfin.
745 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
747 * aclocal.m4: Regenerate.
748 * configure: Regenerate.
750 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
752 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
754 2008-04-08 Alan Modra <amodra@bigpond.net.au>
756 * po/POTFILES.in: Regenerate.
758 2008-04-08 Alan Modra <amodra@bigpond.net.au>
760 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
761 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
762 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
763 (struct tflist, clean_tmp): Move.
764 (new_tmp_file): New function, extracted from..
765 (embedded_spu_file): ..here.
766 (spu_elf_open_overlay_script, spu_elf_relink): New function.
767 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
768 Warn on --auto-overlay and zero local store.
769 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
770 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
771 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
772 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
773 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
774 (PARSE_AND_LIST_OPTIONS): Likewise.
775 (PARSE_AND_LIST_ARGS_CASES): Likewise.
776 (LDEMUL_CHOOSE_TARGET): Define.
778 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
781 * pe-dll.c (make_head): Fix iat and thunk addend offset.
783 2008-03-31 Nick Clifton <nickc@redhat.com>
785 * po/fr.po: Updated French translation.
787 2008-03-24 Ian Lance Taylor <iant@google.com>
789 The sha1 code is now in libiberty.
792 * Makefile.am (CFILES): Remove sha1.c.
793 (HFILES): Remove sha1.h.
794 (OFILES): Remove sha1.o.
795 (ld_new_SOURCES): Remove sha1.c.
796 (sha1.o): Remove target.
797 * Makefile.in: Rebuild.
799 2008-03-20 Alan Modra <amodra@bigpond.net.au>
801 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
803 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
805 * aclocal.m4: Regenerate.
806 * configure: Likewise.
807 * Makefile.in: Likewise.
809 2008-03-14 Alan Modra <amodra@bigpond.net.au>
811 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
812 spu_elf_build_stubs with is_spu_target.
814 2008-03-13 Alan Modra <amodra@bigpond.net.au>
816 * Makefile.am: Run "make dep-am".
817 * Makefile.in: Regenerate.
818 * configure: Regenerate.
820 2008-03-06 Joseph Myers <joseph@codesourcery.com>
821 Roman Zippel <zippel@linux-m68k.org>
823 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
824 (COMMONPAGESIZE): Define.
826 2008-02-22 Nick Clifton <nickc@redhat.com>
829 * ldlang.c (lang_size_sections_1): Honour the setting of an
830 lma_region even if there is no vma region set, or the vma region
831 is the same as the lma region.
833 2008-02-18 Nick Clifton <nickc@redhat.com>
835 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
837 * scripttempl/elf32cr16.sc: Likewise.
838 * scripttempl/elf32cr16c.sc: Likewise.
839 * scripttempl/elf32crx.sc: Likewise.
840 * scripttempl/elf32sh-symbian.sc: Likewise.
841 * scripttempl/elf_chaos.sc: Likewise.
842 * scripttempl/elfd10v.sc: Likewise.
843 * scripttempl/elfi370.sc: Likewise.
844 * scripttempl/elfm68hc11.sc: Likewise.
845 * scripttempl/elfm68hc12.sc: Likewise.
846 * scripttempl/ip2k.sc: Likewise.
847 * scripttempl/iq2000.sc: Likewise.
848 * scripttempl/mep.sc: Likewise.
849 * scripttempl/v850.sc: Likewise.
850 * scripttempl/xstormy16.sc: Likewise.
852 2008-02-16 Alan Modra <amodra@bigpond.net.au>
855 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
856 load_base before calling make_abs.
858 2008-02-15 Alan Modra <amodra@bigpond.net.au>
860 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
861 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
863 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
865 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
867 (is_ppc_elf): ..this new macro.
869 2008-02-15 Alan Modra <amodra@bigpond.net.au>
871 * ldmain.h (output_bfd): Delete.
872 * ldmain.c (output_bfd): Delete.
873 Replace all occurrences of output_bfd with link_info.output_bfd.
874 * ldcref.c: Likewise.
875 * ldctor.c: Likewise.
876 * ldemul.c: Likewise.
878 * ldfile.c: Likewise.
879 * ldlang.c: Likewise.
880 * ldmisc.c: Likewise.
881 * ldwrite.c: Likewise.
882 * pe-dll.c: Likewise.
883 * emultempl/aix.em: Likewise.
884 * emultempl/alphaelf.em: Likewise.
885 * emultempl/armcoff.em: Likewise.
886 * emultempl/armelf.em: Likewise.
887 * emultempl/avrelf.em: Likewise.
888 * emultempl/beos.em: Likewise.
889 * emultempl/elf-generic.em: Likewise.
890 * emultempl/elf32.em: Likewise.
891 * emultempl/gld960.em: Likewise.
892 * emultempl/hppaelf.em: Likewise.
893 * emultempl/irix.em: Likewise.
894 * emultempl/linux.em: Likewise.
895 * emultempl/lnk960.em: Likewise.
896 * emultempl/m68hc1xelf.em: Likewise.
897 * emultempl/mmix-elfnmmo.em: Likewise.
898 * emultempl/mmo.em: Likewise.
899 * emultempl/pe.em: Likewise.
900 * emultempl/pep.em: Likewise.
901 * emultempl/ppc32elf.em: Likewise.
902 * emultempl/ppc64elf.em: Likewise.
903 * emultempl/scoreelf.em: Likewise.
904 * emultempl/sh64elf.em: Likewise.
905 * emultempl/spuelf.em: Likewise.
906 * emultempl/sunos.em: Likewise.
907 * emultempl/vanilla.em: Likewise.
908 * emultempl/vxworks.em: Likewise.
909 * emultempl/xtensaelf.em: Likewise.
910 * emultempl/z80.em: Likewise.
911 * ldlang.c (open_output): Don't return output, instead write
912 link_info_output_bfd directly.
913 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
914 with link_info.output_bfd->xvec.
915 * emultempl/hppaelf.em: Likewise.
916 * emultempl/ppc32elf.em: Likewise.
917 * emultempl/ppc64elf.em: Likewise.
918 * emultempl/spuelf.em: Likewise.
920 2008-02-07 Alan Modra <amodra@bigpond.net.au>
922 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
923 * ldfile.c (ldfile_add_library_path): Likewise.
924 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
925 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
926 * emultempl/spuelf.em (embedded_spu_file): Likewise.
928 2008-02-07 Alan Modra <amodra@bigpond.net.au>
930 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
931 a "present" bit rather than low bit of .buf. Correct indexing
932 into _ovly_buf_table. Use relative loads and stores to access
933 overlay manager local vars.
934 * emultempl/spu_ovl.o: Regenerate.
936 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
939 * configure: Regenerated.
941 2008-01-31 Marc Gauthier <marc@tensilica.com>
943 * configure.tgt (xtensa*-*-*): Recognize processor variants.
945 2008-01-28 Fabian Groffen <grobian@gentoo.org>
947 * configure.tgt (x86_64-*-solaris2): Add support for this target.
949 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
952 * genscripts.sh: Check for the existence of BASH_LINENO not just
953 the BASH shell before generating line numbers in the emulation
956 2008-01-28 Alan Modra <amodra@bigpond.net.au>
958 * emultempl/spu_ovl.S: Rewrite.
959 * emultempl/spu_ovl.o: Regenerate.
960 * emultempl/spuelf.em (toe): Delete.
961 (spu_place_special_section): Add param to control section placement.
963 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
965 (spu_before_allocation): Adjust spu_elf_size_stubs call.
966 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
968 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
971 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
974 2008-01-25 Alan Modra <amodra@bigpond.net.au>
976 * ld.texinfo (INSERT): Describe.
977 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
978 (INSERT_K, AFTER, BEFORE): Add as tokens.
979 (ifile_p1): Handle INSERT statements.
980 (saved_script_handle, force_make_executable): Move to..
982 (previous_script_handle): New global var.
983 * ldmain.h (saved_script_handle, force_make_executable): Declare.
984 (previous_script_handle): Likewise.
985 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
986 * lexsup.c (parge_args <-T>): Set previous_script_handle.
987 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
988 (map_input_to_output_sections, print_statement): Likewise.
989 (lang_size_sections_1, lang_do_assignments_1): Likewise.
990 (insert_os_after): New function, extracted from..
991 (lang_insert_orphan): ..here.
992 (process_insert_statements): New function.
993 (lang_process): Call it.
994 (lang_add_insert): New function.
995 * ldlang.h (lang_insert_statement_enum): New.
996 (lang_insert_statement_type): New.
997 (lang_statement_union_type): Add insert_statement.
998 (lang_add_insert): Declare.
1000 2008-01-18 Bob Wilson <bob.wilson@acm.org>
1002 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
1003 changes from elf.sc.
1005 2008-01-16 Alan Modra <amodra@bigpond.net.au>
1007 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
1009 2008-01-16 Alan Modra <amodra@bigpond.net.au>
1011 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
1012 (lang_afile_asection_pair_statement_type): Delete.
1013 (lang_statement_union_type): Delete afile_asection_pair_statement.
1014 * ldlang.c (lang_insert_orphan): Delete case handling the above.
1015 (map_input_to_output_sections, print_statement): Likewise.
1017 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1019 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
1021 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
1023 2008-01-15 Alan Modra <amodra@bigpond.net.au>
1026 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
1027 syms to _bfd_elf_gc_keep.
1028 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
1029 ppc64_elf_edit_opd if no_opd_opt.
1031 2008-01-11 Tristan Gingold <gingold@adacore.com>
1032 Eric Botcazou <ebotcazou@adacore.com>
1034 * ldlang.c (lang_end): Warns if the entry point is not found when
1036 Emit an error if no root is specified when --gc-sections -r.
1037 * ld.texinfo (Options): Document that --gc-sections is compatible
1039 * ldmain.c (main): Do not error out if -r and --gc-sections.
1040 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
1042 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
1045 * ldlang.c (lang_end): Issue a warning for a missing start symbol
1046 of a shared library if the symbol was specified on the command
1049 2008-01-10 Alan Modra <amodra@bigpond.net.au>
1051 * ld.texinfo (--gc-sections): Describe linker behaviour.
1053 For older changes see ChangeLog-2007
1059 version-control: never