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