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