1 2008-12-23 Tristan Gingold <gingold@adacore.com>
3 * Makefile.am (EXTRA_DIST): Add deffilep.c and deffilep.h
4 * Makefile.in: Regenerate.
6 2008-12-23 Nick Clifton <nickc@redhat.com>
8 * NEWS: Remove mention of support for STT_IFUNC.
10 2008-12-18 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
12 * configure: Regenerate.
14 2008-12-10 Alan Modra <amodra@bigpond.net.au>
16 * emultempl/spuelf.em (params): Init new field.
17 (OPTION_SPU_NUM_REGIONS): Define.
18 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Add --num-regions.
19 (PARSE_AND_LIST_ARGS_CASES): Handle --num-regions.
21 2008-12-10 Alan Modra <amodra@bigpond.net.au>
23 * emultempl/spuelf.em (params): New var, used instead of various others.
24 Adjust use throughout file.
25 (spu_after_open): Call spu_elf_setup.
26 (spu_place_special_section): Tidy.
27 (spu_elf_load_ovl_mgr): Return total size of sections loaded. Move
28 code setting overlay section alignment to..
29 (spu_before_allocation): ..here.
31 2008-12-03 Nick Clifton <nickc@redhat.com>
33 * NEWS: Mention new feature.
34 * pe-dll.c (process_def_file): Replace use of redundant
35 BFD_FORT_COMM_DEFAULT_VALUE with 0.
36 * scripttempl/elf.sc: Add .rel.ifunc.dyn and .rela.ifunc.dyn
39 2008-12-02 Kai Tietz <kai.tietz@onevision.com>
41 * pe-dll.c (make_runtime_pseudo_reloc): Make symtab big enough to
44 2008-11-27 M R Swami Reddy <MR.Swami.Reddy@nsc.com>
46 * emultempl/cr16elf.em (cr16_after_open): New function to handle
47 CR16 ELF embedded reloc creation (ld --embedded-relocs).
48 (check_sections): New function.
49 (LDEMUL_AFTER_OPEN): Define.
50 * emulparams/elf32cr16.sh (EMBEDDED): Define.
52 2008-11-26 Alan Modra <amodra@bigpond.net.au>
55 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_new_vers_pattern): Update
56 for changes to struct bfd_elf_version_expr.
57 * ldlang.c (lang_vers_match, version_expr_head_hash): Likewise.
58 (version_expr_head_eq, lang_finalize_version_expr_head): Likewise.
59 (lang_register_vers_node): Likewise.
60 (lang_new_vers_pattern): Likewise. Ensure "literal" is set when
61 no glob chars found in "pattern".
62 (realsymbol): Correct backslash quote logic.
63 * ld.texinfo (VERSION): Warn about global wildcards.
65 2008-11-24 Alan Modra <amodra@bigpond.net.au>
67 * ldlang.c (lang_record_phdrs): Don't add orphans to PT_INTERP header.
69 2008-11-19 Nick Clifton <nickc@redhat.com>
71 * fdl.texi: Update to v1.3
72 * ld.texinfo: Change license to v1.3.
74 2008-11-17 Ulrich Weigand <uweigand@de.ibm.com>
76 * configure.tgt [spu-*-elf*]: Set NATIVE_LIB_DIRS to '/lib'.
78 2008-11-17 Nick Clifton <nickc@redhat.com>
80 * ldver.c: Update copyright year.
82 2008-11-14 Kai Tietz <kai.tietz@onevision.com>
84 * emultempl/pep.em (..._before_parse): initialize
85 pei386_runtime_pseudo_reloc by version 2.
86 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
87 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
88 (make_import_fixup): Use relocation size to read addend.
89 * emultempl/pe.em (..._before_parse): initialize
90 pei386_runtime_pseudo_reloc by version 1.
91 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
92 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
93 * pe-dll.c (pe-dll.h): Remove useless include.
94 (make_runtime_pseudo_reloc): Change addend to use bfd_vma.
95 Handle the two variants of pseudo-relocation.
96 (pe_create_import_fixup): Change addend to type bfd_vma.
97 Modify for the two pseudo_relocation variants.
98 (runtime_pseudp_reloc_v2_init): New static variable.
99 * pe-dll.h (pe_create_import_fixup): Change addend argument type
101 * pep-dll.h (pep_create_import_fixup): Likewise.
104 2008-11-14 Alan Modra <amodra@bigpond.net.au>
106 * Makefile.am (spu_ovl.o_c): Add missing line continuations.
107 * Makefile.in: Regenerate.
109 2008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>
111 * configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*.
113 2008-11-03 Bob Wilson <bob.wilson@acm.org>
115 * emulparams/elf32xtensa.sh (NO_REL_RELOCS): Set.
116 * scripttempl/elfxtensa.sc (NO_REL_RELOCS, NO_RELA_RELOCS)
117 (NON_ALLOC_DYN): Import changes from elf.sc.
119 2008-10-25 Nick Clifton <nickc@redhat.com>
122 * ldlang.c (lang_size_sections_1): Do not update the VMAs of
123 output sections when performing a relocatable link on COFF
126 2008-10-22 Nick Clifton <nickc@redhat.com>
128 * emultempl/armelf.em (arm_elf_after_open): Move check for using a
129 non-arm output target from here...
130 (arm_elf_create_output_section_statements): ... to here, so that
131 the check is made at the earliest possible opportunity.
133 2008-10-22 Alan Modra <amodra@bigpond.net.au>
135 * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32".
136 (EXTRA_EM_FILE): Define.
138 2008-10-22 Alan Modra <amodra@bigpond.net.au>
140 * scripttempl/elf.sc (NO_REL_RELOCS, NO_RELA_RELOCS, NON_ALLOC_DYN):
141 Handle these defines.
142 * emulparams/criself.sh, * emulparams/crislinux.sh,
143 * emulparams/elf32am33lin.sh, * emulparams/elf32fr30.sh,
144 * emulparams/elf32_i860.sh, * emulparams/elf32ip2k.sh,
145 * emulparams/elf32mcore.sh, * emulparams/elf32ppccommon.sh,
146 * emulparams/elf32ppcwindiss.sh, * emulparams/elf32_sparc.sh,
147 * emulparams/elf32_spu.sh, * emulparams/elf32vax.sh,
148 * emulparams/elf64alpha.sh, * emulparams/elf64mmix.sh,
149 * emulparams/elf64ppc.sh, * emulparams/elf64_s390.sh,
150 * emulparams/elf64_sparc.sh, * emulparams/elf_s390.sh,
151 * emulparams/elf_x86_64.sh, * emulparams/h8300elf.sh,
152 * emulparams/hppa64linux.sh, * emulparams/hppalinux.sh,
153 * emulparams/m68kelf.sh, * emulparams/mn10200.sh,
154 * emulparams/pjelf.sh, * emulparams/ppclynx.sh,
155 * emulparams/shelf32.sh, * emulparams/shelf_nto.sh,
156 * emulparams/shelf.sh, * emulparams/shelf_vxworks.sh,
157 * emulparams/shlelf32_linux.sh, * emulparams/shlelf_linux.sh,
158 * emulparams/shlelf_nto.sh (NO_REL_RELOCS): Set.
159 * emulparams/arcelf.sh, * emulparams/elf32_i960.sh,
160 * emulparams/elf32openrisc.sh, * emulparams/elf_i386_be.sh,
161 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386.sh,
162 * emulparams/elf_i386_vxworks.sh, * emulparams/i386lynx.sh,
163 * emulparams/i386moss.sh, * emulparams/i386nto.sh,
164 * emulparams/or32elf.sh, * emulparams/scoreelf.sh (NO_RELA_RELOCS): Set.
166 2008-10-22 Alan Modra <amodra@bigpond.net.au>
168 * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
170 * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc.
172 (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans.
174 2008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
176 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in
179 2008-10-20 Alan Modra <amodra@bigpond.net.au>
181 * ldemul.h (ldemul_place_orphan): Update prototype.
182 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
183 * ldemul.c (ldemul_place_orphan): Return pointer to output
185 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
186 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
187 * emultempl/mmo.em (mmo_place_orphan): Likewise.
188 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
189 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
191 2008-10-08 Nick Clifton <nickc@redhat.com>
193 * configure.in (ALL_LINGUAS): Add "id".
194 * configure: Regenerate.
195 * po/id.po: New Indonesian translation.
197 2008-10-05 Alan Modra <amodra@bigpond.net.au>
200 * scripttempl/avr.sc (.bss): Set lma when relocating.
201 (.bss, .noinit): No need to set vma when relocating.
202 (.text, .bss, ,noinit): Set vma to zero when not relocating.
204 2008-10-04 Alan Modra <amodra@bigpond.net.au>
207 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
208 * ldemul.h (ldemul_place_orphan): Update prototype.
209 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
210 * ldlang.c (unique_section_p): Make static.
211 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
213 (lang_insert_orphan): Add "constraint" param. Pass to
214 lang_enter_output_section_statement.
215 (init_os): Don't use an existing bfd section for SPECIAL sections.
216 (lang_place_orphans): Don't rename unique output sections, instead
217 mark their output section statements SPECIAL.
218 * ldlang.h (lang_insert_orphan): Update prototype.
219 (unique_section_p): Delete.
220 * emultempl/beos.em (place_orphan): Add "constraint" param.
221 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
222 output sections if set.
223 * emultempl/pe.em (place_orphan): Likewise.
224 * emultempl/pep.em (place_orphan): Likewise.
225 * emultempl/mmo.em (mmo_place_orphan): Update.
226 * emultempl/spuelf.em (spu_place_special_section): Update.
228 2008-10-03 Alan Modra <amodra@bigpond.net.au>
231 * ldemul.c (ldemul_place_orphan): Add "name" param.
232 * ldemul.h (ldemul_place_orphan): Update prototype.
233 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
234 * ldlang.c (lang_place_orphans): Generate unique section names here..
235 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
236 directly use an existing output section statement that has no
238 * emultempl/pe.em (place_orphan): Likewise.
239 * emultempl/pep.em (place_orphan): Likewise.
240 * emultempl/beos.em (place_orphan): Adjust.
241 * emultempl/spuelf.em (spu_place_special_section): Adjust
243 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
244 (LDEMUL_AFTER_OPEN): Define.
246 2008-09-30 Joseph Myers <joseph@codesourcery.com>
248 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
251 2008-09-30 Alan Modra <amodra@bigpond.net.au>
253 * Makefile.am: Run "make dep-am".
254 * Makefile.in: Regenerate.
256 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
257 Steve Ellcey <sje@cup.hp.com>
259 * configure: Regenerate for new libtool.
261 * Makefile.in: Ditto.
263 2008-09-29 Kai Tietz <kai.tietz@onevision.com>
265 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
267 2008-09-29 Nick Clifton <nickc@redhat.com>
269 * po/vi.po: Updated Vietnamese translation.
271 2008-09-25 Alan Modra <amodra@bigpond.net.au>
273 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
275 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
277 * configure.in: Call AC_SYS_LARGEFILE.
278 * config.in: Regenerate.
279 * configure: Regenerate.
281 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
283 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
285 * emultempl/pep.em (pep_find_data_imports): Likewise.
287 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
289 2008-09-07 Alan Modra <amodra@bigpond.net.au>
291 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
292 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
294 2008-09-08 Tristan Gingold <gingold@adacore.com>
296 * NEWS: Add a marker for the 2.19 features.
298 2008-09-07 Alan Modra <amodra@bigpond.net.au>
300 * ldlang.h (lang_output_section_find): Define.
301 (lang_output_section_statement_lookup): Update prototype.
302 * ldlang.c (lang_output_section_find,
303 lang_output_section_statement_lookup_1): Merge into..
304 (lang_output_section_statement_lookup): ..here. Update all callers.
305 (process_insert_statements): Set constraint negative
306 for output section statements we might be inserting. Make error
307 fatal on not finding insertion section.
308 (lang_output_section_find): Rather than comparing
309 output_section_statement.constraint against -1, test whether
311 (lang_output_section_statement_lookup_1): Likewise.
312 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
313 (lang_record_phdrs): Likewise.
314 * emultempl/elf32.em (output_rel_find): Likewise.
315 * NEWS: Mention INSERT.
317 2008-08-26 Nick Clifton <nickc@redhat.com>
320 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
321 input sections in all input bfds and always select the last
322 suitable one, so that interworking stubs are always processed
323 after all other input sections.
324 (arm_elf_before_allocation): Remove redundant use of
325 output_has_begun flag.
327 2008-08-24 Alan Modra <amodra@bigpond.net.au>
329 * configure.in: Update a number of obsolete autoconf macros.
330 * configure: Regenerate.
331 * aclocal.m4: Regenerate.
333 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
336 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
337 EXPLD.DATASEG.MIN_BASE.
338 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
339 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
340 Use OLD_BASE now for the minimal base check after the base decrease by
341 the maximum alignment found.
343 2008-08-17 Alan Modra <amodra@bigpond.net.au>
346 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
347 Don't free symbol pointer array.
348 (check_refs): Likewise.
349 * ldmain.c (warning_callback): Likewise.
350 * ldmisc.c (vfinfo): Likewise.
351 * pe-dll.c (process_def_file): Likewise.
352 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
353 * emultempl/pe.em (pe_find_data_imports): Likewise.
354 (gld_${EMULATION_NAME}_after_open): Likewise.
355 * emultempl/pep.em (pep_find_data_imports): Likewise.
356 (gld_${EMULATION_NAME}_after_open): Likewise.
357 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
358 passive_position, closed.
359 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
360 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
362 2008-08-15 Alan Modra <amodra@bigpond.net.au>
365 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
366 * Makefile.in: Regenerate.
367 * aclocal.m4: Regenerate.
368 * config.in: Regenerate.
369 * configure: Regenerate.
371 2008-08-09 Alan Modra <amodra@bigpond.net.au>
374 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
375 (main): Don't set_scripts_dir here.
376 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
377 largely based on ldmain.c versions.
378 (ldfile_find_command_file): Set up search in script dir here without
379 affecting library search.
380 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
381 (ldfile.o): New rule.
382 * Makefile.in: Regenerate.
384 2008-08-08 Anatoly Sokolov <aesok@post.ru>
386 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
388 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
389 * Makefile.in: Regenerate.
390 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
392 * emulparams/avr25.sh: New file.
393 * emulparams/avr31.sh: New file.
394 * emulparams/avr35.sh: New file.
395 * emulparams/avr51.sh: New file.
397 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
398 Daniel Jacobowitz <dan@codesourcery.com>
400 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
401 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
403 * emulparams/elf32bmipn32-defs.sh: Likewise.
404 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
405 (is_mips_elf): New macro.
406 (stub_file, stub_bfd): New variables.
407 (hook_stub_info): New structure.
408 (hook_in_stub): New function.
409 (mips_add_stub_section): Likewise.
410 (mips_create_output_section_statements): Likewise.
411 (mips_before_allocation): Likewise.
412 (real_func): New variable.
413 (mips_for_each_input_file_wrapper): New function.
414 (mips_lang_for_each_input_file): Likewise.
415 (lang_for_each_input_file): Define.
416 (LDEMUL_BEFORE_ALLOCATION): Likewise.
417 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
419 2008-08-08 Alan Modra <amodra@bigpond.net.au>
421 * ldfile.c (ldfile_open_file_search): Use concat.
422 (try_open): Don't use a fixed size pathname buffer.
423 (ldfile_find_command_file): Likewise.
424 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
425 using EXTRA_SHLIB_EXTENSION, don't open twice.
427 2008-08-04 Alan Modra <amodra@bigpond.net.au>
429 * Makefile.am (POTFILES.in): Set LC_ALL=C.
430 * Makefile.in: Regenerate.
431 * po/POTFILES.in: Regenerate.
433 2008-08-03 Alan Modra <amodra@bigpond.net.au>
435 * Makefile.am (spu_ovl.o): Merge rule into..
436 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
437 * Makefile.in: Regenerate.
439 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
441 Include the spu_ovl ASCII form in the repository files.
442 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
443 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
444 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
445 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
446 (spu_ovl.o): ...this one.
447 * Makefile.in: Regenerate.
448 * emultempl/spu_ovl.o_c: New file.
449 * emultempl/spu_ovl.o: File removed.
451 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
453 * pe-dll.c (generate_relocs): Don't generate relocs for
454 undefined weak symbols.
456 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
458 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
460 2008-07-30 Alan Modra <amodra@bigpond.net.au>
462 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
464 2008-07-18 Joseph Myers <joseph@codesourcery.com>
466 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
467 * emultempl/armelf.em (no_wchar_size_warning): New.
468 (arm_elf_create_output_section_statements): Pass
469 no_wchar_size_warning to arm_elf_create_output_section_statements.
470 (OPTION_NO_WCHAR_SIZE_WARNING): New.
471 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
472 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
473 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
475 2008-07-15 Jie Zhang <jie.zhang@analog.com>
477 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
479 2008-07-12 Craig Silverstein <csilvers@google.com>
482 * configure.in: Check for, and include, libz.a if it is present.
483 * configure: Regenerate.
484 * config.in: Regenerate.
486 2008-07-12 Jie Zhang <jie.zhang@analog.com>
489 2008-07-12 Jie Zhang <jie.zhang@analog.com>
490 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
491 (eelf32bfinfd.c): Likewise.
492 * Makefile.in: Regenerate.
493 * gen-doc.texi: Set Blackfin.
494 * ld.texinfo: Document --sep-code and Blackfin specific
496 * ldmain.c (main): Initialize link_info.sep_code.
497 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
498 (ld_options[]): Add --sep-code.
499 (parse_args): Deal with --sep-code.
500 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
501 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
502 * emultempl/bfin.em: New file.
504 2008-07-12 Jie Zhang <jie.zhang@analog.com>
506 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
507 (eelf32bfinfd.c): Likewise.
508 * Makefile.in: Regenerate.
509 * gen-doc.texi: Set Blackfin.
510 * ld.texinfo: Document --sep-code and Blackfin specific
512 * ldmain.c (main): Initialize link_info.sep_code.
513 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
514 (ld_options[]): Add --sep-code.
515 (parse_args): Deal with --sep-code.
516 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
517 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
518 * emultempl/bfin.em: New file.
520 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
522 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
524 Exclude "_IMPORT_DESCRIPTOR_".
525 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
526 (autofilter_symbollist_generic): Don't check for ".text".
527 Exclude "_NULL_IMPORT_DESCRIPTOR".
528 (autofilter_symbollist_i386): Likewise.
530 2008-07-07 Alan Modra <amodra@bigpond.net.au>
532 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
533 bfd_make_section_with_flags.
534 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
536 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
537 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
538 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
539 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
540 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
541 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
544 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
546 * ld.texinfo (File Commands): Document that INCLUDE can be used in
547 several different places.
548 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
549 (memory, memory_spec_list): Simplify BNF
550 (memory_spec_list_opt): New rule.
551 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
553 2008-06-20 Alan Modra <amodra@bigpond.net.au>
555 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
556 build overlay stubs" a fatal error.
558 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
560 * config.in: Regenerate.
561 * configure: Regenerate.
563 2008-06-17 Alan Modra <amodra@bigpond.net.au>
565 * emultempl/spuelf.em (extra_stack_space): New variable.
566 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
567 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
568 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
569 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
570 overlay manager structures.
571 * emultempl/spu_ovl.o: Regenerate.
573 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
575 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
576 mention it as being special for global symbols.
578 2008-06-12 Nick Clifton <nickc@redhat.com>
580 * ldlang.c (print_output_section_statement): If the output section
581 statement has an update_dot_tree expression, apply it to
583 (print_input_section): Do not update print_dot if it would move
585 (lang_do_assignments_1): If the output section statement has an
586 update_dot_tree expression apply it to dot.
588 2008-06-07 Alan Modra <amodra@bigpond.net.au>
590 * NEWS: Mention archive:path patterns.
591 * ld.texinfo: Likewise.
592 * ldlang.c: Formatting throughout.
593 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
594 (input_statement_is_archive_path): New function, extracted from..
596 (walk_wild_consider_section): Match archive:path here too.
597 (init_map_userdata, sort_def_symbol): Convert to ISO C.
598 * ldmain.c (main): Set link_info.path_separator.
599 * emultempl/spuelf.em (choose_target): Don't set it here.
601 2008-06-06 Alan Modra <amodra@bigpond.net.au>
603 * ldlang.c (name_match): New function.
604 (unique_section_p, walk_wild_consider_section): Use it here.
605 (walk_wild_section_general): And here.
606 (archive_path): New function.
607 (walk_wild): Match archive:path filespecs.
608 (open_input_bfds): Don't load archive:path files.
609 * emultempl/spuelf.em (choose_target): Set path_separator.
610 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
612 2008-06-04 Nick Clifton <nickc@redhat.com>
614 * ld.texinfo (Orphan Sections): Fix texi typo.
616 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
618 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
619 (ld_options): Add entry for --no-fatal-warnings.
620 (parse_args): Handle OPTION_NO_WARN_FATAL.
621 * ld.texinfo (Options): Document new command line switch.
623 2008-06-04 Alan Modra <amodra@bigpond.net.au>
625 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
627 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
629 * ldlang.c (closest_target_match): Skip generic big and little
632 2008-05-31 Evandro Menezes <evandro@yahoo.com>
635 * ld.h (enum sort_order): New.
636 * ldlang.c (lang_check: Fix comment.
637 (lang_common): Sort commons in ascending or descending order.
638 (lang_one_common): Likewise.
639 * lexsup.c (ld_options): Have --sort-common take an option
641 (parse_args): Handle argument to --sort-common.
642 * ld.texinfo (--sort-common): Document new optional argument.
643 * NEWS: Mention new feature.
645 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
647 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
650 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
652 * pe-dll.c (fill_edata): Make sure we calculate vma's in
654 (generate_reloc): Likewise.
655 (pe_implied_import_dll): Likewise.
657 2008-05-21 Nick Clifton <nickc@redhat.com>
660 * ld.texinfo (Orphan Sections): Mention that the linker will
661 provide start and stop symbols for orphaned sections if their
662 names are valid C identifiers.
663 * NEWS: Add an addendum to the description of the linker feature
664 for providing orphan section start and end symbols.
666 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
668 * configure.in (--enable-got): New option. Handle it.
669 * configure: Regenerate.
670 * config.in: Regenerate.
671 * emultempl/m68kelf.em: (got_handling_target_default): New shell
673 (GOT_HANDLING_TARGET_DEFAULT): New macro.
674 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
675 option if one was given.
676 (got_handling): New static variable.
677 (elf_m68k_create_output_section_statements): New static function
679 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
680 (OPTION_GOT): New macro.
681 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
683 (got): New linker option.
684 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
686 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
688 * ld.texinfo: Document --got=<type> option.
689 * gen-doc.texi: Add M68K.
690 * NEWS: Mention the new feature.
692 2008-05-21 Evandro Menezes <evandro@yahoo.com>
695 * ld.texinfo (--sort-common): Correct documentation to indicate
696 that sorting is performed by alignment, not size, biggest
699 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
700 Nick Clifton <nickc@redhat.com>
702 * ld.texinfo (ARM): Document --stub-group-size=N option.
703 Move description of --pic-veneer option into the ARM section.
704 * NEWS: Mention the support for long function calls.
706 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
708 * emultempl/armelf.em (build_section_lists): New function.
710 (need_laying_out): Define.
711 (group_size): Define.
712 (hook_stub_info): Define.
713 (hook_in_stub): New function.
714 (elf32_arm_add_stub_section): New function.
715 (gldarm_layout_sections_again): New function.
716 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
717 stubs for long calls if needed.
718 (arm_elf_create_output_section_statements): create stub_file bfd.
719 (arm_for_each_input_file_wrapper): New function.
720 (arm_lang_for_each_input_file): New function.
721 (lang_for_each_input_file): Define.
722 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
723 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
724 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
725 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
726 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
727 * lang.c (print_input_statement): Skip if bfd has
730 2008-05-14 Alan Modra <amodra@bigpond.net.au>
732 * Makefile.in: Regenerate.
734 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
737 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
738 of long and change return type to bfd_vma.
739 (definfo): Change type of address from long to bfd_vma.
740 (set_pep_value): Replace strtoul to strtoull.
741 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
742 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
744 (quick_reloc): Change argument address from int to bfd_size_type.
746 2008-05-08 Tom Tromey <tromey@redhat.com>
748 * ld.texinfo (PowerPC64 ELF64): Fix typo.
750 2008-05-08 Alan Modra <amodra@bigpond.net.au>
752 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
753 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
754 sections at the start of ".data" and provide a symbol to locate
755 the directory of embedded spe programs.
757 2008-05-08 Alan Modra <amodra@bigpond.net.au>
759 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
761 (fold_binary <SEGMENT_START>): Set expld.result.section to
762 current section. Expand comment. Formatting.
763 (fold_name <DEFINED>): Set expld.result.section to current section.
765 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
767 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
770 2008-04-25 Michael Frysinger <vapier@gentoo.org>
772 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
773 and targ_extra_emuls to elf32bfin.
775 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
777 * aclocal.m4: Regenerate.
778 * configure: Regenerate.
780 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
782 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
784 2008-04-08 Alan Modra <amodra@bigpond.net.au>
786 * po/POTFILES.in: Regenerate.
788 2008-04-08 Alan Modra <amodra@bigpond.net.au>
790 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
791 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
792 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
793 (struct tflist, clean_tmp): Move.
794 (new_tmp_file): New function, extracted from..
795 (embedded_spu_file): ..here.
796 (spu_elf_open_overlay_script, spu_elf_relink): New function.
797 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
798 Warn on --auto-overlay and zero local store.
799 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
800 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
801 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
802 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
803 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
804 (PARSE_AND_LIST_OPTIONS): Likewise.
805 (PARSE_AND_LIST_ARGS_CASES): Likewise.
806 (LDEMUL_CHOOSE_TARGET): Define.
808 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
811 * pe-dll.c (make_head): Fix iat and thunk addend offset.
813 2008-03-31 Nick Clifton <nickc@redhat.com>
815 * po/fr.po: Updated French translation.
817 2008-03-24 Ian Lance Taylor <iant@google.com>
819 The sha1 code is now in libiberty.
822 * Makefile.am (CFILES): Remove sha1.c.
823 (HFILES): Remove sha1.h.
824 (OFILES): Remove sha1.o.
825 (ld_new_SOURCES): Remove sha1.c.
826 (sha1.o): Remove target.
827 * Makefile.in: Rebuild.
829 2008-03-20 Alan Modra <amodra@bigpond.net.au>
831 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
833 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
835 * aclocal.m4: Regenerate.
836 * configure: Likewise.
837 * Makefile.in: Likewise.
839 2008-03-14 Alan Modra <amodra@bigpond.net.au>
841 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
842 spu_elf_build_stubs with is_spu_target.
844 2008-03-13 Alan Modra <amodra@bigpond.net.au>
846 * Makefile.am: Run "make dep-am".
847 * Makefile.in: Regenerate.
848 * configure: Regenerate.
850 2008-03-06 Joseph Myers <joseph@codesourcery.com>
851 Roman Zippel <zippel@linux-m68k.org>
853 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
854 (COMMONPAGESIZE): Define.
856 2008-02-22 Nick Clifton <nickc@redhat.com>
859 * ldlang.c (lang_size_sections_1): Honour the setting of an
860 lma_region even if there is no vma region set, or the vma region
861 is the same as the lma region.
863 2008-02-18 Nick Clifton <nickc@redhat.com>
865 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
867 * scripttempl/elf32cr16.sc: Likewise.
868 * scripttempl/elf32cr16c.sc: Likewise.
869 * scripttempl/elf32crx.sc: Likewise.
870 * scripttempl/elf32sh-symbian.sc: Likewise.
871 * scripttempl/elf_chaos.sc: Likewise.
872 * scripttempl/elfd10v.sc: Likewise.
873 * scripttempl/elfi370.sc: Likewise.
874 * scripttempl/elfm68hc11.sc: Likewise.
875 * scripttempl/elfm68hc12.sc: Likewise.
876 * scripttempl/ip2k.sc: Likewise.
877 * scripttempl/iq2000.sc: Likewise.
878 * scripttempl/mep.sc: Likewise.
879 * scripttempl/v850.sc: Likewise.
880 * scripttempl/xstormy16.sc: Likewise.
882 2008-02-16 Alan Modra <amodra@bigpond.net.au>
885 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
886 load_base before calling make_abs.
888 2008-02-15 Alan Modra <amodra@bigpond.net.au>
890 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
891 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
893 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
895 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
897 (is_ppc_elf): ..this new macro.
899 2008-02-15 Alan Modra <amodra@bigpond.net.au>
901 * ldmain.h (output_bfd): Delete.
902 * ldmain.c (output_bfd): Delete.
903 Replace all occurrences of output_bfd with link_info.output_bfd.
904 * ldcref.c: Likewise.
905 * ldctor.c: Likewise.
906 * ldemul.c: Likewise.
908 * ldfile.c: Likewise.
909 * ldlang.c: Likewise.
910 * ldmisc.c: Likewise.
911 * ldwrite.c: Likewise.
912 * pe-dll.c: Likewise.
913 * emultempl/aix.em: Likewise.
914 * emultempl/alphaelf.em: Likewise.
915 * emultempl/armcoff.em: Likewise.
916 * emultempl/armelf.em: Likewise.
917 * emultempl/avrelf.em: Likewise.
918 * emultempl/beos.em: Likewise.
919 * emultempl/elf-generic.em: Likewise.
920 * emultempl/elf32.em: Likewise.
921 * emultempl/gld960.em: Likewise.
922 * emultempl/hppaelf.em: Likewise.
923 * emultempl/irix.em: Likewise.
924 * emultempl/linux.em: Likewise.
925 * emultempl/lnk960.em: Likewise.
926 * emultempl/m68hc1xelf.em: Likewise.
927 * emultempl/mmix-elfnmmo.em: Likewise.
928 * emultempl/mmo.em: Likewise.
929 * emultempl/pe.em: Likewise.
930 * emultempl/pep.em: Likewise.
931 * emultempl/ppc32elf.em: Likewise.
932 * emultempl/ppc64elf.em: Likewise.
933 * emultempl/scoreelf.em: Likewise.
934 * emultempl/sh64elf.em: Likewise.
935 * emultempl/spuelf.em: Likewise.
936 * emultempl/sunos.em: Likewise.
937 * emultempl/vanilla.em: Likewise.
938 * emultempl/vxworks.em: Likewise.
939 * emultempl/xtensaelf.em: Likewise.
940 * emultempl/z80.em: Likewise.
941 * ldlang.c (open_output): Don't return output, instead write
942 link_info_output_bfd directly.
943 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
944 with link_info.output_bfd->xvec.
945 * emultempl/hppaelf.em: Likewise.
946 * emultempl/ppc32elf.em: Likewise.
947 * emultempl/ppc64elf.em: Likewise.
948 * emultempl/spuelf.em: Likewise.
950 2008-02-07 Alan Modra <amodra@bigpond.net.au>
952 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
953 * ldfile.c (ldfile_add_library_path): Likewise.
954 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
955 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
956 * emultempl/spuelf.em (embedded_spu_file): Likewise.
958 2008-02-07 Alan Modra <amodra@bigpond.net.au>
960 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
961 a "present" bit rather than low bit of .buf. Correct indexing
962 into _ovly_buf_table. Use relative loads and stores to access
963 overlay manager local vars.
964 * emultempl/spu_ovl.o: Regenerate.
966 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
969 * configure: Regenerated.
971 2008-01-31 Marc Gauthier <marc@tensilica.com>
973 * configure.tgt (xtensa*-*-*): Recognize processor variants.
975 2008-01-28 Fabian Groffen <grobian@gentoo.org>
977 * configure.tgt (x86_64-*-solaris2): Add support for this target.
979 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
982 * genscripts.sh: Check for the existence of BASH_LINENO not just
983 the BASH shell before generating line numbers in the emulation
986 2008-01-28 Alan Modra <amodra@bigpond.net.au>
988 * emultempl/spu_ovl.S: Rewrite.
989 * emultempl/spu_ovl.o: Regenerate.
990 * emultempl/spuelf.em (toe): Delete.
991 (spu_place_special_section): Add param to control section placement.
993 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
995 (spu_before_allocation): Adjust spu_elf_size_stubs call.
996 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
998 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
1001 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
1004 2008-01-25 Alan Modra <amodra@bigpond.net.au>
1006 * ld.texinfo (INSERT): Describe.
1007 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
1008 (INSERT_K, AFTER, BEFORE): Add as tokens.
1009 (ifile_p1): Handle INSERT statements.
1010 (saved_script_handle, force_make_executable): Move to..
1012 (previous_script_handle): New global var.
1013 * ldmain.h (saved_script_handle, force_make_executable): Declare.
1014 (previous_script_handle): Likewise.
1015 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
1016 * lexsup.c (parge_args <-T>): Set previous_script_handle.
1017 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
1018 (map_input_to_output_sections, print_statement): Likewise.
1019 (lang_size_sections_1, lang_do_assignments_1): Likewise.
1020 (insert_os_after): New function, extracted from..
1021 (lang_insert_orphan): ..here.
1022 (process_insert_statements): New function.
1023 (lang_process): Call it.
1024 (lang_add_insert): New function.
1025 * ldlang.h (lang_insert_statement_enum): New.
1026 (lang_insert_statement_type): New.
1027 (lang_statement_union_type): Add insert_statement.
1028 (lang_add_insert): Declare.
1030 2008-01-18 Bob Wilson <bob.wilson@acm.org>
1032 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
1033 changes from elf.sc.
1035 2008-01-16 Alan Modra <amodra@bigpond.net.au>
1037 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
1039 2008-01-16 Alan Modra <amodra@bigpond.net.au>
1041 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
1042 (lang_afile_asection_pair_statement_type): Delete.
1043 (lang_statement_union_type): Delete afile_asection_pair_statement.
1044 * ldlang.c (lang_insert_orphan): Delete case handling the above.
1045 (map_input_to_output_sections, print_statement): Likewise.
1047 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1049 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
1051 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
1053 2008-01-15 Alan Modra <amodra@bigpond.net.au>
1056 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
1057 syms to _bfd_elf_gc_keep.
1058 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
1059 ppc64_elf_edit_opd if no_opd_opt.
1061 2008-01-11 Tristan Gingold <gingold@adacore.com>
1062 Eric Botcazou <ebotcazou@adacore.com>
1064 * ldlang.c (lang_end): Warns if the entry point is not found when
1066 Emit an error if no root is specified when --gc-sections -r.
1067 * ld.texinfo (Options): Document that --gc-sections is compatible
1069 * ldmain.c (main): Do not error out if -r and --gc-sections.
1070 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
1072 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
1075 * ldlang.c (lang_end): Issue a warning for a missing start symbol
1076 of a shared library if the symbol was specified on the command
1079 2008-01-10 Alan Modra <amodra@bigpond.net.au>
1081 * ld.texinfo (--gc-sections): Describe linker behaviour.
1083 For older changes see ChangeLog-2007
1089 version-control: never