1 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
3 * emultempl/pe.em (is_underscoring): New helper function.
4 (gld_${EMULATION_NAME}_before_parse): Replace code
5 for pe(p)_leading_underscore detection by is_underscoring.
7 (GET_INIT_SYMBOL_NAME): Likewise.
11 (gld_${EMULATION_NAME}_set_symbols):
12 * emultempl/pep.em: Likewise.
13 * pe-dll.c (pe_detail_list): Set default
14 underscoring for x64 target.
15 (pe_dll_id_target): Add initialization of
16 pe(p)_leading_underscore.
18 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
20 * pe-dll.c: Removed trailing whitespaces.
22 2010-05-14 Alan Modra <amodra@gmail.com>
25 * ldexp.c (exp_fold_tree_1): If assignment source expression is
26 invalid, make the destination symbol undefined.
28 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
30 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
31 Initialize pe(p)_leading_underscore variable.
32 (set_pe_name): Likewise.
33 * emultempl/pep.em: Likewise.
34 Additional change default to non-underscore for
35 pep_leading_underscore equal to -1.
37 2010-05-07 Tristan Gingold <gingold@adacore.com>
39 * Makefile.in: Regenerate with automake 1.11.1.
42 2010-05-05 Nick Clifton <nickc@redhat.com>
44 * po/es.po: Updated Spanish translation.
46 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
48 * pe-dll.c (_nm_-symbols): Use always underscored variant
50 (__imp_-symbols): Likewise.
51 (___imp_-symbols): Likewise.
52 * NEWS: Mention ABI change for x64 PE-COFF.
54 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
56 * Makefile.am (install-exec-local): Properly install ld as
58 * Makefile.in: Regenerated.
60 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
61 Nick Clifton <nickc@redhat.com>
63 * configure.in (install_as_default): Define and set to true
64 unless --enable-gold=both/gold has been specified.
65 * configure: Regenerate.
67 * Makefile.am (transform): Use ld.bfd as the default name of
69 (install-exec-local): Also install the executable as a binary
70 named 'ld' if install_as_default is true.
71 * Makefile.in: Regenerate.
73 2010-04-22 Nick Clifton <nickc@redhat.com>
75 * po/ld.pot: Updated by the Translation project.
76 * po/vi.po: Updated Vietnamese translation.
77 * po/bg.po: Updated Bulgarian translation.
79 2010-04-15 Andrew Haley <aph@redhat.com>
81 * emultempl/armelf.em (merge_exidx_entries): New variable.
82 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
83 ("no-merge-exidx-entries"): New option.
84 * ld.texinfo (merge-exidx-entries): Document this option.
86 2010-04-14 Tristan Gingold <gingold@adacore.com>
88 * emulparams/alphavms.sh: New file.
89 * emultempl/vms.em: New file.
90 * scripttempl/alphavms.sc: New file.
91 * configure.tgt (alpha*-*-*vms*): Added.
92 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
93 (ealphavms.c): New target.
94 * Makefile.in: Regenerate.
96 2010-04-09 Nick Clifton <nickc@redhat.com>
98 * ldlang.c (wild_sort): Remove unused variable section_name.
100 2010-04-07 Alan Modra <amodra@gmail.com>
102 * configure: Regenerate.
104 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
107 * ld/testsuite/ld-x86-64/unique1.d: New.
108 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
110 * ld-x86-64/x86-64.exp: Run unique1.
112 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
114 * emultempl/pep.em (U): Macro modified.
115 (U_SIZE): New helper macro.
116 (GET_INIT_SYMBOL_NAME): Likewise.
117 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
118 and OPTION_LEADING_UNDERSCORE enumerator-values.
119 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
121 (definfo): Add new member is_c_symbol.
122 (D): Add to macro underscore mode parameter.
123 (init): Add definition for is_c_symbol.
124 (gld_${EMULATION_NAME}_list_options): Display new options.
125 (set_pep_name): Adjust underscoring dependent fixed
127 (gld_${EMULATION_NAME}_set_symbols): Likewise.
128 (saw_option): Likewise.
129 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
130 (set_entry_point): Initial initial_symbol_char dependent to
131 target's default and new option flag pep_leading_underscore.
132 * emultempl/pe.em (U): Macro modified.
133 (U_SIZE): New helper macro.
134 (GET_INIT_SYMBOL_NAME): Likewise.
135 (OPTION_LEADING_UNDERSCORE): Add new option define.
136 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
137 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
139 (definfo): Add new member is_c_symbol.
140 (D): Add to macro underscore mode parameter.
141 (init): Add definition for is_c_symbol.
142 (gld_${EMULATION_NAME}_list_options): Display new options.
143 (set_pep_name): Adjust underscoring dependent fixed
145 (gld_${EMULATION_NAME}_set_symbols): Likewise.
146 (saw_option): Likewise.
147 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
148 (set_entry_point): Initial initial_symbol_char dependent to
149 target's default and new option flag pep_leading_underscore.
150 * pe-dll.c (pe_leading_underscore): New flag variable.
151 (pe_detail_list): Remove const to allow modify of
153 (pe_dll_id_target): Initialize pe_details' underscore variable
154 dependent to target's default and flag pe_leading_underscore.
155 * pe-dll.h (pe_leading_underscore): Add extern declaration of
157 * pep-dll.c (pe_leading_underscore): Add alias define for
158 pep_leading_underscore.
159 * pep-dll.h (pep_leading_underscore) Add extern declaration of
161 * ld.texinfo: Add documentation for --(no-)leading-underscore
164 2010-03-26 Alan Modra <amodra@gmail.com>
167 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
168 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
170 2010-03-25 Joseph Myers <joseph@codesourcery.com>
172 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
174 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
175 * NEWS: Add news entry for TI C6X support.
176 * configure.tgt (tic6x-*-*): New.
177 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
179 2010-03-23 Joseph Myers <joseph@codesourcery.com>
181 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
182 BSS_NAME): Define if not already defined. Use in place of some
183 hardcoded section names.
185 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
187 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
189 2010-03-18 Aymeric Vincent <vincent@labri.fr>
192 * emultempl/sh64elf.em: Add missing EOF.
194 2010-03-18 Doug Semler <dougsemler@gmail.com>
196 * pe-dll.c (make_one): Make text section readonly.
197 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
198 the jump stub on X86 as /SAFESEH compatible for
201 2010-03-17 Alan Modra <amodra@gmail.com>
203 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
204 *prev instead. Update all callers.
206 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
208 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
209 region and phdrs as their placement section.
211 2010-03-15 Alan Modra <amodra@gmail.com>
213 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
214 (ppc_before_allocation): Call sort_toc_sections.
215 (no_toc_sort, OPTION_NO_TOC_SORT): New.
216 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
217 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
219 2010-03-14 Alan Modra <amodra@gmail.com>
222 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
223 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
225 2010-03-11 George Gensure <werkt0@gmail.com>
228 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
230 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
232 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
234 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
235 (eelf32_sparc_sol2.c): New rule.
236 (eelf64_sparc_sol2.c): Likewise.
237 (eelf_x86_64_sol2.c): Likewise.
238 (eelf_i386_sol2.c): Likewise.
239 * Makefile.in: Regenerate.
240 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
242 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
243 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
244 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
245 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
246 Add target_extra_emuls.
247 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
248 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
249 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
250 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
251 * emulparams/elf32_sparc_sol2.sh: New file.
252 * emulparams/elf64_sparc_sol2.sh: New file.
253 * emulparams/elf_i386_sol2.sh: New file.
254 * emulparams/elf_x86_64_sol2.sh: New file.
255 * emultempl/solaris2.em: New file.
257 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
260 * ld.texinfo: Replace explicitely with explicitly.
262 2010-02-27 Jie Zhang <jie@codesourcery.com>
264 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
265 .fini_array.* when do relocatable linking.
266 * scripttempl/elf.sc: Likewise.
267 * scripttempl/elf32sh-symbian.sc: Likewise.
268 * scripttempl/elf64hppa.sc: Likewise.
269 * scripttempl/elfxtensa.sc: Likewise.
271 2010-02-26 Alan Modra <amodra@gmail.com>
273 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
275 * scripttempl/armbpabi.sc: Likewise.
276 * scripttempl/elf32sh-symbian.sc: Likewise.
277 * scripttempl/elf64hppa.sc: Likewise.
278 * scripttempl/elfxtensa.sc: Likewise.
280 2010-02-25 Alan Modra <amodra@gmail.com>
283 * ldlang.c (init_os): Remove isec param. Don't check for
284 bfd_section already set or call bfd_init_private_section_data
286 (exp_init_os): Update init_os call.
287 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
288 flags. Call bfd_init_private_section_data here.
289 (map_input_to_output_sections): Tidy. Update init_os calls.
290 Use os->sectype to select sec flags for lang_data_statement.
292 2010-02-23 Alan Modra <amodra@gmail.com>
295 * ldlang.c: Revert last patch.
297 2010-02-23 Nick Clifton <nickc@redhat.com>
299 * po/bg.po: Updated Bulgarian translation.
301 2010-02-22 Alan Modra <amodra@gmail.com>
304 * ldlang.c (exp_init_os): Delete forward declaration.
305 (init_os): Don't check for bfd_section already created and don't
306 init addr_tree and load_base expressions here.
307 (map_input_to_output_sections): Only map input to output sections
308 and set constraints here, and as an exception, create output
309 sections which have their address set. Move all the other code to..
310 (create_other_output_sections): ..here. New function. Handle init
311 of addr_tree and load_base here too.
312 (lang_process): Call create_other_output_sections.
314 2010-02-19 Alan Modra <amodra@gmail.com>
316 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
317 * Makefile.in: Regenerate.
319 2010-02-19 Alan Modra <amodra@gmail.com>
321 * ldlang.c (unique_section_p): Add os param. Allow group
322 sections to match /DISCARD/. Update all callers.
323 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
324 (LDEMUL_BEFORE_ALLOCATION): Define.
326 2010-02-15 Nick Clifton <nickc@redhat.com>
328 * po/vi.po: Updated Vietnamese translation.
330 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
332 * Makefile.am (CFILES): Add ldlex-wrapper.c.
333 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
334 (ldlex.o): Replace with...
335 (ldlex-wrapper.o): ...this new rule.
336 (EXTRA_ld_new_SOURCES): Add ldlex.l.
337 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
338 * Makefile.in: Regenerate.
339 * ldlex.l (sysdep.h): Don't include here.
340 * ldlex-wrapper.c: New file.
342 2010-02-09 Alan Modra <amodra@gmail.com>
344 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
347 2010-02-05 Nick Clifton <nickc@redhat.com>
349 * configure.in (ALL_LIBGUAS): Add bg.
350 * configure: Regenerate.
351 * po/bg.po: New Bulgarian translation.
353 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
355 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
356 --target1-abs and --target1-rel options.
358 2010-02-03 Nick Clifton <nickc@redhat.com>
360 * emultempl/alphaelf.em: Update value expected from elf_object_id.
361 * emultempl/hppaelf.em: Likewise.
362 * emultempl/mipself.em: Likewise.
363 * emultempl/ppc32elf.em: Likewise.
364 * emultempl/ppc64elf.em: Likewise.
366 2010-02-03 Alan Modra <amodra@gmail.com>
368 * emultempl/ppc64elf.em (build_toc_list): Report errors from
369 ppc64_elf_next_toc_section.
370 (after_allocation): Update for changed function names and params.
371 Run second pass of multitoc partitioning.
373 2010-01-21 Jon Grant <jg@jguk.org>
374 Nick Clifton <nickc@redhat.com>
377 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
378 a missing file or library. Instead mark the entry as missing and
379 set the global flag to indicate that missing files were
381 * ldlang.c (missing_files): New exported variable.
382 (load_symbols): Skip loading if the file is missing.
383 (open_input_bfds): Terminate link if any input files were
385 * ldlang.h (struct lang_input_statement_struct): Add missing_file
387 Add export of missing_file variable.
389 2010-01-13 DJ Delorie <dj@redhat.com>
391 * emultempl/elf32.em (_place_orphan): If an input section doesn't
392 match an existing output section, but an unused output section
393 statement does match, use it.
394 * emultempl/pe.em (_place_orphan): Likewise.
395 * emultempl/pep.em (_place_orphan): Likewise.
397 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
399 * configure: Regenerate.
400 * Makefile.in: Regenerate.
402 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
404 * ldver.c (ldversion): Change to "Copyright 2010".
406 2010-01-08 Alan Modra <amodra@gmail.com>
409 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
411 For older changes see ChangeLog-2009
417 version-control: never