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