1 2010-06-27 Alan Modra <amodra@gmail.com>
3 * pe-dll.c (fill_edata): Avoid set but unused warning.
4 (pe_walk_relocs_of_symbol): Delete set but unused variables.
5 (generate_reloc, pe_implied_import_dll): Likewise.
6 * emultempl/aix.em (open_dynamic_archive): Likewise.
7 * emultempl/xtensaelf.em (replace_insn_sec_with_prop_sec): Likewise.
8 (xtensa_layout_wild): Likewise.
9 (xtensa_colocate_output_literals_callback): Likewise.
11 2010-06-25 Alan Modra <amodra@gmail.com>
13 * emultempl/ppc64elf.em (prelim_size_sections): New function.
14 (ppc_before_allocation): Use it. Size sections before toc edit too.
16 2010-06-25 Alan Modra <amodra@gmail.com>
18 * emultempl/elf32.em (find_exp_assignment): Handle etree_provided.
20 2010-06-20 Danny Smith <dannysmith@users.sourceforge.net>
22 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse): Make
23 auto-import and merge-rdata defaults same for i[3-7]86 and
26 2010-06-15 Joseph Myers <joseph@codesourcery.com>
28 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
30 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
33 * pe-dll.c (process_def_file_and_drectve): Reorder check for
34 forwarded export name after check for ordinary export.
36 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
38 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
40 2010-06-08 Nick Clifton <nickc@redhat.com>
42 * fdl.texi: Replace with v1.3 text.
43 * ld.texinfo: Replace abbreviated 20th century year numbers with
45 * ldint.texinfo: Likewise.
46 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
47 include of the fdl.texi file.
49 2010-06-01 Tristan Gingold <gingold@adacore.com>
51 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
52 readonly output-section. Handle LIB$INITIALIZE and sections
54 * emultempl/vms.em (vms_place_orphan): Add comments.
56 2010-05-28 Nick Clifton <nickc@redhat.com>
58 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
59 * Makefile.in: Regenerate.
61 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
64 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
65 multiple of maximum page size.
67 2010-05-25 Nick Clifton <nickc@redhat.com>
69 * Makefile.am: Fix typo.
70 * Makefile.in: Regenerate.
72 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
73 Joseph Myers <joseph@codesourcery.com>
74 Andrew Stubbs <ams@codesourcery.com>
76 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
77 (eshelf_fd.c, eshlelf_fd.c): New rules.
78 * Makefile.in: Regenerate.
79 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
81 * emulparams/shelf_fd.sh: New file.
82 * emulparams/shlelf_fd.sh: New file.
83 * emulparams/shlelf_linux.sh: Update comment.
85 2010-05-25 Jay Krell <jay.krell@cornell.edu>
88 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
89 * Makefile.in: Regenerate.
91 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
93 * deffilep.y (opt_name): Allow leading dot.
95 (anylang_id): Likewise.
96 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
98 (gld${EMULATION_NAME}_handle_option): Warn about v1.
99 (pep_find_data_imports): Remove superflous warnings about
101 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
102 and active pseudo-relocation-v2 rdata into data section.
103 * emultempl/pe.em (default_merge_rdata): New shell variable.
104 (MERGE_RDATA_V2): New macro.
105 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
108 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
110 * emultempl/pe.em (is_underscoring): New helper function.
111 (gld_${EMULATION_NAME}_before_parse): Replace code
112 for pe(p)_leading_underscore detection by is_underscoring.
114 (GET_INIT_SYMBOL_NAME): Likewise.
118 (gld_${EMULATION_NAME}_set_symbols):
119 * emultempl/pep.em: Likewise.
120 * pe-dll.c (pe_detail_list): Set default
121 underscoring for x64 target.
122 (pe_dll_id_target): Add initialization of
123 pe(p)_leading_underscore.
125 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
127 * pe-dll.c: Removed trailing whitespaces.
129 2010-05-14 Alan Modra <amodra@gmail.com>
132 * ldexp.c (exp_fold_tree_1): If assignment source expression is
133 invalid, make the destination symbol undefined.
135 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
137 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
138 Initialize pe(p)_leading_underscore variable.
139 (set_pe_name): Likewise.
140 * emultempl/pep.em: Likewise.
141 Additional change default to non-underscore for
142 pep_leading_underscore equal to -1.
144 2010-05-07 Tristan Gingold <gingold@adacore.com>
146 * Makefile.in: Regenerate with automake 1.11.1.
149 2010-05-05 Nick Clifton <nickc@redhat.com>
151 * po/es.po: Updated Spanish translation.
153 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
155 * pe-dll.c (_nm_-symbols): Use always underscored variant
157 (__imp_-symbols): Likewise.
158 (___imp_-symbols): Likewise.
159 * NEWS: Mention ABI change for x64 PE-COFF.
161 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
163 * Makefile.am (install-exec-local): Properly install ld as
164 default cross linker.
165 * Makefile.in: Regenerated.
167 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
168 Nick Clifton <nickc@redhat.com>
170 * configure.in (install_as_default): Define and set to true
171 unless --enable-gold=both/gold has been specified.
172 * configure: Regenerate.
174 * Makefile.am (transform): Use ld.bfd as the default name of
176 (install-exec-local): Also install the executable as a binary
177 named 'ld' if install_as_default is true.
178 * Makefile.in: Regenerate.
180 2010-04-22 Nick Clifton <nickc@redhat.com>
182 * po/ld.pot: Updated by the Translation project.
183 * po/vi.po: Updated Vietnamese translation.
184 * po/bg.po: Updated Bulgarian translation.
186 2010-04-15 Andrew Haley <aph@redhat.com>
188 * emultempl/armelf.em (merge_exidx_entries): New variable.
189 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
190 ("no-merge-exidx-entries"): New option.
191 * ld.texinfo (merge-exidx-entries): Document this option.
193 2010-04-14 Tristan Gingold <gingold@adacore.com>
195 * emulparams/alphavms.sh: New file.
196 * emultempl/vms.em: New file.
197 * scripttempl/alphavms.sc: New file.
198 * configure.tgt (alpha*-*-*vms*): Added.
199 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
200 (ealphavms.c): New target.
201 * Makefile.in: Regenerate.
203 2010-04-09 Nick Clifton <nickc@redhat.com>
205 * ldlang.c (wild_sort): Remove unused variable section_name.
207 2010-04-07 Alan Modra <amodra@gmail.com>
209 * configure: Regenerate.
211 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
214 * ld/testsuite/ld-x86-64/unique1.d: New.
215 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
217 * ld-x86-64/x86-64.exp: Run unique1.
219 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
221 * emultempl/pep.em (U): Macro modified.
222 (U_SIZE): New helper macro.
223 (GET_INIT_SYMBOL_NAME): Likewise.
224 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
225 and OPTION_LEADING_UNDERSCORE enumerator-values.
226 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
228 (definfo): Add new member is_c_symbol.
229 (D): Add to macro underscore mode parameter.
230 (init): Add definition for is_c_symbol.
231 (gld_${EMULATION_NAME}_list_options): Display new options.
232 (set_pep_name): Adjust underscoring dependent fixed
234 (gld_${EMULATION_NAME}_set_symbols): Likewise.
235 (saw_option): Likewise.
236 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
237 (set_entry_point): Initial initial_symbol_char dependent to
238 target's default and new option flag pep_leading_underscore.
239 * emultempl/pe.em (U): Macro modified.
240 (U_SIZE): New helper macro.
241 (GET_INIT_SYMBOL_NAME): Likewise.
242 (OPTION_LEADING_UNDERSCORE): Add new option define.
243 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
244 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
246 (definfo): Add new member is_c_symbol.
247 (D): Add to macro underscore mode parameter.
248 (init): Add definition for is_c_symbol.
249 (gld_${EMULATION_NAME}_list_options): Display new options.
250 (set_pep_name): Adjust underscoring dependent fixed
252 (gld_${EMULATION_NAME}_set_symbols): Likewise.
253 (saw_option): Likewise.
254 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
255 (set_entry_point): Initial initial_symbol_char dependent to
256 target's default and new option flag pep_leading_underscore.
257 * pe-dll.c (pe_leading_underscore): New flag variable.
258 (pe_detail_list): Remove const to allow modify of
260 (pe_dll_id_target): Initialize pe_details' underscore variable
261 dependent to target's default and flag pe_leading_underscore.
262 * pe-dll.h (pe_leading_underscore): Add extern declaration of
264 * pep-dll.c (pe_leading_underscore): Add alias define for
265 pep_leading_underscore.
266 * pep-dll.h (pep_leading_underscore) Add extern declaration of
268 * ld.texinfo: Add documentation for --(no-)leading-underscore
271 2010-03-26 Alan Modra <amodra@gmail.com>
274 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
275 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
277 2010-03-25 Joseph Myers <joseph@codesourcery.com>
279 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
281 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
282 * NEWS: Add news entry for TI C6X support.
283 * configure.tgt (tic6x-*-*): New.
284 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
286 2010-03-23 Joseph Myers <joseph@codesourcery.com>
288 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
289 BSS_NAME): Define if not already defined. Use in place of some
290 hardcoded section names.
292 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
294 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
296 2010-03-18 Aymeric Vincent <vincent@labri.fr>
299 * emultempl/sh64elf.em: Add missing EOF.
301 2010-03-18 Doug Semler <dougsemler@gmail.com>
303 * pe-dll.c (make_one): Make text section readonly.
304 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
305 the jump stub on X86 as /SAFESEH compatible for
308 2010-03-17 Alan Modra <amodra@gmail.com>
310 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
311 *prev instead. Update all callers.
313 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
315 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
316 region and phdrs as their placement section.
318 2010-03-15 Alan Modra <amodra@gmail.com>
320 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
321 (ppc_before_allocation): Call sort_toc_sections.
322 (no_toc_sort, OPTION_NO_TOC_SORT): New.
323 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
324 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
326 2010-03-14 Alan Modra <amodra@gmail.com>
329 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
330 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
332 2010-03-11 George Gensure <werkt0@gmail.com>
335 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
337 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
339 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
341 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
342 (eelf32_sparc_sol2.c): New rule.
343 (eelf64_sparc_sol2.c): Likewise.
344 (eelf_x86_64_sol2.c): Likewise.
345 (eelf_i386_sol2.c): Likewise.
346 * Makefile.in: Regenerate.
347 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
349 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
350 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
351 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
352 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
353 Add target_extra_emuls.
354 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
355 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
356 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
357 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
358 * emulparams/elf32_sparc_sol2.sh: New file.
359 * emulparams/elf64_sparc_sol2.sh: New file.
360 * emulparams/elf_i386_sol2.sh: New file.
361 * emulparams/elf_x86_64_sol2.sh: New file.
362 * emultempl/solaris2.em: New file.
364 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
367 * ld.texinfo: Replace explicitely with explicitly.
369 2010-02-27 Jie Zhang <jie@codesourcery.com>
371 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
372 .fini_array.* when do relocatable linking.
373 * scripttempl/elf.sc: Likewise.
374 * scripttempl/elf32sh-symbian.sc: Likewise.
375 * scripttempl/elf64hppa.sc: Likewise.
376 * scripttempl/elfxtensa.sc: Likewise.
378 2010-02-26 Alan Modra <amodra@gmail.com>
380 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
382 * scripttempl/armbpabi.sc: Likewise.
383 * scripttempl/elf32sh-symbian.sc: Likewise.
384 * scripttempl/elf64hppa.sc: Likewise.
385 * scripttempl/elfxtensa.sc: Likewise.
387 2010-02-25 Alan Modra <amodra@gmail.com>
390 * ldlang.c (init_os): Remove isec param. Don't check for
391 bfd_section already set or call bfd_init_private_section_data
393 (exp_init_os): Update init_os call.
394 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
395 flags. Call bfd_init_private_section_data here.
396 (map_input_to_output_sections): Tidy. Update init_os calls.
397 Use os->sectype to select sec flags for lang_data_statement.
399 2010-02-23 Alan Modra <amodra@gmail.com>
402 * ldlang.c: Revert last patch.
404 2010-02-23 Nick Clifton <nickc@redhat.com>
406 * po/bg.po: Updated Bulgarian translation.
408 2010-02-22 Alan Modra <amodra@gmail.com>
411 * ldlang.c (exp_init_os): Delete forward declaration.
412 (init_os): Don't check for bfd_section already created and don't
413 init addr_tree and load_base expressions here.
414 (map_input_to_output_sections): Only map input to output sections
415 and set constraints here, and as an exception, create output
416 sections which have their address set. Move all the other code to..
417 (create_other_output_sections): ..here. New function. Handle init
418 of addr_tree and load_base here too.
419 (lang_process): Call create_other_output_sections.
421 2010-02-19 Alan Modra <amodra@gmail.com>
423 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
424 * Makefile.in: Regenerate.
426 2010-02-19 Alan Modra <amodra@gmail.com>
428 * ldlang.c (unique_section_p): Add os param. Allow group
429 sections to match /DISCARD/. Update all callers.
430 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
431 (LDEMUL_BEFORE_ALLOCATION): Define.
433 2010-02-15 Nick Clifton <nickc@redhat.com>
435 * po/vi.po: Updated Vietnamese translation.
437 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
439 * Makefile.am (CFILES): Add ldlex-wrapper.c.
440 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
441 (ldlex.o): Replace with...
442 (ldlex-wrapper.o): ...this new rule.
443 (EXTRA_ld_new_SOURCES): Add ldlex.l.
444 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
445 * Makefile.in: Regenerate.
446 * ldlex.l (sysdep.h): Don't include here.
447 * ldlex-wrapper.c: New file.
449 2010-02-09 Alan Modra <amodra@gmail.com>
451 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
454 2010-02-05 Nick Clifton <nickc@redhat.com>
456 * configure.in (ALL_LIBGUAS): Add bg.
457 * configure: Regenerate.
458 * po/bg.po: New Bulgarian translation.
460 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
462 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
463 --target1-abs and --target1-rel options.
465 2010-02-03 Nick Clifton <nickc@redhat.com>
467 * emultempl/alphaelf.em: Update value expected from elf_object_id.
468 * emultempl/hppaelf.em: Likewise.
469 * emultempl/mipself.em: Likewise.
470 * emultempl/ppc32elf.em: Likewise.
471 * emultempl/ppc64elf.em: Likewise.
473 2010-02-03 Alan Modra <amodra@gmail.com>
475 * emultempl/ppc64elf.em (build_toc_list): Report errors from
476 ppc64_elf_next_toc_section.
477 (after_allocation): Update for changed function names and params.
478 Run second pass of multitoc partitioning.
480 2010-01-21 Jon Grant <jg@jguk.org>
481 Nick Clifton <nickc@redhat.com>
484 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
485 a missing file or library. Instead mark the entry as missing and
486 set the global flag to indicate that missing files were
488 * ldlang.c (missing_files): New exported variable.
489 (load_symbols): Skip loading if the file is missing.
490 (open_input_bfds): Terminate link if any input files were
492 * ldlang.h (struct lang_input_statement_struct): Add missing_file
494 Add export of missing_file variable.
496 2010-01-13 DJ Delorie <dj@redhat.com>
498 * emultempl/elf32.em (_place_orphan): If an input section doesn't
499 match an existing output section, but an unused output section
500 statement does match, use it.
501 * emultempl/pe.em (_place_orphan): Likewise.
502 * emultempl/pep.em (_place_orphan): Likewise.
504 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
506 * configure: Regenerate.
507 * Makefile.in: Regenerate.
509 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
511 * ldver.c (ldversion): Change to "Copyright 2010".
513 2010-01-08 Alan Modra <amodra@gmail.com>
516 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
518 For older changes see ChangeLog-2009
524 version-control: never