1 2010-06-29 Alan Modra <amodra@gmail.com>
3 * emulparams/maxqcoff.sh: Delete file.
4 * scripttempl/maxqcoff.sc: Delete file.
5 * Makefile.am: Remove references to maxq.
6 * configure.tgt: Likewise.
7 * Makefile.in: Regenerate.
8 * configure: Regenerate.
9 * po/POTFILES.in: Regenerate.
11 2010-06-27 Alan Modra <amodra@gmail.com>
13 * pe-dll.c (fill_edata): Avoid set but unused warning.
14 (pe_walk_relocs_of_symbol): Delete set but unused variables.
15 (generate_reloc, pe_implied_import_dll): Likewise.
16 * emultempl/aix.em (open_dynamic_archive): Likewise.
17 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
18 (xtensa_layout_wild): Likewise.
19 (xtensa_colocate_output_literals_callback): Likewise.
21 2010-06-25 Alan Modra <amodra@gmail.com>
23 * emultempl/ppc64elf.em (prelim_size_sections): New function.
24 (ppc_before_allocation): Use it. Size sections before toc edit too.
26 2010-06-25 Alan Modra <amodra@gmail.com>
28 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
30 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
32 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
33 auto-import and merge-rdata defaults same for i[3-7]86 and
36 2010-06-15 Joseph Myers <joseph@codesourcery.com>
38 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
40 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
43 * pe-dll.c (process_def_file_and_drectve): Reorder check for
44 forwarded export name after check for ordinary export.
46 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
48 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
50 2010-06-08 Nick Clifton <nickc@redhat.com>
52 * fdl.texi: Replace with v1.3 text.
53 * ld.texinfo: Replace abbreviated 20th century year numbers with
55 * ldint.texinfo: Likewise.
56 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
57 include of the fdl.texi file.
59 2010-06-01 Tristan Gingold <gingold@adacore.com>
61 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
62 readonly output-section. Handle LIB$INITIALIZE and sections
64 * emultempl/vms.em (vms_place_orphan): Add comments.
66 2010-05-28 Nick Clifton <nickc@redhat.com>
68 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
69 * Makefile.in: Regenerate.
71 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
74 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
75 multiple of maximum page size.
77 2010-05-25 Nick Clifton <nickc@redhat.com>
79 * Makefile.am: Fix typo.
80 * Makefile.in: Regenerate.
82 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
83 Joseph Myers <joseph@codesourcery.com>
84 Andrew Stubbs <ams@codesourcery.com>
86 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
87 (eshelf_fd.c, eshlelf_fd.c): New rules.
88 * Makefile.in: Regenerate.
89 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
91 * emulparams/shelf_fd.sh: New file.
92 * emulparams/shlelf_fd.sh: New file.
93 * emulparams/shlelf_linux.sh: Update comment.
95 2010-05-25 Jay Krell <jay.krell@cornell.edu>
98 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
99 * Makefile.in: Regenerate.
101 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
103 * deffilep.y (opt_name): Allow leading dot.
104 (dot_name): Likewise.
105 (anylang_id): Likewise.
106 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
108 (gld${EMULATION_NAME}_handle_option): Warn about v1.
109 (pep_find_data_imports): Remove superflous warnings about
111 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
112 and active pseudo-relocation-v2 rdata into data section.
113 * emultempl/pe.em (default_merge_rdata): New shell variable.
114 (MERGE_RDATA_V2): New macro.
115 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
118 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
120 * emultempl/pe.em (is_underscoring): New helper function.
121 (gld_${EMULATION_NAME}_before_parse): Replace code
122 for pe(p)_leading_underscore detection by is_underscoring.
124 (GET_INIT_SYMBOL_NAME): Likewise.
128 (gld_${EMULATION_NAME}_set_symbols):
129 * emultempl/pep.em: Likewise.
130 * pe-dll.c (pe_detail_list): Set default
131 underscoring for x64 target.
132 (pe_dll_id_target): Add initialization of
133 pe(p)_leading_underscore.
135 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
137 * pe-dll.c: Removed trailing whitespaces.
139 2010-05-14 Alan Modra <amodra@gmail.com>
142 * ldexp.c (exp_fold_tree_1): If assignment source expression is
143 invalid, make the destination symbol undefined.
145 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
147 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
148 Initialize pe(p)_leading_underscore variable.
149 (set_pe_name): Likewise.
150 * emultempl/pep.em: Likewise.
151 Additional change default to non-underscore for
152 pep_leading_underscore equal to -1.
154 2010-05-07 Tristan Gingold <gingold@adacore.com>
156 * Makefile.in: Regenerate with automake 1.11.1.
159 2010-05-05 Nick Clifton <nickc@redhat.com>
161 * po/es.po: Updated Spanish translation.
163 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
165 * pe-dll.c (_nm_-symbols): Use always underscored variant
167 (__imp_-symbols): Likewise.
168 (___imp_-symbols): Likewise.
169 * NEWS: Mention ABI change for x64 PE-COFF.
171 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
173 * Makefile.am (install-exec-local): Properly install ld as
174 default cross linker.
175 * Makefile.in: Regenerated.
177 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
178 Nick Clifton <nickc@redhat.com>
180 * configure.in (install_as_default): Define and set to true
181 unless --enable-gold=both/gold has been specified.
182 * configure: Regenerate.
184 * Makefile.am (transform): Use ld.bfd as the default name of
186 (install-exec-local): Also install the executable as a binary
187 named 'ld' if install_as_default is true.
188 * Makefile.in: Regenerate.
190 2010-04-22 Nick Clifton <nickc@redhat.com>
192 * po/ld.pot: Updated by the Translation project.
193 * po/vi.po: Updated Vietnamese translation.
194 * po/bg.po: Updated Bulgarian translation.
196 2010-04-15 Andrew Haley <aph@redhat.com>
198 * emultempl/armelf.em (merge_exidx_entries): New variable.
199 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
200 ("no-merge-exidx-entries"): New option.
201 * ld.texinfo (merge-exidx-entries): Document this option.
203 2010-04-14 Tristan Gingold <gingold@adacore.com>
205 * emulparams/alphavms.sh: New file.
206 * emultempl/vms.em: New file.
207 * scripttempl/alphavms.sc: New file.
208 * configure.tgt (alpha*-*-*vms*): Added.
209 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
210 (ealphavms.c): New target.
211 * Makefile.in: Regenerate.
213 2010-04-09 Nick Clifton <nickc@redhat.com>
215 * ldlang.c (wild_sort): Remove unused variable section_name.
217 2010-04-07 Alan Modra <amodra@gmail.com>
219 * configure: Regenerate.
221 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
224 * ld/testsuite/ld-x86-64/unique1.d: New.
225 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
227 * ld-x86-64/x86-64.exp: Run unique1.
229 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
231 * emultempl/pep.em (U): Macro modified.
232 (U_SIZE): New helper macro.
233 (GET_INIT_SYMBOL_NAME): Likewise.
234 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
235 and OPTION_LEADING_UNDERSCORE enumerator-values.
236 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
238 (definfo): Add new member is_c_symbol.
239 (D): Add to macro underscore mode parameter.
240 (init): Add definition for is_c_symbol.
241 (gld_${EMULATION_NAME}_list_options): Display new options.
242 (set_pep_name): Adjust underscoring dependent fixed
244 (gld_${EMULATION_NAME}_set_symbols): Likewise.
245 (saw_option): Likewise.
246 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
247 (set_entry_point): Initial initial_symbol_char dependent to
248 target's default and new option flag pep_leading_underscore.
249 * emultempl/pe.em (U): Macro modified.
250 (U_SIZE): New helper macro.
251 (GET_INIT_SYMBOL_NAME): Likewise.
252 (OPTION_LEADING_UNDERSCORE): Add new option define.
253 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
254 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
256 (definfo): Add new member is_c_symbol.
257 (D): Add to macro underscore mode parameter.
258 (init): Add definition for is_c_symbol.
259 (gld_${EMULATION_NAME}_list_options): Display new options.
260 (set_pep_name): Adjust underscoring dependent fixed
262 (gld_${EMULATION_NAME}_set_symbols): Likewise.
263 (saw_option): Likewise.
264 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
265 (set_entry_point): Initial initial_symbol_char dependent to
266 target's default and new option flag pep_leading_underscore.
267 * pe-dll.c (pe_leading_underscore): New flag variable.
268 (pe_detail_list): Remove const to allow modify of
270 (pe_dll_id_target): Initialize pe_details' underscore variable
271 dependent to target's default and flag pe_leading_underscore.
272 * pe-dll.h (pe_leading_underscore): Add extern declaration of
274 * pep-dll.c (pe_leading_underscore): Add alias define for
275 pep_leading_underscore.
276 * pep-dll.h (pep_leading_underscore) Add extern declaration of
278 * ld.texinfo: Add documentation for --(no-)leading-underscore
281 2010-03-26 Alan Modra <amodra@gmail.com>
284 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
285 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
287 2010-03-25 Joseph Myers <joseph@codesourcery.com>
289 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
291 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
292 * NEWS: Add news entry for TI C6X support.
293 * configure.tgt (tic6x-*-*): New.
294 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
296 2010-03-23 Joseph Myers <joseph@codesourcery.com>
298 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
299 BSS_NAME): Define if not already defined. Use in place of some
300 hardcoded section names.
302 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
304 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
306 2010-03-18 Aymeric Vincent <vincent@labri.fr>
309 * emultempl/sh64elf.em: Add missing EOF.
311 2010-03-18 Doug Semler <dougsemler@gmail.com>
313 * pe-dll.c (make_one): Make text section readonly.
314 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
315 the jump stub on X86 as /SAFESEH compatible for
318 2010-03-17 Alan Modra <amodra@gmail.com>
320 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
321 *prev instead. Update all callers.
323 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
325 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
326 region and phdrs as their placement section.
328 2010-03-15 Alan Modra <amodra@gmail.com>
330 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
331 (ppc_before_allocation): Call sort_toc_sections.
332 (no_toc_sort, OPTION_NO_TOC_SORT): New.
333 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
334 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
336 2010-03-14 Alan Modra <amodra@gmail.com>
339 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
340 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
342 2010-03-11 George Gensure <werkt0@gmail.com>
345 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
347 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
349 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
351 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
352 (eelf32_sparc_sol2.c): New rule.
353 (eelf64_sparc_sol2.c): Likewise.
354 (eelf_x86_64_sol2.c): Likewise.
355 (eelf_i386_sol2.c): Likewise.
356 * Makefile.in: Regenerate.
357 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
359 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
360 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
361 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
362 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
363 Add target_extra_emuls.
364 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
365 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
366 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
367 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
368 * emulparams/elf32_sparc_sol2.sh: New file.
369 * emulparams/elf64_sparc_sol2.sh: New file.
370 * emulparams/elf_i386_sol2.sh: New file.
371 * emulparams/elf_x86_64_sol2.sh: New file.
372 * emultempl/solaris2.em: New file.
374 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
377 * ld.texinfo: Replace explicitely with explicitly.
379 2010-02-27 Jie Zhang <jie@codesourcery.com>
381 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
382 .fini_array.* when do relocatable linking.
383 * scripttempl/elf.sc: Likewise.
384 * scripttempl/elf32sh-symbian.sc: Likewise.
385 * scripttempl/elf64hppa.sc: Likewise.
386 * scripttempl/elfxtensa.sc: Likewise.
388 2010-02-26 Alan Modra <amodra@gmail.com>
390 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
392 * scripttempl/armbpabi.sc: Likewise.
393 * scripttempl/elf32sh-symbian.sc: Likewise.
394 * scripttempl/elf64hppa.sc: Likewise.
395 * scripttempl/elfxtensa.sc: Likewise.
397 2010-02-25 Alan Modra <amodra@gmail.com>
400 * ldlang.c (init_os): Remove isec param. Don't check for
401 bfd_section already set or call bfd_init_private_section_data
403 (exp_init_os): Update init_os call.
404 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
405 flags. Call bfd_init_private_section_data here.
406 (map_input_to_output_sections): Tidy. Update init_os calls.
407 Use os->sectype to select sec flags for lang_data_statement.
409 2010-02-23 Alan Modra <amodra@gmail.com>
412 * ldlang.c: Revert last patch.
414 2010-02-23 Nick Clifton <nickc@redhat.com>
416 * po/bg.po: Updated Bulgarian translation.
418 2010-02-22 Alan Modra <amodra@gmail.com>
421 * ldlang.c (exp_init_os): Delete forward declaration.
422 (init_os): Don't check for bfd_section already created and don't
423 init addr_tree and load_base expressions here.
424 (map_input_to_output_sections): Only map input to output sections
425 and set constraints here, and as an exception, create output
426 sections which have their address set. Move all the other code to..
427 (create_other_output_sections): ..here. New function. Handle init
428 of addr_tree and load_base here too.
429 (lang_process): Call create_other_output_sections.
431 2010-02-19 Alan Modra <amodra@gmail.com>
433 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
434 * Makefile.in: Regenerate.
436 2010-02-19 Alan Modra <amodra@gmail.com>
438 * ldlang.c (unique_section_p): Add os param. Allow group
439 sections to match /DISCARD/. Update all callers.
440 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
441 (LDEMUL_BEFORE_ALLOCATION): Define.
443 2010-02-15 Nick Clifton <nickc@redhat.com>
445 * po/vi.po: Updated Vietnamese translation.
447 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
449 * Makefile.am (CFILES): Add ldlex-wrapper.c.
450 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
451 (ldlex.o): Replace with...
452 (ldlex-wrapper.o): ...this new rule.
453 (EXTRA_ld_new_SOURCES): Add ldlex.l.
454 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
455 * Makefile.in: Regenerate.
456 * ldlex.l (sysdep.h): Don't include here.
457 * ldlex-wrapper.c: New file.
459 2010-02-09 Alan Modra <amodra@gmail.com>
461 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
464 2010-02-05 Nick Clifton <nickc@redhat.com>
466 * configure.in (ALL_LIBGUAS): Add bg.
467 * configure: Regenerate.
468 * po/bg.po: New Bulgarian translation.
470 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
472 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
473 --target1-abs and --target1-rel options.
475 2010-02-03 Nick Clifton <nickc@redhat.com>
477 * emultempl/alphaelf.em: Update value expected from elf_object_id.
478 * emultempl/hppaelf.em: Likewise.
479 * emultempl/mipself.em: Likewise.
480 * emultempl/ppc32elf.em: Likewise.
481 * emultempl/ppc64elf.em: Likewise.
483 2010-02-03 Alan Modra <amodra@gmail.com>
485 * emultempl/ppc64elf.em (build_toc_list): Report errors from
486 ppc64_elf_next_toc_section.
487 (after_allocation): Update for changed function names and params.
488 Run second pass of multitoc partitioning.
490 2010-01-21 Jon Grant <jg@jguk.org>
491 Nick Clifton <nickc@redhat.com>
494 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
495 a missing file or library. Instead mark the entry as missing and
496 set the global flag to indicate that missing files were
498 * ldlang.c (missing_files): New exported variable.
499 (load_symbols): Skip loading if the file is missing.
500 (open_input_bfds): Terminate link if any input files were
502 * ldlang.h (struct lang_input_statement_struct): Add missing_file
504 Add export of missing_file variable.
506 2010-01-13 DJ Delorie <dj@redhat.com>
508 * emultempl/elf32.em (_place_orphan): If an input section doesn't
509 match an existing output section, but an unused output section
510 statement does match, use it.
511 * emultempl/pe.em (_place_orphan): Likewise.
512 * emultempl/pep.em (_place_orphan): Likewise.
514 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
516 * configure: Regenerate.
517 * Makefile.in: Regenerate.
519 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
521 * ldver.c (ldversion): Change to "Copyright 2010".
523 2010-01-08 Alan Modra <amodra@gmail.com>
526 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
528 For older changes see ChangeLog-2009
534 version-control: never