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