1 2010-06-08 Bernd Schmidt <bernds@codesourcery.com>
3 * emulparams/elf32_tic6x_le.sh (OTHER_BSS_SECTIONS): New.
5 2010-06-08 Nick Clifton <nickc@redhat.com>
7 * fdl.texi: Replace with v1.3 text.
8 * ld.texinfo: Replace abbreviated 20th century year numbers with
10 * ldint.texinfo: Likewise.
11 Relicense under GFDL v1.3. Replace text of v1.1 FDL with an
12 include of the fdl.texi file.
14 2010-06-01 Tristan Gingold <gingold@adacore.com>
16 * scripttempl/alphavms.sc: Add comments. Move $LINK$ to the
17 readonly output-section. Handle LIB$INITIALIZE and sections
19 * emultempl/vms.em (vms_place_orphan): Add comments.
21 2010-05-28 Nick Clifton <nickc@redhat.com>
23 * Makefile.am (eshlelf_fd.c): Fix typo in rule.
24 * Makefile.in: Regenerate.
26 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
29 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
30 multiple of maximum page size.
32 2010-05-25 Nick Clifton <nickc@redhat.com>
34 * Makefile.am: Fix typo.
35 * Makefile.in: Regenerate.
37 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
38 Joseph Myers <joseph@codesourcery.com>
39 Andrew Stubbs <ams@codesourcery.com>
41 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
42 (eshelf_fd.c, eshlelf_fd.c): New rules.
43 * Makefile.in: Regenerate.
44 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
46 * emulparams/shelf_fd.sh: New file.
47 * emulparams/shlelf_fd.sh: New file.
48 * emulparams/shlelf_linux.sh: Update comment.
50 2010-05-25 Jay Krell <jay.krell@cornell.edu>
53 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
54 * Makefile.in: Regenerate.
56 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
58 * deffilep.y (opt_name): Allow leading dot.
60 (anylang_id): Likewise.
61 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
63 (gld${EMULATION_NAME}_handle_option): Warn about v1.
64 (pep_find_data_imports): Remove superflous warnings about
66 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
67 and active pseudo-relocation-v2 rdata into data section.
68 * emultempl/pe.em (default_merge_rdata): New shell variable.
69 (MERGE_RDATA_V2): New macro.
70 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
73 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
75 * emultempl/pe.em (is_underscoring): New helper function.
76 (gld_${EMULATION_NAME}_before_parse): Replace code
77 for pe(p)_leading_underscore detection by is_underscoring.
79 (GET_INIT_SYMBOL_NAME): Likewise.
83 (gld_${EMULATION_NAME}_set_symbols):
84 * emultempl/pep.em: Likewise.
85 * pe-dll.c (pe_detail_list): Set default
86 underscoring for x64 target.
87 (pe_dll_id_target): Add initialization of
88 pe(p)_leading_underscore.
90 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
92 * pe-dll.c: Removed trailing whitespaces.
94 2010-05-14 Alan Modra <amodra@gmail.com>
97 * ldexp.c (exp_fold_tree_1): If assignment source expression is
98 invalid, make the destination symbol undefined.
100 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
102 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
103 Initialize pe(p)_leading_underscore variable.
104 (set_pe_name): Likewise.
105 * emultempl/pep.em: Likewise.
106 Additional change default to non-underscore for
107 pep_leading_underscore equal to -1.
109 2010-05-07 Tristan Gingold <gingold@adacore.com>
111 * Makefile.in: Regenerate with automake 1.11.1.
114 2010-05-05 Nick Clifton <nickc@redhat.com>
116 * po/es.po: Updated Spanish translation.
118 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
120 * pe-dll.c (_nm_-symbols): Use always underscored variant
122 (__imp_-symbols): Likewise.
123 (___imp_-symbols): Likewise.
124 * NEWS: Mention ABI change for x64 PE-COFF.
126 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
128 * Makefile.am (install-exec-local): Properly install ld as
129 default cross linker.
130 * Makefile.in: Regenerated.
132 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
133 Nick Clifton <nickc@redhat.com>
135 * configure.in (install_as_default): Define and set to true
136 unless --enable-gold=both/gold has been specified.
137 * configure: Regenerate.
139 * Makefile.am (transform): Use ld.bfd as the default name of
141 (install-exec-local): Also install the executable as a binary
142 named 'ld' if install_as_default is true.
143 * Makefile.in: Regenerate.
145 2010-04-22 Nick Clifton <nickc@redhat.com>
147 * po/ld.pot: Updated by the Translation project.
148 * po/vi.po: Updated Vietnamese translation.
149 * po/bg.po: Updated Bulgarian translation.
151 2010-04-15 Andrew Haley <aph@redhat.com>
153 * emultempl/armelf.em (merge_exidx_entries): New variable.
154 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
155 ("no-merge-exidx-entries"): New option.
156 * ld.texinfo (merge-exidx-entries): Document this option.
158 2010-04-14 Tristan Gingold <gingold@adacore.com>
160 * emulparams/alphavms.sh: New file.
161 * emultempl/vms.em: New file.
162 * scripttempl/alphavms.sc: New file.
163 * configure.tgt (alpha*-*-*vms*): Added.
164 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
165 (ealphavms.c): New target.
166 * Makefile.in: Regenerate.
168 2010-04-09 Nick Clifton <nickc@redhat.com>
170 * ldlang.c (wild_sort): Remove unused variable section_name.
172 2010-04-07 Alan Modra <amodra@gmail.com>
174 * configure: Regenerate.
176 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
179 * ld/testsuite/ld-x86-64/unique1.d: New.
180 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
182 * ld-x86-64/x86-64.exp: Run unique1.
184 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
186 * emultempl/pep.em (U): Macro modified.
187 (U_SIZE): New helper macro.
188 (GET_INIT_SYMBOL_NAME): Likewise.
189 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
190 and OPTION_LEADING_UNDERSCORE enumerator-values.
191 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
193 (definfo): Add new member is_c_symbol.
194 (D): Add to macro underscore mode parameter.
195 (init): Add definition for is_c_symbol.
196 (gld_${EMULATION_NAME}_list_options): Display new options.
197 (set_pep_name): Adjust underscoring dependent fixed
199 (gld_${EMULATION_NAME}_set_symbols): Likewise.
200 (saw_option): Likewise.
201 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
202 (set_entry_point): Initial initial_symbol_char dependent to
203 target's default and new option flag pep_leading_underscore.
204 * emultempl/pe.em (U): Macro modified.
205 (U_SIZE): New helper macro.
206 (GET_INIT_SYMBOL_NAME): Likewise.
207 (OPTION_LEADING_UNDERSCORE): Add new option define.
208 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
209 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
211 (definfo): Add new member is_c_symbol.
212 (D): Add to macro underscore mode parameter.
213 (init): Add definition for is_c_symbol.
214 (gld_${EMULATION_NAME}_list_options): Display new options.
215 (set_pep_name): Adjust underscoring dependent fixed
217 (gld_${EMULATION_NAME}_set_symbols): Likewise.
218 (saw_option): Likewise.
219 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
220 (set_entry_point): Initial initial_symbol_char dependent to
221 target's default and new option flag pep_leading_underscore.
222 * pe-dll.c (pe_leading_underscore): New flag variable.
223 (pe_detail_list): Remove const to allow modify of
225 (pe_dll_id_target): Initialize pe_details' underscore variable
226 dependent to target's default and flag pe_leading_underscore.
227 * pe-dll.h (pe_leading_underscore): Add extern declaration of
229 * pep-dll.c (pe_leading_underscore): Add alias define for
230 pep_leading_underscore.
231 * pep-dll.h (pep_leading_underscore) Add extern declaration of
233 * ld.texinfo: Add documentation for --(no-)leading-underscore
236 2010-03-26 Alan Modra <amodra@gmail.com>
239 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
240 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
242 2010-03-25 Joseph Myers <joseph@codesourcery.com>
244 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
246 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
247 * NEWS: Add news entry for TI C6X support.
248 * configure.tgt (tic6x-*-*): New.
249 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
251 2010-03-23 Joseph Myers <joseph@codesourcery.com>
253 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
254 BSS_NAME): Define if not already defined. Use in place of some
255 hardcoded section names.
257 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
259 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
261 2010-03-18 Aymeric Vincent <vincent@labri.fr>
264 * emultempl/sh64elf.em: Add missing EOF.
266 2010-03-18 Doug Semler <dougsemler@gmail.com>
268 * pe-dll.c (make_one): Make text section readonly.
269 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
270 the jump stub on X86 as /SAFESEH compatible for
273 2010-03-17 Alan Modra <amodra@gmail.com>
275 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
276 *prev instead. Update all callers.
278 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
280 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
281 region and phdrs as their placement section.
283 2010-03-15 Alan Modra <amodra@gmail.com>
285 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
286 (ppc_before_allocation): Call sort_toc_sections.
287 (no_toc_sort, OPTION_NO_TOC_SORT): New.
288 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
289 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
291 2010-03-14 Alan Modra <amodra@gmail.com>
294 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
295 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
297 2010-03-11 George Gensure <werkt0@gmail.com>
300 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
302 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
304 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
306 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
307 (eelf32_sparc_sol2.c): New rule.
308 (eelf64_sparc_sol2.c): Likewise.
309 (eelf_x86_64_sol2.c): Likewise.
310 (eelf_i386_sol2.c): Likewise.
311 * Makefile.in: Regenerate.
312 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
314 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
315 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
316 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
317 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
318 Add target_extra_emuls.
319 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
320 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
321 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
322 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
323 * emulparams/elf32_sparc_sol2.sh: New file.
324 * emulparams/elf64_sparc_sol2.sh: New file.
325 * emulparams/elf_i386_sol2.sh: New file.
326 * emulparams/elf_x86_64_sol2.sh: New file.
327 * emultempl/solaris2.em: New file.
329 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
332 * ld.texinfo: Replace explicitely with explicitly.
334 2010-02-27 Jie Zhang <jie@codesourcery.com>
336 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
337 .fini_array.* when do relocatable linking.
338 * scripttempl/elf.sc: Likewise.
339 * scripttempl/elf32sh-symbian.sc: Likewise.
340 * scripttempl/elf64hppa.sc: Likewise.
341 * scripttempl/elfxtensa.sc: Likewise.
343 2010-02-26 Alan Modra <amodra@gmail.com>
345 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
347 * scripttempl/armbpabi.sc: Likewise.
348 * scripttempl/elf32sh-symbian.sc: Likewise.
349 * scripttempl/elf64hppa.sc: Likewise.
350 * scripttempl/elfxtensa.sc: Likewise.
352 2010-02-25 Alan Modra <amodra@gmail.com>
355 * ldlang.c (init_os): Remove isec param. Don't check for
356 bfd_section already set or call bfd_init_private_section_data
358 (exp_init_os): Update init_os call.
359 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
360 flags. Call bfd_init_private_section_data here.
361 (map_input_to_output_sections): Tidy. Update init_os calls.
362 Use os->sectype to select sec flags for lang_data_statement.
364 2010-02-23 Alan Modra <amodra@gmail.com>
367 * ldlang.c: Revert last patch.
369 2010-02-23 Nick Clifton <nickc@redhat.com>
371 * po/bg.po: Updated Bulgarian translation.
373 2010-02-22 Alan Modra <amodra@gmail.com>
376 * ldlang.c (exp_init_os): Delete forward declaration.
377 (init_os): Don't check for bfd_section already created and don't
378 init addr_tree and load_base expressions here.
379 (map_input_to_output_sections): Only map input to output sections
380 and set constraints here, and as an exception, create output
381 sections which have their address set. Move all the other code to..
382 (create_other_output_sections): ..here. New function. Handle init
383 of addr_tree and load_base here too.
384 (lang_process): Call create_other_output_sections.
386 2010-02-19 Alan Modra <amodra@gmail.com>
388 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
389 * Makefile.in: Regenerate.
391 2010-02-19 Alan Modra <amodra@gmail.com>
393 * ldlang.c (unique_section_p): Add os param. Allow group
394 sections to match /DISCARD/. Update all callers.
395 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
396 (LDEMUL_BEFORE_ALLOCATION): Define.
398 2010-02-15 Nick Clifton <nickc@redhat.com>
400 * po/vi.po: Updated Vietnamese translation.
402 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
404 * Makefile.am (CFILES): Add ldlex-wrapper.c.
405 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
406 (ldlex.o): Replace with...
407 (ldlex-wrapper.o): ...this new rule.
408 (EXTRA_ld_new_SOURCES): Add ldlex.l.
409 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
410 * Makefile.in: Regenerate.
411 * ldlex.l (sysdep.h): Don't include here.
412 * ldlex-wrapper.c: New file.
414 2010-02-09 Alan Modra <amodra@gmail.com>
416 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
419 2010-02-05 Nick Clifton <nickc@redhat.com>
421 * configure.in (ALL_LIBGUAS): Add bg.
422 * configure: Regenerate.
423 * po/bg.po: New Bulgarian translation.
425 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
427 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
428 --target1-abs and --target1-rel options.
430 2010-02-03 Nick Clifton <nickc@redhat.com>
432 * emultempl/alphaelf.em: Update value expected from elf_object_id.
433 * emultempl/hppaelf.em: Likewise.
434 * emultempl/mipself.em: Likewise.
435 * emultempl/ppc32elf.em: Likewise.
436 * emultempl/ppc64elf.em: Likewise.
438 2010-02-03 Alan Modra <amodra@gmail.com>
440 * emultempl/ppc64elf.em (build_toc_list): Report errors from
441 ppc64_elf_next_toc_section.
442 (after_allocation): Update for changed function names and params.
443 Run second pass of multitoc partitioning.
445 2010-01-21 Jon Grant <jg@jguk.org>
446 Nick Clifton <nickc@redhat.com>
449 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
450 a missing file or library. Instead mark the entry as missing and
451 set the global flag to indicate that missing files were
453 * ldlang.c (missing_files): New exported variable.
454 (load_symbols): Skip loading if the file is missing.
455 (open_input_bfds): Terminate link if any input files were
457 * ldlang.h (struct lang_input_statement_struct): Add missing_file
459 Add export of missing_file variable.
461 2010-01-13 DJ Delorie <dj@redhat.com>
463 * emultempl/elf32.em (_place_orphan): If an input section doesn't
464 match an existing output section, but an unused output section
465 statement does match, use it.
466 * emultempl/pe.em (_place_orphan): Likewise.
467 * emultempl/pep.em (_place_orphan): Likewise.
469 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
471 * configure: Regenerate.
472 * Makefile.in: Regenerate.
474 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
476 * ldver.c (ldversion): Change to "Copyright 2010".
478 2010-01-08 Alan Modra <amodra@gmail.com>
481 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
483 For older changes see ChangeLog-2009
489 version-control: never