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