4 * ldexp.c (exp_fold_tree_1): If assignment source expression is
5 invalid, make the destination symbol undefined.
9 * emultempl/pe.em (gld_${EMULATION_NAME}_before_parse):
10 Initialize pe(p)_leading_underscore variable.
11 (set_pe_name): Likewise.
12 * emultempl/pep.em: Likewise.
13 Additional change default to non-underscore for
14 pep_leading_underscore equal to -1.
18 * Makefile.in: Regenerate with automake 1.11.1.
23 * po/es.po: Updated Spanish translation.
27 * pe-dll.c (_nm_-symbols): Use always underscored variant
29 (__imp_-symbols): Likewise.
30 (___imp_-symbols): Likewise.
31 * NEWS: Mention ABI change for x64 PE-COFF.
35 * Makefile.am (install-exec-local): Properly install ld as
37 * Makefile.in: Regenerated.
42 * configure.in (install_as_default): Define and set to true
43 unless --enable-gold=both/gold has been specified.
44 * configure: Regenerate.
46 * Makefile.am (transform): Use ld.bfd as the default name of
48 (install-exec-local): Also install the executable as a binary
49 named 'ld' if install_as_default is true.
50 * Makefile.in: Regenerate.
54 * po/ld.pot: Updated by the Translation project.
55 * po/vi.po: Updated Vietnamese translation.
56 * po/bg.po: Updated Bulgarian translation.
60 * emultempl/armelf.em (merge_exidx_entries): New variable.
61 (OPTION_NO_MERGE_EXIDX_ENTRIES): New definition.
62 ("no-merge-exidx-entries"): New option.
63 * ld.texinfo (merge-exidx-entries): Document this option.
67 * emulparams/alphavms.sh: New file.
68 * emultempl/vms.em: New file.
69 * scripttempl/alphavms.sc: New file.
70 * configure.tgt (alpha*-*-*vms*): Added.
71 * Makefile.am (ALL_EMULATIONS): Add ealphavms.o
72 (ealphavms.c): New target.
73 * Makefile.in: Regenerate.
77 * ldlang.c (wild_sort): Remove unused variable section_name.
81 * configure: Regenerate.
86 * ld/testsuite/ld-x86-64/unique1.d: New.
87 * ld/testsuite/ld-x86-64/unique1.s: Likewise.
89 * ld-x86-64/x86-64.exp: Run unique1.
93 * emultempl/pep.em (U): Macro modified.
94 (U_SIZE): New helper macro.
95 (GET_INIT_SYMBOL_NAME): Likewise.
96 (enum options): Add OPTION_NO_LEADING_UNDERSCORE
97 and OPTION_LEADING_UNDERSCORE enumerator-values.
98 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
100 (definfo): Add new member is_c_symbol.
101 (D): Add to macro underscore mode parameter.
102 (init): Add definition for is_c_symbol.
103 (gld_${EMULATION_NAME}_list_options): Display new options.
104 (set_pep_name): Adjust underscoring dependent fixed
106 (gld_${EMULATION_NAME}_set_symbols): Likewise.
107 (saw_option): Likewise.
108 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
109 (set_entry_point): Initial initial_symbol_char dependent to
110 target's default and new option flag pep_leading_underscore.
111 * emultempl/pe.em (U): Macro modified.
112 (U_SIZE): New helper macro.
113 (GET_INIT_SYMBOL_NAME): Likewise.
114 (OPTION_LEADING_UNDERSCORE): Add new option define.
115 (OPTION_NO_LEADING_UNDERSCORE): Likewise.
116 (gld${EMULATION_NAME}_add_options): Add --(no-)leading-underscore
118 (definfo): Add new member is_c_symbol.
119 (D): Add to macro underscore mode parameter.
120 (init): Add definition for is_c_symbol.
121 (gld_${EMULATION_NAME}_list_options): Display new options.
122 (set_pep_name): Adjust underscoring dependent fixed
124 (gld_${EMULATION_NAME}_set_symbols): Likewise.
125 (saw_option): Likewise.
126 (gld_${EMULATION_NAME}_unrecognized_file): Likewise.
127 (set_entry_point): Initial initial_symbol_char dependent to
128 target's default and new option flag pep_leading_underscore.
129 * pe-dll.c (pe_leading_underscore): New flag variable.
130 (pe_detail_list): Remove const to allow modify of
132 (pe_dll_id_target): Initialize pe_details' underscore variable
133 dependent to target's default and flag pe_leading_underscore.
134 * pe-dll.h (pe_leading_underscore): Add extern declaration of
136 * pep-dll.c (pe_leading_underscore): Add alias define for
137 pep_leading_underscore.
138 * pep-dll.h (pep_leading_underscore) Add extern declaration of
140 * ld.texinfo: Add documentation for --(no-)leading-underscore
146 * configure.host (many linux targets <HOSTING_CRT0>): Remove edits.
147 (m68*-motorola-sysv <HOSTING_LIBS>): Use here doc, not echo.
151 * Makefile.am (ALL_EMULATIONS): Add eelf32_tic6x_be.o and
153 (eelf32_tic6x_be.c, eelf32_tic6x_le.c): New.
154 * NEWS: Add news entry for TI C6X support.
155 * configure.tgt (tic6x-*-*): New.
156 * emulparams/elf32_tic6x_be.sh, emulparams/elf32_tic6x_le.sh: New.
160 * scripttempl/elf.sc (RODATA_NAME, SDATA_NAME, SBSS_NAME,
161 BSS_NAME): Define if not already defined. Use in place of some
162 hardcoded section names.
166 * scripttempl/elf.sc (INIT_ARRAY): Re-indent.
171 * emultempl/sh64elf.em: Add missing EOF.
175 * pe-dll.c (make_one): Make text section readonly.
176 (make_one): Add *ABS* symbol @feat.00 with value 1 to tag
177 the jump stub on X86 as /SAFESEH compatible for
182 * ldlang.c (lang_size_sections_1): Remove "s" param. Set "s" from
183 *prev instead. Update all callers.
187 * ldlang.c (lang_insert_orphan): Place loadable orphans in the same
188 region and phdrs as their placement section.
192 * emultempl/ppc64elf.em (move_input_section, sort_toc_sections): New.
193 (ppc_before_allocation): Call sort_toc_sections.
194 (no_toc_sort, OPTION_NO_TOC_SORT): New.
195 (PARSE_AND_LIST_PROLOGUE, PARSE_AND_LIST_LONGOPTS,
196 PARSE_AND_LIST_OPTIONS): Handle --no-toc-sort.
201 * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
202 ppc64_elf_check_init_fini and warn if .init/.fini use different TOCs.
207 * ldcref.c (handle_asneeded_cref): Correct copying of refs.
211 * Makefile.am (ALL_EMULATIONS): Add eelf32_sparc_sol2.o,
213 (ALL_64_EMULATIONS): Add eelf_x86_64_sol2.o, eelf64_sparc_sol2.o.
214 (eelf32_sparc_sol2.c): New rule.
215 (eelf64_sparc_sol2.c): Likewise.
216 (eelf_x86_64_sol2.c): Likewise.
217 (eelf_i386_sol2.c): Likewise.
218 * Makefile.in: Regenerate.
219 * configure.tgt (i[3-7]86-*-solaris2*): Change targ_emul to
221 Add elf_i386_ldso, elf_x86_64_sol2 to targ_extra_emuls.
222 (x86_64-*-solaris2*): Change targ_emul to elf_x86_64_sol2.
223 Add elf_x86_64, elf_i386_sol2, elf_i386 to targ_extra_emuls.
224 (sparc-*-solaris2.[0-6]*): Change targ_emul to elf32_sparc_sol2.
225 Add target_extra_emuls.
226 (sparc-*-solaris2*): Change targ_emul to elf32_sparc_sol2.
227 Add elf32_sparc, elf64_sparc_sol2 to targ_extra_emuls.
228 (sparcv9-*-solaris2*): Change targ_emul to elf64_sparc_sol2.
229 Add elf64_sparc, elf32_sparc_sol2 to target_extra_emuls.
230 * emulparams/elf32_sparc_sol2.sh: New file.
231 * emulparams/elf64_sparc_sol2.sh: New file.
232 * emulparams/elf_i386_sol2.sh: New file.
233 * emulparams/elf_x86_64_sol2.sh: New file.
234 * emultempl/solaris2.em: New file.
239 * ld.texinfo: Replace explicitely with explicitly.
243 * scripttempl/armbpabi.sc: Don't combine .init_array.* or
244 .fini_array.* when do relocatable linking.
245 * scripttempl/elf.sc: Likewise.
246 * scripttempl/elf32sh-symbian.sc: Likewise.
247 * scripttempl/elf64hppa.sc: Likewise.
248 * scripttempl/elfxtensa.sc: Likewise.
252 * scripttempl/elf.sc (.fini_array): Place input .fini_array after
254 * scripttempl/armbpabi.sc: Likewise.
255 * scripttempl/elf32sh-symbian.sc: Likewise.
256 * scripttempl/elf64hppa.sc: Likewise.
257 * scripttempl/elfxtensa.sc: Likewise.
262 * ldlang.c (init_os): Remove isec param. Don't check for
263 bfd_section already set or call bfd_init_private_section_data
265 (exp_init_os): Update init_os call.
266 (lang_add_section): Tidy. Really don't set SEC_LINK_ONCE
267 flags. Call bfd_init_private_section_data here.
268 (map_input_to_output_sections): Tidy. Update init_os calls.
269 Use os->sectype to select sec flags for lang_data_statement.
274 * ldlang.c: Revert last patch.
278 * po/bg.po: Updated Bulgarian translation.
283 * ldlang.c (exp_init_os): Delete forward declaration.
284 (init_os): Don't check for bfd_section already created and don't
285 init addr_tree and load_base expressions here.
286 (map_input_to_output_sections): Only map input to output sections
287 and set constraints here, and as an exception, create output
288 sections which have their address set. Move all the other code to..
289 (create_other_output_sections): ..here. New function. Handle init
290 of addr_tree and load_base here too.
291 (lang_process): Call create_other_output_sections.
295 * Makefile.am (eelf32_i960.c): Depend on ELF_GEN_DEPS, not ELF_DEPS.
296 * Makefile.in: Regenerate.
300 * ldlang.c (unique_section_p): Add os param. Allow group
301 sections to match /DISCARD/. Update all callers.
302 * emultempl/genelf.em (gld${EMULATION_NAME}_before_allocation): New.
303 (LDEMUL_BEFORE_ALLOCATION): Define.
307 * po/vi.po: Updated Vietnamese translation.
311 * Makefile.am (CFILES): Add ldlex-wrapper.c.
312 (OFILES): Replace ldlex.c with ldlex-wrapper.c.
313 (ldlex.o): Replace with...
314 (ldlex-wrapper.o): ...this new rule.
315 (EXTRA_ld_new_SOURCES): Add ldlex.l.
316 (ld_new_SOURCES): Replace ldlex.l with ldlex-wrapper.c.
317 * Makefile.in: Regenerate.
318 * ldlex.l (sysdep.h): Don't include here.
319 * ldlex-wrapper.c: New file.
323 * emultempl/ppc64elf.em (ppc_before_allocation): Update for changed
328 * configure.in (ALL_LIBGUAS): Add bg.
329 * configure: Regenerate.
330 * po/bg.po: New Bulgarian translation.
334 * emultempl/armelf.em (PARSE_AND_LIST_OPTIONS): Fix help for
335 --target1-abs and --target1-rel options.
339 * emultempl/alphaelf.em: Update value expected from elf_object_id.
340 * emultempl/hppaelf.em: Likewise.
341 * emultempl/mipself.em: Likewise.
342 * emultempl/ppc32elf.em: Likewise.
343 * emultempl/ppc64elf.em: Likewise.
347 * emultempl/ppc64elf.em (build_toc_list): Report errors from
348 ppc64_elf_next_toc_section.
349 (after_allocation): Update for changed function names and params.
350 Run second pass of multitoc partitioning.
356 * ldfile.c: (ldfile_open_file): Do not stop link upon encountering
357 a missing file or library. Instead mark the entry as missing and
358 set the global flag to indicate that missing files were
360 * ldlang.c (missing_files): New exported variable.
361 (load_symbols): Skip loading if the file is missing.
362 (open_input_bfds): Terminate link if any input files were
364 * ldlang.h (struct lang_input_statement_struct): Add missing_file
366 Add export of missing_file variable.
370 * emultempl/elf32.em (_place_orphan): If an input section doesn't
371 match an existing output section, but an unused output section
372 statement does match, use it.
373 * emultempl/pe.em (_place_orphan): Likewise.
374 * emultempl/pep.em (_place_orphan): Likewise.
378 * configure: Regenerate.
379 * Makefile.in: Regenerate.
383 * ldver.c (ldversion): Change to "Copyright 2010".
388 * emultempl/vxworks.em: Expand tr arguments to suit non-GNU tr.
390 For older changes see ChangeLog-2009
396 version-control: never