1 2010-06-25 Alan Modra <amodra@gmail.com>
3 * emultempl/ppc64elf.em (prelim_size_sections): New function.
4 (ppc_before_allocation): Use it. Size sections before toc edit too.
6 2010-06-25 Alan Modra <amodra@gmail.com>
8 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
10 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
12 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
13 auto-import and merge-rdata defaults same for i[3-7]86 and
16 2010-06-15 Joseph Myers <joseph@codesourcery.com>
18 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
20 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
23 * pe-dll.c (process_def_file_and_drectve): Reorder check for
24 forwarded export name after check for ordinary export.
26 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
28 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
30 2010-06-08 Nick Clifton <nickc@redhat.com>
32 * fdl.texi: Replace with v1.3 text.
33 * ld.texinfo: Replace abbreviated 20th century year numbers with
35 * ldint.texinfo: Likewise.
36 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
37 include of the fdl.texi file.
39 2010-06-01 Tristan Gingold <gingold@adacore.com>
41 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
42 readonly output-section. Handle LIB$INITIALIZE and sections
44 * emultempl/vms.em (vms_place_orphan): Add comments.
46 2010-05-28 Nick Clifton <nickc@redhat.com>
48 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
49 * Makefile.in: Regenerate.
51 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
54 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
55 multiple of maximum page size.
57 2010-05-25 Nick Clifton <nickc@redhat.com>
59 * Makefile.am: Fix typo.
60 * Makefile.in: Regenerate.
62 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
63 Joseph Myers <joseph@codesourcery.com>
64 Andrew Stubbs <ams@codesourcery.com>
66 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
67 (eshelf_fd.c, eshlelf_fd.c): New rules.
68 * Makefile.in: Regenerate.
69 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
71 * emulparams/shelf_fd.sh: New file.
72 * emulparams/shlelf_fd.sh: New file.
73 * emulparams/shlelf_linux.sh: Update comment.
75 2010-05-25 Jay Krell <jay.krell@cornell.edu>
78 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
79 * Makefile.in: Regenerate.
81 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
83 * deffilep.y (opt_name): Allow leading dot.
85 (anylang_id): Likewise.
86 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
88 (gld${EMULATION_NAME}_handle_option): Warn about v1.
89 (pep_find_data_imports): Remove superflous warnings about
91 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
92 and active pseudo-relocation-v2 rdata into data section.
93 * emultempl/pe.em (default_merge_rdata): New shell variable.
94 (MERGE_RDATA_V2): New macro.
95 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
98 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
100 * emultempl/pe.em (is_underscoring): New helper function.
101 (gld_${EMULATION_NAME}_before_parse): Replace code
102 for pe(p)_leading_underscore detection by is_underscoring.
104 (GET_INIT_SYMBOL_NAME): Likewise.
108 (gld_${EMULATION_NAME}_set_symbols):
109 * emultempl/pep.em: Likewise.
110 * pe-dll.c (pe_detail_list): Set default
111 underscoring for x64 target.
112 (pe_dll_id_target): Add initialization of
113 pe(p)_leading_underscore.
115 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
117 * pe-dll.c: Removed trailing whitespaces.
119 2010-05-14 Alan Modra <amodra@gmail.com>
122 * ldexp.c (exp_fold_tree_1): If assignment source expression is
123 invalid, make the destination symbol undefined.
125 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
127 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
128 Initialize pe(p)_leading_underscore variable.
129 (set_pe_name): Likewise.
130 * emultempl/pep.em: Likewise.
131 Additional change default to non-underscore for
132 pep_leading_underscore equal to -1.
134 2010-05-07 Tristan Gingold <gingold@adacore.com>
136 * Makefile.in: Regenerate with automake 1.11.1.
139 2010-05-05 Nick Clifton <nickc@redhat.com>
141 * po/es.po: Updated Spanish translation.
143 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
145 * pe-dll.c (_nm_-symbols): Use always underscored variant
147 (__imp_-symbols): Likewise.
148 (___imp_-symbols): Likewise.
149 * NEWS: Mention ABI change for x64 PE-COFF.
151 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
153 * Makefile.am (install-exec-local): Properly install ld as
154 default cross linker.
155 * Makefile.in: Regenerated.
157 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
158 Nick Clifton <nickc@redhat.com>
160 * configure.in (install_as_default): Define and set to true
161 unless --enable-gold=both/gold has been specified.
162 * configure: Regenerate.
164 * Makefile.am (transform): Use ld.bfd as the default name of
166 (install-exec-local): Also install the executable as a binary
167 named 'ld' if install_as_default is true.
168 * Makefile.in: Regenerate.
170 2010-04-22 Nick Clifton <nickc@redhat.com>
172 * po/ld.pot: Updated by the Translation project.
173 * po/vi.po: Updated Vietnamese translation.
174 * po/bg.po: Updated Bulgarian translation.
176 2010-04-15 Andrew Haley <aph@redhat.com>
178 * emultempl/armelf.em (merge_exidx_entries): New variable.
179 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
180 ("no-merge-exidx-entries"): New option.
181 * ld.texinfo (merge-exidx-entries): Document this option.
183 2010-04-14 Tristan Gingold <gingold@adacore.com>
185 * emulparams/alphavms.sh: New file.
186 * emultempl/vms.em: New file.
187 * scripttempl/alphavms.sc: New file.
188 * configure.tgt (alpha*-*-*vms*): Added.
189 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
190 (ealphavms.c): New target.
191 * Makefile.in: Regenerate.
193 2010-04-09 Nick Clifton <nickc@redhat.com>
195 * ldlang.c (wild_sort): Remove unused variable section_name.
197 2010-04-07 Alan Modra <amodra@gmail.com>
199 * configure: Regenerate.
201 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
204 * ld/testsuite/ld-x86-64/unique1.d: New.
205 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
207 * ld-x86-64/x86-64.exp: Run unique1.
209 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
211 * emultempl/pep.em (U): Macro modified.
212 (U_SIZE): New helper macro.
213 (GET_INIT_SYMBOL_NAME): Likewise.
214 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
215 and OPTION_LEADING_UNDERSCORE enumerator-values.
216 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
218 (definfo): Add new member is_c_symbol.
219 (D): Add to macro underscore mode parameter.
220 (init): Add definition for is_c_symbol.
221 (gld_${EMULATION_NAME}_list_options): Display new options.
222 (set_pep_name): Adjust underscoring dependent fixed
224 (gld_${EMULATION_NAME}_set_symbols): Likewise.
225 (saw_option): Likewise.
226 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
227 (set_entry_point): Initial initial_symbol_char dependent to
228 target's default and new option flag pep_leading_underscore.
229 * emultempl/pe.em (U): Macro modified.
230 (U_SIZE): New helper macro.
231 (GET_INIT_SYMBOL_NAME): Likewise.
232 (OPTION_LEADING_UNDERSCORE): Add new option define.
233 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
234 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
236 (definfo): Add new member is_c_symbol.
237 (D): Add to macro underscore mode parameter.
238 (init): Add definition for is_c_symbol.
239 (gld_${EMULATION_NAME}_list_options): Display new options.
240 (set_pep_name): Adjust underscoring dependent fixed
242 (gld_${EMULATION_NAME}_set_symbols): Likewise.
243 (saw_option): Likewise.
244 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
245 (set_entry_point): Initial initial_symbol_char dependent to
246 target's default and new option flag pep_leading_underscore.
247 * pe-dll.c (pe_leading_underscore): New flag variable.
248 (pe_detail_list): Remove const to allow modify of
250 (pe_dll_id_target): Initialize pe_details' underscore variable
251 dependent to target's default and flag pe_leading_underscore.
252 * pe-dll.h (pe_leading_underscore): Add extern declaration of
254 * pep-dll.c (pe_leading_underscore): Add alias define for
255 pep_leading_underscore.
256 * pep-dll.h (pep_leading_underscore) Add extern declaration of
258 * ld.texinfo: Add documentation for --(no-)leading-underscore
261 2010-03-26 Alan Modra <amodra@gmail.com>
264 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
265 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
267 2010-03-25 Joseph Myers <joseph@codesourcery.com>
269 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
271 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
272 * NEWS: Add news entry for TI C6X support.
273 * configure.tgt (tic6x-*-*): New.
274 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
276 2010-03-23 Joseph Myers <joseph@codesourcery.com>
278 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
279 BSS_NAME): Define if not already defined. Use in place of some
280 hardcoded section names.
282 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
284 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
286 2010-03-18 Aymeric Vincent <vincent@labri.fr>
289 * emultempl/sh64elf.em: Add missing EOF.
291 2010-03-18 Doug Semler <dougsemler@gmail.com>
293 * pe-dll.c (make_one): Make text section readonly.
294 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
295 the jump stub on X86 as /SAFESEH compatible for
298 2010-03-17 Alan Modra <amodra@gmail.com>
300 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
301 *prev instead. Update all callers.
303 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
305 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
306 region and phdrs as their placement section.
308 2010-03-15 Alan Modra <amodra@gmail.com>
310 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
311 (ppc_before_allocation): Call sort_toc_sections.
312 (no_toc_sort, OPTION_NO_TOC_SORT): New.
313 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
314 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
316 2010-03-14 Alan Modra <amodra@gmail.com>
319 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
320 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
322 2010-03-11 George Gensure <werkt0@gmail.com>
325 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
327 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
329 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
331 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
332 (eelf32_sparc_sol2.c): New rule.
333 (eelf64_sparc_sol2.c): Likewise.
334 (eelf_x86_64_sol2.c): Likewise.
335 (eelf_i386_sol2.c): Likewise.
336 * Makefile.in: Regenerate.
337 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
339 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
340 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
341 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
342 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
343 Add target_extra_emuls.
344 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
345 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
346 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
347 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
348 * emulparams/elf32_sparc_sol2.sh: New file.
349 * emulparams/elf64_sparc_sol2.sh: New file.
350 * emulparams/elf_i386_sol2.sh: New file.
351 * emulparams/elf_x86_64_sol2.sh: New file.
352 * emultempl/solaris2.em: New file.
354 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
357 * ld.texinfo: Replace explicitely with explicitly.
359 2010-02-27 Jie Zhang <jie@codesourcery.com>
361 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
362 .fini_array.* when do relocatable linking.
363 * scripttempl/elf.sc: Likewise.
364 * scripttempl/elf32sh-symbian.sc: Likewise.
365 * scripttempl/elf64hppa.sc: Likewise.
366 * scripttempl/elfxtensa.sc: Likewise.
368 2010-02-26 Alan Modra <amodra@gmail.com>
370 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
372 * scripttempl/armbpabi.sc: Likewise.
373 * scripttempl/elf32sh-symbian.sc: Likewise.
374 * scripttempl/elf64hppa.sc: Likewise.
375 * scripttempl/elfxtensa.sc: Likewise.
377 2010-02-25 Alan Modra <amodra@gmail.com>
380 * ldlang.c (init_os): Remove isec param. Don't check for
381 bfd_section already set or call bfd_init_private_section_data
383 (exp_init_os): Update init_os call.
384 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
385 flags. Call bfd_init_private_section_data here.
386 (map_input_to_output_sections): Tidy. Update init_os calls.
387 Use os->sectype to select sec flags for lang_data_statement.
389 2010-02-23 Alan Modra <amodra@gmail.com>
392 * ldlang.c: Revert last patch.
394 2010-02-23 Nick Clifton <nickc@redhat.com>
396 * po/bg.po: Updated Bulgarian translation.
398 2010-02-22 Alan Modra <amodra@gmail.com>
401 * ldlang.c (exp_init_os): Delete forward declaration.
402 (init_os): Don't check for bfd_section already created and don't
403 init addr_tree and load_base expressions here.
404 (map_input_to_output_sections): Only map input to output sections
405 and set constraints here, and as an exception, create output
406 sections which have their address set. Move all the other code to..
407 (create_other_output_sections): ..here. New function. Handle init
408 of addr_tree and load_base here too.
409 (lang_process): Call create_other_output_sections.
411 2010-02-19 Alan Modra <amodra@gmail.com>
413 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
414 * Makefile.in: Regenerate.
416 2010-02-19 Alan Modra <amodra@gmail.com>
418 * ldlang.c (unique_section_p): Add os param. Allow group
419 sections to match /DISCARD/. Update all callers.
420 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
421 (LDEMUL_BEFORE_ALLOCATION): Define.
423 2010-02-15 Nick Clifton <nickc@redhat.com>
425 * po/vi.po: Updated Vietnamese translation.
427 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
429 * Makefile.am (CFILES): Add ldlex-wrapper.c.
430 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
431 (ldlex.o): Replace with...
432 (ldlex-wrapper.o): ...this new rule.
433 (EXTRA_ld_new_SOURCES): Add ldlex.l.
434 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
435 * Makefile.in: Regenerate.
436 * ldlex.l (sysdep.h): Don't include here.
437 * ldlex-wrapper.c: New file.
439 2010-02-09 Alan Modra <amodra@gmail.com>
441 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
444 2010-02-05 Nick Clifton <nickc@redhat.com>
446 * configure.in (ALL_LIBGUAS): Add bg.
447 * configure: Regenerate.
448 * po/bg.po: New Bulgarian translation.
450 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
452 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
453 --target1-abs and --target1-rel options.
455 2010-02-03 Nick Clifton <nickc@redhat.com>
457 * emultempl/alphaelf.em: Update value expected from elf_object_id.
458 * emultempl/hppaelf.em: Likewise.
459 * emultempl/mipself.em: Likewise.
460 * emultempl/ppc32elf.em: Likewise.
461 * emultempl/ppc64elf.em: Likewise.
463 2010-02-03 Alan Modra <amodra@gmail.com>
465 * emultempl/ppc64elf.em (build_toc_list): Report errors from
466 ppc64_elf_next_toc_section.
467 (after_allocation): Update for changed function names and params.
468 Run second pass of multitoc partitioning.
470 2010-01-21 Jon Grant <jg@jguk.org>
471 Nick Clifton <nickc@redhat.com>
474 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
475 a missing file or library. Instead mark the entry as missing and
476 set the global flag to indicate that missing files were
478 * ldlang.c (missing_files): New exported variable.
479 (load_symbols): Skip loading if the file is missing.
480 (open_input_bfds): Terminate link if any input files were
482 * ldlang.h (struct lang_input_statement_struct): Add missing_file
484 Add export of missing_file variable.
486 2010-01-13 DJ Delorie <dj@redhat.com>
488 * emultempl/elf32.em (_place_orphan): If an input section doesn't
489 match an existing output section, but an unused output section
490 statement does match, use it.
491 * emultempl/pe.em (_place_orphan): Likewise.
492 * emultempl/pep.em (_place_orphan): Likewise.
494 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
496 * configure: Regenerate.
497 * Makefile.in: Regenerate.
499 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
501 * ldver.c (ldversion): Change to "Copyright 2010".
503 2010-01-08 Alan Modra <amodra@gmail.com>
506 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
508 For older changes see ChangeLog-2009
514 version-control: never