1 2008-11-17 Nick Clifton <nickc@redhat.com>
3 * ldver.c: Update copyright year.
5 2008-11-14 Kai Tietz <kai.tietz@onevision.com>
7 * emultempl/pep.em (..._before_parse): initialize
8 pei386_runtime_pseudo_reloc by version 2.
9 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
10 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
11 (make_import_fixup): Use relocation size to read addend.
12 * emultempl/pe.em (..._before_parse): initialize
13 pei386_runtime_pseudo_reloc by version 1.
14 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V1): New option.
15 (OPTION_DLL_ENABLE_RUNTIME_PSEUDO_RELOC_V2): New option.
16 * pe-dll.c (pe-dll.h): Remove useless include.
17 (make_runtime_pseudo_reloc): Change addend to use bfd_vma.
18 Handle the two variants of pseudo-relocation.
19 (pe_create_import_fixup): Change addend to type bfd_vma.
20 Modify for the two pseudo_relocation variants.
21 (runtime_pseudp_reloc_v2_init): New static variable.
22 * pe-dll.h (pe_create_import_fixup): Change addend argument type
24 * pep-dll.h (pep_create_import_fixup): Likewise.
27 2008-11-14 Alan Modra <amodra@bigpond.net.au>
29 * Makefile.am (spu_ovl.o_c): Add missing line continuations.
30 * Makefile.in: Regenerate.
32 2008-11-06 Joel Sherrill <joel.sherrill@oarcorp.com>
34 * configure.tgt: Add m32c-*-rtems* and m32r-*-rtems*.
36 2008-11-03 Bob Wilson <bob.wilson@acm.org>
38 * emulparams/elf32xtensa.sh (NO_REL_RELOCS): Set.
39 * scripttempl/elfxtensa.sc (NO_REL_RELOCS, NO_RELA_RELOCS)
40 (NON_ALLOC_DYN): Import changes from elf.sc.
42 2008-10-25 Nick Clifton <nickc@redhat.com>
45 * ldlang.c (lang_size_sections_1): Do not update the VMAs of
46 output sections when performing a relocatable link on COFF
49 2008-10-22 Nick Clifton <nickc@redhat.com>
51 * emultempl/armelf.em (arm_elf_after_open): Move check for using a
52 non-arm output target from here...
53 (arm_elf_create_output_section_statements): ... to here, so that
54 the check is made at the earliest possible opportunity.
56 2008-10-22 Alan Modra <amodra@bigpond.net.au>
58 * emulparams/elf32_i960.sh (TEMPLATE_NAME): "generic", not "elf32".
59 (EXTRA_EM_FILE): Define.
61 2008-10-22 Alan Modra <amodra@bigpond.net.au>
63 * scripttempl/elf.sc (NO_REL_RELOCS, NO_RELA_RELOCS, NON_ALLOC_DYN):
65 * emulparams/criself.sh, * emulparams/crislinux.sh,
66 * emulparams/elf32am33lin.sh, * emulparams/elf32fr30.sh,
67 * emulparams/elf32_i860.sh, * emulparams/elf32ip2k.sh,
68 * emulparams/elf32mcore.sh, * emulparams/elf32ppccommon.sh,
69 * emulparams/elf32ppcwindiss.sh, * emulparams/elf32_sparc.sh,
70 * emulparams/elf32_spu.sh, * emulparams/elf32vax.sh,
71 * emulparams/elf64alpha.sh, * emulparams/elf64mmix.sh,
72 * emulparams/elf64ppc.sh, * emulparams/elf64_s390.sh,
73 * emulparams/elf64_sparc.sh, * emulparams/elf_s390.sh,
74 * emulparams/elf_x86_64.sh, * emulparams/h8300elf.sh,
75 * emulparams/hppa64linux.sh, * emulparams/hppalinux.sh,
76 * emulparams/m68kelf.sh, * emulparams/mn10200.sh,
77 * emulparams/pjelf.sh, * emulparams/ppclynx.sh,
78 * emulparams/shelf32.sh, * emulparams/shelf_nto.sh,
79 * emulparams/shelf.sh, * emulparams/shelf_vxworks.sh,
80 * emulparams/shlelf32_linux.sh, * emulparams/shlelf_linux.sh,
81 * emulparams/shlelf_nto.sh (NO_REL_RELOCS): Set.
82 * emulparams/arcelf.sh, * emulparams/elf32_i960.sh,
83 * emulparams/elf32openrisc.sh, * emulparams/elf_i386_be.sh,
84 * emulparams/elf_i386_ldso.sh, * emulparams/elf_i386.sh,
85 * emulparams/elf_i386_vxworks.sh, * emulparams/i386lynx.sh,
86 * emulparams/i386moss.sh, * emulparams/i386nto.sh,
87 * emulparams/or32elf.sh, * emulparams/scoreelf.sh (NO_RELA_RELOCS): Set.
89 2008-10-22 Alan Modra <amodra@bigpond.net.au>
91 * ldlang.c (lang_output_section_find_by_flags): Handle non-alloc
93 * emultempl/elf32.em (enum orphan_save_index): Add orphan_nonalloc.
95 (gld${EMULATION_NAME}_place_orphan): Handle non-alloc orphans.
97 2008-10-22 Bernhard Reutner-Fischer <aldot@gcc.gnu.org>
99 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Correct typo in
102 2008-10-20 Alan Modra <amodra@bigpond.net.au>
104 * ldemul.h (ldemul_place_orphan): Update prototype.
105 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
106 * ldemul.c (ldemul_place_orphan): Return pointer to output
108 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Likewise.
109 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Likewise.
110 * emultempl/mmo.em (mmo_place_orphan): Likewise.
111 * emultempl/pe.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
112 * emultempl/pep.em (gld_${EMULATION_NAME}_place_orphan): Likewise.
114 2008-10-08 Nick Clifton <nickc@redhat.com>
116 * configure.in (ALL_LINGUAS): Add "id".
117 * configure: Regenerate.
118 * po/id.po: New Indonesian translation.
120 2008-10-05 Alan Modra <amodra@bigpond.net.au>
123 * scripttempl/avr.sc (.bss): Set lma when relocating.
124 (.bss, .noinit): No need to set vma when relocating.
125 (.text, .bss, ,noinit): Set vma to zero when not relocating.
127 2008-10-04 Alan Modra <amodra@bigpond.net.au>
130 * ldemul.c (ldemul_place_orphan): Add "constraint" param.
131 * ldemul.h (ldemul_place_orphan): Update prototype.
132 (struct ld_emulation_xfer_struct <place_orphan>): Likewise add param.
133 * ldlang.c (unique_section_p): Make static.
134 (lang_output_section_statement_lookup): Optimise creation of SPECIAL
136 (lang_insert_orphan): Add "constraint" param. Pass to
137 lang_enter_output_section_statement.
138 (init_os): Don't use an existing bfd section for SPECIAL sections.
139 (lang_place_orphans): Don't rename unique output sections, instead
140 mark their output section statements SPECIAL.
141 * ldlang.h (lang_insert_orphan): Update prototype.
142 (unique_section_p): Delete.
143 * emultempl/beos.em (place_orphan): Add "constraint" param.
144 * emultempl/elf32.em (place_orphan): Likewise. Don't match existing
145 output sections if set.
146 * emultempl/pe.em (place_orphan): Likewise.
147 * emultempl/pep.em (place_orphan): Likewise.
148 * emultempl/mmo.em (mmo_place_orphan): Update.
149 * emultempl/spuelf.em (spu_place_special_section): Update.
151 2008-10-03 Alan Modra <amodra@bigpond.net.au>
154 * ldemul.c (ldemul_place_orphan): Add "name" param.
155 * ldemul.h (ldemul_place_orphan): Update prototype.
156 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
157 * ldlang.c (lang_place_orphans): Generate unique section names here..
158 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
159 directly use an existing output section statement that has no
161 * emultempl/pe.em (place_orphan): Likewise.
162 * emultempl/pep.em (place_orphan): Likewise.
163 * emultempl/beos.em (place_orphan): Adjust.
164 * emultempl/spuelf.em (spu_place_special_section): Adjust
166 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
167 (LDEMUL_AFTER_OPEN): Define.
169 2008-09-30 Joseph Myers <joseph@codesourcery.com>
171 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
174 2008-09-30 Alan Modra <amodra@bigpond.net.au>
176 * Makefile.am: Run "make dep-am".
177 * Makefile.in: Regenerate.
179 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
180 Steve Ellcey <sje@cup.hp.com>
182 * configure: Regenerate for new libtool.
184 * Makefile.in: Ditto.
186 2008-09-29 Kai Tietz <kai.tietz@onevision.com>
188 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
190 2008-09-29 Nick Clifton <nickc@redhat.com>
192 * po/vi.po: Updated Vietnamese translation.
194 2008-09-25 Alan Modra <amodra@bigpond.net.au>
196 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
198 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
200 * configure.in: Call AC_SYS_LARGEFILE.
201 * config.in: Regenerate.
202 * configure: Regenerate.
204 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
206 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
208 * emultempl/pep.em (pep_find_data_imports): Likewise.
210 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
212 2008-09-07 Alan Modra <amodra@bigpond.net.au>
214 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
215 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
217 2008-09-08 Tristan Gingold <gingold@adacore.com>
219 * NEWS: Add a marker for the 2.19 features.
221 2008-09-07 Alan Modra <amodra@bigpond.net.au>
223 * ldlang.h (lang_output_section_find): Define.
224 (lang_output_section_statement_lookup): Update prototype.
225 * ldlang.c (lang_output_section_find,
226 lang_output_section_statement_lookup_1): Merge into..
227 (lang_output_section_statement_lookup): ..here. Update all callers.
228 (process_insert_statements): Set constraint negative
229 for output section statements we might be inserting. Make error
230 fatal on not finding insertion section.
231 (lang_output_section_find): Rather than comparing
232 output_section_statement.constraint against -1, test whether
234 (lang_output_section_statement_lookup_1): Likewise.
235 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
236 (lang_record_phdrs): Likewise.
237 * emultempl/elf32.em (output_rel_find): Likewise.
238 * NEWS: Mention INSERT.
240 2008-08-26 Nick Clifton <nickc@redhat.com>
243 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
244 input sections in all input bfds and always select the last
245 suitable one, so that interworking stubs are always processed
246 after all other input sections.
247 (arm_elf_before_allocation): Remove redundant use of
248 output_has_begun flag.
250 2008-08-24 Alan Modra <amodra@bigpond.net.au>
252 * configure.in: Update a number of obsolete autoconf macros.
253 * configure: Regenerate.
254 * aclocal.m4: Regenerate.
256 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
259 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
260 EXPLD.DATASEG.MIN_BASE.
261 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
262 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
263 Use OLD_BASE now for the minimal base check after the base decrease by
264 the maximum alignment found.
266 2008-08-17 Alan Modra <amodra@bigpond.net.au>
269 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
270 Don't free symbol pointer array.
271 (check_refs): Likewise.
272 * ldmain.c (warning_callback): Likewise.
273 * ldmisc.c (vfinfo): Likewise.
274 * pe-dll.c (process_def_file): Likewise.
275 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
276 * emultempl/pe.em (pe_find_data_imports): Likewise.
277 (gld_${EMULATION_NAME}_after_open): Likewise.
278 * emultempl/pep.em (pep_find_data_imports): Likewise.
279 (gld_${EMULATION_NAME}_after_open): Likewise.
280 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
281 passive_position, closed.
282 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
283 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
285 2008-08-15 Alan Modra <amodra@bigpond.net.au>
288 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
289 * Makefile.in: Regenerate.
290 * aclocal.m4: Regenerate.
291 * config.in: Regenerate.
292 * configure: Regenerate.
294 2008-08-09 Alan Modra <amodra@bigpond.net.au>
297 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
298 (main): Don't set_scripts_dir here.
299 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
300 largely based on ldmain.c versions.
301 (ldfile_find_command_file): Set up search in script dir here without
302 affecting library search.
303 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
304 (ldfile.o): New rule.
305 * Makefile.in: Regenerate.
307 2008-08-08 Anatoly Sokolov <aesok@post.ru>
309 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
311 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
312 * Makefile.in: Regenerate.
313 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
315 * emulparams/avr25.sh: New file.
316 * emulparams/avr31.sh: New file.
317 * emulparams/avr35.sh: New file.
318 * emulparams/avr51.sh: New file.
320 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
321 Daniel Jacobowitz <dan@codesourcery.com>
323 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
324 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
326 * emulparams/elf32bmipn32-defs.sh: Likewise.
327 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
328 (is_mips_elf): New macro.
329 (stub_file, stub_bfd): New variables.
330 (hook_stub_info): New structure.
331 (hook_in_stub): New function.
332 (mips_add_stub_section): Likewise.
333 (mips_create_output_section_statements): Likewise.
334 (mips_before_allocation): Likewise.
335 (real_func): New variable.
336 (mips_for_each_input_file_wrapper): New function.
337 (mips_lang_for_each_input_file): Likewise.
338 (lang_for_each_input_file): Define.
339 (LDEMUL_BEFORE_ALLOCATION): Likewise.
340 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
342 2008-08-08 Alan Modra <amodra@bigpond.net.au>
344 * ldfile.c (ldfile_open_file_search): Use concat.
345 (try_open): Don't use a fixed size pathname buffer.
346 (ldfile_find_command_file): Likewise.
347 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
348 using EXTRA_SHLIB_EXTENSION, don't open twice.
350 2008-08-04 Alan Modra <amodra@bigpond.net.au>
352 * Makefile.am (POTFILES.in): Set LC_ALL=C.
353 * Makefile.in: Regenerate.
354 * po/POTFILES.in: Regenerate.
356 2008-08-03 Alan Modra <amodra@bigpond.net.au>
358 * Makefile.am (spu_ovl.o): Merge rule into..
359 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
360 * Makefile.in: Regenerate.
362 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
364 Include the spu_ovl ASCII form in the repository files.
365 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
366 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
367 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
368 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
369 (spu_ovl.o): ...this one.
370 * Makefile.in: Regenerate.
371 * emultempl/spu_ovl.o_c: New file.
372 * emultempl/spu_ovl.o: File removed.
374 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
376 * pe-dll.c (generate_relocs): Don't generate relocs for
377 undefined weak symbols.
379 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
381 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
383 2008-07-30 Alan Modra <amodra@bigpond.net.au>
385 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
387 2008-07-18 Joseph Myers <joseph@codesourcery.com>
389 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
390 * emultempl/armelf.em (no_wchar_size_warning): New.
391 (arm_elf_create_output_section_statements): Pass
392 no_wchar_size_warning to arm_elf_create_output_section_statements.
393 (OPTION_NO_WCHAR_SIZE_WARNING): New.
394 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
395 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
396 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
398 2008-07-15 Jie Zhang <jie.zhang@analog.com>
400 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
402 2008-07-12 Craig Silverstein <csilvers@google.com>
405 * configure.in: Check for, and include, libz.a if it is present.
406 * configure: Regenerate.
407 * config.in: Regenerate.
409 2008-07-12 Jie Zhang <jie.zhang@analog.com>
412 2008-07-12 Jie Zhang <jie.zhang@analog.com>
413 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
414 (eelf32bfinfd.c): Likewise.
415 * Makefile.in: Regenerate.
416 * gen-doc.texi: Set Blackfin.
417 * ld.texinfo: Document --sep-code and Blackfin specific
419 * ldmain.c (main): Initialize link_info.sep_code.
420 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
421 (ld_options[]): Add --sep-code.
422 (parse_args): Deal with --sep-code.
423 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
424 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
425 * emultempl/bfin.em: New file.
427 2008-07-12 Jie Zhang <jie.zhang@analog.com>
429 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
430 (eelf32bfinfd.c): Likewise.
431 * Makefile.in: Regenerate.
432 * gen-doc.texi: Set Blackfin.
433 * ld.texinfo: Document --sep-code and Blackfin specific
435 * ldmain.c (main): Initialize link_info.sep_code.
436 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
437 (ld_options[]): Add --sep-code.
438 (parse_args): Deal with --sep-code.
439 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
440 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
441 * emultempl/bfin.em: New file.
443 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
445 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
447 Exclude "_IMPORT_DESCRIPTOR_".
448 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
449 (autofilter_symbollist_generic): Don't check for ".text".
450 Exclude "_NULL_IMPORT_DESCRIPTOR".
451 (autofilter_symbollist_i386): Likewise.
453 2008-07-07 Alan Modra <amodra@bigpond.net.au>
455 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
456 bfd_make_section_with_flags.
457 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
459 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
460 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
461 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
462 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
463 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
464 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
467 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
469 * ld.texinfo (File Commands): Document that INCLUDE can be used in
470 several different places.
471 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
472 (memory, memory_spec_list): Simplify BNF
473 (memory_spec_list_opt): New rule.
474 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
476 2008-06-20 Alan Modra <amodra@bigpond.net.au>
478 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
479 build overlay stubs" a fatal error.
481 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
483 * config.in: Regenerate.
484 * configure: Regenerate.
486 2008-06-17 Alan Modra <amodra@bigpond.net.au>
488 * emultempl/spuelf.em (extra_stack_space): New variable.
489 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
490 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
491 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
492 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
493 overlay manager structures.
494 * emultempl/spu_ovl.o: Regenerate.
496 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
498 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
499 mention it as being special for global symbols.
501 2008-06-12 Nick Clifton <nickc@redhat.com>
503 * ldlang.c (print_output_section_statement): If the output section
504 statement has an update_dot_tree expression, apply it to
506 (print_input_section): Do not update print_dot if it would move
508 (lang_do_assignments_1): If the output section statement has an
509 update_dot_tree expression apply it to dot.
511 2008-06-07 Alan Modra <amodra@bigpond.net.au>
513 * NEWS: Mention archive:path patterns.
514 * ld.texinfo: Likewise.
515 * ldlang.c: Formatting throughout.
516 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
517 (input_statement_is_archive_path): New function, extracted from..
519 (walk_wild_consider_section): Match archive:path here too.
520 (init_map_userdata, sort_def_symbol): Convert to ISO C.
521 * ldmain.c (main): Set link_info.path_separator.
522 * emultempl/spuelf.em (choose_target): Don't set it here.
524 2008-06-06 Alan Modra <amodra@bigpond.net.au>
526 * ldlang.c (name_match): New function.
527 (unique_section_p, walk_wild_consider_section): Use it here.
528 (walk_wild_section_general): And here.
529 (archive_path): New function.
530 (walk_wild): Match archive:path filespecs.
531 (open_input_bfds): Don't load archive:path files.
532 * emultempl/spuelf.em (choose_target): Set path_separator.
533 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
535 2008-06-04 Nick Clifton <nickc@redhat.com>
537 * ld.texinfo (Orphan Sections): Fix texi typo.
539 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
541 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
542 (ld_options): Add entry for --no-fatal-warnings.
543 (parse_args): Handle OPTION_NO_WARN_FATAL.
544 * ld.texinfo (Options): Document new command line switch.
546 2008-06-04 Alan Modra <amodra@bigpond.net.au>
548 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
550 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
552 * ldlang.c (closest_target_match): Skip generic big and little
555 2008-05-31 Evandro Menezes <evandro@yahoo.com>
558 * ld.h (enum sort_order): New.
559 * ldlang.c (lang_check: Fix comment.
560 (lang_common): Sort commons in ascending or descending order.
561 (lang_one_common): Likewise.
562 * lexsup.c (ld_options): Have --sort-common take an option
564 (parse_args): Handle argument to --sort-common.
565 * ld.texinfo (--sort-common): Document new optional argument.
566 * NEWS: Mention new feature.
568 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
570 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
573 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
575 * pe-dll.c (fill_edata): Make sure we calculate vma's in
577 (generate_reloc): Likewise.
578 (pe_implied_import_dll): Likewise.
580 2008-05-21 Nick Clifton <nickc@redhat.com>
583 * ld.texinfo (Orphan Sections): Mention that the linker will
584 provide start and stop symbols for orphaned sections if their
585 names are valid C identifiers.
586 * NEWS: Add an addendum to the description of the linker feature
587 for providing orphan section start and end symbols.
589 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
591 * configure.in (--enable-got): New option. Handle it.
592 * configure: Regenerate.
593 * config.in: Regenerate.
594 * emultempl/m68kelf.em: (got_handling_target_default): New shell
596 (GOT_HANDLING_TARGET_DEFAULT): New macro.
597 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
598 option if one was given.
599 (got_handling): New static variable.
600 (elf_m68k_create_output_section_statements): New static function
602 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
603 (OPTION_GOT): New macro.
604 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
606 (got): New linker option.
607 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
609 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
611 * ld.texinfo: Document --got=<type> option.
612 * gen-doc.texi: Add M68K.
613 * NEWS: Mention the new feature.
615 2008-05-21 Evandro Menezes <evandro@yahoo.com>
618 * ld.texinfo (--sort-common): Correct documentation to indicate
619 that sorting is performed by alignment, not size, biggest
622 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
623 Nick Clifton <nickc@redhat.com>
625 * ld.texinfo (ARM): Document --stub-group-size=N option.
626 Move description of --pic-veneer option into the ARM section.
627 * NEWS: Mention the support for long function calls.
629 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
631 * emultempl/armelf.em (build_section_lists): New function.
633 (need_laying_out): Define.
634 (group_size): Define.
635 (hook_stub_info): Define.
636 (hook_in_stub): New function.
637 (elf32_arm_add_stub_section): New function.
638 (gldarm_layout_sections_again): New function.
639 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
640 stubs for long calls if needed.
641 (arm_elf_create_output_section_statements): create stub_file bfd.
642 (arm_for_each_input_file_wrapper): New function.
643 (arm_lang_for_each_input_file): New function.
644 (lang_for_each_input_file): Define.
645 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
646 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
647 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
648 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
649 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
650 * lang.c (print_input_statement): Skip if bfd has
653 2008-05-14 Alan Modra <amodra@bigpond.net.au>
655 * Makefile.in: Regenerate.
657 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
660 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
661 of long and change return type to bfd_vma.
662 (definfo): Change type of address from long to bfd_vma.
663 (set_pep_value): Replace strtoul to strtoull.
664 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
665 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
667 (quick_reloc): Change argument address from int to bfd_size_type.
669 2008-05-08 Tom Tromey <tromey@redhat.com>
671 * ld.texinfo (PowerPC64 ELF64): Fix typo.
673 2008-05-08 Alan Modra <amodra@bigpond.net.au>
675 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
676 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
677 sections at the start of ".data" and provide a symbol to locate
678 the directory of embedded spe programs.
680 2008-05-08 Alan Modra <amodra@bigpond.net.au>
682 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
684 (fold_binary <SEGMENT_START>): Set expld.result.section to
685 current section. Expand comment. Formatting.
686 (fold_name <DEFINED>): Set expld.result.section to current section.
688 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
690 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
693 2008-04-25 Michael Frysinger <vapier@gentoo.org>
695 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
696 and targ_extra_emuls to elf32bfin.
698 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
700 * aclocal.m4: Regenerate.
701 * configure: Regenerate.
703 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
705 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
707 2008-04-08 Alan Modra <amodra@bigpond.net.au>
709 * po/POTFILES.in: Regenerate.
711 2008-04-08 Alan Modra <amodra@bigpond.net.au>
713 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
714 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
715 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
716 (struct tflist, clean_tmp): Move.
717 (new_tmp_file): New function, extracted from..
718 (embedded_spu_file): ..here.
719 (spu_elf_open_overlay_script, spu_elf_relink): New function.
720 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
721 Warn on --auto-overlay and zero local store.
722 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
723 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
724 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
725 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
726 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
727 (PARSE_AND_LIST_OPTIONS): Likewise.
728 (PARSE_AND_LIST_ARGS_CASES): Likewise.
729 (LDEMUL_CHOOSE_TARGET): Define.
731 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
734 * pe-dll.c (make_head): Fix iat and thunk addend offset.
736 2008-03-31 Nick Clifton <nickc@redhat.com>
738 * po/fr.po: Updated French translation.
740 2008-03-24 Ian Lance Taylor <iant@google.com>
742 The sha1 code is now in libiberty.
745 * Makefile.am (CFILES): Remove sha1.c.
746 (HFILES): Remove sha1.h.
747 (OFILES): Remove sha1.o.
748 (ld_new_SOURCES): Remove sha1.c.
749 (sha1.o): Remove target.
750 * Makefile.in: Rebuild.
752 2008-03-20 Alan Modra <amodra@bigpond.net.au>
754 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
756 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
758 * aclocal.m4: Regenerate.
759 * configure: Likewise.
760 * Makefile.in: Likewise.
762 2008-03-14 Alan Modra <amodra@bigpond.net.au>
764 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
765 spu_elf_build_stubs with is_spu_target.
767 2008-03-13 Alan Modra <amodra@bigpond.net.au>
769 * Makefile.am: Run "make dep-am".
770 * Makefile.in: Regenerate.
771 * configure: Regenerate.
773 2008-03-06 Joseph Myers <joseph@codesourcery.com>
774 Roman Zippel <zippel@linux-m68k.org>
776 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
777 (COMMONPAGESIZE): Define.
779 2008-02-22 Nick Clifton <nickc@redhat.com>
782 * ldlang.c (lang_size_sections_1): Honour the setting of an
783 lma_region even if there is no vma region set, or the vma region
784 is the same as the lma region.
786 2008-02-18 Nick Clifton <nickc@redhat.com>
788 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
790 * scripttempl/elf32cr16.sc: Likewise.
791 * scripttempl/elf32cr16c.sc: Likewise.
792 * scripttempl/elf32crx.sc: Likewise.
793 * scripttempl/elf32sh-symbian.sc: Likewise.
794 * scripttempl/elf_chaos.sc: Likewise.
795 * scripttempl/elfd10v.sc: Likewise.
796 * scripttempl/elfi370.sc: Likewise.
797 * scripttempl/elfm68hc11.sc: Likewise.
798 * scripttempl/elfm68hc12.sc: Likewise.
799 * scripttempl/ip2k.sc: Likewise.
800 * scripttempl/iq2000.sc: Likewise.
801 * scripttempl/mep.sc: Likewise.
802 * scripttempl/v850.sc: Likewise.
803 * scripttempl/xstormy16.sc: Likewise.
805 2008-02-16 Alan Modra <amodra@bigpond.net.au>
808 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
809 load_base before calling make_abs.
811 2008-02-15 Alan Modra <amodra@bigpond.net.au>
813 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
814 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
816 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
818 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
820 (is_ppc_elf): ..this new macro.
822 2008-02-15 Alan Modra <amodra@bigpond.net.au>
824 * ldmain.h (output_bfd): Delete.
825 * ldmain.c (output_bfd): Delete.
826 Replace all occurrences of output_bfd with link_info.output_bfd.
827 * ldcref.c: Likewise.
828 * ldctor.c: Likewise.
829 * ldemul.c: Likewise.
831 * ldfile.c: Likewise.
832 * ldlang.c: Likewise.
833 * ldmisc.c: Likewise.
834 * ldwrite.c: Likewise.
835 * pe-dll.c: Likewise.
836 * emultempl/aix.em: Likewise.
837 * emultempl/alphaelf.em: Likewise.
838 * emultempl/armcoff.em: Likewise.
839 * emultempl/armelf.em: Likewise.
840 * emultempl/avrelf.em: Likewise.
841 * emultempl/beos.em: Likewise.
842 * emultempl/elf-generic.em: Likewise.
843 * emultempl/elf32.em: Likewise.
844 * emultempl/gld960.em: Likewise.
845 * emultempl/hppaelf.em: Likewise.
846 * emultempl/irix.em: Likewise.
847 * emultempl/linux.em: Likewise.
848 * emultempl/lnk960.em: Likewise.
849 * emultempl/m68hc1xelf.em: Likewise.
850 * emultempl/mmix-elfnmmo.em: Likewise.
851 * emultempl/mmo.em: Likewise.
852 * emultempl/pe.em: Likewise.
853 * emultempl/pep.em: Likewise.
854 * emultempl/ppc32elf.em: Likewise.
855 * emultempl/ppc64elf.em: Likewise.
856 * emultempl/scoreelf.em: Likewise.
857 * emultempl/sh64elf.em: Likewise.
858 * emultempl/spuelf.em: Likewise.
859 * emultempl/sunos.em: Likewise.
860 * emultempl/vanilla.em: Likewise.
861 * emultempl/vxworks.em: Likewise.
862 * emultempl/xtensaelf.em: Likewise.
863 * emultempl/z80.em: Likewise.
864 * ldlang.c (open_output): Don't return output, instead write
865 link_info_output_bfd directly.
866 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
867 with link_info.output_bfd->xvec.
868 * emultempl/hppaelf.em: Likewise.
869 * emultempl/ppc32elf.em: Likewise.
870 * emultempl/ppc64elf.em: Likewise.
871 * emultempl/spuelf.em: Likewise.
873 2008-02-07 Alan Modra <amodra@bigpond.net.au>
875 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
876 * ldfile.c (ldfile_add_library_path): Likewise.
877 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
878 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
879 * emultempl/spuelf.em (embedded_spu_file): Likewise.
881 2008-02-07 Alan Modra <amodra@bigpond.net.au>
883 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
884 a "present" bit rather than low bit of .buf. Correct indexing
885 into _ovly_buf_table. Use relative loads and stores to access
886 overlay manager local vars.
887 * emultempl/spu_ovl.o: Regenerate.
889 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
892 * configure: Regenerated.
894 2008-01-31 Marc Gauthier <marc@tensilica.com>
896 * configure.tgt (xtensa*-*-*): Recognize processor variants.
898 2008-01-28 Fabian Groffen <grobian@gentoo.org>
900 * configure.tgt (x86_64-*-solaris2): Add support for this target.
902 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
905 * genscripts.sh: Check for the existence of BASH_LINENO not just
906 the BASH shell before generating line numbers in the emulation
909 2008-01-28 Alan Modra <amodra@bigpond.net.au>
911 * emultempl/spu_ovl.S: Rewrite.
912 * emultempl/spu_ovl.o: Regenerate.
913 * emultempl/spuelf.em (toe): Delete.
914 (spu_place_special_section): Add param to control section placement.
916 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
918 (spu_before_allocation): Adjust spu_elf_size_stubs call.
919 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
921 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
924 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
927 2008-01-25 Alan Modra <amodra@bigpond.net.au>
929 * ld.texinfo (INSERT): Describe.
930 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
931 (INSERT_K, AFTER, BEFORE): Add as tokens.
932 (ifile_p1): Handle INSERT statements.
933 (saved_script_handle, force_make_executable): Move to..
935 (previous_script_handle): New global var.
936 * ldmain.h (saved_script_handle, force_make_executable): Declare.
937 (previous_script_handle): Likewise.
938 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
939 * lexsup.c (parge_args <-T>): Set previous_script_handle.
940 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
941 (map_input_to_output_sections, print_statement): Likewise.
942 (lang_size_sections_1, lang_do_assignments_1): Likewise.
943 (insert_os_after): New function, extracted from..
944 (lang_insert_orphan): ..here.
945 (process_insert_statements): New function.
946 (lang_process): Call it.
947 (lang_add_insert): New function.
948 * ldlang.h (lang_insert_statement_enum): New.
949 (lang_insert_statement_type): New.
950 (lang_statement_union_type): Add insert_statement.
951 (lang_add_insert): Declare.
953 2008-01-18 Bob Wilson <bob.wilson@acm.org>
955 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
958 2008-01-16 Alan Modra <amodra@bigpond.net.au>
960 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
962 2008-01-16 Alan Modra <amodra@bigpond.net.au>
964 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
965 (lang_afile_asection_pair_statement_type): Delete.
966 (lang_statement_union_type): Delete afile_asection_pair_statement.
967 * ldlang.c (lang_insert_orphan): Delete case handling the above.
968 (map_input_to_output_sections, print_statement): Likewise.
970 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
972 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
974 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
976 2008-01-15 Alan Modra <amodra@bigpond.net.au>
979 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
980 syms to _bfd_elf_gc_keep.
981 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
982 ppc64_elf_edit_opd if no_opd_opt.
984 2008-01-11 Tristan Gingold <gingold@adacore.com>
985 Eric Botcazou <ebotcazou@adacore.com>
987 * ldlang.c (lang_end): Warns if the entry point is not found when
989 Emit an error if no root is specified when --gc-sections -r.
990 * ld.texinfo (Options): Document that --gc-sections is compatible
992 * ldmain.c (main): Do not error out if -r and --gc-sections.
993 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
995 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
998 * ldlang.c (lang_end): Issue a warning for a missing start symbol
999 of a shared library if the symbol was specified on the command
1002 2008-01-10 Alan Modra <amodra@bigpond.net.au>
1004 * ld.texinfo (--gc-sections): Describe linker behaviour.
1006 For older changes see ChangeLog-2007
1012 version-control: never