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