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