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