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