PR 6526
[binutils.git] / ld / ChangeLog
blob0e718a8a1104cb5c23cb34b367f8fd5d71808f6b
1 2008-08-15  Alan Modra  <amodra@bigpond.net.au>
3         PR 6526
4         * configure.in: Invoke AC_USE_SYSTEM_EXTENSIONS.
5         * Makefile.in: Regenerate.
6         * aclocal.m4: Regenerate.
7         * config.in: Regenerate.
8         * configure: Regenerate.
10 2008-08-09  Alan Modra  <amodra@bigpond.net.au>
12         PR 6753
13         * ldmain.c (check_for_scripts_dir, set_scripts_dir): Delete.
14         (main): Don't set_scripts_dir here.
15         * ldfile.c (check_for_scripts_dir, find_scripts_dir): New functions,
16         largely based on ldmain.c versions.
17         (ldfile_find_command_file): Set up search in script dir here without
18         affecting library search.
19         * Makefile.am (ldmain.o): No need to define SCRIPTDIR.
20         (ldfile.o): New rule.
21         * Makefile.in: Regenerate.
23 2008-08-08  Anatoly Sokolov  <aesok@post.ru>
25         * Makefile.am (ALL_EMULATIONS): Add eavr25.o, eavr31.o, eavr35.o,
26         and eavr51.o.
27         Add rules for eavr25.c, eavr31.c, eavr35.c, eavr51.c.
28         * Makefile.in: Regenerate.
29         * configure.tgt (avr-*-*, targ_extra_emuls): Add avr25, avr31, avr35
30         and avr51.
31         * emulparams/avr25.sh: New file.
32         * emulparams/avr31.sh: New file.
33         * emulparams/avr35.sh: New file.
34         * emulparams/avr51.sh: New file.
36 2008-08-08  Richard Sandiford  <rdsandiford@googlemail.com>
37             Daniel Jacobowitz  <dan@codesourcery.com>
39         * emulparams/elf32bmip.sh (GOT): Define, moving .got.plt to...
40         (OTHER_RELRO_SECTIONS, OTHER_READWRITE_SECTIONS): ...one of these
41         two variables.
42         * emulparams/elf32bmipn32-defs.sh: Likewise.
43         * emultempl/mipself.em: Include ldctor.h, elf/mips.h and elfxx-mips.h.
44         (is_mips_elf): New macro.
45         (stub_file, stub_bfd): New variables.
46         (hook_stub_info): New structure.
47         (hook_in_stub): New function.
48         (mips_add_stub_section): Likewise.
49         (mips_create_output_section_statements): Likewise.
50         (mips_before_allocation): Likewise.
51         (real_func): New variable.
52         (mips_for_each_input_file_wrapper): New function.
53         (mips_lang_for_each_input_file): Likewise.
54         (lang_for_each_input_file): Define.
55         (LDEMUL_BEFORE_ALLOCATION): Likewise.
56         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Likewise.
58 2008-08-08  Alan Modra  <amodra@bigpond.net.au>
60         * ldfile.c (ldfile_open_file_search): Use concat.
61         (try_open): Don't use a fixed size pathname buffer.
62         (ldfile_find_command_file): Likewise.
63         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive): If
64         using EXTRA_SHLIB_EXTENSION, don't open twice.
66 2008-08-04  Alan Modra  <amodra@bigpond.net.au>
68         * Makefile.am (POTFILES.in): Set LC_ALL=C.
69         * Makefile.in: Regenerate.
70         * po/POTFILES.in: Regenerate.
72 2008-08-03  Alan Modra  <amodra@bigpond.net.au>
74         * Makefile.am (spu_ovl.o): Merge rule into..
75         (spu_ovl.o_c): ..this one.  Only run cpp for spu target.
76         * Makefile.in: Regenerate.
78 2008-08-02  Jan Kratochvil  <jan.kratochvil@redhat.com>
80         Include the spu_ovl ASCII form in the repository files.
81         * emultempl/spuelf.em: No longer use `bin2c', use now `spu_ovl.o_c'.
82         * Makefile.am (eelf32_spu.c): Depend now on `spu_ovl.o_c'.
83         ($(srcdir)/emultempl/spu_ovl.o_c): New target.
84         ($(srcdir)/emultempl/spu_ovl.o): Rename to...
85         (spu_ovl.o): ...this one.
86         * Makefile.in: Regenerate.
87         * emultempl/spu_ovl.o_c: New file.
88         * emultempl/spu_ovl.o: File removed.
90 2008-07-31  Takashi Ono  <t_ono@hkfreak.net>
92         * pe-dll.c (generate_relocs): Don't generate relocs for
93         undefined weak symbols.
95 2008-07-31  Jan Kratochvil  <jan.kratochvil@redhat.com>
97         * emultempl/spuelf.em: Abort on the missing required `spu_ovl.o'.
99 2008-07-30  Alan Modra  <amodra@bigpond.net.au>
101         * emultempl/pe.em, emultempl/pep.em: Silence gcc warnings.
103 2008-07-18  Joseph Myers  <joseph@codesourcery.com>
105         * ld.texinfo (--no-wchar-size-warning): Document new ARM option.
106         * emultempl/armelf.em (no_wchar_size_warning): New.
107         (arm_elf_create_output_section_statements): Pass
108         no_wchar_size_warning to arm_elf_create_output_section_statements.
109         (OPTION_NO_WCHAR_SIZE_WARNING): New.
110         (PARSE_AND_LIST_LONGOPTS): Add no-wchar-size-warning.
111         (PARSE_AND_LIST_OPTIONS): List --no-wchar-size-warning.
112         (PARSE_AND_LIST_ARGS_CASES): Handle --no-wchar-size-warning.
114 2008-07-15  Jie Zhang  <jie.zhang@analog.com>
116         * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
118 2008-07-12  Craig Silverstein  <csilvers@google.com>
120         PR ld/6741
121         * configure.in: Check for, and include, libz.a if it is present.
122         * configure: Regenerate.
123         * config.in: Regenerate.
125 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
127         Revert
128         2008-07-12  Jie Zhang  <jie.zhang@analog.com>
129         * Makefile.am (eelf32bfin.c): Depend on bfin.em.
130         (eelf32bfinfd.c): Likewise.
131         * Makefile.in: Regenerate.
132         * gen-doc.texi: Set Blackfin.
133         * ld.texinfo: Document --sep-code and Blackfin specific
134         options.
135         * ldmain.c (main): Initialize link_info.sep_code.
136         * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
137         (ld_options[]): Add --sep-code.
138         (parse_args): Deal with --sep-code.
139         * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
140         * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
141         * emultempl/bfin.em: New file.
143 2008-07-12  Jie Zhang  <jie.zhang@analog.com>
145         * Makefile.am (eelf32bfin.c): Depend on bfin.em.
146         (eelf32bfinfd.c): Likewise.
147         * Makefile.in: Regenerate.
148         * gen-doc.texi: Set Blackfin.
149         * ld.texinfo: Document --sep-code and Blackfin specific
150         options.
151         * ldmain.c (main): Initialize link_info.sep_code.
152         * lexsup.c (enum option_values): Add OPTION_SEP_CODE.
153         (ld_options[]): Add --sep-code.
154         (parse_args): Deal with --sep-code.
155         * emulparams/bfin.sh (EXTRA_EM_FILE): Define.
156         * emulparams/elf32bfinfd.sh (OTHER_SECTIONS): Define.
157         * emultempl/bfin.em: New file.
159 2008-07-09  Danny Smith  <dannysmith@users.sourceforge.net>
161            *pe-dll.c (autofilter_symbolprefixlist): Excude all symbols
162            starting with ".".
163            Exclude "_IMPORT_DESCRIPTOR_".
164            (autofilter_symbolsuffixlist): Exclude "_NULL_THUNK_DATA".
165            (autofilter_symbollist_generic): Don't check for ".text".
166            Exclude "_NULL_IMPORT_DESCRIPTOR".
167            (autofilter_symbollist_i386): Likewise.
169 2008-07-07  Alan Modra  <amodra@bigpond.net.au>
171         * emultempl/armelf.em (elf32_arm_add_stub_section): Use
172         bfd_make_section_with_flags.
173         * emultempl/avrelf.em (avr_elf_create_output_section_statements):
174         Likewise.
175         * emultempl/hppaelf.em (hppaelf_add_stub_section): Likewise.
176         * emultempl/m68hc1xelf.em (m68hc11elf_add_stub_section): Likewise.
177         * emultempl/m68kcoff.em (gld${EMULATION_NAME}_after_open): Likewise.
178         * emultempl/m68kelf.em (m68k_elf_after_open): Likewise.
179         * emultempl/ppc64elf.em (ppc_add_stub_section): Likewise.
180         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_before_allocation):
181         Likewise.
183 2008-07-06  Nathan Sidwell  <nathan@codesourcery.com>
185         * ld.texinfo (File Commands): Document that INCLUDE can be used in
186         several different places.
187         * ldgram.y (statement, memory_spec, section): Allow INCLUDE.
188         (memory, memory_spec_list): Simplify BNF
189         (memory_spec_list_opt): New rule.
190         * ldlex.l (INCLUDE): Recognize in EXPRESSION.
192 2008-06-20  Alan Modra  <amodra@bigpond.net.au>
194         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Make "can not
195         build overlay stubs" a fatal error.
197 2008-06-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
199         * config.in: Regenerate.
200         * configure: Regenerate.
202 2008-06-17  Alan Modra  <amodra@bigpond.net.au>
204         * emultempl/spuelf.em (extra_stack_space): New variable.
205         (gld${EMULATION_NAME}_finish): Pass it to spu_elf_check_vma.
206         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS,
207         PARSE_AND_LIST_ARGS_CASES): Handle --extra-stack-space.
208         * emultempl/spu_ovl.S: Mask interrupts during dma and update of
209         overlay manager structures.
210         * emultempl/spu_ovl.o: Regenerate.
212 2008-06-16  Hans-Peter Nilsson  <hp@bitrange.com>
214         * ld.texinfo (@node MMIX): For the __.MMIX.start. prefix, only
215         mention it as being special for global symbols.
217 2008-06-12  Nick Clifton  <nickc@redhat.com>
219         * ldlang.c (print_output_section_statement): If the output section
220         statement has an update_dot_tree expression, apply it to
221         print_dot.
222         (print_input_section): Do not update print_dot if it would move
223         print_dot backwards.
224         (lang_do_assignments_1): If the output section statement has an
225         update_dot_tree expression apply it to dot.
227 2008-06-07  Alan Modra  <amodra@bigpond.net.au>
229         * NEWS: Mention archive:path patterns.
230         * ld.texinfo: Likewise.
231         * ldlang.c: Formatting throughout.
232         (archive_path): Only assume "[A-Za-z]:" is a dos drive.
233         (input_statement_is_archive_path): New function, extracted from..
234         (walk_wild): ..here.
235         (walk_wild_consider_section): Match archive:path here too.
236         (init_map_userdata, sort_def_symbol): Convert to ISO C.
237         * ldmain.c (main): Set link_info.path_separator.
238         * emultempl/spuelf.em (choose_target): Don't set it here.
240 2008-06-06  Alan Modra  <amodra@bigpond.net.au>
242         * ldlang.c (name_match): New function.
243         (unique_section_p, walk_wild_consider_section): Use it here.
244         (walk_wild_section_general): And here.
245         (archive_path): New function.
246         (walk_wild): Match archive:path filespecs.
247         (open_input_bfds): Don't load archive:path files.
248         * emultempl/spuelf.em (choose_target): Set path_separator.
249         * emulparams/elf32_spu.sh: Add ._ea.* sections to ._ea output.
251 2008-06-04  Nick Clifton  <nickc@redhat.com>
253         * ld.texinfo (Orphan Sections): Fix texi typo.
255 2008-06-04  Chris Metcalf  <cmetcalf@tilera.com>
257         * lexsup.c (option_values): Add OPTION_NO_WARN_FATAL.
258         (ld_options): Add entry for --no-fatal-warnings.
259         (parse_args): Handle OPTION_NO_WARN_FATAL.
260         * ld.texinfo (Options): Document new command line switch.
262 2008-06-04  Alan Modra  <amodra@bigpond.net.au>
264         * emultempl/spuelf.em (spu_elf_relink): Correct --no-auto-overlay arg.
266 2008-06-02  Nathan Sidwell  <nathan@codesourcery.com>
268         * ldlang.c (closest_target_match): Skip generic big and little
269         endian ELF targets.
271 2008-05-31  Evandro Menezes  <evandro@yahoo.com>
273         PR ld/6430
274         * ld.h (enum sort_order): New.
275         * ldlang.c (lang_check: Fix comment.
276         (lang_common): Sort commons in ascending or descending order.
277         (lang_one_common): Likewise.
278         * lexsup.c (ld_options): Have --sort-common take an option
279         argument.
280         (parse_args): Handle argument to --sort-common.
281         * ld.texinfo (--sort-common): Document new optional argument.
282         * NEWS: Mention new feature.
284 2008-05-28  Christophe Lyon  <christophe.lyon@st.com>
285         
286         * ld.texinfo: State that farcalls stubs are supported for ARM-EABI
287         only.
289 2008-05-27  Kai Tietz  <kai.tietz@onevision.com>
291         * pe-dll.c (fill_edata): Make sure we calculate vma's in
292         type bfd_vma.
293         (generate_reloc): Likewise.
294         (pe_implied_import_dll): Likewise.
296 2008-05-21  Nick Clifton  <nickc@redhat.com>
298         PR ld/6519
299         * ld.texinfo (Orphan Sections): Mention that the linker will
300         provide start and stop symbols for orphaned sections if their
301         names are valid C identifiers.
302         * NEWS: Add an addendum to the description of the linker feature
303         for providing orphan section start and end symbols.
305 2008-05-21  Maxim Kuvyrkov  <maxim@codesourcery.com>
307         * configure.in (--enable-got): New option.  Handle it.
308         * configure: Regenerate.
309         * config.in: Regenerate.
310         * emultempl/m68kelf.em: (got_handling_target_default): New shell
311         variable.
312         (GOT_HANDLING_TARGET_DEFAULT): New macro.
313         (GOT_HANDLING_DEFAULT): New macro.  Initialize it from configure
314         option if one was given.
315         (got_handling): New static variable.
316         (elf_m68k_create_output_section_statements): New static function
317         implementing hook.
318         (PARSE_AND_LIST_PROLOGUE): Define shell variable.
319         (OPTION_GOT): New macro.
320         (PARSE_AND_LIST_LONGOPTS): Define shell variable.  Specify
321         --got option.
322         (got): New linker option.
323         (PARSE_AND_LIST_OPTIONS): Define shell variable.  Print help string
324         for --got option.
325         (PARSE_AND_LIST_ARGS_CASES): Define shell variable.  Handle --got
326         option. 
327         * ld.texinfo: Document --got=<type> option.
328         * gen-doc.texi: Add M68K.
329         * NEWS: Mention the new feature.
331 2008-05-21  Evandro Menezes  <evandro@yahoo.com>
333         PR ld/6430
334         * ld.texinfo (--sort-common): Correct documentation to indicate
335         that sorting is performed by alignment, not size, biggest
336         alignment first.
338 2008-05-21  Christophe Lyon  <christophe.lyon@st.com>
339             Nick Clifton  <nickc@redhat.com>
341         * ld.texinfo (ARM): Document --stub-group-size=N option.
342         Move description of --pic-veneer option into the ARM section.
343         * NEWS: Mention the support for long function calls.
345 2008-05-15  Christophe Lyon  <christophe.lyon@st.com>
346         
347         * emultempl/armelf.em (build_section_lists): New function.
348         (stub_file): Define.
349         (need_laying_out): Define.
350         (group_size): Define.
351         (hook_stub_info): Define.
352         (hook_in_stub): New function.
353         (elf32_arm_add_stub_section): New function.
354         (gldarm_layout_sections_again): New function.
355         (gld${EMULATION_NAME}_finish): Replace arm_elf_finish(). Generate
356         stubs for long calls if needed.
357         (arm_elf_create_output_section_statements): create stub_file bfd.
358         (arm_for_each_input_file_wrapper): New function.
359         (arm_lang_for_each_input_file): New function.
360         (lang_for_each_input_file): Define.
361         (PARSE_AND_LIST_PROLOGUE): Add option token OPTION_STUBGROUP_SIZE.
362         (PARSE_AND_LIST_LONGOPTS): Add option stub-group-size.
363         (PARSE_AND_LIST_OPTIONS): Add option stub-group-size.
364         (PARSE_AND_LIST_ARGS_CASES): Add OPTION_STUBGROUP_SIZE case.
365         (LDEMUL_FINISH): Update to gld${EMULATION_NAME}_finish.
366         * lang.c (print_input_statement): Skip if bfd has
367         BFD_LINKER_CREATED.
369 2008-05-14  Alan Modra  <amodra@bigpond.net.au>
371         * Makefile.in: Regenerate.
373 2008-05-09  Kai Tietz  <kai.tietz@onevision.com>
375         ld/PR6502
376         * emultempl/pep.em (compute_dll_image_base): Use bfd_vma instead
377         of long and change return type to bfd_vma.
378         (definfo): Change type of address from long to bfd_vma.
379         (set_pep_value): Replace strtoul to strtoull.
380         (gld_${EMULATION_NAME}_set_symbols): use bfd_vma instead of long..
381         * pe-dll.c (pe_dll_generate_def_file): Use fprintf_vma to print
382         ImageBase.
383         (quick_reloc): Change argument address from int to bfd_size_type.
385 2008-05-08  Tom Tromey  <tromey@redhat.com>
387         * ld.texinfo (PowerPC64 ELF64): Fix typo.
389 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
391         * elf32_spu.sh (OTHER_SECTIONS): Add "._ea".
392         * elf32ppc.sh: If building with spu support, put ".data.spehandle"
393         sections at the start of ".data" and provide a symbol to locate
394         the directory of embedded spe programs.
396 2008-05-08  Alan Modra  <amodra@bigpond.net.au>
398         * ldexp.c (exp_print_token): Add ABSOLUTE, MIN_K, ASSERT_K.  Correct
399         MAX_K.
400         (fold_binary <SEGMENT_START>): Set expld.result.section to
401         current section.  Expand comment.  Formatting.
402         (fold_name <DEFINED>): Set expld.result.section to current section.
404 2008-04-28  Nathan Sidwell  <nathan@codesourcery.com>
406         * ldlang.c (lang_size_sections_1): Don't check LMA overflow on
407         non-load sections.
409 2008-04-25  Michael Frysinger  <vapier@gentoo.org>
411         * configure.tgt (bfin-*-linux-uclibc*): Set targ_emul to elf32bfinfd
412         and targ_extra_emuls to elf32bfin.
414 2008-04-23  Paolo Bonzini  <bonzini@gnu.org>
416         * aclocal.m4: Regenerate.
417         * configure: Regenerate.
419 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
421         * scripttempl/pep.sc: Align start of symbol __CTOR_LIST__.
423 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
425         * po/POTFILES.in: Regenerate.
427 2008-04-08  Alan Modra  <amodra@bigpond.net.au>
429         * emultempl/spuelf.em (auto_overlay, auto_overlay_file,
430         auto_overlay_fixed, auto_overlay_reserved, my_argc, my_argv): New vars.
431         (spu_before_allocation): Warn on --auto-overlay and existing overlays.
432         (struct tflist, clean_tmp): Move.
433         (new_tmp_file): New function, extracted from..
434         (embedded_spu_file): ..here.
435         (spu_elf_open_overlay_script, spu_elf_relink): New function.
436         (gld${EMULATION_NAME}_finish): Pass a bunch of --auto-overlay params.
437         Warn on --auto-overlay and zero local store.
438         (gld${EMULATION_NAME}_choose_target): New function to stash argv.
439         (OPTION_SPU_AUTO_OVERLAY, OPTION_SPU_AUTO_RELINK,
440         OPTION_SPU_OVERLAY_RODATA, OPTION_SPU_FIXED_SPACE,
441         OPTION_SPU_RESERVED_SPACE, OPTION_SPU_NO_AUTO_OVERLAY): Define.
442         (PARSE_AND_LIST_LONGOPTS): Add entries for new options.
443         (PARSE_AND_LIST_OPTIONS): Likewise.
444         (PARSE_AND_LIST_ARGS_CASES): Likewise.
445         (LDEMUL_CHOOSE_TARGET): Define.
447 2008-04-03  Kai Tietz  <kai.tietz@onevision.com>
449         PR ld/6026
450         * pe-dll.c (make_head): Fix iat and thunk addend offset.
452 2008-03-31  Nick Clifton  <nickc@redhat.com>
454         * po/fr.po: Updated French translation.
456 2008-03-24  Ian Lance Taylor  <iant@google.com>
458         The sha1 code is now in libiberty.
459         * sha1.c: Remove.
460         * sha1.h: Remove.
461         * Makefile.am (CFILES): Remove sha1.c.
462         (HFILES): Remove sha1.h.
463         (OFILES): Remove sha1.o.
464         (ld_new_SOURCES): Remove sha1.c.
465         (sha1.o): Remove target.
466         * Makefile.in: Rebuild.
468 2008-03-20  Alan Modra  <amodra@bigpond.net.au>
470         * emultempl/spuelf.em: Update calls to elf32-spu.c funcs.
472 2008-03-17  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
474         * aclocal.m4: Regenerate.
475         * configure: Likewise.
476         * Makefile.in: Likewise.
478 2008-03-14  Alan Modra  <amodra@bigpond.net.au>
480         * emultempl/spuelf.em (gld${EMULATION_NAME}_finish): Protect
481         spu_elf_build_stubs with is_spu_target.
483 2008-03-13  Alan Modra  <amodra@bigpond.net.au>
485         * Makefile.am: Run "make dep-am".
486         * Makefile.in: Regenerate.
487         * configure: Regenerate.
489 2008-03-06  Joseph Myers  <joseph@codesourcery.com>
490             Roman Zippel  <zippel@linux-m68k.org>
492         * emulparams/m68kelf.sh (GENERATE_PIE_SCRIPT): Define.
493         (COMMONPAGESIZE): Define.
495 2008-02-22  Nick Clifton  <nickc@redhat.com>
497         PR ld/5785
498         * ldlang.c (lang_size_sections_1): Honour the setting of an
499         lma_region even if there is no vma region set, or the vma region
500         is the same as the lma region.
502 2008-02-18  Nick Clifton  <nickc@redhat.com>
504         * scripttempl/armbpabi.sc (ENTRY): Do not define when performing a
505         relocatable link.
506         * scripttempl/elf32cr16.sc: Likewise.
507         * scripttempl/elf32cr16c.sc: Likewise.
508         * scripttempl/elf32crx.sc: Likewise.
509         * scripttempl/elf32sh-symbian.sc: Likewise.
510         * scripttempl/elf_chaos.sc: Likewise.
511         * scripttempl/elfd10v.sc: Likewise.
512         * scripttempl/elfi370.sc: Likewise.
513         * scripttempl/elfm68hc11.sc: Likewise.
514         * scripttempl/elfm68hc12.sc: Likewise.
515         * scripttempl/ip2k.sc: Likewise.
516         * scripttempl/iq2000.sc: Likewise.
517         * scripttempl/mep.sc: Likewise.
518         * scripttempl/v850.sc: Likewise.
519         * scripttempl/xstormy16.sc: Likewise.
521 2008-02-16  Alan Modra  <amodra@bigpond.net.au>
523         PR ld/5761
524         * ldexp.c (fold_name <LOADADDR>): Check result of evaluating
525         load_base before calling make_abs.
527 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
529         * emultempl/alphaelf.em (alpha_after_open): Use elf_object_id.
530         * emultempl/hppaelf.em (hppaelf_create_output_section_statements):
531         Likewise.
532         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
533         Likewise.
534         * emultempl/ppc32elf.em (is_ppc_elf32_vec): Delete.  Replace all
535         uses with..
536         (is_ppc_elf): ..this new macro.
538 2008-02-15  Alan Modra  <amodra@bigpond.net.au>
540         * ldmain.h (output_bfd): Delete.
541         * ldmain.c (output_bfd): Delete.
542         Replace all occurrences of output_bfd with link_info.output_bfd.
543         * ldcref.c: Likewise.
544         * ldctor.c: Likewise.
545         * ldemul.c: Likewise.
546         * ldexp.c: Likewise.
547         * ldfile.c: Likewise.
548         * ldlang.c: Likewise.
549         * ldmisc.c: Likewise.
550         * ldwrite.c: Likewise.
551         * pe-dll.c: Likewise.
552         * emultempl/aix.em: Likewise.
553         * emultempl/alphaelf.em: Likewise.
554         * emultempl/armcoff.em: Likewise.
555         * emultempl/armelf.em: Likewise.
556         * emultempl/avrelf.em: Likewise.
557         * emultempl/beos.em: Likewise.
558         * emultempl/elf-generic.em: Likewise.
559         * emultempl/elf32.em: Likewise.
560         * emultempl/gld960.em: Likewise.
561         * emultempl/hppaelf.em: Likewise.
562         * emultempl/irix.em: Likewise.
563         * emultempl/linux.em: Likewise.
564         * emultempl/lnk960.em: Likewise.
565         * emultempl/m68hc1xelf.em: Likewise.
566         * emultempl/mmix-elfnmmo.em: Likewise.
567         * emultempl/mmo.em: Likewise.
568         * emultempl/pe.em: Likewise.
569         * emultempl/pep.em: Likewise.
570         * emultempl/ppc32elf.em: Likewise.
571         * emultempl/ppc64elf.em: Likewise.
572         * emultempl/scoreelf.em: Likewise.
573         * emultempl/sh64elf.em: Likewise.
574         * emultempl/spuelf.em: Likewise.
575         * emultempl/sunos.em: Likewise.
576         * emultempl/vanilla.em: Likewise.
577         * emultempl/vxworks.em: Likewise.
578         * emultempl/xtensaelf.em: Likewise.
579         * emultempl/z80.em: Likewise.
580         * ldlang.c (open_output): Don't return output, instead write
581         link_info_output_bfd directly.
582         * emultempl/alphaelf.em: Replace occurrences of link_info.hash->creator
583         with link_info.output_bfd->xvec.
584         * emultempl/hppaelf.em: Likewise.
585         * emultempl/ppc32elf.em: Likewise.
586         * emultempl/ppc64elf.em: Likewise.
587         * emultempl/spuelf.em: Likewise.
589 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
591         * ldlang.c (new_afile): Don't pass unadorned NULL to concat.
592         * ldfile.c (ldfile_add_library_path): Likewise.
593         * emultempl/elf32.em (check_ld_elf_hints, check_ld_so_conf): Likewise.
594         * emultempl/lnk960.em (lnk960_before_parse): Likewise.
595         * emultempl/spuelf.em (embedded_spu_file): Likewise.
597 2008-02-07  Alan Modra  <amodra@bigpond.net.au>
599         * emultempl/spu_ovl.S: Use low bit of _ovly_table.size as
600         a "present" bit rather than low bit of .buf.  Correct indexing
601         into _ovly_buf_table.  Use relative loads and stores to access
602         overlay manager local vars.
603         * emultempl/spu_ovl.o: Regenerate.
605 2008-02-04  H.J. Lu  <hongjiu.lu@intel.com>
607         PR 5715
608         * configure: Regenerated.
610 2008-01-31  Marc Gauthier  <marc@tensilica.com>
612         * configure.tgt (xtensa*-*-*): Recognize processor variants.
614 2008-01-28  Fabian Groffen  <grobian@gentoo.org>
616         * configure.tgt (x86_64-*-solaris2): Add support for this target.
618 2008-01-28  Vincent Riviere  <vincent.riviere@freesbee.fr>
620         PR ld/5652
621         * genscripts.sh: Check for the existence of BASH_LINENO not just
622         the BASH shell before generating line numbers in the emulation
623         file.
625 2008-01-28  Alan Modra  <amodra@bigpond.net.au>
627         * emultempl/spu_ovl.S: Rewrite.
628         * emultempl/spu_ovl.o: Regenerate.
629         * emultempl/spuelf.em (toe): Delete.
630         (spu_place_special_section): Add param to control section placement.
631         Adjust callers.
632         (spu_elf_load_ovl_mgr): Adjust for struct _spu_elf_section_data
633         changes.
634         (spu_before_allocation): Adjust spu_elf_size_stubs call.
635         (gld${EMULATION_NAME}_finish): Adjust spu_elf_build_stubs call.
637 2008-01-25  H.J. Lu  <hongjiu.lu@intel.com>
639         PR ld/5670
640         * ldlang.c (process_insert_statements): Silence gcc 4.1 alias
641         warning.
643 2008-01-25  Alan Modra  <amodra@bigpond.net.au>
645         * ld.texinfo (INSERT): Describe.
646         * ldgram.y (ldgram_in_script, ldgram_had_equals): Delete.
647         (INSERT_K, AFTER, BEFORE): Add as tokens.
648         (ifile_p1): Handle INSERT statements.
649         (saved_script_handle, force_make_executable): Move to..
650         * ldmain.c: ..here.
651         (previous_script_handle): New global var.
652         * ldmain.h (saved_script_handle, force_make_executable): Declare.
653         (previous_script_handle): Likewise.
654         * ldlex.l (INSERT_K, AFTER, BEFORE): Add tokens.
655         * lexsup.c (parge_args <-T>): Set previous_script_handle.
656         * ldlang.c (lang_for_each_statement_worker): Handle insert statement.
657         (map_input_to_output_sections, print_statement): Likewise.
658         (lang_size_sections_1, lang_do_assignments_1): Likewise.
659         (insert_os_after): New function, extracted from..
660         (lang_insert_orphan): ..here.
661         (process_insert_statements): New function.
662         (lang_process): Call it.
663         (lang_add_insert): New function.
664         * ldlang.h (lang_insert_statement_enum): New.
665         (lang_insert_statement_type): New.
666         (lang_statement_union_type): Add insert_statement.
667         (lang_add_insert): Declare.
669 2008-01-18  Bob Wilson  <bob.wilson@acm.org>
671         * scripttempl/elfxtensa.sc: Merge ENTRY and .note.gnu.build-id
672         changes from elf.sc.
674 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
676         * ldlang.c (lang_size_sections_1): Simplify SEC_NEVER_LOAD test.
678 2008-01-16  Alan Modra  <amodra@bigpond.net.au>
680         * ldlang.h (lang_afile_asection_pair_statement_enum): Delete.
681         (lang_afile_asection_pair_statement_type): Delete.
682         (lang_statement_union_type): Delete afile_asection_pair_statement.
683         * ldlang.c (lang_insert_orphan): Delete case handling the above.
684         (map_input_to_output_sections, print_statement): Likewise.
686 2008-01-15  Kaz Kojima  <kkojima@rr.iij4u.or.jp>
688         * emulparams/shlelf_linux.sh (DATA_START_SYMBOLS): Use PROVIDE
689         with __data_start.
690         * emulparams/shelf_nbsd.sh (DATA_START_SYMBOLS): Likewise.
692 2008-01-15  Alan Modra  <amodra@bigpond.net.au>
694         PR 5604
695         * ldlang.c (lang_gc_sections): Move code to set SEC_KEEP on entry
696         syms to _bfd_elf_gc_keep.
697         * emultempl/ppc64elf.em (ppc_before_allocation): Don't call
698         ppc64_elf_edit_opd if no_opd_opt.
700 2008-01-11  Tristan Gingold  <gingold@adacore.com>
701             Eric Botcazou  <ebotcazou@adacore.com>
703         * ldlang.c (lang_end): Warns if the entry point is not found when
704         --gc-sections.
705         Emit an error if no root is specified when --gc-sections -r.
706         * ld.texinfo (Options): Document that --gc-sections is compatible
707         with -r and -q.
708         * ldmain.c (main): Do not error out if -r and --gc-sections.
709         * scripttempl/elf.sc: Emit ENTRY command only if relocating.
711 2008-01-10  Daniel Jacobowitz  <drow@sources.redhat.com>
713         PR ld/5533
714         * ldlang.c (lang_end): Issue a warning for a missing start symbol
715         of a shared library if the symbol was specified on the command
716         line.
718 2008-01-10  Alan Modra  <amodra@bigpond.net.au>
720         * ld.texinfo (--gc-sections): Describe linker behaviour.
722 For older changes see ChangeLog-2007
724 Local Variables:
725 mode: change-log
726 left-margin: 8
727 fill-column: 74
728 version-control: never
729 End: