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