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