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