1 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
3 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
4 Use is_elf_hash_table rather than a handcoded condition.
6 2013-04-30 Nick Clifton <nickc@redhat.com>
8 * ld.texinfo (SORT_BY_ALIGNMENT): Fix and clarify typo - sections
9 are sorted by descending order of alignment.
11 2013-04-29 Nick Clifton <nickc@redhat.com>
13 * scripttempl/DWARF.sc: Add support for .debug_line.* and
16 2013-04-29 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
18 * emultempl/pe.em [cygwin]: Do not merge rdata with v2
21 2013-04-28 Thomas Schwinge <thomas@codesourcery.com>
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.
52 2013-04-26 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
54 * scripttempl/avr.sc: Add ALIGN directive after *(.progmem*).
56 2013-04-26 Alan Modra <amodra@gmail.com>
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.
62 2013-04-25 Alan Modra <amodra@gmail.com>
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.
72 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
74 * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
76 (targ_extra_libpath): Likewise.
77 (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
79 2013-04-24 Yufeng Zhang <yufeng.zhang@arm.com>
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.
91 2013-04-24 Nick Clifton <nickc@redhat.com>
94 * scripttempl/avr.sc: Add .note.gnu.build-id section.
96 2013-04-22 Alan Modra <amodra@gmail.com>
98 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
99 Check return from ppc64_elf_init_stub_bfd.
101 2013-04-15 Nick Clifton <nickc@redhat.com>
103 * Makefile.am (ELF_DEPS): Add a dependency upon
104 scripttempl/DWARF.sc.
105 (ELF_GEN_DEPS): Likewise.
107 * Makefile.in: Regenerate.
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.
140 2013-04-04 Alan Modra <amodra@gmail.com>
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.
148 2013-03-27 Georg-Johann Lay <gjl@gcc.gnu.org>
151 * scripttempl/avr.sc: Place trampolines before .progmem section.
153 2013-03-25 Kai Tietz <ktietz@redhat.com>
155 * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.
157 2013-03-21 Michael Schewe <michael.schewe@gmx.net>
159 * ld.texinfo (H8/300): Add description of relaxation of
160 mov @(disp:32,ERx) to mov @(disp:16,ERx).
162 2013-03-21 Kai Tietz <ktietz@redhat.com>
164 * pe-dll.c (process_def_file_and_drectve): Don't handle VC
165 generated C++-symbols as stdcall/fastcall.
167 2013-03-18 Alan Modra <amodra@gmail.com>
169 * ld.texinfo (--as-needed): Update.
171 2013-03-14 Jakub Jelinek <jakub@redhat.com>
173 * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
174 aarch64linux* emulations.
176 2013-03-07 Alan Modra <amodra@gmail.com>
178 * ldfile.c (ldfile_open_command_file_1): Return after einfo
181 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
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
189 2013-03-05 Alan Modra <amodra@gmail.com>
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.
195 2013-02-27 Nick Clifton <nickc@redhat.com>
197 * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
198 Add alignment of .bss section.
199 * scripttempl/elf32msp430_3.sc: Likewise.
201 2013-02-26 Nick Clifton <nickc@redhat.com>
204 * ld.texinfo: Fix typos.
206 2013-02-21 Alan Modra <amodra@gmail.com>
208 * scripttempl/elf.sc (.init_array, .fini_array): Don't sort all
209 .init_array/.fini_array input sections before .ctors/.dtors input
211 (CTORS_IN_INIT_ARRAY, DTORS_IN_INIT_ARRAY): Adjust to suit.
213 2013-02-21 Alan Modra <amodra@gmail.com>
215 * emultempl/elf32.em (write_build_id, setup_build_id): Adjust
216 for elf_tdata changes.
218 2013-02-21 Alan Modra <amodra@gmail.com>
220 * emultempl/elf-generic.em: Use newly defined elf_obj_tdata
223 2013-02-20 Alan Modra <amodra@gmail.com>
225 * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.
226 * Makefile.in: Regenerate.
228 2013-02-19 Sandra Loosemore <sandra@codesourcery.com>
231 * plugin.c (plugin_notice): Add null check before dereferencing
234 2013-02-19 Alan Modra <amodra@gmail.com>
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.
247 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
250 * plugin.c (plugin_notice): Replace the undefined dummy bfd with
253 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
256 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
258 2013-02-15 Kai Tietz <ktietz@redhat.com>
260 * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
261 (.pdata): Merge .pdata* into .pdata section.
263 2013-02-11 Alan Modra <amodra@gmail.com>
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.
269 2013-02-11 Alan Modra <amodra@gmail.com>
272 * ld.texinfo (-rpath-link): Typo fix.
274 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
276 * emultempl/metagelf.em (build_section_lists): Use sec_info_type
277 rather than userdata->flags.just_syms.
279 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
280 Andrew Jenner <andrew@codesourcery.com>
282 Based on patches from Altera Corporation.
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.
290 2013-02-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
292 * emultempl/avrelf.em (avr_elf_before_parse): New function.
293 (LDEMUL_BEFORE_PARSE): Define.
295 2013-02-06 Alan Modra <amodra@gmail.com>
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.
307 2013-02-04 H.J. Lu <hongjiu.lu@intel.com>
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.
317 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Renamed
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.
323 * emultempl/elf32.em (new_dtags_set): New variable.
324 (gld${EMULATION_NAME}_before_parse): Don't set link_info.new_dtags
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.
332 2013-01-25 Kai Tietz <ktietz@redhat.com>
334 * deffilep.y (def_image_name): Adjust type of base-address
336 (%union): Add new type bfd_vma as vma.
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.
341 2013-01-24 Nick Clifton <nickc@redhat.com>
343 * NEWS: Mention support for V850E3V5 architecture.
345 2013-01-23 Martin Koegler <martin.koegler@chello.at>
348 * scripttempl/pep.sc (.pdata): Only accept .pdata sections.
350 (.debug_frame): Similarly.
352 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
355 * scripttempl/avr.sc (.eeprom): Keep it.
357 2013-01-23 Leif Ekblad <leif@rdos.net>
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.
365 2013-01-22 Roland McGrath <mcgrathr@google.com>
367 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
368 new_dtags to TRUE for *-*-nacl* targets.
370 2013-01-21 Mike Frysinger <vapier@gentoo.org>
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.
376 2013-01-19 H.J. Lu <hongjiu.lu@intel.com>
378 * Makefile.am (HOSTING_SCRT0): New.
380 * configure.host (HOSTING_SCRT0): New. Used for PIE.
382 * configure.in (HOSTING_SCRT0): New AC_SUBST.
384 * Makefile.in: Regenerated.
385 * configure: Likewise.
387 2013-01-18 Mike Frysinger <vapier@gentoo.org>
389 * NEWS: Mention change in behavior with --enable-new-dtags.
390 * ld.texinfo (Options): Clarify --enable-new-dtags behavior.
392 2013-01-14 Leif Ekblad <leif@rdos.net>
393 Alan Modra <amodra@gmail.com>
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.
401 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
403 * deffilep.y: Remove trailing white spaces.
404 * elf-hints-local.h: 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.
431 2013-01-10 Will Newton <will.newton@imgtec.com>
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.
439 2013-01-09 Alan Modra <amodra@gmail.com>
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.
448 2013-01-08 Leif Ekblad <leif@rdos.net>
450 * scripttempl/elf.sc (RODATA_ADDR): Typo fix.
452 2013-01-08 Alan Modra <amodra@gmail.com>
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.
458 2013-01-08 Alan Modra <amodra@gmail.com>
460 * Makefile.am (ALL_EMULATION_SOURCES): Correct eavrxmega entries.
461 * Makefile.in: Regenerate.
463 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
465 * lexsup.c (ld_options): Add fuse-ld= for GCC linker option
468 2013-01-07 Patrice Dumas <pertusus@free.fr>
470 * ld.texinfo: Replace @ with @@ when it is part of the text.
471 Correct ordering of M68HC11 entry.
473 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
475 * configure.tgt: Support ELF files for Sony Playstation 2 (for
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
484 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
486 * ldver.c (ldversion): Update copyright year to 2013.
488 For older changes see ChangeLog-2012
490 Copyright (C) 2013 Free Software Foundation, Inc.
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.
500 version-control: never