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