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