1 2008-09-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3 * configure.in: Call AC_SYS_LARGEFILE.
4 * config.in: Regenerate.
5 * configure: Regenerate.
7 2008-09-09 Peter Rosin <peda@lysator.liu.se> (tiny change)
9 * emultempl/pe.em (pe_find_data_imports): Add trailing newline
11 * emultempl/pep.em (pep_find_data_imports): Likewise.
13 2008-09-08 H.J. Lu <hongjiu.lu@intel.com>
15 2008-09-07 Alan Modra <amodra@bigpond.net.au>
17 * emultempl/beos.em (gld${EMULATION_NAME}_place_orphan): Updated.
18 * emultempl/sunos.em (gld${EMULATION_NAME}_before_allocation): Likewise.
20 2008-09-08 Tristan Gingold <gingold@adacore.com>
22 * NEWS: Add a marker for the 2.19 features.
24 2008-09-07 Alan Modra <amodra@bigpond.net.au>
26 * ldlang.h (lang_output_section_find): Define.
27 (lang_output_section_statement_lookup): Update prototype.
28 * ldlang.c (lang_output_section_find,
29 lang_output_section_statement_lookup_1): Merge into..
30 (lang_output_section_statement_lookup): ..here. Update all callers.
31 (process_insert_statements): Set constraint negative
32 for output section statements we might be inserting. Make error
33 fatal on not finding insertion section.
34 (lang_output_section_find): Rather than comparing
35 output_section_statement.constraint against -1, test whether
37 (lang_output_section_statement_lookup_1): Likewise.
38 (output_prev_sec_find, strip_excluded_output_sections): Likewise.
39 (lang_record_phdrs): Likewise.
40 * emultempl/elf32.em (output_rel_find): Likewise.
41 * NEWS: Mention INSERT.
43 2008-08-26 Nick Clifton <nickc@redhat.com>
46 * emultempl/armelf.em (arm_elf_set_bfd_for_interworking): Scan all
47 input sections in all input bfds and always select the last
48 suitable one, so that interworking stubs are always processed
49 after all other input sections.
50 (arm_elf_before_allocation): Remove redundant use of
51 output_has_begun flag.
53 2008-08-24 Alan Modra <amodra@bigpond.net.au>
55 * configure.in: Update a number of obsolete autoconf macros.
56 * configure: Regenerate.
57 * aclocal.m4: Regenerate.
59 2008-08-21 Jan Kratochvil <jan.kratochvil@redhat.com>
62 * ldexp.c (fold_binary <DATA_SEGMENT_ALIGN>): Do not align
63 EXPLD.DATASEG.MIN_BASE.
64 * ldlang.c (lang_size_sections): New variable OLD_BASE. Rename
65 OLD_MIN_BASE to MIN_BASE with the former alignment from `ldexp.c'.
66 Use OLD_BASE now for the minimal base check after the base decrease by
67 the maximum alignment found.
69 2008-08-17 Alan Modra <amodra@bigpond.net.au>
72 * ldcref.c (check_local_sym_xref): Use bfd_generic_link_read_symbols.
73 Don't free symbol pointer array.
74 (check_refs): Likewise.
75 * ldmain.c (warning_callback): Likewise.
76 * ldmisc.c (vfinfo): Likewise.
77 * pe-dll.c (process_def_file): Likewise.
78 (pe_walk_relocs_of_symbol, generate_reloc): Likewise.
79 * emultempl/pe.em (pe_find_data_imports): Likewise.
80 (gld_${EMULATION_NAME}_after_open): Likewise.
81 * emultempl/pep.em (pep_find_data_imports): Likewise.
82 (gld_${EMULATION_NAME}_after_open): Likewise.
83 * ldlang.h (lang_input_statement_type): Delete asymbols, symbol_count,
84 passive_position, closed.
85 * ldlang.c (new_afile): Don't set asymbols and symbol_count.
86 * ldmain.c (add_archive_element): xcalloc lang_input_statement_type.
88 2008-08-15 Alan Modra <amodra@bigpond.net.au>
91 * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
92 * Makefile.in: Regenerate.
93 * aclocal.m4: Regenerate.
94 * config.in: Regenerate.
95 * configure: Regenerate.
97 2008-08-09 Alan Modra <amodra@bigpond.net.au>
100 * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
101 (main): Don't set_scripts_dir here.
102 * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
103 largely based on ldmain.c versions.
104 (ldfile_find_command_file): Set up search in script dir here without
105 affecting library search.
106 * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
107 (ldfile.o): New rule.
108 * Makefile.in: Regenerate.
110 2008-08-08 Anatoly Sokolov <aesok@post.ru>
112 * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
114 Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
115 * Makefile.in: Regenerate.
116 * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
118 * emulparams/avr25.sh: New file.
119 * emulparams/avr31.sh: New file.
120 * emulparams/avr35.sh: New file.
121 * emulparams/avr51.sh: New file.
123 2008-08-08 Richard Sandiford <rdsandiford@googlemail.com>
124 Daniel Jacobowitz <dan@codesourcery.com>
126 * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
127 (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
129 * emulparams/elf32bmipn32-defs.sh: Likewise.
130 * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
131 (is_mips_elf): New macro.
132 (stub_file, stub_bfd): New variables.
133 (hook_stub_info): New structure.
134 (hook_in_stub): New function.
135 (mips_add_stub_section): Likewise.
136 (mips_create_output_section_statements): Likewise.
137 (mips_before_allocation): Likewise.
138 (real_func): New variable.
139 (mips_for_each_input_file_wrapper): New function.
140 (mips_lang_for_each_input_file): Likewise.
141 (lang_for_each_input_file): Define.
142 (LDEMUL_BEFORE_ALLOCATION): Likewise.
143 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
145 2008-08-08 Alan Modra <amodra@bigpond.net.au>
147 * ldfile.c (ldfile_open_file_search): Use concat.
148 (try_open): Don't use a fixed size pathname buffer.
149 (ldfile_find_command_file): Likewise.
150 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
151 using EXTRA_SHLIB_EXTENSION, don't open twice.
153 2008-08-04 Alan Modra <amodra@bigpond.net.au>
155 * Makefile.am (POTFILES.in): Set LC_ALL=C.
156 * Makefile.in: Regenerate.
157 * po/POTFILES.in: Regenerate.
159 2008-08-03 Alan Modra <amodra@bigpond.net.au>
161 * Makefile.am (spu_ovl.o): Merge rule into..
162 (spu_ovl.o_c): ..this one. Only run cpp for spu target.
163 * Makefile.in: Regenerate.
165 2008-08-02 Jan Kratochvil <jan.kratochvil@redhat.com>
167 Include the spu_ovl ASCII form in the repository files.
168 * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
169 * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
170 ($(srcdir)/emultempl/spu_ovl.o_c): New target.
171 ($(srcdir)/emultempl/spu_ovl.o): Rename to...
172 (spu_ovl.o): ...this one.
173 * Makefile.in: Regenerate.
174 * emultempl/spu_ovl.o_c: New file.
175 * emultempl/spu_ovl.o: File removed.
177 2008-07-31 Takashi Ono <t_ono@hkfreak.net>
179 * pe-dll.c (generate_relocs): Don't generate relocs for
180 undefined weak symbols.
182 2008-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
184 * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
186 2008-07-30 Alan Modra <amodra@bigpond.net.au>
188 * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
190 2008-07-18 Joseph Myers <joseph@codesourcery.com>
192 * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
193 * emultempl/armelf.em (no_wchar_size_warning): New.
194 (arm_elf_create_output_section_statements): Pass
195 no_wchar_size_warning to arm_elf_create_output_section_statements.
196 (OPTION_NO_WCHAR_SIZE_WARNING): New.
197 (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
198 (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
199 (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
201 2008-07-15 Jie Zhang <jie.zhang@analog.com>
203 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
205 2008-07-12 Craig Silverstein <csilvers@google.com>
208 * configure.in: Check for, and include, libz.a if it is present.
209 * configure: Regenerate.
210 * config.in: Regenerate.
212 2008-07-12 Jie Zhang <jie.zhang@analog.com>
215 2008-07-12 Jie Zhang <jie.zhang@analog.com>
216 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
217 (eelf32bfinfd.c): Likewise.
218 * Makefile.in: Regenerate.
219 * gen-doc.texi: Set Blackfin.
220 * ld.texinfo: Document --sep-code and Blackfin specific
222 * ldmain.c (main): Initialize link_info.sep_code.
223 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
224 (ld_options[]): Add --sep-code.
225 (parse_args): Deal with --sep-code.
226 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
227 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
228 * emultempl/bfin.em: New file.
230 2008-07-12 Jie Zhang <jie.zhang@analog.com>
232 * Makefile.am (eelf32bfin.c): Depend on bfin.em.
233 (eelf32bfinfd.c): Likewise.
234 * Makefile.in: Regenerate.
235 * gen-doc.texi: Set Blackfin.
236 * ld.texinfo: Document --sep-code and Blackfin specific
238 * ldmain.c (main): Initialize link_info.sep_code.
239 * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
240 (ld_options[]): Add --sep-code.
241 (parse_args): Deal with --sep-code.
242 * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
243 * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
244 * emultempl/bfin.em: New file.
246 2008-07-09 Danny Smith <dannysmith@users.sourceforge.net>
248 *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
250 Exclude "_IMPORT_DESCRIPTOR_".
251 (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
252 (autofilter_symbollist_generic): Don't check for ".text".
253 Exclude "_NULL_IMPORT_DESCRIPTOR".
254 (autofilter_symbollist_i386): Likewise.
256 2008-07-07 Alan Modra <amodra@bigpond.net.au>
258 * emultempl/armelf.em (elf32_arm_add_stub_section): Use
259 bfd_make_section_with_flags.
260 * emultempl/avrelf.em (avr_elf_create_output_section_statements):
262 * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
263 * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
264 * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
265 * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
266 * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
267 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
270 2008-07-06 Nathan Sidwell <nathan@codesourcery.com>
272 * ld.texinfo (File Commands): Document that INCLUDE can be used in
273 several different places.
274 * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
275 (memory, memory_spec_list): Simplify BNF
276 (memory_spec_list_opt): New rule.
277 * ldlex.l (INCLUDE): Recognize in EXPRESSION.
279 2008-06-20 Alan Modra <amodra@bigpond.net.au>
281 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
282 build overlay stubs" a fatal error.
284 2008-06-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
286 * config.in: Regenerate.
287 * configure: Regenerate.
289 2008-06-17 Alan Modra <amodra@bigpond.net.au>
291 * emultempl/spuelf.em (extra_stack_space): New variable.
292 (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
293 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
294 PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
295 * emultempl/spu_ovl.S: Mask interrupts during dma and update of
296 overlay manager structures.
297 * emultempl/spu_ovl.o: Regenerate.
299 2008-06-16 Hans-Peter Nilsson <hp@bitrange.com>
301 * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
302 mention it as being special for global symbols.
304 2008-06-12 Nick Clifton <nickc@redhat.com>
306 * ldlang.c (print_output_section_statement): If the output section
307 statement has an update_dot_tree expression, apply it to
309 (print_input_section): Do not update print_dot if it would move
311 (lang_do_assignments_1): If the output section statement has an
312 update_dot_tree expression apply it to dot.
314 2008-06-07 Alan Modra <amodra@bigpond.net.au>
316 * NEWS: Mention archive:path patterns.
317 * ld.texinfo: Likewise.
318 * ldlang.c: Formatting throughout.
319 (archive_path): Only assume "[A-Za-z]:" is a dos drive.
320 (input_statement_is_archive_path): New function, extracted from..
322 (walk_wild_consider_section): Match archive:path here too.
323 (init_map_userdata, sort_def_symbol): Convert to ISO C.
324 * ldmain.c (main): Set link_info.path_separator.
325 * emultempl/spuelf.em (choose_target): Don't set it here.
327 2008-06-06 Alan Modra <amodra@bigpond.net.au>
329 * ldlang.c (name_match): New function.
330 (unique_section_p, walk_wild_consider_section): Use it here.
331 (walk_wild_section_general): And here.
332 (archive_path): New function.
333 (walk_wild): Match archive:path filespecs.
334 (open_input_bfds): Don't load archive:path files.
335 * emultempl/spuelf.em (choose_target): Set path_separator.
336 * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
338 2008-06-04 Nick Clifton <nickc@redhat.com>
340 * ld.texinfo (Orphan Sections): Fix texi typo.
342 2008-06-04 Chris Metcalf <cmetcalf@tilera.com>
344 * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
345 (ld_options): Add entry for --no-fatal-warnings.
346 (parse_args): Handle OPTION_NO_WARN_FATAL.
347 * ld.texinfo (Options): Document new command line switch.
349 2008-06-04 Alan Modra <amodra@bigpond.net.au>
351 * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
353 2008-06-02 Nathan Sidwell <nathan@codesourcery.com>
355 * ldlang.c (closest_target_match): Skip generic big and little
358 2008-05-31 Evandro Menezes <evandro@yahoo.com>
361 * ld.h (enum sort_order): New.
362 * ldlang.c (lang_check: Fix comment.
363 (lang_common): Sort commons in ascending or descending order.
364 (lang_one_common): Likewise.
365 * lexsup.c (ld_options): Have --sort-common take an option
367 (parse_args): Handle argument to --sort-common.
368 * ld.texinfo (--sort-common): Document new optional argument.
369 * NEWS: Mention new feature.
371 2008-05-28 Christophe Lyon <christophe.lyon@st.com>
373 * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
376 2008-05-27 Kai Tietz <kai.tietz@onevision.com>
378 * pe-dll.c (fill_edata): Make sure we calculate vma's in
380 (generate_reloc): Likewise.
381 (pe_implied_import_dll): Likewise.
383 2008-05-21 Nick Clifton <nickc@redhat.com>
386 * ld.texinfo (Orphan Sections): Mention that the linker will
387 provide start and stop symbols for orphaned sections if their
388 names are valid C identifiers.
389 * NEWS: Add an addendum to the description of the linker feature
390 for providing orphan section start and end symbols.
392 2008-05-21 Maxim Kuvyrkov <maxim@codesourcery.com>
394 * configure.in (--enable-got): New option. Handle it.
395 * configure: Regenerate.
396 * config.in: Regenerate.
397 * emultempl/m68kelf.em: (got_handling_target_default): New shell
399 (GOT_HANDLING_TARGET_DEFAULT): New macro.
400 (GOT_HANDLING_DEFAULT): New macro. Initialize it from configure
401 option if one was given.
402 (got_handling): New static variable.
403 (elf_m68k_create_output_section_statements): New static function
405 (PARSE_AND_LIST_PROLOGUE): Define shell variable.
406 (OPTION_GOT): New macro.
407 (PARSE_AND_LIST_LONGOPTS): Define shell variable. Specify
409 (got): New linker option.
410 (PARSE_AND_LIST_OPTIONS): Define shell variable. Print help string
412 (PARSE_AND_LIST_ARGS_CASES): Define shell variable. Handle --got
414 * ld.texinfo: Document --got=<type> option.
415 * gen-doc.texi: Add M68K.
416 * NEWS: Mention the new feature.
418 2008-05-21 Evandro Menezes <evandro@yahoo.com>
421 * ld.texinfo (--sort-common): Correct documentation to indicate
422 that sorting is performed by alignment, not size, biggest
425 2008-05-21 Christophe Lyon <christophe.lyon@st.com>
426 Nick Clifton <nickc@redhat.com>
428 * ld.texinfo (ARM): Document --stub-group-size=N option.
429 Move description of --pic-veneer option into the ARM section.
430 * NEWS: Mention the support for long function calls.
432 2008-05-15 Christophe Lyon <christophe.lyon@st.com>
434 * emultempl/armelf.em (build_section_lists): New function.
436 (need_laying_out): Define.
437 (group_size): Define.
438 (hook_stub_info): Define.
439 (hook_in_stub): New function.
440 (elf32_arm_add_stub_section): New function.
441 (gldarm_layout_sections_again): New function.
442 (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
443 stubs for long calls if needed.
444 (arm_elf_create_output_section_statements): create stub_file bfd.
445 (arm_for_each_input_file_wrapper): New function.
446 (arm_lang_for_each_input_file): New function.
447 (lang_for_each_input_file): Define.
448 (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
449 (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
450 (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
451 (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
452 (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
453 * lang.c (print_input_statement): Skip if bfd has
456 2008-05-14 Alan Modra <amodra@bigpond.net.au>
458 * Makefile.in: Regenerate.
460 2008-05-09 Kai Tietz <kai.tietz@onevision.com>
463 * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
464 of long and change return type to bfd_vma.
465 (definfo): Change type of address from long to bfd_vma.
466 (set_pep_value): Replace strtoul to strtoull.
467 (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
468 * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
470 (quick_reloc): Change argument address from int to bfd_size_type.
472 2008-05-08 Tom Tromey <tromey@redhat.com>
474 * ld.texinfo (PowerPC64 ELF64): Fix typo.
476 2008-05-08 Alan Modra <amodra@bigpond.net.au>
478 * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
479 * elf32ppc.sh: If building with spu support, put ".data.spehandle"
480 sections at the start of ".data" and provide a symbol to locate
481 the directory of embedded spe programs.
483 2008-05-08 Alan Modra <amodra@bigpond.net.au>
485 * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K. Correct
487 (fold_binary <SEGMENT_START>): Set expld.result.section to
488 current section. Expand comment. Formatting.
489 (fold_name <DEFINED>): Set expld.result.section to current section.
491 2008-04-28 Nathan Sidwell <nathan@codesourcery.com>
493 * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
496 2008-04-25 Michael Frysinger <vapier@gentoo.org>
498 * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
499 and targ_extra_emuls to elf32bfin.
501 2008-04-23 Paolo Bonzini <bonzini@gnu.org>
503 * aclocal.m4: Regenerate.
504 * configure: Regenerate.
506 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
508 * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
510 2008-04-08 Alan Modra <amodra@bigpond.net.au>
512 * po/POTFILES.in: Regenerate.
514 2008-04-08 Alan Modra <amodra@bigpond.net.au>
516 * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
517 auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
518 (spu_before_allocation): Warn on --auto-overlay and existing overlays.
519 (struct tflist, clean_tmp): Move.
520 (new_tmp_file): New function, extracted from..
521 (embedded_spu_file): ..here.
522 (spu_elf_open_overlay_script, spu_elf_relink): New function.
523 (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
524 Warn on --auto-overlay and zero local store.
525 (gld${EMULATION_NAME}_choose_target): New function to stash argv.
526 (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
527 OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
528 OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
529 (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
530 (PARSE_AND_LIST_OPTIONS): Likewise.
531 (PARSE_AND_LIST_ARGS_CASES): Likewise.
532 (LDEMUL_CHOOSE_TARGET): Define.
534 2008-04-03 Kai Tietz <kai.tietz@onevision.com>
537 * pe-dll.c (make_head): Fix iat and thunk addend offset.
539 2008-03-31 Nick Clifton <nickc@redhat.com>
541 * po/fr.po: Updated French translation.
543 2008-03-24 Ian Lance Taylor <iant@google.com>
545 The sha1 code is now in libiberty.
548 * Makefile.am (CFILES): Remove sha1.c.
549 (HFILES): Remove sha1.h.
550 (OFILES): Remove sha1.o.
551 (ld_new_SOURCES): Remove sha1.c.
552 (sha1.o): Remove target.
553 * Makefile.in: Rebuild.
555 2008-03-20 Alan Modra <amodra@bigpond.net.au>
557 * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
559 2008-03-17 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
561 * aclocal.m4: Regenerate.
562 * configure: Likewise.
563 * Makefile.in: Likewise.
565 2008-03-14 Alan Modra <amodra@bigpond.net.au>
567 * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
568 spu_elf_build_stubs with is_spu_target.
570 2008-03-13 Alan Modra <amodra@bigpond.net.au>
572 * Makefile.am: Run "make dep-am".
573 * Makefile.in: Regenerate.
574 * configure: Regenerate.
576 2008-03-06 Joseph Myers <joseph@codesourcery.com>
577 Roman Zippel <zippel@linux-m68k.org>
579 * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
580 (COMMONPAGESIZE): Define.
582 2008-02-22 Nick Clifton <nickc@redhat.com>
585 * ldlang.c (lang_size_sections_1): Honour the setting of an
586 lma_region even if there is no vma region set, or the vma region
587 is the same as the lma region.
589 2008-02-18 Nick Clifton <nickc@redhat.com>
591 * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
593 * scripttempl/elf32cr16.sc: Likewise.
594 * scripttempl/elf32cr16c.sc: Likewise.
595 * scripttempl/elf32crx.sc: Likewise.
596 * scripttempl/elf32sh-symbian.sc: Likewise.
597 * scripttempl/elf_chaos.sc: Likewise.
598 * scripttempl/elfd10v.sc: Likewise.
599 * scripttempl/elfi370.sc: Likewise.
600 * scripttempl/elfm68hc11.sc: Likewise.
601 * scripttempl/elfm68hc12.sc: Likewise.
602 * scripttempl/ip2k.sc: Likewise.
603 * scripttempl/iq2000.sc: Likewise.
604 * scripttempl/mep.sc: Likewise.
605 * scripttempl/v850.sc: Likewise.
606 * scripttempl/xstormy16.sc: Likewise.
608 2008-02-16 Alan Modra <amodra@bigpond.net.au>
611 * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
612 load_base before calling make_abs.
614 2008-02-15 Alan Modra <amodra@bigpond.net.au>
616 * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
617 * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
619 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
621 * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete. Replace all
623 (is_ppc_elf): ..this new macro.
625 2008-02-15 Alan Modra <amodra@bigpond.net.au>
627 * ldmain.h (output_bfd): Delete.
628 * ldmain.c (output_bfd): Delete.
629 Replace all occurrences of output_bfd with link_info.output_bfd.
630 * ldcref.c: Likewise.
631 * ldctor.c: Likewise.
632 * ldemul.c: Likewise.
634 * ldfile.c: Likewise.
635 * ldlang.c: Likewise.
636 * ldmisc.c: Likewise.
637 * ldwrite.c: Likewise.
638 * pe-dll.c: Likewise.
639 * emultempl/aix.em: Likewise.
640 * emultempl/alphaelf.em: Likewise.
641 * emultempl/armcoff.em: Likewise.
642 * emultempl/armelf.em: Likewise.
643 * emultempl/avrelf.em: Likewise.
644 * emultempl/beos.em: Likewise.
645 * emultempl/elf-generic.em: Likewise.
646 * emultempl/elf32.em: Likewise.
647 * emultempl/gld960.em: Likewise.
648 * emultempl/hppaelf.em: Likewise.
649 * emultempl/irix.em: Likewise.
650 * emultempl/linux.em: Likewise.
651 * emultempl/lnk960.em: Likewise.
652 * emultempl/m68hc1xelf.em: Likewise.
653 * emultempl/mmix-elfnmmo.em: Likewise.
654 * emultempl/mmo.em: Likewise.
655 * emultempl/pe.em: Likewise.
656 * emultempl/pep.em: Likewise.
657 * emultempl/ppc32elf.em: Likewise.
658 * emultempl/ppc64elf.em: Likewise.
659 * emultempl/scoreelf.em: Likewise.
660 * emultempl/sh64elf.em: Likewise.
661 * emultempl/spuelf.em: Likewise.
662 * emultempl/sunos.em: Likewise.
663 * emultempl/vanilla.em: Likewise.
664 * emultempl/vxworks.em: Likewise.
665 * emultempl/xtensaelf.em: Likewise.
666 * emultempl/z80.em: Likewise.
667 * ldlang.c (open_output): Don't return output, instead write
668 link_info_output_bfd directly.
669 * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
670 with link_info.output_bfd->xvec.
671 * emultempl/hppaelf.em: Likewise.
672 * emultempl/ppc32elf.em: Likewise.
673 * emultempl/ppc64elf.em: Likewise.
674 * emultempl/spuelf.em: Likewise.
676 2008-02-07 Alan Modra <amodra@bigpond.net.au>
678 * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
679 * ldfile.c (ldfile_add_library_path): Likewise.
680 * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
681 * emultempl/lnk960.em (lnk960_before_parse): Likewise.
682 * emultempl/spuelf.em (embedded_spu_file): Likewise.
684 2008-02-07 Alan Modra <amodra@bigpond.net.au>
686 * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
687 a "present" bit rather than low bit of .buf. Correct indexing
688 into _ovly_buf_table. Use relative loads and stores to access
689 overlay manager local vars.
690 * emultempl/spu_ovl.o: Regenerate.
692 2008-02-04 H.J. Lu <hongjiu.lu@intel.com>
695 * configure: Regenerated.
697 2008-01-31 Marc Gauthier <marc@tensilica.com>
699 * configure.tgt (xtensa*-*-*): Recognize processor variants.
701 2008-01-28 Fabian Groffen <grobian@gentoo.org>
703 * configure.tgt (x86_64-*-solaris2): Add support for this target.
705 2008-01-28 Vincent Riviere <vincent.riviere@freesbee.fr>
708 * genscripts.sh: Check for the existence of BASH_LINENO not just
709 the BASH shell before generating line numbers in the emulation
712 2008-01-28 Alan Modra <amodra@bigpond.net.au>
714 * emultempl/spu_ovl.S: Rewrite.
715 * emultempl/spu_ovl.o: Regenerate.
716 * emultempl/spuelf.em (toe): Delete.
717 (spu_place_special_section): Add param to control section placement.
719 (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
721 (spu_before_allocation): Adjust spu_elf_size_stubs call.
722 (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
724 2008-01-25 H.J. Lu <hongjiu.lu@intel.com>
727 * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
730 2008-01-25 Alan Modra <amodra@bigpond.net.au>
732 * ld.texinfo (INSERT): Describe.
733 * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
734 (INSERT_K, AFTER, BEFORE): Add as tokens.
735 (ifile_p1): Handle INSERT statements.
736 (saved_script_handle, force_make_executable): Move to..
738 (previous_script_handle): New global var.
739 * ldmain.h (saved_script_handle, force_make_executable): Declare.
740 (previous_script_handle): Likewise.
741 * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
742 * lexsup.c (parge_args <-T>): Set previous_script_handle.
743 * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
744 (map_input_to_output_sections, print_statement): Likewise.
745 (lang_size_sections_1, lang_do_assignments_1): Likewise.
746 (insert_os_after): New function, extracted from..
747 (lang_insert_orphan): ..here.
748 (process_insert_statements): New function.
749 (lang_process): Call it.
750 (lang_add_insert): New function.
751 * ldlang.h (lang_insert_statement_enum): New.
752 (lang_insert_statement_type): New.
753 (lang_statement_union_type): Add insert_statement.
754 (lang_add_insert): Declare.
756 2008-01-18 Bob Wilson <bob.wilson@acm.org>
758 * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
761 2008-01-16 Alan Modra <amodra@bigpond.net.au>
763 * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
765 2008-01-16 Alan Modra <amodra@bigpond.net.au>
767 * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
768 (lang_afile_asection_pair_statement_type): Delete.
769 (lang_statement_union_type): Delete afile_asection_pair_statement.
770 * ldlang.c (lang_insert_orphan): Delete case handling the above.
771 (map_input_to_output_sections, print_statement): Likewise.
773 2008-01-15 Kaz Kojima <kkojima@rr.iij4u.or.jp>
775 * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
777 * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
779 2008-01-15 Alan Modra <amodra@bigpond.net.au>
782 * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
783 syms to _bfd_elf_gc_keep.
784 * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
785 ppc64_elf_edit_opd if no_opd_opt.
787 2008-01-11 Tristan Gingold <gingold@adacore.com>
788 Eric Botcazou <ebotcazou@adacore.com>
790 * ldlang.c (lang_end): Warns if the entry point is not found when
792 Emit an error if no root is specified when --gc-sections -r.
793 * ld.texinfo (Options): Document that --gc-sections is compatible
795 * ldmain.c (main): Do not error out if -r and --gc-sections.
796 * scripttempl/elf.sc: Emit ENTRY command only if relocating.
798 2008-01-10 Daniel Jacobowitz <drow@sources.redhat.com>
801 * ldlang.c (lang_end): Issue a warning for a missing start symbol
802 of a shared library if the symbol was specified on the command
805 2008-01-10 Alan Modra <amodra@bigpond.net.au>
807 * ld.texinfo (--gc-sections): Describe linker behaviour.
809 For older changes see ChangeLog-2007
815 version-control: never