1 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
4 * deffilep.y (opt_name): Allow leading dot.
6 (anylang_id): Likewise.
7 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
9 (gld${EMULATION_NAME}_handle_option): Warn about v1.
10 (pep_find_data_imports): Remove superflous warnings about
12 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
13 and active pseudo-relocation-v2 rdata into data section.
14 * emultempl/pe.em (default_merge_rdata): New shell variable.
15 (MERGE_RDATA_V2): New macro.
16 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
19 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
21 * emultempl/pe.em (is_underscoring): New helper function.
22 (gld_${EMULATION_NAME}_before_parse): Replace code
23 for pe(p)_leading_underscore detection by is_underscoring.
25 (GET_INIT_SYMBOL_NAME): Likewise.
29 (gld_${EMULATION_NAME}_set_symbols):
30 * emultempl/pep.em: Likewise.
31 * pe-dll.c (pe_detail_list): Set default
32 underscoring for x64 target.
33 (pe_dll_id_target): Add initialization of
34 pe(p)_leading_underscore.
36 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
38 * pe-dll.c: Removed trailing whitespaces.
40 2010-05-14 Alan Modra <amodra@gmail.com>
43 * ldexp.c (exp_fold_tree_1): If assignment source expression is
44 invalid, make the destination symbol undefined.
46 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
48 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
49 Initialize pe(p)_leading_underscore variable.
50 (set_pe_name): Likewise.
51 * emultempl/pep.em: Likewise.
52 Additional change default to non-underscore for
53 pep_leading_underscore equal to -1.
55 2010-05-07 Tristan Gingold <gingold@adacore.com>
57 * Makefile.in: Regenerate with automake 1.11.1.
60 2010-05-05 Nick Clifton <nickc@redhat.com>
62 * po/es.po: Updated Spanish translation.
64 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
66 * pe-dll.c (_nm_-symbols): Use always underscored variant
68 (__imp_-symbols): Likewise.
69 (___imp_-symbols): Likewise.
70 * NEWS: Mention ABI change for x64 PE-COFF.
72 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
74 * Makefile.am (install-exec-local): Properly install ld as
76 * Makefile.in: Regenerated.
78 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
79 Nick Clifton <nickc@redhat.com>
81 * configure.in (install_as_default): Define and set to true
82 unless --enable-gold=both/gold has been specified.
83 * configure: Regenerate.
85 * Makefile.am (transform): Use ld.bfd as the default name of
87 (install-exec-local): Also install the executable as a binary
88 named 'ld' if install_as_default is true.
89 * Makefile.in: Regenerate.
91 2010-04-22 Nick Clifton <nickc@redhat.com>
93 * po/ld.pot: Updated by the Translation project.
94 * po/vi.po: Updated Vietnamese translation.
95 * po/bg.po: Updated Bulgarian translation.
97 2010-04-15 Andrew Haley <aph@redhat.com>
99 * emultempl/armelf.em (merge_exidx_entries): New variable.
100 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
101 ("no-merge-exidx-entries"): New option.
102 * ld.texinfo (merge-exidx-entries): Document this option.
104 2010-04-14 Tristan Gingold <gingold@adacore.com>
106 * emulparams/alphavms.sh: New file.
107 * emultempl/vms.em: New file.
108 * scripttempl/alphavms.sc: New file.
109 * configure.tgt (alpha*-*-*vms*): Added.
110 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
111 (ealphavms.c): New target.
112 * Makefile.in: Regenerate.
114 2010-04-09 Nick Clifton <nickc@redhat.com>
116 * ldlang.c (wild_sort): Remove unused variable section_name.
118 2010-04-07 Alan Modra <amodra@gmail.com>
120 * configure: Regenerate.
122 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
125 * ld/testsuite/ld-x86-64/unique1.d: New.
126 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
128 * ld-x86-64/x86-64.exp: Run unique1.
130 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
132 * emultempl/pep.em (U): Macro modified.
133 (U_SIZE): New helper macro.
134 (GET_INIT_SYMBOL_NAME): Likewise.
135 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
136 and OPTION_LEADING_UNDERSCORE enumerator-values.
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 * emultempl/pe.em (U): Macro modified.
151 (U_SIZE): New helper macro.
152 (GET_INIT_SYMBOL_NAME): Likewise.
153 (OPTION_LEADING_UNDERSCORE): Add new option define.
154 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
155 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
157 (definfo): Add new member is_c_symbol.
158 (D): Add to macro underscore mode parameter.
159 (init): Add definition for is_c_symbol.
160 (gld_${EMULATION_NAME}_list_options): Display new options.
161 (set_pep_name): Adjust underscoring dependent fixed
163 (gld_${EMULATION_NAME}_set_symbols): Likewise.
164 (saw_option): Likewise.
165 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
166 (set_entry_point): Initial initial_symbol_char dependent to
167 target's default and new option flag pep_leading_underscore.
168 * pe-dll.c (pe_leading_underscore): New flag variable.
169 (pe_detail_list): Remove const to allow modify of
171 (pe_dll_id_target): Initialize pe_details' underscore variable
172 dependent to target's default and flag pe_leading_underscore.
173 * pe-dll.h (pe_leading_underscore): Add extern declaration of
175 * pep-dll.c (pe_leading_underscore): Add alias define for
176 pep_leading_underscore.
177 * pep-dll.h (pep_leading_underscore) Add extern declaration of
179 * ld.texinfo: Add documentation for --(no-)leading-underscore
182 2010-03-26 Alan Modra <amodra@gmail.com>
185 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
186 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
188 2010-03-25 Joseph Myers <joseph@codesourcery.com>
190 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
192 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
193 * NEWS: Add news entry for TI C6X support.
194 * configure.tgt (tic6x-*-*): New.
195 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
197 2010-03-23 Joseph Myers <joseph@codesourcery.com>
199 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
200 BSS_NAME): Define if not already defined. Use in place of some
201 hardcoded section names.
203 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
205 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
207 2010-03-18 Aymeric Vincent <vincent@labri.fr>
210 * emultempl/sh64elf.em: Add missing EOF.
212 2010-03-18 Doug Semler <dougsemler@gmail.com>
214 * pe-dll.c (make_one): Make text section readonly.
215 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
216 the jump stub on X86 as /SAFESEH compatible for
219 2010-03-17 Alan Modra <amodra@gmail.com>
221 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
222 *prev instead. Update all callers.
224 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
226 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
227 region and phdrs as their placement section.
229 2010-03-15 Alan Modra <amodra@gmail.com>
231 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
232 (ppc_before_allocation): Call sort_toc_sections.
233 (no_toc_sort, OPTION_NO_TOC_SORT): New.
234 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
235 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
237 2010-03-14 Alan Modra <amodra@gmail.com>
240 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
241 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
243 2010-03-11 George Gensure <werkt0@gmail.com>
246 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
248 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
250 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
252 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
253 (eelf32_sparc_sol2.c): New rule.
254 (eelf64_sparc_sol2.c): Likewise.
255 (eelf_x86_64_sol2.c): Likewise.
256 (eelf_i386_sol2.c): Likewise.
257 * Makefile.in: Regenerate.
258 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
260 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
261 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
262 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
263 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
264 Add target_extra_emuls.
265 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
266 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
267 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
268 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
269 * emulparams/elf32_sparc_sol2.sh: New file.
270 * emulparams/elf64_sparc_sol2.sh: New file.
271 * emulparams/elf_i386_sol2.sh: New file.
272 * emulparams/elf_x86_64_sol2.sh: New file.
273 * emultempl/solaris2.em: New file.
275 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
278 * ld.texinfo: Replace explicitely with explicitly.
280 2010-02-27 Jie Zhang <jie@codesourcery.com>
282 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
283 .fini_array.* when do relocatable linking.
284 * scripttempl/elf.sc: Likewise.
285 * scripttempl/elf32sh-symbian.sc: Likewise.
286 * scripttempl/elf64hppa.sc: Likewise.
287 * scripttempl/elfxtensa.sc: Likewise.
289 2010-02-26 Alan Modra <amodra@gmail.com>
291 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
293 * scripttempl/armbpabi.sc: Likewise.
294 * scripttempl/elf32sh-symbian.sc: Likewise.
295 * scripttempl/elf64hppa.sc: Likewise.
296 * scripttempl/elfxtensa.sc: Likewise.
298 2010-02-25 Alan Modra <amodra@gmail.com>
301 * ldlang.c (init_os): Remove isec param. Don't check for
302 bfd_section already set or call bfd_init_private_section_data
304 (exp_init_os): Update init_os call.
305 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
306 flags. Call bfd_init_private_section_data here.
307 (map_input_to_output_sections): Tidy. Update init_os calls.
308 Use os->sectype to select sec flags for lang_data_statement.
310 2010-02-23 Alan Modra <amodra@gmail.com>
313 * ldlang.c: Revert last patch.
315 2010-02-23 Nick Clifton <nickc@redhat.com>
317 * po/bg.po: Updated Bulgarian translation.
319 2010-02-22 Alan Modra <amodra@gmail.com>
322 * ldlang.c (exp_init_os): Delete forward declaration.
323 (init_os): Don't check for bfd_section already created and don't
324 init addr_tree and load_base expressions here.
325 (map_input_to_output_sections): Only map input to output sections
326 and set constraints here, and as an exception, create output
327 sections which have their address set. Move all the other code to..
328 (create_other_output_sections): ..here. New function. Handle init
329 of addr_tree and load_base here too.
330 (lang_process): Call create_other_output_sections.
332 2010-02-19 Alan Modra <amodra@gmail.com>
334 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
335 * Makefile.in: Regenerate.
337 2010-02-19 Alan Modra <amodra@gmail.com>
339 * ldlang.c (unique_section_p): Add os param. Allow group
340 sections to match /DISCARD/. Update all callers.
341 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
342 (LDEMUL_BEFORE_ALLOCATION): Define.
344 2010-02-15 Nick Clifton <nickc@redhat.com>
346 * po/vi.po: Updated Vietnamese translation.
348 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
350 * Makefile.am (CFILES): Add ldlex-wrapper.c.
351 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
352 (ldlex.o): Replace with...
353 (ldlex-wrapper.o): ...this new rule.
354 (EXTRA_ld_new_SOURCES): Add ldlex.l.
355 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
356 * Makefile.in: Regenerate.
357 * ldlex.l (sysdep.h): Don't include here.
358 * ldlex-wrapper.c: New file.
360 2010-02-09 Alan Modra <amodra@gmail.com>
362 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
365 2010-02-05 Nick Clifton <nickc@redhat.com>
367 * configure.in (ALL_LIBGUAS): Add bg.
368 * configure: Regenerate.
369 * po/bg.po: New Bulgarian translation.
371 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
373 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
374 --target1-abs and --target1-rel options.
376 2010-02-03 Nick Clifton <nickc@redhat.com>
378 * emultempl/alphaelf.em: Update value expected from elf_object_id.
379 * emultempl/hppaelf.em: Likewise.
380 * emultempl/mipself.em: Likewise.
381 * emultempl/ppc32elf.em: Likewise.
382 * emultempl/ppc64elf.em: Likewise.
384 2010-02-03 Alan Modra <amodra@gmail.com>
386 * emultempl/ppc64elf.em (build_toc_list): Report errors from
387 ppc64_elf_next_toc_section.
388 (after_allocation): Update for changed function names and params.
389 Run second pass of multitoc partitioning.
391 2010-01-21 Jon Grant <jg@jguk.org>
392 Nick Clifton <nickc@redhat.com>
395 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
396 a missing file or library. Instead mark the entry as missing and
397 set the global flag to indicate that missing files were
399 * ldlang.c (missing_files): New exported variable.
400 (load_symbols): Skip loading if the file is missing.
401 (open_input_bfds): Terminate link if any input files were
403 * ldlang.h (struct lang_input_statement_struct): Add missing_file
405 Add export of missing_file variable.
407 2010-01-13 DJ Delorie <dj@redhat.com>
409 * emultempl/elf32.em (_place_orphan): If an input section doesn't
410 match an existing output section, but an unused output section
411 statement does match, use it.
412 * emultempl/pe.em (_place_orphan): Likewise.
413 * emultempl/pep.em (_place_orphan): Likewise.
415 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
417 * configure: Regenerate.
418 * Makefile.in: Regenerate.
420 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
422 * ldver.c (ldversion): Change to "Copyright 2010".
424 2010-01-08 Alan Modra <amodra@gmail.com>
427 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
429 For older changes see ChangeLog-2009
435 version-control: never