1 2008-10-03 Alan Modra <amodra@bigpond.net.au>
3 * ldemul.c (ldemul_place_orphan): Add "name" param.
4 * ldemul.h (ldemul_place_orphan): Update prototype.
5 (struct ld_emulation_xfer_struct <place_orphan>): Likewise.
6 * ldlang.c (lang_place_orphans): Generate unique section names here..
7 * emultempl/elf32.em (place_orphan): ..rather than here. Don't
8 directly use an existing output section statement that has no
10 * emultempl/pe.em (place_orphan): Likewise.
11 * emultempl/pep.em (place_orphan): Likewise.
12 * emultempl/beos.em (place_orphan): Adjust.
13 * emultempl/spuelf.em (spu_place_special_section): Adjust
15 * emultempl/genelf.em (gld${EMULATION_NAME}_after_open): New function.
16 (LDEMUL_AFTER_OPEN): Define.
18 2008-09-30 Joseph Myers <joseph@codesourcery.com>
20 * emulparams/elf64ppc.sh (OTHER_GOT_RELOC_SECTIONS): Add .rela.opd
23 2008-09-30 Alan Modra <amodra@bigpond.net.au>
25 * Makefile.am: Run "make dep-am".
26 * Makefile.in: Regenerate.
28 2008-09-29 Peter O'Gorman <pogma@thewrittenword.com>
29 Steve Ellcey <sje@cup.hp.com>
31 * configure: Regenerate for new libtool.
35 2008-09-29 Kai Tietz <kai.tietz@onevision.com>
37 * pe-dll.c (make_import_fixup_entry): Make sure reloc is addend.
39 2008-09-29 Nick Clifton <nickc@redhat.com>
41 * po/vi.po: Updated Vietnamese translation.
43 2008-09-25 Alan Modra <amodra@bigpond.net.au>
45 * ldexp.c (fold_binary): Evaluate rhs when lhs not valid.
47 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
49 * configure.in: Call AC_SYS_LARGEFILE.
50 * config.in: Regenerate.
51 * configure: Regenerate.
53 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
55 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
57 * emultempl/pep.em (pep_find_data_imports): Likewise.
59 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
61 2008-09-07 Alan Modra <amodra@bigpond.net.au>
63 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
64 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
66 2008-09-08 Tristan Gingold <gingold@adacore.com>
68 * NEWS: Add a marker for the 2.19 features.
70 2008-09-07 Alan Modra <amodra@bigpond.net.au>
72 * ldlang.h (lang_output_section_find): Define.
73 (lang_output_section_statement_lookup): Update prototype.
74 * ldlang.c (lang_output_section_find,
75 lang_output_section_statement_lookup_1): Merge into..
76 (lang_output_section_statement_lookup): ..here. Update all callers.
77 (process_insert_statements): Set constraint negative
78 for output section statements we might be inserting. Make error
79 fatal on not finding insertion section.
80 (lang_output_section_find): Rather than comparing
81 output_section_statement.constraint against -1, test whether
83 (lang_output_section_statement_lookup_1): Likewise.
84 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
85 (lang_record_phdrs): Likewise.
86 * emultempl/elf32.em (output_rel_find): Likewise.
87 * NEWS: Mention INSERT.
89 2008-08-26 Nick Clifton <nickc@redhat.com>
92 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
93 input sections in all input bfds and always select the last
94 suitable one, so that interworking stubs are always processed
95 after all other input sections.
96 (arm_elf_before_allocation): Remove redundant use of
97 output_has_begun flag.
99 2008-08-24 Alan Modra <amodra@bigpond.net.au>
101 * configure.in: Update a number of obsolete autoconf macros.
102 * configure: Regenerate.
103 * aclocal.m4: Regenerate.
105 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
108 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
109 EXPLD.DATASEG.MIN_BASE.
110 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
111 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
112 Use OLD_BASE now for the minimal base check after the base decrease by
113 the maximum alignment found.
115 2008-08-17 Alan Modra <amodra@bigpond.net.au>
118 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
119 Don't free symbol pointer array.
120 (check_refs): Likewise.
121 * ldmain.c (warning_callback): Likewise.
122 * ldmisc.c (vfinfo): Likewise.
123 * pe-dll.c (process_def_file): Likewise.
124 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
125 * emultempl/pe.em (pe_find_data_imports): Likewise.
126 (gld_${EMULATION_NAME}_after_open): Likewise.
127 * emultempl/pep.em (pep_find_data_imports): Likewise.
128 (gld_${EMULATION_NAME}_after_open): Likewise.
129 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
130 passive_position, closed.
131 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
132 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
134 2008-08-15 Alan Modra <amodra@bigpond.net.au>
137 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
138 * Makefile.in: Regenerate.
139 * aclocal.m4: Regenerate.
140 * config.in: Regenerate.
141 * configure: Regenerate.
143 2008-08-09 Alan Modra <amodra@bigpond.net.au>
146 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
147 (main): Don't set_scripts_dir here.
148 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
149 largely based on ldmain.c versions.
150 (ldfile_find_command_file): Set up search in script dir here without
151 affecting library search.
152 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
153 (ldfile.o): New rule.
154 * Makefile.in: Regenerate.
156 2008-08-08 Anatoly Sokolov <aesok@post.ru>
158 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
160 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
161 * Makefile.in: Regenerate.
162 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
164 * emulparams/avr25.sh: New file.
165 * emulparams/avr31.sh: New file.
166 * emulparams/avr35.sh: New file.
167 * emulparams/avr51.sh: New file.
169 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
170 Daniel Jacobowitz <dan@codesourcery.com>
172 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
173 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
175 * emulparams/elf32bmipn32-defs.sh: Likewise.
176 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
177 (is_mips_elf): New macro.
178 (stub_file, stub_bfd): New variables.
179 (hook_stub_info): New structure.
180 (hook_in_stub): New function.
181 (mips_add_stub_section): Likewise.
182 (mips_create_output_section_statements): Likewise.
183 (mips_before_allocation): Likewise.
184 (real_func): New variable.
185 (mips_for_each_input_file_wrapper): New function.
186 (mips_lang_for_each_input_file): Likewise.
187 (lang_for_each_input_file): Define.
188 (LDEMUL_BEFORE_ALLOCATION): Likewise.
189 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
191 2008-08-08 Alan Modra <amodra@bigpond.net.au>
193 * ldfile.c (ldfile_open_file_search): Use concat.
194 (try_open): Don't use a fixed size pathname buffer.
195 (ldfile_find_command_file): Likewise.
196 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
197 using EXTRA_SHLIB_EXTENSION, don't open twice.
199 2008-08-04 Alan Modra <amodra@bigpond.net.au>
201 * Makefile.am (POTFILES.in): Set LC_ALL=C.
202 * Makefile.in: Regenerate.
203 * po/POTFILES.in: Regenerate.
205 2008-08-03 Alan Modra <amodra@bigpond.net.au>
207 * Makefile.am (spu_ovl.o): Merge rule into..
208 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
209 * Makefile.in: Regenerate.
211 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
213 Include the spu_ovl ASCII form in the repository files.
214 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
215 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
216 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
217 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
218 (spu_ovl.o): ...this one.
219 * Makefile.in: Regenerate.
220 * emultempl/spu_ovl.o_c: New file.
221 * emultempl/spu_ovl.o: File removed.
223 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
225 * pe-dll.c (generate_relocs): Don't generate relocs for
226 undefined weak symbols.
228 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
230 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
232 2008-07-30 Alan Modra <amodra@bigpond.net.au>
234 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
236 2008-07-18 Joseph Myers <joseph@codesourcery.com>
238 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
239 * emultempl/armelf.em (no_wchar_size_warning): New.
240 (arm_elf_create_output_section_statements): Pass
241 no_wchar_size_warning to arm_elf_create_output_section_statements.
242 (OPTION_NO_WCHAR_SIZE_WARNING): New.
243 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
244 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
245 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
247 2008-07-15 Jie Zhang <jie.zhang@analog.com>
249 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
251 2008-07-12 Craig Silverstein <csilvers@google.com>
254 * configure.in: Check for, and include, libz.a if it is present.
255 * configure: Regenerate.
256 * config.in: Regenerate.
258 2008-07-12 Jie Zhang <jie.zhang@analog.com>
261 2008-07-12 Jie Zhang <jie.zhang@analog.com>
262 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
263 (eelf32bfinfd.c): Likewise.
264 * Makefile.in: Regenerate.
265 * gen-doc.texi: Set Blackfin.
266 * ld.texinfo: Document --sep-code and Blackfin specific
268 * ldmain.c (main): Initialize link_info.sep_code.
269 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
270 (ld_options[]): Add --sep-code.
271 (parse_args): Deal with --sep-code.
272 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
273 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
274 * emultempl/bfin.em: New file.
276 2008-07-12 Jie Zhang <jie.zhang@analog.com>
278 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
279 (eelf32bfinfd.c): Likewise.
280 * Makefile.in: Regenerate.
281 * gen-doc.texi: Set Blackfin.
282 * ld.texinfo: Document --sep-code and Blackfin specific
284 * ldmain.c (main): Initialize link_info.sep_code.
285 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
286 (ld_options[]): Add --sep-code.
287 (parse_args): Deal with --sep-code.
288 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
289 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
290 * emultempl/bfin.em: New file.
292 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
294 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
296 Exclude "_IMPORT_DESCRIPTOR_".
297 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
298 (autofilter_symbollist_generic): Don't check for ".text".
299 Exclude "_NULL_IMPORT_DESCRIPTOR".
300 (autofilter_symbollist_i386): Likewise.
302 2008-07-07 Alan Modra <amodra@bigpond.net.au>
304 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
305 bfd_make_section_with_flags.
306 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
308 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
309 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
310 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
311 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
312 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
313 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
316 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
318 * ld.texinfo (File Commands): Document that INCLUDE can be used in
319 several different places.
320 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
321 (memory, memory_spec_list): Simplify BNF
322 (memory_spec_list_opt): New rule.
323 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
325 2008-06-20 Alan Modra <amodra@bigpond.net.au>
327 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
328 build overlay stubs" a fatal error.
330 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
332 * config.in: Regenerate.
333 * configure: Regenerate.
335 2008-06-17 Alan Modra <amodra@bigpond.net.au>
337 * emultempl/spuelf.em (extra_stack_space): New variable.
338 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
339 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
340 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
341 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
342 overlay manager structures.
343 * emultempl/spu_ovl.o: Regenerate.
345 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
347 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
348 mention it as being special for global symbols.
350 2008-06-12 Nick Clifton <nickc@redhat.com>
352 * ldlang.c (print_output_section_statement): If the output section
353 statement has an update_dot_tree expression, apply it to
355 (print_input_section): Do not update print_dot if it would move
357 (lang_do_assignments_1): If the output section statement has an
358 update_dot_tree expression apply it to dot.
360 2008-06-07 Alan Modra <amodra@bigpond.net.au>
362 * NEWS: Mention archive:path patterns.
363 * ld.texinfo: Likewise.
364 * ldlang.c: Formatting throughout.
365 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
366 (input_statement_is_archive_path): New function, extracted from..
368 (walk_wild_consider_section): Match archive:path here too.
369 (init_map_userdata, sort_def_symbol): Convert to ISO C.
370 * ldmain.c (main): Set link_info.path_separator.
371 * emultempl/spuelf.em (choose_target): Don't set it here.
373 2008-06-06 Alan Modra <amodra@bigpond.net.au>
375 * ldlang.c (name_match): New function.
376 (unique_section_p, walk_wild_consider_section): Use it here.
377 (walk_wild_section_general): And here.
378 (archive_path): New function.
379 (walk_wild): Match archive:path filespecs.
380 (open_input_bfds): Don't load archive:path files.
381 * emultempl/spuelf.em (choose_target): Set path_separator.
382 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
384 2008-06-04 Nick Clifton <nickc@redhat.com>
386 * ld.texinfo (Orphan Sections): Fix texi typo.
388 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
390 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
391 (ld_options): Add entry for --no-fatal-warnings.
392 (parse_args): Handle OPTION_NO_WARN_FATAL.
393 * ld.texinfo (Options): Document new command line switch.
395 2008-06-04 Alan Modra <amodra@bigpond.net.au>
397 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
399 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
401 * ldlang.c (closest_target_match): Skip generic big and little
404 2008-05-31 Evandro Menezes <evandro@yahoo.com>
407 * ld.h (enum sort_order): New.
408 * ldlang.c (lang_check: Fix comment.
409 (lang_common): Sort commons in ascending or descending order.
410 (lang_one_common): Likewise.
411 * lexsup.c (ld_options): Have --sort-common take an option
413 (parse_args): Handle argument to --sort-common.
414 * ld.texinfo (--sort-common): Document new optional argument.
415 * NEWS: Mention new feature.
417 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
419 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
422 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
424 * pe-dll.c (fill_edata): Make sure we calculate vma's in
426 (generate_reloc): Likewise.
427 (pe_implied_import_dll): Likewise.
429 2008-05-21 Nick Clifton <nickc@redhat.com>
432 * ld.texinfo (Orphan Sections): Mention that the linker will
433 provide start and stop symbols for orphaned sections if their
434 names are valid C identifiers.
435 * NEWS: Add an addendum to the description of the linker feature
436 for providing orphan section start and end symbols.
438 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
440 * configure.in (--enable-got): New option. Handle it.
441 * configure: Regenerate.
442 * config.in: Regenerate.
443 * emultempl/m68kelf.em: (got_handling_target_default): New shell
445 (GOT_HANDLING_TARGET_DEFAULT): New macro.
446 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
447 option if one was given.
448 (got_handling): New static variable.
449 (elf_m68k_create_output_section_statements): New static function
451 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
452 (OPTION_GOT): New macro.
453 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
455 (got): New linker option.
456 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
458 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
460 * ld.texinfo: Document --got=<type> option.
461 * gen-doc.texi: Add M68K.
462 * NEWS: Mention the new feature.
464 2008-05-21 Evandro Menezes <evandro@yahoo.com>
467 * ld.texinfo (--sort-common): Correct documentation to indicate
468 that sorting is performed by alignment, not size, biggest
471 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
472 Nick Clifton <nickc@redhat.com>
474 * ld.texinfo (ARM): Document --stub-group-size=N option.
475 Move description of --pic-veneer option into the ARM section.
476 * NEWS: Mention the support for long function calls.
478 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
480 * emultempl/armelf.em (build_section_lists): New function.
482 (need_laying_out): Define.
483 (group_size): Define.
484 (hook_stub_info): Define.
485 (hook_in_stub): New function.
486 (elf32_arm_add_stub_section): New function.
487 (gldarm_layout_sections_again): New function.
488 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
489 stubs for long calls if needed.
490 (arm_elf_create_output_section_statements): create stub_file bfd.
491 (arm_for_each_input_file_wrapper): New function.
492 (arm_lang_for_each_input_file): New function.
493 (lang_for_each_input_file): Define.
494 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
495 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
496 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
497 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
498 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
499 * lang.c (print_input_statement): Skip if bfd has
502 2008-05-14 Alan Modra <amodra@bigpond.net.au>
504 * Makefile.in: Regenerate.
506 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
509 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
510 of long and change return type to bfd_vma.
511 (definfo): Change type of address from long to bfd_vma.
512 (set_pep_value): Replace strtoul to strtoull.
513 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
514 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
516 (quick_reloc): Change argument address from int to bfd_size_type.
518 2008-05-08 Tom Tromey <tromey@redhat.com>
520 * ld.texinfo (PowerPC64 ELF64): Fix typo.
522 2008-05-08 Alan Modra <amodra@bigpond.net.au>
524 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
525 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
526 sections at the start of ".data" and provide a symbol to locate
527 the directory of embedded spe programs.
529 2008-05-08 Alan Modra <amodra@bigpond.net.au>
531 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
533 (fold_binary <SEGMENT_START>): Set expld.result.section to
534 current section. Expand comment. Formatting.
535 (fold_name <DEFINED>): Set expld.result.section to current section.
537 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
539 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
542 2008-04-25 Michael Frysinger <vapier@gentoo.org>
544 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
545 and targ_extra_emuls to elf32bfin.
547 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
549 * aclocal.m4: Regenerate.
550 * configure: Regenerate.
552 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
554 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
556 2008-04-08 Alan Modra <amodra@bigpond.net.au>
558 * po/POTFILES.in: Regenerate.
560 2008-04-08 Alan Modra <amodra@bigpond.net.au>
562 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
563 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
564 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
565 (struct tflist, clean_tmp): Move.
566 (new_tmp_file): New function, extracted from..
567 (embedded_spu_file): ..here.
568 (spu_elf_open_overlay_script, spu_elf_relink): New function.
569 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
570 Warn on --auto-overlay and zero local store.
571 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
572 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
573 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
574 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
575 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
576 (PARSE_AND_LIST_OPTIONS): Likewise.
577 (PARSE_AND_LIST_ARGS_CASES): Likewise.
578 (LDEMUL_CHOOSE_TARGET): Define.
580 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
583 * pe-dll.c (make_head): Fix iat and thunk addend offset.
585 2008-03-31 Nick Clifton <nickc@redhat.com>
587 * po/fr.po: Updated French translation.
589 2008-03-24 Ian Lance Taylor <iant@google.com>
591 The sha1 code is now in libiberty.
594 * Makefile.am (CFILES): Remove sha1.c.
595 (HFILES): Remove sha1.h.
596 (OFILES): Remove sha1.o.
597 (ld_new_SOURCES): Remove sha1.c.
598 (sha1.o): Remove target.
599 * Makefile.in: Rebuild.
601 2008-03-20 Alan Modra <amodra@bigpond.net.au>
603 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
605 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
607 * aclocal.m4: Regenerate.
608 * configure: Likewise.
609 * Makefile.in: Likewise.
611 2008-03-14 Alan Modra <amodra@bigpond.net.au>
613 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
614 spu_elf_build_stubs with is_spu_target.
616 2008-03-13 Alan Modra <amodra@bigpond.net.au>
618 * Makefile.am: Run "make dep-am".
619 * Makefile.in: Regenerate.
620 * configure: Regenerate.
622 2008-03-06 Joseph Myers <joseph@codesourcery.com>
623 Roman Zippel <zippel@linux-m68k.org>
625 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
626 (COMMONPAGESIZE): Define.
628 2008-02-22 Nick Clifton <nickc@redhat.com>
631 * ldlang.c (lang_size_sections_1): Honour the setting of an
632 lma_region even if there is no vma region set, or the vma region
633 is the same as the lma region.
635 2008-02-18 Nick Clifton <nickc@redhat.com>
637 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
639 * scripttempl/elf32cr16.sc: Likewise.
640 * scripttempl/elf32cr16c.sc: Likewise.
641 * scripttempl/elf32crx.sc: Likewise.
642 * scripttempl/elf32sh-symbian.sc: Likewise.
643 * scripttempl/elf_chaos.sc: Likewise.
644 * scripttempl/elfd10v.sc: Likewise.
645 * scripttempl/elfi370.sc: Likewise.
646 * scripttempl/elfm68hc11.sc: Likewise.
647 * scripttempl/elfm68hc12.sc: Likewise.
648 * scripttempl/ip2k.sc: Likewise.
649 * scripttempl/iq2000.sc: Likewise.
650 * scripttempl/mep.sc: Likewise.
651 * scripttempl/v850.sc: Likewise.
652 * scripttempl/xstormy16.sc: Likewise.
654 2008-02-16 Alan Modra <amodra@bigpond.net.au>
657 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
658 load_base before calling make_abs.
660 2008-02-15 Alan Modra <amodra@bigpond.net.au>
662 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
663 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
665 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
667 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
669 (is_ppc_elf): ..this new macro.
671 2008-02-15 Alan Modra <amodra@bigpond.net.au>
673 * ldmain.h (output_bfd): Delete.
674 * ldmain.c (output_bfd): Delete.
675 Replace all occurrences of output_bfd with link_info.output_bfd.
676 * ldcref.c: Likewise.
677 * ldctor.c: Likewise.
678 * ldemul.c: Likewise.
680 * ldfile.c: Likewise.
681 * ldlang.c: Likewise.
682 * ldmisc.c: Likewise.
683 * ldwrite.c: Likewise.
684 * pe-dll.c: Likewise.
685 * emultempl/aix.em: Likewise.
686 * emultempl/alphaelf.em: Likewise.
687 * emultempl/armcoff.em: Likewise.
688 * emultempl/armelf.em: Likewise.
689 * emultempl/avrelf.em: Likewise.
690 * emultempl/beos.em: Likewise.
691 * emultempl/elf-generic.em: Likewise.
692 * emultempl/elf32.em: Likewise.
693 * emultempl/gld960.em: Likewise.
694 * emultempl/hppaelf.em: Likewise.
695 * emultempl/irix.em: Likewise.
696 * emultempl/linux.em: Likewise.
697 * emultempl/lnk960.em: Likewise.
698 * emultempl/m68hc1xelf.em: Likewise.
699 * emultempl/mmix-elfnmmo.em: Likewise.
700 * emultempl/mmo.em: Likewise.
701 * emultempl/pe.em: Likewise.
702 * emultempl/pep.em: Likewise.
703 * emultempl/ppc32elf.em: Likewise.
704 * emultempl/ppc64elf.em: Likewise.
705 * emultempl/scoreelf.em: Likewise.
706 * emultempl/sh64elf.em: Likewise.
707 * emultempl/spuelf.em: Likewise.
708 * emultempl/sunos.em: Likewise.
709 * emultempl/vanilla.em: Likewise.
710 * emultempl/vxworks.em: Likewise.
711 * emultempl/xtensaelf.em: Likewise.
712 * emultempl/z80.em: Likewise.
713 * ldlang.c (open_output): Don't return output, instead write
714 link_info_output_bfd directly.
715 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
716 with link_info.output_bfd->xvec.
717 * emultempl/hppaelf.em: Likewise.
718 * emultempl/ppc32elf.em: Likewise.
719 * emultempl/ppc64elf.em: Likewise.
720 * emultempl/spuelf.em: Likewise.
722 2008-02-07 Alan Modra <amodra@bigpond.net.au>
724 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
725 * ldfile.c (ldfile_add_library_path): Likewise.
726 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
727 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
728 * emultempl/spuelf.em (embedded_spu_file): Likewise.
730 2008-02-07 Alan Modra <amodra@bigpond.net.au>
732 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
733 a "present" bit rather than low bit of .buf. Correct indexing
734 into _ovly_buf_table. Use relative loads and stores to access
735 overlay manager local vars.
736 * emultempl/spu_ovl.o: Regenerate.
738 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
741 * configure: Regenerated.
743 2008-01-31 Marc Gauthier <marc@tensilica.com>
745 * configure.tgt (xtensa*-*-*): Recognize processor variants.
747 2008-01-28 Fabian Groffen <grobian@gentoo.org>
749 * configure.tgt (x86_64-*-solaris2): Add support for this target.
751 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
754 * genscripts.sh: Check for the existence of BASH_LINENO not just
755 the BASH shell before generating line numbers in the emulation
758 2008-01-28 Alan Modra <amodra@bigpond.net.au>
760 * emultempl/spu_ovl.S: Rewrite.
761 * emultempl/spu_ovl.o: Regenerate.
762 * emultempl/spuelf.em (toe): Delete.
763 (spu_place_special_section): Add param to control section placement.
765 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
767 (spu_before_allocation): Adjust spu_elf_size_stubs call.
768 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
770 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
773 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
776 2008-01-25 Alan Modra <amodra@bigpond.net.au>
778 * ld.texinfo (INSERT): Describe.
779 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
780 (INSERT_K, AFTER, BEFORE): Add as tokens.
781 (ifile_p1): Handle INSERT statements.
782 (saved_script_handle, force_make_executable): Move to..
784 (previous_script_handle): New global var.
785 * ldmain.h (saved_script_handle, force_make_executable): Declare.
786 (previous_script_handle): Likewise.
787 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
788 * lexsup.c (parge_args <-T>): Set previous_script_handle.
789 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
790 (map_input_to_output_sections, print_statement): Likewise.
791 (lang_size_sections_1, lang_do_assignments_1): Likewise.
792 (insert_os_after): New function, extracted from..
793 (lang_insert_orphan): ..here.
794 (process_insert_statements): New function.
795 (lang_process): Call it.
796 (lang_add_insert): New function.
797 * ldlang.h (lang_insert_statement_enum): New.
798 (lang_insert_statement_type): New.
799 (lang_statement_union_type): Add insert_statement.
800 (lang_add_insert): Declare.
802 2008-01-18 Bob Wilson <bob.wilson@acm.org>
804 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
807 2008-01-16 Alan Modra <amodra@bigpond.net.au>
809 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
811 2008-01-16 Alan Modra <amodra@bigpond.net.au>
813 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
814 (lang_afile_asection_pair_statement_type): Delete.
815 (lang_statement_union_type): Delete afile_asection_pair_statement.
816 * ldlang.c (lang_insert_orphan): Delete case handling the above.
817 (map_input_to_output_sections, print_statement): Likewise.
819 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
821 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
823 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
825 2008-01-15 Alan Modra <amodra@bigpond.net.au>
828 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
829 syms to _bfd_elf_gc_keep.
830 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
831 ppc64_elf_edit_opd if no_opd_opt.
833 2008-01-11 Tristan Gingold <gingold@adacore.com>
834 Eric Botcazou <ebotcazou@adacore.com>
836 * ldlang.c (lang_end): Warns if the entry point is not found when
838 Emit an error if no root is specified when --gc-sections -r.
839 * ld.texinfo (Options): Document that --gc-sections is compatible
841 * ldmain.c (main): Do not error out if -r and --gc-sections.
842 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
844 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
847 * ldlang.c (lang_end): Issue a warning for a missing start symbol
848 of a shared library if the symbol was specified on the command
851 2008-01-10 Alan Modra <amodra@bigpond.net.au>
853 * ld.texinfo (--gc-sections): Describe linker behaviour.
855 For older changes see ChangeLog-2007
861 version-control: never