* elflink.c (_bfd_elf_gc_mark_extra_sections): Remove mark from
[platform/upstream/binutils.git] / ld / ChangeLog
1 2013-04-29  Nick Clifton  <nickc@redhat.com>
2
3         * scripttempl/DWARF.sc: Add support for .debug_line.* and
4         .debug_line_end.
5
6 2013-04-29  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
7
8         * emultempl/pe.em [cygwin]: Do not merge rdata with v2
9         psuedo-relocs.
10
11 2013-04-28  Thomas Schwinge  <thomas@codesourcery.com>
12
13         * scripttempl/armbpabi.sc: Replace "source" usage with ".".
14         * scripttempl/avr.sc: Likewise.
15         * scripttempl/elf.sc: Likewise.
16         * scripttempl/elf32cr16.sc: Likewise.
17         * scripttempl/elf32crx.sc: Likewise.
18         * scripttempl/elf32msp430.sc: Likewise.
19         * scripttempl/elf32msp430_3.sc: Likewise.
20         * scripttempl/elf32sh-symbian.sc: Likewise.
21         * scripttempl/elf64hppa.sc: Likewise.
22         * scripttempl/elf_chaos.sc: Likewise.
23         * scripttempl/elfd10v.sc: Likewise.
24         * scripttempl/elfd30v.sc: Likewise.
25         * scripttempl/elfi370.sc: Likewise.
26         * scripttempl/elfm68hc11.sc: Likewise.
27         * scripttempl/elfm68hc12.sc: Likewise.
28         * scripttempl/elfxgate.sc: Likewise.
29         * scripttempl/elfxtensa.sc: Likewise.
30         * scripttempl/epiphany_4x4.sc: Likewise.
31         * scripttempl/i386beos.sc: Likewise.
32         * scripttempl/i386go32.sc: Likewise.
33         * scripttempl/ia64vms.sc: Likewise.
34         * scripttempl/ip2k.sc: Likewise.
35         * scripttempl/iq2000.sc: Likewise.
36         * scripttempl/mep.sc: Likewise.
37         * scripttempl/mmo.sc: Likewise.
38         * scripttempl/v850.sc: Likewise.
39         * scripttempl/v850_rh850.sc: Likewise.
40         * scripttempl/xstormy16.sc: Likewise.
41
42 2013-04-26  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
43
44         * scripttempl/avr.sc: Add ALIGN directive after *(.progmem*).
45
46 2013-04-26  Alan Modra  <amodra@gmail.com>
47
48         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Test
49         unresolved_syms_in_shared_libs rather than !executable to
50         determine whether to load DT_NEEDED libraries.
51
52 2013-04-25  Alan Modra  <amodra@gmail.com>
53
54         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lppclinux.c.
55         (eelf32lppclinux.c): New rule.
56         * Makefile.in: Regenerate.
57         * configure.tgt: Merge powerpc-linux and other powerpc-elf targets
58         with corresponding little-endian targets.
59         * emulparams/elf32lppc.sh: Update comment.
60         * emulparams/elf32lppclinux.sh: New.
61
62 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
63
64         * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
65         x86_64-*-elf*.
66         (targ_extra_libpath): Likewise.
67         (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
68
69 2013-04-24  Yufeng Zhang  <yufeng.zhang@arm.com>
70
71         * emulparams/aarch64elf.sh: Define ELFSIZE=64.
72         * emulparams/aarch64linux.sh: Ditto.
73         * emultempl/aarch64elf.em (aarch64_elf_before_allocation):
74         Replace elf64 with elf${ELFSIZE}.
75         (elf64_aarch64_add_stub_section): Likewise.
76         (build_section_lists): Likewise.
77         (gld${EMULATION_NAME}_after_allocation): Likewise.
78         (gld${EMULATION_NAME}_finish): Likewise.
79         (aarch64_elf_create_output_section_statements): Likewise.
80
81 2013-04-24  Nick Clifton  <nickc@redhat.com>
82
83         PR ld/15389
84         * scripttempl/avr.sc: Add .note.gnu.build-id section.
85
86 2013-04-22  Alan Modra  <amodra@gmail.com>
87
88         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
89         Check return from ppc64_elf_init_stub_bfd.
90
91 2013-04-15  Nick Clifton  <nickc@redhat.com>
92
93         * Makefile.am (ELF_DEPS): Add a dependency upon
94         scripttempl/DWARF.sc.
95         (ELF_GEN_DEPS): Likewise.
96         (emmo.c): Likewise.
97         * Makefile.in: Regenerate.
98
99         * scripttempl/armbpabi.sc: Replace DWARF sections with an
100         inclusion of DWARF.sc.
101         * scripttempl/avr.sc: Likewise.
102         * scripttempl/elf.sc: Likewise.
103         * scripttempl/elf32cr16.sc: Likewise.
104         * scripttempl/elf32crx.sc: Likewise.
105         * scripttempl/elf32msp430.sc: Likewise.
106         * scripttempl/elf32msp430_3.sc: Likewise.
107         * scripttempl/elf32sh-symbian.sc: Likewise.
108         * scripttempl/elf64hppa.sc: Likewise.
109         * scripttempl/elf_chaos.sc: Likewise.
110         * scripttempl/elfd10v.sc: Likewise.
111         * scripttempl/elfd30v.sc: Likewise.
112         * scripttempl/elfi370.sc: Likewise.
113         * scripttempl/elfm68hc11.sc: Likewise.
114         * scripttempl/elfm68hc12.sc: Likewise.
115         * scripttempl/elfxgate.sc: Likewise.
116         * scripttempl/elfxtensa.sc: Likewise.
117         * scripttempl/epiphany_4x4.sc: Likewise.
118         * scripttempl/i386beos.sc: Likewise.
119         * scripttempl/i386go32.sc: Likewise.
120         * scripttempl/ia64vms.sc: Likewise.
121         * scripttempl/ip2k.sc: Likewise.
122         * scripttempl/iq2000.sc: Likewise.
123         * scripttempl/mep.sc: Likewise.
124         * scripttempl/mmo.sc: Likewise.
125         * scripttempl/v850.sc: Likewise.
126         * scripttempl/v850_rh850.sc: Likewise.
127         * scripttempl/xstormy16.sc: Likewise.
128         * scripttempl/DWARF.sc: New.
129
130 2013-04-04  Alan Modra  <amodra@gmail.com>
131
132         * ldlang.c (load_symbols): Report "error adding symbols" on
133         bfd_link_add_symbols failure.
134         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
135         * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
136         (gld${EMULATION_NAME}_try_needed): Likewise.
137
138 2013-03-27  Georg-Johann Lay  <gjl@gcc.gnu.org>
139
140         PR ld/13812
141         * scripttempl/avr.sc: Place trampolines before .progmem section.
142
143 2013-03-25  Kai Tietz  <ktietz@redhat.com>
144
145         * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.
146
147 2013-03-21  Michael Schewe  <michael.schewe@gmx.net>
148
149         * ld.texinfo (H8/300): Add description of relaxation of
150         mov @(disp:32,ERx) to mov @(disp:16,ERx).
151
152 2013-03-21  Kai Tietz  <ktietz@redhat.com>
153
154         * pe-dll.c (process_def_file_and_drectve): Don't handle VC
155         generated C++-symbols as stdcall/fastcall.
156
157 2013-03-18  Alan Modra  <amodra@gmail.com>
158
159         * ld.texinfo (--as-needed): Update.
160
161 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
162
163         * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
164         aarch64linux* emulations.
165
166 2013-03-07  Alan Modra  <amodra@gmail.com>
167
168         * ldfile.c (ldfile_open_command_file_1): Return after einfo
169         to avoid warning.
170
171 2013-03-05  Corinna Vinschen  <vinschen@redhat.com>
172
173         * configure.host: Add x86_64-*-cygwin* as valid host.
174         * configure.tgt: Add x86_64-*-cygwin* as valid target.
175         * emultempl/pep.em: Handle different requirements for Cygwin in terms
176         of start addresses for executables and DLLs, based on memory model in
177         http://cygwin.com/ml/cygwin-developers/2013-02/msg00027.html
178
179 2013-03-05  Alan Modra  <amodra@gmail.com>
180
181         PR ld/15222
182         * ldlang.c (lang_size_sections_1): When given an lma_region align
183         LMA as per VMA only if lma_region is the same as region.
184
185 2013-02-27  Nick Clifton  <nickc@redhat.com>
186
187         * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
188         Add alignment of .bss section.
189         * scripttempl/elf32msp430_3.sc: Likewise.
190
191 2013-02-26  Nick Clifton  <nickc@redhat.com>
192
193         PR ld/15188
194         * ld.texinfo: Fix typos.
195
196 2013-02-21  Alan Modra  <amodra@gmail.com>
197
198         * scripttempl/elf.sc (.init_array, .fini_array): Don't sort all
199         .init_array/.fini_array input sections before .ctors/.dtors input
200         sections.
201         (CTORS_IN_INIT_ARRAY, DTORS_IN_INIT_ARRAY): Adjust to suit.
202
203 2013-02-21  Alan Modra  <amodra@gmail.com>
204
205         * emultempl/elf32.em (write_build_id, setup_build_id): Adjust
206         for elf_tdata changes.
207
208 2013-02-21  Alan Modra  <amodra@gmail.com>
209
210         * emultempl/elf-generic.em: Use newly defined elf_obj_tdata
211         accessor macros.
212
213 2013-02-20  Alan Modra  <amodra@gmail.com>
214
215         * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.
216         * Makefile.in: Regenerate.
217
218 2013-02-19  Sandra Loosemore  <sandra@codesourcery.com>
219
220         PR ld/15146
221         * plugin.c (plugin_notice): Add null check before dereferencing
222         pointer.
223
224 2013-02-19  Alan Modra  <amodra@gmail.com>
225
226         * emultempl/elf32.em (emit_note_gnu_build_id): New static var.
227         Replace all info->emit_note_gnu_build_id refs.
228         (id_note_section_size): Rename from
229         gld${EMULATION_NAME}_id_note_section_size.
230         (struct build_id_info): Delete.
231         (write_build_id): Rename from
232         gld${EMULATION_NAME}_write_build_id_section.
233         Update elf_tdata usage.  Style, formatting.
234         (setup_build_id): New function.
235         (gld${EMULATION_NAME}_after_open): Use setup_build_id.
236
237 2013-02-16  H.J. Lu  <hongjiu.lu@intel.com>
238
239         PR ld/15146
240         * plugin.c (plugin_notice): Replace the undefined dummy bfd with
241         the real one.
242
243 2013-02-16  H.J. Lu  <hongjiu.lu@intel.com>
244
245         PR ld/15141
246         * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
247
248 2013-02-15  Kai Tietz  <ktietz@redhat.com>
249
250         * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
251         (.pdata): Merge .pdata* into .pdata section.
252
253 2013-02-11  Alan Modra  <amodra@gmail.com>
254
255         * ldlang.c (get_init_priority): Comment typo.
256         (lang_finish): Free link_info.hash and lang_definedness_table.
257         (lang_end): Delete lang_definedness_table comment.
258
259 2013-02-11  Alan Modra  <amodra@gmail.com>
260
261         PR ld/15130
262         * ld.texinfo (-rpath-link): Typo fix.
263
264 2013-02-08  Markos Chandras  <markos.chandras@imgtec.com>
265
266         * emultempl/metagelf.em (build_section_lists): Use sec_info_type
267         rather than userdata->flags.just_syms.
268
269 2013-02-06  Sandra Loosemore  <sandra@codesourcery.com>
270             Andrew Jenner <andrew@codesourcery.com>
271
272         Based on patches from Altera Corporation.
273
274         * Makefile.am (enios2elf.c): New rule.
275         * Makefile.in: Regenerated.
276         * configure.tgt: Add case for nios2*-*-*.
277         * emulparams/nios2elf.sh: New file.
278         * NEWS: Note Altera Nios II support.
279
280 2013-02-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
281
282         * emultempl/avrelf.em (avr_elf_before_parse): New function.
283         (LDEMUL_BEFORE_PARSE): Define.
284
285 2013-02-06  Alan Modra  <amodra@gmail.com>
286
287         PR ld/15096
288         * emultempl/elf32.em: Revert 2013-02-04, 2013-01-22 and 2013-01-21.
289         * emultempl/alphaelf.em: Revert 2013-02-04.
290         * emultempl/cr16elf.em: Likewise.
291         * emultempl/crxelf.em: Likewise.
292         * emultempl/hppaelf.em: Likewise.
293         * emultempl/ia64elf.em: Likewise.
294         * emultempl/mipself.em: Likewise.
295         * NEWS: Revert 2013-01-21.
296
297 2013-02-04  H.J. Lu  <hongjiu.lu@intel.com>
298
299         PR ld/15096
300         * emultempl/alphaelf.em (alpha_after_parse): Call
301         gld${EMULATION_NAME}_after_parse instead of after_parse_default.
302         * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
303         * emultempl/crxelf.em (crxelf_after_parse): Likewise.
304         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
305         * emultempl/mipself.em (mips_after_parse): Likewise.
306
307         * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Renamed
308         to ...
309         (gld_${EMULATION_NAME}_after_parse): This.  Call
310         gld${EMULATION_NAME}_after_parse instead of after_parse_default.
311         (LDEMUL_AFTER_PARSE): Set to gld_${EMULATION_NAME}_after_parse.
312
313         * emultempl/elf32.em (new_dtags_set): New variable.
314         (gld${EMULATION_NAME}_before_parse): Don't set link_info.new_dtags
315         here.
316         (gld${EMULATION_NAME}_after_parse): New function.
317         (ld_${EMULATION_NAME}_emulation): Replace after_parse_default'
318         with gld${EMULATION_NAME}_after_parse.
319         (gld${EMULATION_NAME}_handle_option): Set new_dtags_set to TRUE
320         when setting link_info.new_dtags.
321
322 2013-01-25  Kai Tietz  <ktietz@redhat.com>
323
324         * deffilep.y (def_image_name): Adjust type of base-address
325         argument.
326         (%union): Add new type bfd_vma as vma.
327         (VMA):  New rule.
328         (opt_base): Use VMA instead of NUMBER rule to evaluate value.
329         (def_file_print): Use bfd's fprintf_vma to output base-address.
330
331 2013-01-24  Nick Clifton  <nickc@redhat.com>
332
333         * NEWS: Mention support for V850E3V5 architecture.
334
335 2013-01-23  Martin Koegler  <martin.koegler@chello.at>
336
337         PR ld/15041
338         * scripttempl/pep.sc (.pdata): Only accept .pdata sections.
339         (.xdata): Similarly.
340         (.debug_frame): Similarly.
341
342 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
343
344         PR ld/15037
345         * scripttempl/avr.sc (.eeprom): Keep it.
346
347 2013-01-23  Leif Ekblad  <leif@rdos.net>
348
349         * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
350         (eelf64rdos.c): New rule.
351         * emulparams/elf64rdos.sh: New file.
352         * configure.tgt (x86_64-*-rdos*): Use above.
353         * Makefile.in: Regenerate.
354
355 2013-01-22  Roland McGrath  <mcgrathr@google.com>
356
357         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
358         new_dtags to TRUE for *-*-nacl* targets.
359
360 2013-01-21  Mike Frysinger  <vapier@gentoo.org>
361
362         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
363         link_info.new_dtags to TRUE for linux/gnu targets.
364         * NEWS: Mention new dtags default.
365
366 2013-01-19  H.J. Lu  <hongjiu.lu@intel.com>
367
368         * Makefile.am (HOSTING_SCRT0): New.
369
370         * configure.host (HOSTING_SCRT0): New.  Used for PIE.
371
372         * configure.in (HOSTING_SCRT0): New AC_SUBST.
373
374         * Makefile.in: Regenerated.
375         * configure: Likewise.
376
377 2013-01-18  Mike Frysinger  <vapier@gentoo.org>
378
379         * NEWS: Mention change in behavior with --enable-new-dtags.
380         * ld.texinfo (Options): Clarify --enable-new-dtags behavior.
381
382 2013-01-14  Leif Ekblad <leif@rdos.net>
383             Alan Modra  <amodra@gmail.com>
384
385         * ld.texinfo (-Tldata-segment): Describe.
386         * ldlex.h (OPTION_TLDATA_SEGMENT): New enum value.
387         * lexsup.c (ld_options): Add -Tldata-segment.
388         (parse_args): Handle OPTION_TLDATA_SEGMENT.
389         * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
390
391 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
392
393         * deffilep.y: Remove trailing white spaces.
394         * elf-hints-local.h: Likewise.
395         * ldexp.c: Likewise.
396         * ldlang.h: Likewise.
397         * ldmisc.c: Likewise.
398         * ldwrite.c: Likewise.
399         * pe-dll.c: Likewise.
400         * emulparams/criself.sh: Likewise.
401         * emulparams/crislinux.sh: Likewise.
402         * emulparams/elf32_tic6x_le.sh: Likewise.
403         * emulparams/elf32bmipn32-defs.sh: Likewise.
404         * emulparams/elf32mb_linux.sh: Likewise.
405         * emulparams/elf32mep.sh: Likewise.
406         * emulparams/elf32microblaze.sh: Likewise.
407         * emulparams/elf32ppc.sh: Likewise.
408         * emulparams/elf64_s390.sh: Likewise.
409         * emulparams/elf64alpha.sh: Likewise.
410         * emulparams/elf_s390.sh: Likewise.
411         * emulparams/elf_x86_64.sh: Likewise.
412         * emulparams/tic80coff.sh: Likewise.
413         * emultempl/aix.em: Likewise.
414         * emultempl/avrelf.em: Likewise.
415         * emultempl/cr16elf.em: Likewise.
416         * emultempl/pe.em: Likewise.
417         * emultempl/pep.em: Likewise.
418         * emultempl/spuelf.em: Likewise.
419         * emultempl/tic6xdsbt.em: Likewise.
420
421 2013-01-10  Will Newton <will.newton@imgtec.com>
422
423         * Makefile.am: Add Meta.
424         * Makefile.in: Regenerate.
425         * configure.tgt: Add Meta.
426         * emulparams/elf32metag.sh: New file.
427         * emultempl/metagelf.em: New file.
428
429 2013-01-09  Alan Modra  <amodra@gmail.com>
430
431         * emulparams/elf_x86_64.sh (LARGE_BSS_AFTER_BSS): Define.
432         * emulparams/elf32_x86_64.sh: Likewise.
433         * emulparams/elf_k1om.sh: Likewise.
434         * emulparams/elf_l1om.sh: Likewise.
435         * scripttempl/elf.sc (LARGE_BSS): Define rather than appending to
436         OTHER_BSS_SECTIONS.  Substitute in script.
437
438 2013-01-08  Leif Ekblad  <leif@rdos.net>
439
440         * scripttempl/elf.sc (RODATA_ADDR): Typo fix.
441
442 2013-01-08  Alan Modra  <amodra@gmail.com>
443
444         * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): Replace
445         "name" param with a bfd_link_needed_list pointer.  Update caller.
446         (gld${EMULATION_NAME}_check_ld_elf_hints): Likewise.
447
448 2013-01-08  Alan Modra  <amodra@gmail.com>
449
450         * Makefile.am (ALL_EMULATION_SOURCES): Correct eavrxmega entries.
451         * Makefile.in: Regenerate.
452
453 2013-01-07  H.J. Lu  <hongjiu.lu@intel.com>
454
455         * lexsup.c (ld_options): Add fuse-ld= for GCC linker option
456         compatibility.
457
458 2013-01-07  Patrice Dumas  <pertusus@free.fr>
459
460         * ld.texinfo: Replace @ with @@ when it is part of the text.
461         Correct ordering of M68HC11 entry.
462
463 2013-01-04  Juergen Urban <JuergenUrban@gmx.de>
464
465         * configure.tgt: Support ELF files for Sony Playstation 2 (for
466         ps2dev and ps2sdk).
467         * emulparams/elf32lr5900n32.sh: Create linker script for Sony
468         Playstation 2 ELF files using MIPS ABI n32.
469         * emulparams/elf32lr5900.sh: Create linker script for Sony
470         Playstation 2 ELF files using MIPS ABI o32.
471         * Makefile.am: Add linker scripts for Sony Playstation 2 ELF
472         files.
473
474 2013-01-02  H.J. Lu  <hongjiu.lu@intel.com>
475
476         * ldver.c (ldversion): Update copyright year to 2013.
477
478 For older changes see ChangeLog-2012
479 \f
480 Copyright (C) 2013 Free Software Foundation, Inc.
481
482 Copying and distribution of this file, with or without modification,
483 are permitted in any medium without royalty provided the copyright
484 notice and this notice are preserved.
485
486 Local Variables:
487 mode: change-log
488 left-margin: 8
489 fill-column: 74
490 version-control: never
491 End: