1 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
2 Joseph Myers <joseph@codesourcery.com>
3 Andrew Stubbs <ams@codesourcery.com>
5 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
6 (eshelf_fd.c, eshlelf_fd.c): New rules.
7 * Makefile.in: Regenerate.
8 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
10 * emulparams/shelf_fd.sh: New file.
11 * emulparams/shlelf_fd.sh: New file.
12 * emulparams/shlelf_linux.sh: Update comment.
14 2010-05-25 Jay Krell <jay.krell@cornell.edu>
17 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
18 * Makefile.in: Regenerate.
20 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
22 * deffilep.y (opt_name): Allow leading dot.
24 (anylang_id): Likewise.
25 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
27 (gld${EMULATION_NAME}_handle_option): Warn about v1.
28 (pep_find_data_imports): Remove superflous warnings about
30 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
31 and active pseudo-relocation-v2 rdata into data section.
32 * emultempl/pe.em (default_merge_rdata): New shell variable.
33 (MERGE_RDATA_V2): New macro.
34 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
37 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
39 * emultempl/pe.em (is_underscoring): New helper function.
40 (gld_${EMULATION_NAME}_before_parse): Replace code
41 for pe(p)_leading_underscore detection by is_underscoring.
43 (GET_INIT_SYMBOL_NAME): Likewise.
47 (gld_${EMULATION_NAME}_set_symbols):
48 * emultempl/pep.em: Likewise.
49 * pe-dll.c (pe_detail_list): Set default
50 underscoring for x64 target.
51 (pe_dll_id_target): Add initialization of
52 pe(p)_leading_underscore.
54 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
56 * pe-dll.c: Removed trailing whitespaces.
58 2010-05-14 Alan Modra <amodra@gmail.com>
61 * ldexp.c (exp_fold_tree_1): If assignment source expression is
62 invalid, make the destination symbol undefined.
64 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
66 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
67 Initialize pe(p)_leading_underscore variable.
68 (set_pe_name): Likewise.
69 * emultempl/pep.em: Likewise.
70 Additional change default to non-underscore for
71 pep_leading_underscore equal to -1.
73 2010-05-07 Tristan Gingold <gingold@adacore.com>
75 * Makefile.in: Regenerate with automake 1.11.1.
78 2010-05-05 Nick Clifton <nickc@redhat.com>
80 * po/es.po: Updated Spanish translation.
82 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
84 * pe-dll.c (_nm_-symbols): Use always underscored variant
86 (__imp_-symbols): Likewise.
87 (___imp_-symbols): Likewise.
88 * NEWS: Mention ABI change for x64 PE-COFF.
90 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
92 * Makefile.am (install-exec-local): Properly install ld as
94 * Makefile.in: Regenerated.
96 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
97 Nick Clifton <nickc@redhat.com>
99 * configure.in (install_as_default): Define and set to true
100 unless --enable-gold=both/gold has been specified.
101 * configure: Regenerate.
103 * Makefile.am (transform): Use ld.bfd as the default name of
105 (install-exec-local): Also install the executable as a binary
106 named 'ld' if install_as_default is true.
107 * Makefile.in: Regenerate.
109 2010-04-22 Nick Clifton <nickc@redhat.com>
111 * po/ld.pot: Updated by the Translation project.
112 * po/vi.po: Updated Vietnamese translation.
113 * po/bg.po: Updated Bulgarian translation.
115 2010-04-15 Andrew Haley <aph@redhat.com>
117 * emultempl/armelf.em (merge_exidx_entries): New variable.
118 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
119 ("no-merge-exidx-entries"): New option.
120 * ld.texinfo (merge-exidx-entries): Document this option.
122 2010-04-14 Tristan Gingold <gingold@adacore.com>
124 * emulparams/alphavms.sh: New file.
125 * emultempl/vms.em: New file.
126 * scripttempl/alphavms.sc: New file.
127 * configure.tgt (alpha*-*-*vms*): Added.
128 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
129 (ealphavms.c): New target.
130 * Makefile.in: Regenerate.
132 2010-04-09 Nick Clifton <nickc@redhat.com>
134 * ldlang.c (wild_sort): Remove unused variable section_name.
136 2010-04-07 Alan Modra <amodra@gmail.com>
138 * configure: Regenerate.
140 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
143 * ld/testsuite/ld-x86-64/unique1.d: New.
144 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
146 * ld-x86-64/x86-64.exp: Run unique1.
148 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
150 * emultempl/pep.em (U): Macro modified.
151 (U_SIZE): New helper macro.
152 (GET_INIT_SYMBOL_NAME): Likewise.
153 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
154 and OPTION_LEADING_UNDERSCORE enumerator-values.
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 * emultempl/pe.em (U): Macro modified.
169 (U_SIZE): New helper macro.
170 (GET_INIT_SYMBOL_NAME): Likewise.
171 (OPTION_LEADING_UNDERSCORE): Add new option define.
172 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
173 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
175 (definfo): Add new member is_c_symbol.
176 (D): Add to macro underscore mode parameter.
177 (init): Add definition for is_c_symbol.
178 (gld_${EMULATION_NAME}_list_options): Display new options.
179 (set_pep_name): Adjust underscoring dependent fixed
181 (gld_${EMULATION_NAME}_set_symbols): Likewise.
182 (saw_option): Likewise.
183 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
184 (set_entry_point): Initial initial_symbol_char dependent to
185 target's default and new option flag pep_leading_underscore.
186 * pe-dll.c (pe_leading_underscore): New flag variable.
187 (pe_detail_list): Remove const to allow modify of
189 (pe_dll_id_target): Initialize pe_details' underscore variable
190 dependent to target's default and flag pe_leading_underscore.
191 * pe-dll.h (pe_leading_underscore): Add extern declaration of
193 * pep-dll.c (pe_leading_underscore): Add alias define for
194 pep_leading_underscore.
195 * pep-dll.h (pep_leading_underscore) Add extern declaration of
197 * ld.texinfo: Add documentation for --(no-)leading-underscore
200 2010-03-26 Alan Modra <amodra@gmail.com>
203 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
204 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
206 2010-03-25 Joseph Myers <joseph@codesourcery.com>
208 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
210 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
211 * NEWS: Add news entry for TI C6X support.
212 * configure.tgt (tic6x-*-*): New.
213 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
215 2010-03-23 Joseph Myers <joseph@codesourcery.com>
217 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
218 BSS_NAME): Define if not already defined. Use in place of some
219 hardcoded section names.
221 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
223 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
225 2010-03-18 Aymeric Vincent <vincent@labri.fr>
228 * emultempl/sh64elf.em: Add missing EOF.
230 2010-03-18 Doug Semler <dougsemler@gmail.com>
232 * pe-dll.c (make_one): Make text section readonly.
233 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
234 the jump stub on X86 as /SAFESEH compatible for
237 2010-03-17 Alan Modra <amodra@gmail.com>
239 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
240 *prev instead. Update all callers.
242 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
244 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
245 region and phdrs as their placement section.
247 2010-03-15 Alan Modra <amodra@gmail.com>
249 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
250 (ppc_before_allocation): Call sort_toc_sections.
251 (no_toc_sort, OPTION_NO_TOC_SORT): New.
252 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
253 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
255 2010-03-14 Alan Modra <amodra@gmail.com>
258 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
259 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
261 2010-03-11 George Gensure <werkt0@gmail.com>
264 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
266 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
268 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
270 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
271 (eelf32_sparc_sol2.c): New rule.
272 (eelf64_sparc_sol2.c): Likewise.
273 (eelf_x86_64_sol2.c): Likewise.
274 (eelf_i386_sol2.c): Likewise.
275 * Makefile.in: Regenerate.
276 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
278 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
279 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
280 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
281 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
282 Add target_extra_emuls.
283 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
284 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
285 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
286 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
287 * emulparams/elf32_sparc_sol2.sh: New file.
288 * emulparams/elf64_sparc_sol2.sh: New file.
289 * emulparams/elf_i386_sol2.sh: New file.
290 * emulparams/elf_x86_64_sol2.sh: New file.
291 * emultempl/solaris2.em: New file.
293 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
296 * ld.texinfo: Replace explicitely with explicitly.
298 2010-02-27 Jie Zhang <jie@codesourcery.com>
300 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
301 .fini_array.* when do relocatable linking.
302 * scripttempl/elf.sc: Likewise.
303 * scripttempl/elf32sh-symbian.sc: Likewise.
304 * scripttempl/elf64hppa.sc: Likewise.
305 * scripttempl/elfxtensa.sc: Likewise.
307 2010-02-26 Alan Modra <amodra@gmail.com>
309 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
311 * scripttempl/armbpabi.sc: Likewise.
312 * scripttempl/elf32sh-symbian.sc: Likewise.
313 * scripttempl/elf64hppa.sc: Likewise.
314 * scripttempl/elfxtensa.sc: Likewise.
316 2010-02-25 Alan Modra <amodra@gmail.com>
319 * ldlang.c (init_os): Remove isec param. Don't check for
320 bfd_section already set or call bfd_init_private_section_data
322 (exp_init_os): Update init_os call.
323 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
324 flags. Call bfd_init_private_section_data here.
325 (map_input_to_output_sections): Tidy. Update init_os calls.
326 Use os->sectype to select sec flags for lang_data_statement.
328 2010-02-23 Alan Modra <amodra@gmail.com>
331 * ldlang.c: Revert last patch.
333 2010-02-23 Nick Clifton <nickc@redhat.com>
335 * po/bg.po: Updated Bulgarian translation.
337 2010-02-22 Alan Modra <amodra@gmail.com>
340 * ldlang.c (exp_init_os): Delete forward declaration.
341 (init_os): Don't check for bfd_section already created and don't
342 init addr_tree and load_base expressions here.
343 (map_input_to_output_sections): Only map input to output sections
344 and set constraints here, and as an exception, create output
345 sections which have their address set. Move all the other code to..
346 (create_other_output_sections): ..here. New function. Handle init
347 of addr_tree and load_base here too.
348 (lang_process): Call create_other_output_sections.
350 2010-02-19 Alan Modra <amodra@gmail.com>
352 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
353 * Makefile.in: Regenerate.
355 2010-02-19 Alan Modra <amodra@gmail.com>
357 * ldlang.c (unique_section_p): Add os param. Allow group
358 sections to match /DISCARD/. Update all callers.
359 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
360 (LDEMUL_BEFORE_ALLOCATION): Define.
362 2010-02-15 Nick Clifton <nickc@redhat.com>
364 * po/vi.po: Updated Vietnamese translation.
366 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
368 * Makefile.am (CFILES): Add ldlex-wrapper.c.
369 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
370 (ldlex.o): Replace with...
371 (ldlex-wrapper.o): ...this new rule.
372 (EXTRA_ld_new_SOURCES): Add ldlex.l.
373 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
374 * Makefile.in: Regenerate.
375 * ldlex.l (sysdep.h): Don't include here.
376 * ldlex-wrapper.c: New file.
378 2010-02-09 Alan Modra <amodra@gmail.com>
380 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
383 2010-02-05 Nick Clifton <nickc@redhat.com>
385 * configure.in (ALL_LIBGUAS): Add bg.
386 * configure: Regenerate.
387 * po/bg.po: New Bulgarian translation.
389 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
391 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
392 --target1-abs and --target1-rel options.
394 2010-02-03 Nick Clifton <nickc@redhat.com>
396 * emultempl/alphaelf.em: Update value expected from elf_object_id.
397 * emultempl/hppaelf.em: Likewise.
398 * emultempl/mipself.em: Likewise.
399 * emultempl/ppc32elf.em: Likewise.
400 * emultempl/ppc64elf.em: Likewise.
402 2010-02-03 Alan Modra <amodra@gmail.com>
404 * emultempl/ppc64elf.em (build_toc_list): Report errors from
405 ppc64_elf_next_toc_section.
406 (after_allocation): Update for changed function names and params.
407 Run second pass of multitoc partitioning.
409 2010-01-21 Jon Grant <jg@jguk.org>
410 Nick Clifton <nickc@redhat.com>
413 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
414 a missing file or library. Instead mark the entry as missing and
415 set the global flag to indicate that missing files were
417 * ldlang.c (missing_files): New exported variable.
418 (load_symbols): Skip loading if the file is missing.
419 (open_input_bfds): Terminate link if any input files were
421 * ldlang.h (struct lang_input_statement_struct): Add missing_file
423 Add export of missing_file variable.
425 2010-01-13 DJ Delorie <dj@redhat.com>
427 * emultempl/elf32.em (_place_orphan): If an input section doesn't
428 match an existing output section, but an unused output section
429 statement does match, use it.
430 * emultempl/pe.em (_place_orphan): Likewise.
431 * emultempl/pep.em (_place_orphan): Likewise.
433 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
435 * configure: Regenerate.
436 * Makefile.in: Regenerate.
438 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
440 * ldver.c (ldversion): Change to "Copyright 2010".
442 2010-01-08 Alan Modra <amodra@gmail.com>
445 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
447 For older changes see ChangeLog-2009
453 version-control: never