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