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