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