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