1 2010-06-25 Alan Modra <amodra@gmail.com>
3 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
5 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
7 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
8 auto-import and merge-rdata defaults same for i[3-7]86 and
11 2010-06-15 Joseph Myers <joseph@codesourcery.com>
13 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
15 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
18 * pe-dll.c (process_def_file_and_drectve): Reorder check for
19 forwarded export name after check for ordinary export.
21 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
23 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
25 2010-06-08 Nick Clifton <nickc@redhat.com>
27 * fdl.texi: Replace with v1.3 text.
28 * ld.texinfo: Replace abbreviated 20th century year numbers with
30 * ldint.texinfo: Likewise.
31 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
32 include of the fdl.texi file.
34 2010-06-01 Tristan Gingold <gingold@adacore.com>
36 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
37 readonly output-section. Handle LIB$INITIALIZE and sections
39 * emultempl/vms.em (vms_place_orphan): Add comments.
41 2010-05-28 Nick Clifton <nickc@redhat.com>
43 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
44 * Makefile.in: Regenerate.
46 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
49 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
50 multiple of maximum page size.
52 2010-05-25 Nick Clifton <nickc@redhat.com>
54 * Makefile.am: Fix typo.
55 * Makefile.in: Regenerate.
57 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
58 Joseph Myers <joseph@codesourcery.com>
59 Andrew Stubbs <ams@codesourcery.com>
61 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
62 (eshelf_fd.c, eshlelf_fd.c): New rules.
63 * Makefile.in: Regenerate.
64 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
66 * emulparams/shelf_fd.sh: New file.
67 * emulparams/shlelf_fd.sh: New file.
68 * emulparams/shlelf_linux.sh: Update comment.
70 2010-05-25 Jay Krell <jay.krell@cornell.edu>
73 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
74 * Makefile.in: Regenerate.
76 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
78 * deffilep.y (opt_name): Allow leading dot.
80 (anylang_id): Likewise.
81 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
83 (gld${EMULATION_NAME}_handle_option): Warn about v1.
84 (pep_find_data_imports): Remove superflous warnings about
86 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
87 and active pseudo-relocation-v2 rdata into data section.
88 * emultempl/pe.em (default_merge_rdata): New shell variable.
89 (MERGE_RDATA_V2): New macro.
90 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
93 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
95 * emultempl/pe.em (is_underscoring): New helper function.
96 (gld_${EMULATION_NAME}_before_parse): Replace code
97 for pe(p)_leading_underscore detection by is_underscoring.
99 (GET_INIT_SYMBOL_NAME): Likewise.
103 (gld_${EMULATION_NAME}_set_symbols):
104 * emultempl/pep.em: Likewise.
105 * pe-dll.c (pe_detail_list): Set default
106 underscoring for x64 target.
107 (pe_dll_id_target): Add initialization of
108 pe(p)_leading_underscore.
110 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
112 * pe-dll.c: Removed trailing whitespaces.
114 2010-05-14 Alan Modra <amodra@gmail.com>
117 * ldexp.c (exp_fold_tree_1): If assignment source expression is
118 invalid, make the destination symbol undefined.
120 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
122 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
123 Initialize pe(p)_leading_underscore variable.
124 (set_pe_name): Likewise.
125 * emultempl/pep.em: Likewise.
126 Additional change default to non-underscore for
127 pep_leading_underscore equal to -1.
129 2010-05-07 Tristan Gingold <gingold@adacore.com>
131 * Makefile.in: Regenerate with automake 1.11.1.
134 2010-05-05 Nick Clifton <nickc@redhat.com>
136 * po/es.po: Updated Spanish translation.
138 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
140 * pe-dll.c (_nm_-symbols): Use always underscored variant
142 (__imp_-symbols): Likewise.
143 (___imp_-symbols): Likewise.
144 * NEWS: Mention ABI change for x64 PE-COFF.
146 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
148 * Makefile.am (install-exec-local): Properly install ld as
149 default cross linker.
150 * Makefile.in: Regenerated.
152 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
153 Nick Clifton <nickc@redhat.com>
155 * configure.in (install_as_default): Define and set to true
156 unless --enable-gold=both/gold has been specified.
157 * configure: Regenerate.
159 * Makefile.am (transform): Use ld.bfd as the default name of
161 (install-exec-local): Also install the executable as a binary
162 named 'ld' if install_as_default is true.
163 * Makefile.in: Regenerate.
165 2010-04-22 Nick Clifton <nickc@redhat.com>
167 * po/ld.pot: Updated by the Translation project.
168 * po/vi.po: Updated Vietnamese translation.
169 * po/bg.po: Updated Bulgarian translation.
171 2010-04-15 Andrew Haley <aph@redhat.com>
173 * emultempl/armelf.em (merge_exidx_entries): New variable.
174 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
175 ("no-merge-exidx-entries"): New option.
176 * ld.texinfo (merge-exidx-entries): Document this option.
178 2010-04-14 Tristan Gingold <gingold@adacore.com>
180 * emulparams/alphavms.sh: New file.
181 * emultempl/vms.em: New file.
182 * scripttempl/alphavms.sc: New file.
183 * configure.tgt (alpha*-*-*vms*): Added.
184 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
185 (ealphavms.c): New target.
186 * Makefile.in: Regenerate.
188 2010-04-09 Nick Clifton <nickc@redhat.com>
190 * ldlang.c (wild_sort): Remove unused variable section_name.
192 2010-04-07 Alan Modra <amodra@gmail.com>
194 * configure: Regenerate.
196 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
199 * ld/testsuite/ld-x86-64/unique1.d: New.
200 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
202 * ld-x86-64/x86-64.exp: Run unique1.
204 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
206 * emultempl/pep.em (U): Macro modified.
207 (U_SIZE): New helper macro.
208 (GET_INIT_SYMBOL_NAME): Likewise.
209 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
210 and OPTION_LEADING_UNDERSCORE enumerator-values.
211 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
213 (definfo): Add new member is_c_symbol.
214 (D): Add to macro underscore mode parameter.
215 (init): Add definition for is_c_symbol.
216 (gld_${EMULATION_NAME}_list_options): Display new options.
217 (set_pep_name): Adjust underscoring dependent fixed
219 (gld_${EMULATION_NAME}_set_symbols): Likewise.
220 (saw_option): Likewise.
221 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
222 (set_entry_point): Initial initial_symbol_char dependent to
223 target's default and new option flag pep_leading_underscore.
224 * emultempl/pe.em (U): Macro modified.
225 (U_SIZE): New helper macro.
226 (GET_INIT_SYMBOL_NAME): Likewise.
227 (OPTION_LEADING_UNDERSCORE): Add new option define.
228 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
229 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
231 (definfo): Add new member is_c_symbol.
232 (D): Add to macro underscore mode parameter.
233 (init): Add definition for is_c_symbol.
234 (gld_${EMULATION_NAME}_list_options): Display new options.
235 (set_pep_name): Adjust underscoring dependent fixed
237 (gld_${EMULATION_NAME}_set_symbols): Likewise.
238 (saw_option): Likewise.
239 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
240 (set_entry_point): Initial initial_symbol_char dependent to
241 target's default and new option flag pep_leading_underscore.
242 * pe-dll.c (pe_leading_underscore): New flag variable.
243 (pe_detail_list): Remove const to allow modify of
245 (pe_dll_id_target): Initialize pe_details' underscore variable
246 dependent to target's default and flag pe_leading_underscore.
247 * pe-dll.h (pe_leading_underscore): Add extern declaration of
249 * pep-dll.c (pe_leading_underscore): Add alias define for
250 pep_leading_underscore.
251 * pep-dll.h (pep_leading_underscore) Add extern declaration of
253 * ld.texinfo: Add documentation for --(no-)leading-underscore
256 2010-03-26 Alan Modra <amodra@gmail.com>
259 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
260 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
262 2010-03-25 Joseph Myers <joseph@codesourcery.com>
264 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
266 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
267 * NEWS: Add news entry for TI C6X support.
268 * configure.tgt (tic6x-*-*): New.
269 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
271 2010-03-23 Joseph Myers <joseph@codesourcery.com>
273 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
274 BSS_NAME): Define if not already defined. Use in place of some
275 hardcoded section names.
277 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
279 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
281 2010-03-18 Aymeric Vincent <vincent@labri.fr>
284 * emultempl/sh64elf.em: Add missing EOF.
286 2010-03-18 Doug Semler <dougsemler@gmail.com>
288 * pe-dll.c (make_one): Make text section readonly.
289 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
290 the jump stub on X86 as /SAFESEH compatible for
293 2010-03-17 Alan Modra <amodra@gmail.com>
295 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
296 *prev instead. Update all callers.
298 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
300 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
301 region and phdrs as their placement section.
303 2010-03-15 Alan Modra <amodra@gmail.com>
305 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
306 (ppc_before_allocation): Call sort_toc_sections.
307 (no_toc_sort, OPTION_NO_TOC_SORT): New.
308 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
309 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
311 2010-03-14 Alan Modra <amodra@gmail.com>
314 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
315 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
317 2010-03-11 George Gensure <werkt0@gmail.com>
320 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
322 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
324 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
326 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
327 (eelf32_sparc_sol2.c): New rule.
328 (eelf64_sparc_sol2.c): Likewise.
329 (eelf_x86_64_sol2.c): Likewise.
330 (eelf_i386_sol2.c): Likewise.
331 * Makefile.in: Regenerate.
332 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
334 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
335 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
336 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
337 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
338 Add target_extra_emuls.
339 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
340 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
341 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
342 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
343 * emulparams/elf32_sparc_sol2.sh: New file.
344 * emulparams/elf64_sparc_sol2.sh: New file.
345 * emulparams/elf_i386_sol2.sh: New file.
346 * emulparams/elf_x86_64_sol2.sh: New file.
347 * emultempl/solaris2.em: New file.
349 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
352 * ld.texinfo: Replace explicitely with explicitly.
354 2010-02-27 Jie Zhang <jie@codesourcery.com>
356 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
357 .fini_array.* when do relocatable linking.
358 * scripttempl/elf.sc: Likewise.
359 * scripttempl/elf32sh-symbian.sc: Likewise.
360 * scripttempl/elf64hppa.sc: Likewise.
361 * scripttempl/elfxtensa.sc: Likewise.
363 2010-02-26 Alan Modra <amodra@gmail.com>
365 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
367 * scripttempl/armbpabi.sc: Likewise.
368 * scripttempl/elf32sh-symbian.sc: Likewise.
369 * scripttempl/elf64hppa.sc: Likewise.
370 * scripttempl/elfxtensa.sc: Likewise.
372 2010-02-25 Alan Modra <amodra@gmail.com>
375 * ldlang.c (init_os): Remove isec param. Don't check for
376 bfd_section already set or call bfd_init_private_section_data
378 (exp_init_os): Update init_os call.
379 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
380 flags. Call bfd_init_private_section_data here.
381 (map_input_to_output_sections): Tidy. Update init_os calls.
382 Use os->sectype to select sec flags for lang_data_statement.
384 2010-02-23 Alan Modra <amodra@gmail.com>
387 * ldlang.c: Revert last patch.
389 2010-02-23 Nick Clifton <nickc@redhat.com>
391 * po/bg.po: Updated Bulgarian translation.
393 2010-02-22 Alan Modra <amodra@gmail.com>
396 * ldlang.c (exp_init_os): Delete forward declaration.
397 (init_os): Don't check for bfd_section already created and don't
398 init addr_tree and load_base expressions here.
399 (map_input_to_output_sections): Only map input to output sections
400 and set constraints here, and as an exception, create output
401 sections which have their address set. Move all the other code to..
402 (create_other_output_sections): ..here. New function. Handle init
403 of addr_tree and load_base here too.
404 (lang_process): Call create_other_output_sections.
406 2010-02-19 Alan Modra <amodra@gmail.com>
408 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
409 * Makefile.in: Regenerate.
411 2010-02-19 Alan Modra <amodra@gmail.com>
413 * ldlang.c (unique_section_p): Add os param. Allow group
414 sections to match /DISCARD/. Update all callers.
415 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
416 (LDEMUL_BEFORE_ALLOCATION): Define.
418 2010-02-15 Nick Clifton <nickc@redhat.com>
420 * po/vi.po: Updated Vietnamese translation.
422 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
424 * Makefile.am (CFILES): Add ldlex-wrapper.c.
425 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
426 (ldlex.o): Replace with...
427 (ldlex-wrapper.o): ...this new rule.
428 (EXTRA_ld_new_SOURCES): Add ldlex.l.
429 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
430 * Makefile.in: Regenerate.
431 * ldlex.l (sysdep.h): Don't include here.
432 * ldlex-wrapper.c: New file.
434 2010-02-09 Alan Modra <amodra@gmail.com>
436 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
439 2010-02-05 Nick Clifton <nickc@redhat.com>
441 * configure.in (ALL_LIBGUAS): Add bg.
442 * configure: Regenerate.
443 * po/bg.po: New Bulgarian translation.
445 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
447 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
448 --target1-abs and --target1-rel options.
450 2010-02-03 Nick Clifton <nickc@redhat.com>
452 * emultempl/alphaelf.em: Update value expected from elf_object_id.
453 * emultempl/hppaelf.em: Likewise.
454 * emultempl/mipself.em: Likewise.
455 * emultempl/ppc32elf.em: Likewise.
456 * emultempl/ppc64elf.em: Likewise.
458 2010-02-03 Alan Modra <amodra@gmail.com>
460 * emultempl/ppc64elf.em (build_toc_list): Report errors from
461 ppc64_elf_next_toc_section.
462 (after_allocation): Update for changed function names and params.
463 Run second pass of multitoc partitioning.
465 2010-01-21 Jon Grant <jg@jguk.org>
466 Nick Clifton <nickc@redhat.com>
469 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
470 a missing file or library. Instead mark the entry as missing and
471 set the global flag to indicate that missing files were
473 * ldlang.c (missing_files): New exported variable.
474 (load_symbols): Skip loading if the file is missing.
475 (open_input_bfds): Terminate link if any input files were
477 * ldlang.h (struct lang_input_statement_struct): Add missing_file
479 Add export of missing_file variable.
481 2010-01-13 DJ Delorie <dj@redhat.com>
483 * emultempl/elf32.em (_place_orphan): If an input section doesn't
484 match an existing output section, but an unused output section
485 statement does match, use it.
486 * emultempl/pe.em (_place_orphan): Likewise.
487 * emultempl/pep.em (_place_orphan): Likewise.
489 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
491 * configure: Regenerate.
492 * Makefile.in: Regenerate.
494 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
496 * ldver.c (ldversion): Change to "Copyright 2010".
498 2010-01-08 Alan Modra <amodra@gmail.com>
501 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
503 For older changes see ChangeLog-2009
509 version-control: never