1 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
3 * Makefile.am (install-exec-local): Properly install ld as
5 * Makefile.in: Regenerated.
7 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
8 Nick Clifton <nickc@redhat.com>
10 * configure.in (install_as_default): Define and set to true
11 unless --enable-gold=both/gold has been specified.
12 * configure: Regenerate.
14 * Makefile.am (transform): Use ld.bfd as the default name of
16 (install-exec-local): Also install the executable as a binary
17 named 'ld' if install_as_default is true.
18 * Makefile.in: Regenerate.
20 2010-04-22 Nick Clifton <nickc@redhat.com>
22 * po/ld.pot: Updated by the Translation project.
23 * po/vi.po: Updated Vietnamese translation.
24 * po/bg.po: Updated Bulgarian translation.
26 2010-04-15 Andrew Haley <aph@redhat.com>
28 * emultempl/armelf.em (merge_exidx_entries): New variable.
29 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
30 ("no-merge-exidx-entries"): New option.
31 * ld.texinfo (merge-exidx-entries): Document this option.
33 2010-04-14 Tristan Gingold <gingold@adacore.com>
35 * emulparams/alphavms.sh: New file.
36 * emultempl/vms.em: New file.
37 * scripttempl/alphavms.sc: New file.
38 * configure.tgt (alpha*-*-*vms*): Added.
39 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
40 (ealphavms.c): New target.
41 * Makefile.in: Regenerate.
43 2010-04-09 Nick Clifton <nickc@redhat.com>
45 * ldlang.c (wild_sort): Remove unused variable section_name.
47 2010-04-07 Alan Modra <amodra@gmail.com>
49 * configure: Regenerate.
51 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
54 * ld/testsuite/ld-x86-64/unique1.d: New.
55 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
57 * ld-x86-64/x86-64.exp: Run unique1.
59 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
61 * emultempl/pep.em (U): Macro modified.
62 (U_SIZE): New helper macro.
63 (GET_INIT_SYMBOL_NAME): Likewise.
64 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
65 and OPTION_LEADING_UNDERSCORE enumerator-values.
66 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
68 (definfo): Add new member is_c_symbol.
69 (D): Add to macro underscore mode parameter.
70 (init): Add definition for is_c_symbol.
71 (gld_${EMULATION_NAME}_list_options): Display new options.
72 (set_pep_name): Adjust underscoring dependent fixed
74 (gld_${EMULATION_NAME}_set_symbols): Likewise.
75 (saw_option): Likewise.
76 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
77 (set_entry_point): Initial initial_symbol_char dependent to
78 target's default and new option flag pep_leading_underscore.
79 * emultempl/pe.em (U): Macro modified.
80 (U_SIZE): New helper macro.
81 (GET_INIT_SYMBOL_NAME): Likewise.
82 (OPTION_LEADING_UNDERSCORE): Add new option define.
83 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
84 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
86 (definfo): Add new member is_c_symbol.
87 (D): Add to macro underscore mode parameter.
88 (init): Add definition for is_c_symbol.
89 (gld_${EMULATION_NAME}_list_options): Display new options.
90 (set_pep_name): Adjust underscoring dependent fixed
92 (gld_${EMULATION_NAME}_set_symbols): Likewise.
93 (saw_option): Likewise.
94 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
95 (set_entry_point): Initial initial_symbol_char dependent to
96 target's default and new option flag pep_leading_underscore.
97 * pe-dll.c (pe_leading_underscore): New flag variable.
98 (pe_detail_list): Remove const to allow modify of
100 (pe_dll_id_target): Initialize pe_details' underscore variable
101 dependent to target's default and flag pe_leading_underscore.
102 * pe-dll.h (pe_leading_underscore): Add extern declaration of
104 * pep-dll.c (pe_leading_underscore): Add alias define for
105 pep_leading_underscore.
106 * pep-dll.h (pep_leading_underscore) Add extern declaration of
108 * ld.texinfo: Add documentation for --(no-)leading-underscore
111 2010-03-26 Alan Modra <amodra@gmail.com>
114 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
115 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
117 2010-03-25 Joseph Myers <joseph@codesourcery.com>
119 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
121 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
122 * NEWS: Add news entry for TI C6X support.
123 * configure.tgt (tic6x-*-*): New.
124 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
126 2010-03-23 Joseph Myers <joseph@codesourcery.com>
128 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
129 BSS_NAME): Define if not already defined. Use in place of some
130 hardcoded section names.
132 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
134 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
136 2010-03-18 Aymeric Vincent <vincent@labri.fr>
139 * emultempl/sh64elf.em: Add missing EOF.
141 2010-03-18 Doug Semler <dougsemler@gmail.com>
143 * pe-dll.c (make_one): Make text section readonly.
144 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
145 the jump stub on X86 as /SAFESEH compatible for
148 2010-03-17 Alan Modra <amodra@gmail.com>
150 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
151 *prev instead. Update all callers.
153 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
155 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
156 region and phdrs as their placement section.
158 2010-03-15 Alan Modra <amodra@gmail.com>
160 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
161 (ppc_before_allocation): Call sort_toc_sections.
162 (no_toc_sort, OPTION_NO_TOC_SORT): New.
163 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
164 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
166 2010-03-14 Alan Modra <amodra@gmail.com>
169 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
170 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
172 2010-03-11 George Gensure <werkt0@gmail.com>
175 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
177 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
179 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
181 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
182 (eelf32_sparc_sol2.c): New rule.
183 (eelf64_sparc_sol2.c): Likewise.
184 (eelf_x86_64_sol2.c): Likewise.
185 (eelf_i386_sol2.c): Likewise.
186 * Makefile.in: Regenerate.
187 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
189 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
190 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
191 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
192 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
193 Add target_extra_emuls.
194 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
195 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
196 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
197 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
198 * emulparams/elf32_sparc_sol2.sh: New file.
199 * emulparams/elf64_sparc_sol2.sh: New file.
200 * emulparams/elf_i386_sol2.sh: New file.
201 * emulparams/elf_x86_64_sol2.sh: New file.
202 * emultempl/solaris2.em: New file.
204 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
207 * ld.texinfo: Replace explicitely with explicitly.
209 2010-02-27 Jie Zhang <jie@codesourcery.com>
211 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
212 .fini_array.* when do relocatable linking.
213 * scripttempl/elf.sc: Likewise.
214 * scripttempl/elf32sh-symbian.sc: Likewise.
215 * scripttempl/elf64hppa.sc: Likewise.
216 * scripttempl/elfxtensa.sc: Likewise.
218 2010-02-26 Alan Modra <amodra@gmail.com>
220 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
222 * scripttempl/armbpabi.sc: Likewise.
223 * scripttempl/elf32sh-symbian.sc: Likewise.
224 * scripttempl/elf64hppa.sc: Likewise.
225 * scripttempl/elfxtensa.sc: Likewise.
227 2010-02-25 Alan Modra <amodra@gmail.com>
230 * ldlang.c (init_os): Remove isec param. Don't check for
231 bfd_section already set or call bfd_init_private_section_data
233 (exp_init_os): Update init_os call.
234 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
235 flags. Call bfd_init_private_section_data here.
236 (map_input_to_output_sections): Tidy. Update init_os calls.
237 Use os->sectype to select sec flags for lang_data_statement.
239 2010-02-23 Alan Modra <amodra@gmail.com>
242 * ldlang.c: Revert last patch.
244 2010-02-23 Nick Clifton <nickc@redhat.com>
246 * po/bg.po: Updated Bulgarian translation.
248 2010-02-22 Alan Modra <amodra@gmail.com>
251 * ldlang.c (exp_init_os): Delete forward declaration.
252 (init_os): Don't check for bfd_section already created and don't
253 init addr_tree and load_base expressions here.
254 (map_input_to_output_sections): Only map input to output sections
255 and set constraints here, and as an exception, create output
256 sections which have their address set. Move all the other code to..
257 (create_other_output_sections): ..here. New function. Handle init
258 of addr_tree and load_base here too.
259 (lang_process): Call create_other_output_sections.
261 2010-02-19 Alan Modra <amodra@gmail.com>
263 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
264 * Makefile.in: Regenerate.
266 2010-02-19 Alan Modra <amodra@gmail.com>
268 * ldlang.c (unique_section_p): Add os param. Allow group
269 sections to match /DISCARD/. Update all callers.
270 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
271 (LDEMUL_BEFORE_ALLOCATION): Define.
273 2010-02-15 Nick Clifton <nickc@redhat.com>
275 * po/vi.po: Updated Vietnamese translation.
277 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
279 * Makefile.am (CFILES): Add ldlex-wrapper.c.
280 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
281 (ldlex.o): Replace with...
282 (ldlex-wrapper.o): ...this new rule.
283 (EXTRA_ld_new_SOURCES): Add ldlex.l.
284 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
285 * Makefile.in: Regenerate.
286 * ldlex.l (sysdep.h): Don't include here.
287 * ldlex-wrapper.c: New file.
289 2010-02-09 Alan Modra <amodra@gmail.com>
291 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
294 2010-02-05 Nick Clifton <nickc@redhat.com>
296 * configure.in (ALL_LIBGUAS): Add bg.
297 * configure: Regenerate.
298 * po/bg.po: New Bulgarian translation.
300 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
302 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
303 --target1-abs and --target1-rel options.
305 2010-02-03 Nick Clifton <nickc@redhat.com>
307 * emultempl/alphaelf.em: Update value expected from elf_object_id.
308 * emultempl/hppaelf.em: Likewise.
309 * emultempl/mipself.em: Likewise.
310 * emultempl/ppc32elf.em: Likewise.
311 * emultempl/ppc64elf.em: Likewise.
313 2010-02-03 Alan Modra <amodra@gmail.com>
315 * emultempl/ppc64elf.em (build_toc_list): Report errors from
316 ppc64_elf_next_toc_section.
317 (after_allocation): Update for changed function names and params.
318 Run second pass of multitoc partitioning.
320 2010-01-21 Jon Grant <jg@jguk.org>
321 Nick Clifton <nickc@redhat.com>
324 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
325 a missing file or library. Instead mark the entry as missing and
326 set the global flag to indicate that missing files were
328 * ldlang.c (missing_files): New exported variable.
329 (load_symbols): Skip loading if the file is missing.
330 (open_input_bfds): Terminate link if any input files were
332 * ldlang.h (struct lang_input_statement_struct): Add missing_file
334 Add export of missing_file variable.
336 2010-01-13 DJ Delorie <dj@redhat.com>
338 * emultempl/elf32.em (_place_orphan): If an input section doesn't
339 match an existing output section, but an unused output section
340 statement does match, use it.
341 * emultempl/pe.em (_place_orphan): Likewise.
342 * emultempl/pep.em (_place_orphan): Likewise.
344 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
346 * configure: Regenerate.
347 * Makefile.in: Regenerate.
349 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
351 * ldver.c (ldversion): Change to "Copyright 2010".
353 2010-01-08 Alan Modra <amodra@gmail.com>
356 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
358 For older changes see ChangeLog-2009
364 version-control: never