1 2010-06-15 Joseph Myers <joseph@codesourcery.com>
3 * emulparams/elf32_tic6x_le.sh (ATTRS_SECTIONS): Define.
5 2010-06-09 Dave Korn <dave.korn.cygwin@gmail.com>
8 * pe-dll.c (process_def_file_and_drectve): Reorder check for
9 forwarded export name after check for ordinary export.
11 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
13 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
15 2010-06-08 Nick Clifton <nickc@redhat.com>
17 * fdl.texi: Replace with v1.3 text.
18 * ld.texinfo: Replace abbreviated 20th century year numbers with
20 * ldint.texinfo: Likewise.
21 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
22 include of the fdl.texi file.
24 2010-06-01 Tristan Gingold <gingold@adacore.com>
26 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
27 readonly output-section. Handle LIB$INITIALIZE and sections
29 * emultempl/vms.em (vms_place_orphan): Add comments.
31 2010-05-28 Nick Clifton <nickc@redhat.com>
33 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
34 * Makefile.in: Regenerate.
36 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
39 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
40 multiple of maximum page size.
42 2010-05-25 Nick Clifton <nickc@redhat.com>
44 * Makefile.am: Fix typo.
45 * Makefile.in: Regenerate.
47 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
48 Joseph Myers <joseph@codesourcery.com>
49 Andrew Stubbs <ams@codesourcery.com>
51 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
52 (eshelf_fd.c, eshlelf_fd.c): New rules.
53 * Makefile.in: Regenerate.
54 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
56 * emulparams/shelf_fd.sh: New file.
57 * emulparams/shlelf_fd.sh: New file.
58 * emulparams/shlelf_linux.sh: Update comment.
60 2010-05-25 Jay Krell <jay.krell@cornell.edu>
63 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
64 * Makefile.in: Regenerate.
66 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
68 * deffilep.y (opt_name): Allow leading dot.
70 (anylang_id): Likewise.
71 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
73 (gld${EMULATION_NAME}_handle_option): Warn about v1.
74 (pep_find_data_imports): Remove superflous warnings about
76 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
77 and active pseudo-relocation-v2 rdata into data section.
78 * emultempl/pe.em (default_merge_rdata): New shell variable.
79 (MERGE_RDATA_V2): New macro.
80 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
83 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
85 * emultempl/pe.em (is_underscoring): New helper function.
86 (gld_${EMULATION_NAME}_before_parse): Replace code
87 for pe(p)_leading_underscore detection by is_underscoring.
89 (GET_INIT_SYMBOL_NAME): Likewise.
93 (gld_${EMULATION_NAME}_set_symbols):
94 * emultempl/pep.em: Likewise.
95 * pe-dll.c (pe_detail_list): Set default
96 underscoring for x64 target.
97 (pe_dll_id_target): Add initialization of
98 pe(p)_leading_underscore.
100 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
102 * pe-dll.c: Removed trailing whitespaces.
104 2010-05-14 Alan Modra <amodra@gmail.com>
107 * ldexp.c (exp_fold_tree_1): If assignment source expression is
108 invalid, make the destination symbol undefined.
110 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
112 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
113 Initialize pe(p)_leading_underscore variable.
114 (set_pe_name): Likewise.
115 * emultempl/pep.em: Likewise.
116 Additional change default to non-underscore for
117 pep_leading_underscore equal to -1.
119 2010-05-07 Tristan Gingold <gingold@adacore.com>
121 * Makefile.in: Regenerate with automake 1.11.1.
124 2010-05-05 Nick Clifton <nickc@redhat.com>
126 * po/es.po: Updated Spanish translation.
128 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
130 * pe-dll.c (_nm_-symbols): Use always underscored variant
132 (__imp_-symbols): Likewise.
133 (___imp_-symbols): Likewise.
134 * NEWS: Mention ABI change for x64 PE-COFF.
136 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
138 * Makefile.am (install-exec-local): Properly install ld as
139 default cross linker.
140 * Makefile.in: Regenerated.
142 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
143 Nick Clifton <nickc@redhat.com>
145 * configure.in (install_as_default): Define and set to true
146 unless --enable-gold=both/gold has been specified.
147 * configure: Regenerate.
149 * Makefile.am (transform): Use ld.bfd as the default name of
151 (install-exec-local): Also install the executable as a binary
152 named 'ld' if install_as_default is true.
153 * Makefile.in: Regenerate.
155 2010-04-22 Nick Clifton <nickc@redhat.com>
157 * po/ld.pot: Updated by the Translation project.
158 * po/vi.po: Updated Vietnamese translation.
159 * po/bg.po: Updated Bulgarian translation.
161 2010-04-15 Andrew Haley <aph@redhat.com>
163 * emultempl/armelf.em (merge_exidx_entries): New variable.
164 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
165 ("no-merge-exidx-entries"): New option.
166 * ld.texinfo (merge-exidx-entries): Document this option.
168 2010-04-14 Tristan Gingold <gingold@adacore.com>
170 * emulparams/alphavms.sh: New file.
171 * emultempl/vms.em: New file.
172 * scripttempl/alphavms.sc: New file.
173 * configure.tgt (alpha*-*-*vms*): Added.
174 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
175 (ealphavms.c): New target.
176 * Makefile.in: Regenerate.
178 2010-04-09 Nick Clifton <nickc@redhat.com>
180 * ldlang.c (wild_sort): Remove unused variable section_name.
182 2010-04-07 Alan Modra <amodra@gmail.com>
184 * configure: Regenerate.
186 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
189 * ld/testsuite/ld-x86-64/unique1.d: New.
190 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
192 * ld-x86-64/x86-64.exp: Run unique1.
194 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
196 * emultempl/pep.em (U): Macro modified.
197 (U_SIZE): New helper macro.
198 (GET_INIT_SYMBOL_NAME): Likewise.
199 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
200 and OPTION_LEADING_UNDERSCORE enumerator-values.
201 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
203 (definfo): Add new member is_c_symbol.
204 (D): Add to macro underscore mode parameter.
205 (init): Add definition for is_c_symbol.
206 (gld_${EMULATION_NAME}_list_options): Display new options.
207 (set_pep_name): Adjust underscoring dependent fixed
209 (gld_${EMULATION_NAME}_set_symbols): Likewise.
210 (saw_option): Likewise.
211 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
212 (set_entry_point): Initial initial_symbol_char dependent to
213 target's default and new option flag pep_leading_underscore.
214 * emultempl/pe.em (U): Macro modified.
215 (U_SIZE): New helper macro.
216 (GET_INIT_SYMBOL_NAME): Likewise.
217 (OPTION_LEADING_UNDERSCORE): Add new option define.
218 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
219 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
221 (definfo): Add new member is_c_symbol.
222 (D): Add to macro underscore mode parameter.
223 (init): Add definition for is_c_symbol.
224 (gld_${EMULATION_NAME}_list_options): Display new options.
225 (set_pep_name): Adjust underscoring dependent fixed
227 (gld_${EMULATION_NAME}_set_symbols): Likewise.
228 (saw_option): Likewise.
229 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
230 (set_entry_point): Initial initial_symbol_char dependent to
231 target's default and new option flag pep_leading_underscore.
232 * pe-dll.c (pe_leading_underscore): New flag variable.
233 (pe_detail_list): Remove const to allow modify of
235 (pe_dll_id_target): Initialize pe_details' underscore variable
236 dependent to target's default and flag pe_leading_underscore.
237 * pe-dll.h (pe_leading_underscore): Add extern declaration of
239 * pep-dll.c (pe_leading_underscore): Add alias define for
240 pep_leading_underscore.
241 * pep-dll.h (pep_leading_underscore) Add extern declaration of
243 * ld.texinfo: Add documentation for --(no-)leading-underscore
246 2010-03-26 Alan Modra <amodra@gmail.com>
249 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
250 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
252 2010-03-25 Joseph Myers <joseph@codesourcery.com>
254 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
256 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
257 * NEWS: Add news entry for TI C6X support.
258 * configure.tgt (tic6x-*-*): New.
259 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
261 2010-03-23 Joseph Myers <joseph@codesourcery.com>
263 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
264 BSS_NAME): Define if not already defined. Use in place of some
265 hardcoded section names.
267 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
269 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
271 2010-03-18 Aymeric Vincent <vincent@labri.fr>
274 * emultempl/sh64elf.em: Add missing EOF.
276 2010-03-18 Doug Semler <dougsemler@gmail.com>
278 * pe-dll.c (make_one): Make text section readonly.
279 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
280 the jump stub on X86 as /SAFESEH compatible for
283 2010-03-17 Alan Modra <amodra@gmail.com>
285 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
286 *prev instead. Update all callers.
288 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
290 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
291 region and phdrs as their placement section.
293 2010-03-15 Alan Modra <amodra@gmail.com>
295 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
296 (ppc_before_allocation): Call sort_toc_sections.
297 (no_toc_sort, OPTION_NO_TOC_SORT): New.
298 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
299 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
301 2010-03-14 Alan Modra <amodra@gmail.com>
304 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
305 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
307 2010-03-11 George Gensure <werkt0@gmail.com>
310 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
312 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
314 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
316 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
317 (eelf32_sparc_sol2.c): New rule.
318 (eelf64_sparc_sol2.c): Likewise.
319 (eelf_x86_64_sol2.c): Likewise.
320 (eelf_i386_sol2.c): Likewise.
321 * Makefile.in: Regenerate.
322 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
324 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
325 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
326 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
327 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
328 Add target_extra_emuls.
329 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
330 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
331 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
332 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
333 * emulparams/elf32_sparc_sol2.sh: New file.
334 * emulparams/elf64_sparc_sol2.sh: New file.
335 * emulparams/elf_i386_sol2.sh: New file.
336 * emulparams/elf_x86_64_sol2.sh: New file.
337 * emultempl/solaris2.em: New file.
339 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
342 * ld.texinfo: Replace explicitely with explicitly.
344 2010-02-27 Jie Zhang <jie@codesourcery.com>
346 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
347 .fini_array.* when do relocatable linking.
348 * scripttempl/elf.sc: Likewise.
349 * scripttempl/elf32sh-symbian.sc: Likewise.
350 * scripttempl/elf64hppa.sc: Likewise.
351 * scripttempl/elfxtensa.sc: Likewise.
353 2010-02-26 Alan Modra <amodra@gmail.com>
355 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
357 * scripttempl/armbpabi.sc: Likewise.
358 * scripttempl/elf32sh-symbian.sc: Likewise.
359 * scripttempl/elf64hppa.sc: Likewise.
360 * scripttempl/elfxtensa.sc: Likewise.
362 2010-02-25 Alan Modra <amodra@gmail.com>
365 * ldlang.c (init_os): Remove isec param. Don't check for
366 bfd_section already set or call bfd_init_private_section_data
368 (exp_init_os): Update init_os call.
369 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
370 flags. Call bfd_init_private_section_data here.
371 (map_input_to_output_sections): Tidy. Update init_os calls.
372 Use os->sectype to select sec flags for lang_data_statement.
374 2010-02-23 Alan Modra <amodra@gmail.com>
377 * ldlang.c: Revert last patch.
379 2010-02-23 Nick Clifton <nickc@redhat.com>
381 * po/bg.po: Updated Bulgarian translation.
383 2010-02-22 Alan Modra <amodra@gmail.com>
386 * ldlang.c (exp_init_os): Delete forward declaration.
387 (init_os): Don't check for bfd_section already created and don't
388 init addr_tree and load_base expressions here.
389 (map_input_to_output_sections): Only map input to output sections
390 and set constraints here, and as an exception, create output
391 sections which have their address set. Move all the other code to..
392 (create_other_output_sections): ..here. New function. Handle init
393 of addr_tree and load_base here too.
394 (lang_process): Call create_other_output_sections.
396 2010-02-19 Alan Modra <amodra@gmail.com>
398 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
399 * Makefile.in: Regenerate.
401 2010-02-19 Alan Modra <amodra@gmail.com>
403 * ldlang.c (unique_section_p): Add os param. Allow group
404 sections to match /DISCARD/. Update all callers.
405 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
406 (LDEMUL_BEFORE_ALLOCATION): Define.
408 2010-02-15 Nick Clifton <nickc@redhat.com>
410 * po/vi.po: Updated Vietnamese translation.
412 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
414 * Makefile.am (CFILES): Add ldlex-wrapper.c.
415 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
416 (ldlex.o): Replace with...
417 (ldlex-wrapper.o): ...this new rule.
418 (EXTRA_ld_new_SOURCES): Add ldlex.l.
419 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
420 * Makefile.in: Regenerate.
421 * ldlex.l (sysdep.h): Don't include here.
422 * ldlex-wrapper.c: New file.
424 2010-02-09 Alan Modra <amodra@gmail.com>
426 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
429 2010-02-05 Nick Clifton <nickc@redhat.com>
431 * configure.in (ALL_LIBGUAS): Add bg.
432 * configure: Regenerate.
433 * po/bg.po: New Bulgarian translation.
435 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
437 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
438 --target1-abs and --target1-rel options.
440 2010-02-03 Nick Clifton <nickc@redhat.com>
442 * emultempl/alphaelf.em: Update value expected from elf_object_id.
443 * emultempl/hppaelf.em: Likewise.
444 * emultempl/mipself.em: Likewise.
445 * emultempl/ppc32elf.em: Likewise.
446 * emultempl/ppc64elf.em: Likewise.
448 2010-02-03 Alan Modra <amodra@gmail.com>
450 * emultempl/ppc64elf.em (build_toc_list): Report errors from
451 ppc64_elf_next_toc_section.
452 (after_allocation): Update for changed function names and params.
453 Run second pass of multitoc partitioning.
455 2010-01-21 Jon Grant <jg@jguk.org>
456 Nick Clifton <nickc@redhat.com>
459 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
460 a missing file or library. Instead mark the entry as missing and
461 set the global flag to indicate that missing files were
463 * ldlang.c (missing_files): New exported variable.
464 (load_symbols): Skip loading if the file is missing.
465 (open_input_bfds): Terminate link if any input files were
467 * ldlang.h (struct lang_input_statement_struct): Add missing_file
469 Add export of missing_file variable.
471 2010-01-13 DJ Delorie <dj@redhat.com>
473 * emultempl/elf32.em (_place_orphan): If an input section doesn't
474 match an existing output section, but an unused output section
475 statement does match, use it.
476 * emultempl/pe.em (_place_orphan): Likewise.
477 * emultempl/pep.em (_place_orphan): Likewise.
479 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
481 * configure: Regenerate.
482 * Makefile.in: Regenerate.
484 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
486 * ldver.c (ldversion): Change to "Copyright 2010".
488 2010-01-08 Alan Modra <amodra@gmail.com>
491 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
493 For older changes see ChangeLog-2009
499 version-control: never