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