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