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