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