bfd/
[binutils.git] / ld / ChangeLog
blobf08e998dbd0b6c9e15216d5122d5f0f8e6963a66
1 2010-06-01  Tristan Gingold  <gingold@adacore.com>
3         * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
4         readonly output-section. Handle LIB$INITIALIZE and sections
5         created by gcc.
6         * emultempl/vms.em (vms_place_orphan): Add comments.
8 2010-05-28  Nick Clifton  <nickc@redhat.com>
10         * Makefile.am (eshlelf_fd.c): Fix typo in rule.
11         * Makefile.in: Regenerate.
13 2010-05-26  H.J. Lu  <hongjiu.lu@intel.com>
15         PR ld/11628
16         * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
17         multiple of maximum page size.
19 2010-05-25  Nick Clifton  <nickc@redhat.com>
21         * Makefile.am: Fix typo.
22         * Makefile.in: Regenerate.
24 2010-05-25  Daniel Jacobowitz  <dan@codesourcery.com>
25             Joseph Myers  <joseph@codesourcery.com>
26             Andrew Stubbs  <ams@codesourcery.com>
28         * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
29         (eshelf_fd.c, eshlelf_fd.c): New rules.
30         * Makefile.in: Regenerate.
31         * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
32         emulations.
33         * emulparams/shelf_fd.sh: New file.
34         * emulparams/shlelf_fd.sh: New file.
35         * emulparams/shlelf_linux.sh: Update comment.
37 2010-05-25  Jay Krell  <jay.krell@cornell.edu>
39         PR ld/11621
40         * Makefile.am: Replace all occurences of .o with .@OBJEXT@
41         * Makefile.in: Regenerate.
43 2010-05-25  Kai Tietz  <kai.tietz@onevision.com>
45         * deffilep.y (opt_name): Allow leading dot.
46         (dot_name): Likewise.
47         (anylang_id): Likewise.
48         * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
49         default auto_import.
50         (gld${EMULATION_NAME}_handle_option): Warn about v1.
51         (pep_find_data_imports): Remove superflous warnings about
52         auto-import.
53         (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
54         and active pseudo-relocation-v2 rdata into data section.
55         * emultempl/pe.em (default_merge_rdata): New shell variable.
56         (MERGE_RDATA_V2): New macro.
57         (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
58         selected script.
60 2010-05-15  Kai Tietz  <kai.tietz@onevision.com>
62         * emultempl/pe.em (is_underscoring): New helper function.
63         (gld_${EMULATION_NAME}_before_parse): Replace code
64         for pe(p)_leading_underscore detection by is_underscoring.
65         (U): Likewise.
66         (GET_INIT_SYMBOL_NAME): Likewise.
67         (U_SIZE): Likewise.
68         (set_pe_name):
69         (set_entry_point):
70         (gld_${EMULATION_NAME}_set_symbols):
71         * emultempl/pep.em: Likewise.
72         * pe-dll.c (pe_detail_list): Set default
73         underscoring for x64 target.
74         (pe_dll_id_target): Add initialization of
75         pe(p)_leading_underscore.
77 2010-05-15  Dave Korn  <dave.korn.cygwin@gmail.com>
79         * pe-dll.c: Removed trailing whitespaces.
81 2010-05-14  Alan Modra  <amodra@gmail.com>
83         PR ld/11583
84         * ldexp.c (exp_fold_tree_1): If assignment source expression is
85         invalid, make the destination symbol undefined.
87 2010-05-11  Kai Tietz  <kai.tietz@onevision.com>
89         * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
90         Initialize pe(p)_leading_underscore variable.
91         (set_pe_name): Likewise.
92         * emultempl/pep.em: Likewise.
93         Additional change default to non-underscore for
94         pep_leading_underscore equal to -1.
96 2010-05-07  Tristan Gingold  <gingold@adacore.com>
98         * Makefile.in: Regenerate with automake 1.11.1.
99         * aclocal.m4: Ditto.
101 2010-05-05  Nick Clifton  <nickc@redhat.com>
103         * po/es.po: Updated Spanish translation.
105 2010-04-27  Kai Tietz  <kai.tietz@onevision.com>
107         * pe-dll.c (_nm_-symbols): Use always underscored variant
108         for symbols.
109         (__imp_-symbols): Likewise.
110         (___imp_-symbols): Likewise.
111         * NEWS: Mention ABI change for x64 PE-COFF.
113 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
115         * Makefile.am (install-exec-local): Properly install ld as
116         default cross linker.
117         * Makefile.in: Regenerated.
119 2010-04-27  H.J. Lu  <hongjiu.lu@intel.com>
120             Nick Clifton  <nickc@redhat.com>
122         * configure.in (install_as_default): Define and set to true
123         unless --enable-gold=both/gold has been specified.
124         * configure: Regenerate.
126         * Makefile.am (transform): Use ld.bfd as the default name of
127         the linker.
128         (install-exec-local): Also install the executable as a binary
129         named 'ld' if install_as_default is true.
130         * Makefile.in: Regenerate.
132 2010-04-22  Nick Clifton  <nickc@redhat.com>
134         * po/ld.pot: Updated by the Translation project.
135         * po/vi.po: Updated Vietnamese translation.
136         * po/bg.po: Updated Bulgarian translation.
138 2010-04-15  Andrew Haley  <aph@redhat.com>
140         * emultempl/armelf.em (merge_exidx_entries): New variable.
141         (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
142         ("no-merge-exidx-entries"): New option.
143         * ld.texinfo (merge-exidx-entries): Document this option.
145 2010-04-14  Tristan Gingold  <gingold@adacore.com>
147         * emulparams/alphavms.sh: New file.
148         * emultempl/vms.em: New file.
149         * scripttempl/alphavms.sc: New file.
150         * configure.tgt (alpha*-*-*vms*): Added.
151         * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
152         (ealphavms.c): New target.
153         * Makefile.in: Regenerate.
155 2010-04-09  Nick Clifton  <nickc@redhat.com>
157         * ldlang.c (wild_sort): Remove unused variable section_name.
159 2010-04-07  Alan Modra  <amodra@gmail.com>
161         * configure: Regenerate.
163 2010-04-06  H.J. Lu  <hongjiu.lu@intel.com>
165         PR ld/11434
166         * ld/testsuite/ld-x86-64/unique1.d: New.
167         * ld/testsuite/ld-x86-64/unique1.s: Likewise.
169         * ld-x86-64/x86-64.exp: Run unique1.
171 2010-04-05  Kai Tietz  <kai.tietz@onevision.com>
173         * emultempl/pep.em (U): Macro modified.
174         (U_SIZE): New helper macro.
175         (GET_INIT_SYMBOL_NAME): Likewise.
176         (enum options): Add OPTION_NO_LEADING_UNDERSCORE
177         and OPTION_LEADING_UNDERSCORE enumerator-values.
178         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
179         option.
180         (definfo): Add new member is_c_symbol.
181         (D): Add to macro underscore mode parameter.
182         (init): Add definition for is_c_symbol.
183         (gld_${EMULATION_NAME}_list_options): Display new options.
184         (set_pep_name): Adjust underscoring dependent fixed
185         symbol handling.
186         (gld_${EMULATION_NAME}_set_symbols): Likewise.
187         (saw_option): Likewise.
188         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
189         (set_entry_point): Initial initial_symbol_char dependent to
190         target's default and new option flag pep_leading_underscore.
191         * emultempl/pe.em (U): Macro modified.
192         (U_SIZE): New helper macro.
193         (GET_INIT_SYMBOL_NAME): Likewise.
194         (OPTION_LEADING_UNDERSCORE): Add new option define.
195         (OPTION_NO_LEADING_UNDERSCORE): Likewise.
196         (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
197         option.
198         (definfo): Add new member is_c_symbol.
199         (D): Add to macro underscore mode parameter.
200         (init): Add definition for is_c_symbol.
201         (gld_${EMULATION_NAME}_list_options): Display new options.
202         (set_pep_name): Adjust underscoring dependent fixed
203         symbol handling.
204         (gld_${EMULATION_NAME}_set_symbols): Likewise.
205         (saw_option): Likewise.
206         (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
207         (set_entry_point): Initial initial_symbol_char dependent to
208         target's default and new option flag pep_leading_underscore.
209         * pe-dll.c (pe_leading_underscore): New flag variable.
210         (pe_detail_list): Remove const to allow modify of
211         member underscore.
212         (pe_dll_id_target): Initialize pe_details' underscore variable
213         dependent to target's default and flag pe_leading_underscore.
214         * pe-dll.h (pe_leading_underscore): Add extern declaration of
215         option flag.
216         * pep-dll.c (pe_leading_underscore): Add alias define for
217         pep_leading_underscore.
218         * pep-dll.h (pep_leading_underscore) Add extern declaration of
219         option flag.
220         * ld.texinfo: Add documentation for --(no-)leading-underscore
221         option.
223 2010-03-26  Alan Modra  <amodra@gmail.com>
225         PR ld/11426
226         * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
227         (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
229 2010-03-25  Joseph Myers  <joseph@codesourcery.com>
231         * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
232         eelf32_tic6x_le.o.
233         (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
234         * NEWS: Add news entry for TI C6X support.
235         * configure.tgt (tic6x-*-*): New.
236         * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
238 2010-03-23  Joseph Myers  <joseph@codesourcery.com>
240         * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
241         BSS_NAME): Define if not already defined.  Use in place of some
242         hardcoded section names.
244 2010-03-18  H.J. Lu  <hongjiu.lu@intel.com>
246         * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
248 2010-03-18  Aymeric Vincent  <vincent@labri.fr>
250         PR ld/11384
251         * emultempl/sh64elf.em: Add missing EOF.
253 2010-03-18  Doug Semler  <dougsemler@gmail.com>
255         * pe-dll.c (make_one): Make text section readonly.
256         (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
257         the jump stub on X86 as /SAFESEH compatible for
258         native toolchains.
260 2010-03-17  Alan Modra  <amodra@gmail.com>
262         * ldlang.c (lang_size_sections_1): Remove "s" param.  Set "s" from
263         *prev instead.  Update all callers.
265 2010-03-15  Daniel Jacobowitz  <dan@codesourcery.com>
267         * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
268         region and phdrs as their placement section.
270 2010-03-15  Alan Modra  <amodra@gmail.com>
272         * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
273         (ppc_before_allocation): Call sort_toc_sections.
274         (no_toc_sort, OPTION_NO_TOC_SORT): New.
275         (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
276          PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
278 2010-03-14  Alan Modra  <amodra@gmail.com>
280         PR ld/11378
281         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
282         ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
284 2010-03-11  George Gensure  <werkt0@gmail.com>
286         PR ld/11367
287         * ldcref.c (handle_asneeded_cref): Correct copying of refs.
289 2010-03-05  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
291         * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
292         eelf_i386_sol2.o.
293         (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
294         (eelf32_sparc_sol2.c): New rule.
295         (eelf64_sparc_sol2.c): Likewise.
296         (eelf_x86_64_sol2.c): Likewise.
297         (eelf_i386_sol2.c): Likewise.
298         * Makefile.in: Regenerate.
299         * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
300         elf_i386_sol2.
301         Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
302         (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
303         Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
304         (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
305         Add target_extra_emuls.
306         (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
307         Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
308         (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
309         Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
310         * emulparams/elf32_sparc_sol2.sh: New file.
311         * emulparams/elf64_sparc_sol2.sh: New file.
312         * emulparams/elf_i386_sol2.sh: New file.
313         * emulparams/elf_x86_64_sol2.sh: New file.
314         * emultempl/solaris2.em: New file.
316 2010-02-27  H.J. Lu  <hongjiu.lu@intel.com>
318         PR ld/11330
319         * ld.texinfo: Replace explicitely with explicitly.
321 2010-02-27  Jie Zhang  <jie@codesourcery.com>
323         * scripttempl/armbpabi.sc: Don't combine .init_array.* or
324         .fini_array.* when do relocatable linking.
325         * scripttempl/elf.sc: Likewise.
326         * scripttempl/elf32sh-symbian.sc: Likewise.
327         * scripttempl/elf64hppa.sc: Likewise.
328         * scripttempl/elfxtensa.sc: Likewise.
330 2010-02-26  Alan Modra  <amodra@gmail.com>
332         * scripttempl/elf.sc (.fini_array): Place input .fini_array after
333         .fini_array.*.
334         * scripttempl/armbpabi.sc: Likewise.
335         * scripttempl/elf32sh-symbian.sc: Likewise.
336         * scripttempl/elf64hppa.sc: Likewise.
337         * scripttempl/elfxtensa.sc: Likewise.
339 2010-02-25  Alan Modra  <amodra@gmail.com>
341         PR ld/11304
342         * ldlang.c (init_os): Remove isec param.  Don't check for
343         bfd_section already set or call bfd_init_private_section_data
344         here.
345         (exp_init_os): Update init_os call.
346         (lang_add_section): Tidy.  Really don't set SEC_LINK_ONCE
347         flags.  Call bfd_init_private_section_data here.
348         (map_input_to_output_sections): Tidy.  Update init_os calls.
349         Use os->sectype to select sec flags for lang_data_statement.
351 2010-02-23  Alan Modra  <amodra@gmail.com>
353         PR ld/11304
354         * ldlang.c: Revert last patch.
356 2010-02-23  Nick Clifton  <nickc@redhat.com>
358         * po/bg.po: Updated Bulgarian translation.
360 2010-02-22  Alan Modra  <amodra@gmail.com>
362         PR ld/11304
363         * ldlang.c (exp_init_os): Delete forward declaration.
364         (init_os): Don't check for bfd_section already created and don't
365         init addr_tree and load_base expressions here.
366         (map_input_to_output_sections): Only map input to output sections
367         and set constraints here, and as an exception, create output
368         sections which have their address set.  Move all the other code to..
369         (create_other_output_sections): ..here.  New function.  Handle init
370         of addr_tree and load_base here too.
371         (lang_process): Call create_other_output_sections.
373 2010-02-19  Alan Modra  <amodra@gmail.com>
375         * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
376         * Makefile.in: Regenerate.
378 2010-02-19  Alan Modra  <amodra@gmail.com>
380         * ldlang.c (unique_section_p): Add os param.  Allow group
381         sections to match /DISCARD/.  Update all callers.
382         * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
383         (LDEMUL_BEFORE_ALLOCATION): Define.
385 2010-02-15  Nick Clifton  <nickc@redhat.com>
387         * po/vi.po: Updated Vietnamese translation.
389 2010-02-10  Richard Sandiford  <r.sandiford@uk.ibm.com>
391         * Makefile.am (CFILES): Add ldlex-wrapper.c.
392         (OFILES): Replace ldlex.c with ldlex-wrapper.c.
393         (ldlex.o): Replace with...
394         (ldlex-wrapper.o): ...this new rule.
395         (EXTRA_ld_new_SOURCES): Add ldlex.l.
396         (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
397         * Makefile.in: Regenerate.
398         * ldlex.l (sysdep.h): Don't include here.
399         * ldlex-wrapper.c: New file.
401 2010-02-09  Alan Modra  <amodra@gmail.com>
403         * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
404         function parameters.
406 2010-02-05  Nick Clifton  <nickc@redhat.com>
408         * configure.in (ALL_LIBGUAS): Add bg.
409         * configure: Regenerate.
410         * po/bg.po: New Bulgarian translation.
412 2010-02-05  Ryan Mansfield  <rmansfield@qnx.com>
414         * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
415         --target1-abs and --target1-rel options.
417 2010-02-03  Nick Clifton  <nickc@redhat.com>
419         * emultempl/alphaelf.em: Update value expected from elf_object_id.
420         * emultempl/hppaelf.em: Likewise.
421         * emultempl/mipself.em: Likewise.
422         * emultempl/ppc32elf.em: Likewise.
423         * emultempl/ppc64elf.em: Likewise.
425 2010-02-03  Alan Modra  <amodra@gmail.com>
427         * emultempl/ppc64elf.em (build_toc_list): Report errors from
428         ppc64_elf_next_toc_section.
429         (after_allocation): Update for changed function names and params.
430         Run second pass of multitoc partitioning.
432 2010-01-21  Jon Grant  <jg@jguk.org>
433             Nick Clifton  <nickc@redhat.com>
435         PR 4437
436         * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
437         a missing file or library.  Instead mark the entry as missing and
438         set the global flag to indicate that missing files were
439         encountered.
440         * ldlang.c (missing_files): New exported variable.
441         (load_symbols): Skip loading if the file is missing.
442         (open_input_bfds): Terminate link if any input files were
443         missing.
444         * ldlang.h (struct lang_input_statement_struct): Add missing_file
445         field.
446         Add export of missing_file variable.
448 2010-01-13  DJ Delorie  <dj@redhat.com>
450         * emultempl/elf32.em (_place_orphan): If an input section doesn't
451         match an existing output section, but an unused output section
452         statement does match, use it.
453         * emultempl/pe.em (_place_orphan): Likewise.
454         * emultempl/pep.em (_place_orphan): Likewise.
456 2010-01-09  Ralf Wildenhues  <Ralf.Wildenhues@gmx.de>
458         * configure: Regenerate.
459         * Makefile.in: Regenerate.
461 2010-01-08  H.J. Lu  <hongjiu.lu@intel.com>
463         * ldver.c (ldversion): Change to "Copyright 2010".
465 2010-01-08  Alan Modra  <amodra@gmail.com>
467         PR 11107
468         * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
470 For older changes see ChangeLog-2009
472 Local Variables:
473 mode: change-log
474 left-margin: 8
475 fill-column: 74
476 version-control: never
477 End: