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