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