1 2010-05-26 H.J. Lu <hongjiu.lu@intel.com>
4 * ldexp.c (fold_binary): Warn if value of SEGMENT_START isn't
5 multiple of maximum page size.
7 2010-05-25 Nick Clifton <nickc@redhat.com>
9 * Makefile.am: Fix typo.
10 * Makefile.in: Regenerate.
12 2010-05-25 Daniel Jacobowitz <dan@codesourcery.com>
13 Joseph Myers <joseph@codesourcery.com>
14 Andrew Stubbs <ams@codesourcery.com>
16 * Makefile.am (ALL_EMULATIONS): Add eshelf_fd.o and eshlelf_fd.o.
17 (eshelf_fd.c, eshlelf_fd.c): New rules.
18 * Makefile.in: Regenerate.
19 * configure.tgt (sh-*-uclinux*): Add shelf_fd and shlelf_fd
21 * emulparams/shelf_fd.sh: New file.
22 * emulparams/shlelf_fd.sh: New file.
23 * emulparams/shlelf_linux.sh: Update comment.
25 2010-05-25 Jay Krell <jay.krell@cornell.edu>
28 * Makefile.am: Replace all occurences of .o with .@OBJEXT@
29 * Makefile.in: Regenerate.
31 2010-05-25 Kai Tietz <kai.tietz@onevision.com>
33 * deffilep.y (opt_name): Allow leading dot.
35 (anylang_id): Likewise.
36 * emultempl/pep.em (gld_${EMULATION_NAME}_before_parse): Enable by
38 (gld${EMULATION_NAME}_handle_option): Warn about v1.
39 (pep_find_data_imports): Remove superflous warnings about
41 (gld_${EMULATION_NAME}_get_script): Don't merge for auto-import
42 and active pseudo-relocation-v2 rdata into data section.
43 * emultempl/pe.em (default_merge_rdata): New shell variable.
44 (MERGE_RDATA_V2): New macro.
45 (gld_${EMULATION_NAME}_get_script): Adjust rule for auto-import
48 2010-05-15 Kai Tietz <kai.tietz@onevision.com>
50 * emultempl/pe.em (is_underscoring): New helper function.
51 (gld_${EMULATION_NAME}_before_parse): Replace code
52 for pe(p)_leading_underscore detection by is_underscoring.
54 (GET_INIT_SYMBOL_NAME): Likewise.
58 (gld_${EMULATION_NAME}_set_symbols):
59 * emultempl/pep.em: Likewise.
60 * pe-dll.c (pe_detail_list): Set default
61 underscoring for x64 target.
62 (pe_dll_id_target): Add initialization of
63 pe(p)_leading_underscore.
65 2010-05-15 Dave Korn <dave.korn.cygwin@gmail.com>
67 * pe-dll.c: Removed trailing whitespaces.
69 2010-05-14 Alan Modra <amodra@gmail.com>
72 * ldexp.c (exp_fold_tree_1): If assignment source expression is
73 invalid, make the destination symbol undefined.
75 2010-05-11 Kai Tietz <kai.tietz@onevision.com>
77 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
78 Initialize pe(p)_leading_underscore variable.
79 (set_pe_name): Likewise.
80 * emultempl/pep.em: Likewise.
81 Additional change default to non-underscore for
82 pep_leading_underscore equal to -1.
84 2010-05-07 Tristan Gingold <gingold@adacore.com>
86 * Makefile.in: Regenerate with automake 1.11.1.
89 2010-05-05 Nick Clifton <nickc@redhat.com>
91 * po/es.po: Updated Spanish translation.
93 2010-04-27 Kai Tietz <kai.tietz@onevision.com>
95 * pe-dll.c (_nm_-symbols): Use always underscored variant
97 (__imp_-symbols): Likewise.
98 (___imp_-symbols): Likewise.
99 * NEWS: Mention ABI change for x64 PE-COFF.
101 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
103 * Makefile.am (install-exec-local): Properly install ld as
104 default cross linker.
105 * Makefile.in: Regenerated.
107 2010-04-27 H.J. Lu <hongjiu.lu@intel.com>
108 Nick Clifton <nickc@redhat.com>
110 * configure.in (install_as_default): Define and set to true
111 unless --enable-gold=both/gold has been specified.
112 * configure: Regenerate.
114 * Makefile.am (transform): Use ld.bfd as the default name of
116 (install-exec-local): Also install the executable as a binary
117 named 'ld' if install_as_default is true.
118 * Makefile.in: Regenerate.
120 2010-04-22 Nick Clifton <nickc@redhat.com>
122 * po/ld.pot: Updated by the Translation project.
123 * po/vi.po: Updated Vietnamese translation.
124 * po/bg.po: Updated Bulgarian translation.
126 2010-04-15 Andrew Haley <aph@redhat.com>
128 * emultempl/armelf.em (merge_exidx_entries): New variable.
129 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
130 ("no-merge-exidx-entries"): New option.
131 * ld.texinfo (merge-exidx-entries): Document this option.
133 2010-04-14 Tristan Gingold <gingold@adacore.com>
135 * emulparams/alphavms.sh: New file.
136 * emultempl/vms.em: New file.
137 * scripttempl/alphavms.sc: New file.
138 * configure.tgt (alpha*-*-*vms*): Added.
139 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
140 (ealphavms.c): New target.
141 * Makefile.in: Regenerate.
143 2010-04-09 Nick Clifton <nickc@redhat.com>
145 * ldlang.c (wild_sort): Remove unused variable section_name.
147 2010-04-07 Alan Modra <amodra@gmail.com>
149 * configure: Regenerate.
151 2010-04-06 H.J. Lu <hongjiu.lu@intel.com>
154 * ld/testsuite/ld-x86-64/unique1.d: New.
155 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
157 * ld-x86-64/x86-64.exp: Run unique1.
159 2010-04-05 Kai Tietz <kai.tietz@onevision.com>
161 * emultempl/pep.em (U): Macro modified.
162 (U_SIZE): New helper macro.
163 (GET_INIT_SYMBOL_NAME): Likewise.
164 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
165 and OPTION_LEADING_UNDERSCORE enumerator-values.
166 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
168 (definfo): Add new member is_c_symbol.
169 (D): Add to macro underscore mode parameter.
170 (init): Add definition for is_c_symbol.
171 (gld_${EMULATION_NAME}_list_options): Display new options.
172 (set_pep_name): Adjust underscoring dependent fixed
174 (gld_${EMULATION_NAME}_set_symbols): Likewise.
175 (saw_option): Likewise.
176 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
177 (set_entry_point): Initial initial_symbol_char dependent to
178 target's default and new option flag pep_leading_underscore.
179 * emultempl/pe.em (U): Macro modified.
180 (U_SIZE): New helper macro.
181 (GET_INIT_SYMBOL_NAME): Likewise.
182 (OPTION_LEADING_UNDERSCORE): Add new option define.
183 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
184 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
186 (definfo): Add new member is_c_symbol.
187 (D): Add to macro underscore mode parameter.
188 (init): Add definition for is_c_symbol.
189 (gld_${EMULATION_NAME}_list_options): Display new options.
190 (set_pep_name): Adjust underscoring dependent fixed
192 (gld_${EMULATION_NAME}_set_symbols): Likewise.
193 (saw_option): Likewise.
194 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
195 (set_entry_point): Initial initial_symbol_char dependent to
196 target's default and new option flag pep_leading_underscore.
197 * pe-dll.c (pe_leading_underscore): New flag variable.
198 (pe_detail_list): Remove const to allow modify of
200 (pe_dll_id_target): Initialize pe_details' underscore variable
201 dependent to target's default and flag pe_leading_underscore.
202 * pe-dll.h (pe_leading_underscore): Add extern declaration of
204 * pep-dll.c (pe_leading_underscore): Add alias define for
205 pep_leading_underscore.
206 * pep-dll.h (pep_leading_underscore) Add extern declaration of
208 * ld.texinfo: Add documentation for --(no-)leading-underscore
211 2010-03-26 Alan Modra <amodra@gmail.com>
214 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
215 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
217 2010-03-25 Joseph Myers <joseph@codesourcery.com>
219 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
221 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
222 * NEWS: Add news entry for TI C6X support.
223 * configure.tgt (tic6x-*-*): New.
224 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
226 2010-03-23 Joseph Myers <joseph@codesourcery.com>
228 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
229 BSS_NAME): Define if not already defined. Use in place of some
230 hardcoded section names.
232 2010-03-18 H.J. Lu <hongjiu.lu@intel.com>
234 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
236 2010-03-18 Aymeric Vincent <vincent@labri.fr>
239 * emultempl/sh64elf.em: Add missing EOF.
241 2010-03-18 Doug Semler <dougsemler@gmail.com>
243 * pe-dll.c (make_one): Make text section readonly.
244 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
245 the jump stub on X86 as /SAFESEH compatible for
248 2010-03-17 Alan Modra <amodra@gmail.com>
250 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
251 *prev instead. Update all callers.
253 2010-03-15 Daniel Jacobowitz <dan@codesourcery.com>
255 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
256 region and phdrs as their placement section.
258 2010-03-15 Alan Modra <amodra@gmail.com>
260 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
261 (ppc_before_allocation): Call sort_toc_sections.
262 (no_toc_sort, OPTION_NO_TOC_SORT): New.
263 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
264 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
266 2010-03-14 Alan Modra <amodra@gmail.com>
269 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
270 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
272 2010-03-11 George Gensure <werkt0@gmail.com>
275 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
277 2010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
279 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
281 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
282 (eelf32_sparc_sol2.c): New rule.
283 (eelf64_sparc_sol2.c): Likewise.
284 (eelf_x86_64_sol2.c): Likewise.
285 (eelf_i386_sol2.c): Likewise.
286 * Makefile.in: Regenerate.
287 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
289 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
290 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
291 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
292 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
293 Add target_extra_emuls.
294 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
295 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
296 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
297 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
298 * emulparams/elf32_sparc_sol2.sh: New file.
299 * emulparams/elf64_sparc_sol2.sh: New file.
300 * emulparams/elf_i386_sol2.sh: New file.
301 * emulparams/elf_x86_64_sol2.sh: New file.
302 * emultempl/solaris2.em: New file.
304 2010-02-27 H.J. Lu <hongjiu.lu@intel.com>
307 * ld.texinfo: Replace explicitely with explicitly.
309 2010-02-27 Jie Zhang <jie@codesourcery.com>
311 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
312 .fini_array.* when do relocatable linking.
313 * scripttempl/elf.sc: Likewise.
314 * scripttempl/elf32sh-symbian.sc: Likewise.
315 * scripttempl/elf64hppa.sc: Likewise.
316 * scripttempl/elfxtensa.sc: Likewise.
318 2010-02-26 Alan Modra <amodra@gmail.com>
320 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
322 * scripttempl/armbpabi.sc: Likewise.
323 * scripttempl/elf32sh-symbian.sc: Likewise.
324 * scripttempl/elf64hppa.sc: Likewise.
325 * scripttempl/elfxtensa.sc: Likewise.
327 2010-02-25 Alan Modra <amodra@gmail.com>
330 * ldlang.c (init_os): Remove isec param. Don't check for
331 bfd_section already set or call bfd_init_private_section_data
333 (exp_init_os): Update init_os call.
334 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
335 flags. Call bfd_init_private_section_data here.
336 (map_input_to_output_sections): Tidy. Update init_os calls.
337 Use os->sectype to select sec flags for lang_data_statement.
339 2010-02-23 Alan Modra <amodra@gmail.com>
342 * ldlang.c: Revert last patch.
344 2010-02-23 Nick Clifton <nickc@redhat.com>
346 * po/bg.po: Updated Bulgarian translation.
348 2010-02-22 Alan Modra <amodra@gmail.com>
351 * ldlang.c (exp_init_os): Delete forward declaration.
352 (init_os): Don't check for bfd_section already created and don't
353 init addr_tree and load_base expressions here.
354 (map_input_to_output_sections): Only map input to output sections
355 and set constraints here, and as an exception, create output
356 sections which have their address set. Move all the other code to..
357 (create_other_output_sections): ..here. New function. Handle init
358 of addr_tree and load_base here too.
359 (lang_process): Call create_other_output_sections.
361 2010-02-19 Alan Modra <amodra@gmail.com>
363 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
364 * Makefile.in: Regenerate.
366 2010-02-19 Alan Modra <amodra@gmail.com>
368 * ldlang.c (unique_section_p): Add os param. Allow group
369 sections to match /DISCARD/. Update all callers.
370 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
371 (LDEMUL_BEFORE_ALLOCATION): Define.
373 2010-02-15 Nick Clifton <nickc@redhat.com>
375 * po/vi.po: Updated Vietnamese translation.
377 2010-02-10 Richard Sandiford <r.sandiford@uk.ibm.com>
379 * Makefile.am (CFILES): Add ldlex-wrapper.c.
380 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
381 (ldlex.o): Replace with...
382 (ldlex-wrapper.o): ...this new rule.
383 (EXTRA_ld_new_SOURCES): Add ldlex.l.
384 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
385 * Makefile.in: Regenerate.
386 * ldlex.l (sysdep.h): Don't include here.
387 * ldlex-wrapper.c: New file.
389 2010-02-09 Alan Modra <amodra@gmail.com>
391 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
394 2010-02-05 Nick Clifton <nickc@redhat.com>
396 * configure.in (ALL_LIBGUAS): Add bg.
397 * configure: Regenerate.
398 * po/bg.po: New Bulgarian translation.
400 2010-02-05 Ryan Mansfield <rmansfield@qnx.com>
402 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
403 --target1-abs and --target1-rel options.
405 2010-02-03 Nick Clifton <nickc@redhat.com>
407 * emultempl/alphaelf.em: Update value expected from elf_object_id.
408 * emultempl/hppaelf.em: Likewise.
409 * emultempl/mipself.em: Likewise.
410 * emultempl/ppc32elf.em: Likewise.
411 * emultempl/ppc64elf.em: Likewise.
413 2010-02-03 Alan Modra <amodra@gmail.com>
415 * emultempl/ppc64elf.em (build_toc_list): Report errors from
416 ppc64_elf_next_toc_section.
417 (after_allocation): Update for changed function names and params.
418 Run second pass of multitoc partitioning.
420 2010-01-21 Jon Grant <jg@jguk.org>
421 Nick Clifton <nickc@redhat.com>
424 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
425 a missing file or library. Instead mark the entry as missing and
426 set the global flag to indicate that missing files were
428 * ldlang.c (missing_files): New exported variable.
429 (load_symbols): Skip loading if the file is missing.
430 (open_input_bfds): Terminate link if any input files were
432 * ldlang.h (struct lang_input_statement_struct): Add missing_file
434 Add export of missing_file variable.
436 2010-01-13 DJ Delorie <dj@redhat.com>
438 * emultempl/elf32.em (_place_orphan): If an input section doesn't
439 match an existing output section, but an unused output section
440 statement does match, use it.
441 * emultempl/pe.em (_place_orphan): Likewise.
442 * emultempl/pep.em (_place_orphan): Likewise.
444 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
446 * configure: Regenerate.
447 * Makefile.in: Regenerate.
449 2010-01-08 H.J. Lu <hongjiu.lu@intel.com>
451 * ldver.c (ldversion): Change to "Copyright 2010".
453 2010-01-08 Alan Modra <amodra@gmail.com>
456 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
458 For older changes see ChangeLog-2009
464 version-control: never