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