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