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