1 2013-05-03 Alan Modra <amodra@gmail.com>
4 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
5 Restrict __ehdr_start's export class to no less than STV_HIDDEN.
7 2013-05-03 Alan Modra <amodra@gmail.com>
9 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
10 Only call lang_for_each_statement if an ELF hash table is used.
12 2013-05-02 Nick Clifton <nickc@redhat.com>
14 * Makefile.am: Add emsp430X.c
15 * Makefine.in: Regenerate.
16 * configure.tgt (msp430): Add msp430X emulation.
17 * ldmain.c (multiple_definition): Only disable relaxation if it
18 was enabled by the user.
19 * ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
20 * emulparams/msp430all.sh: Add support for MSP430X.
21 * emultempl/generic.em: (before_parse): Enable relaxation for the
23 * scripttempl/msp430.sc: Reorganize sections. Add .rodata
25 * scripttempl/msp430_3.sc: Likewise.
26 * NEWS: Mention support for MSP430X.
28 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
30 * configure.tgt: Replace alpha*-*-linuxecoff* pattern with
31 alpha*-*-linux*ecoff*. Update the `sed' pattern used to convert
32 from alpha*-*-linux-* to alpha*-*-linux*ecoff*.
34 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
36 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
37 Use is_elf_hash_table rather than a handcoded condition.
39 2013-04-30 Nick Clifton <nickc@redhat.com>
41 * ld.texinfo (SORT_BY_ALIGNMENT): Fix and clarify typo - sections
42 are sorted by descending order of alignment.
44 2013-04-29 Nick Clifton <nickc@redhat.com>
46 * scripttempl/DWARF.sc: Add support for .debug_line.* and
49 2013-04-29 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
51 * emultempl/pe.em [cygwin]: Do not merge rdata with v2
54 2013-04-28 Thomas Schwinge <thomas@codesourcery.com>
56 * scripttempl/armbpabi.sc: Replace "source" usage with ".".
57 * scripttempl/avr.sc: Likewise.
58 * scripttempl/elf.sc: Likewise.
59 * scripttempl/elf32cr16.sc: Likewise.
60 * scripttempl/elf32crx.sc: Likewise.
61 * scripttempl/elf32msp430.sc: Likewise.
62 * scripttempl/elf32msp430_3.sc: Likewise.
63 * scripttempl/elf32sh-symbian.sc: Likewise.
64 * scripttempl/elf64hppa.sc: Likewise.
65 * scripttempl/elf_chaos.sc: Likewise.
66 * scripttempl/elfd10v.sc: Likewise.
67 * scripttempl/elfd30v.sc: Likewise.
68 * scripttempl/elfi370.sc: Likewise.
69 * scripttempl/elfm68hc11.sc: Likewise.
70 * scripttempl/elfm68hc12.sc: Likewise.
71 * scripttempl/elfxgate.sc: Likewise.
72 * scripttempl/elfxtensa.sc: Likewise.
73 * scripttempl/epiphany_4x4.sc: Likewise.
74 * scripttempl/i386beos.sc: Likewise.
75 * scripttempl/i386go32.sc: Likewise.
76 * scripttempl/ia64vms.sc: Likewise.
77 * scripttempl/ip2k.sc: Likewise.
78 * scripttempl/iq2000.sc: Likewise.
79 * scripttempl/mep.sc: Likewise.
80 * scripttempl/mmo.sc: Likewise.
81 * scripttempl/v850.sc: Likewise.
82 * scripttempl/v850_rh850.sc: Likewise.
83 * scripttempl/xstormy16.sc: Likewise.
85 2013-04-26 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
87 * scripttempl/avr.sc: Add ALIGN directive after *(.progmem*).
89 2013-04-26 Alan Modra <amodra@gmail.com>
91 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Test
92 unresolved_syms_in_shared_libs rather than !executable to
93 determine whether to load DT_NEEDED libraries.
95 2013-04-25 Alan Modra <amodra@gmail.com>
97 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lppclinux.c.
98 (eelf32lppclinux.c): New rule.
99 * Makefile.in: Regenerate.
100 * configure.tgt: Merge powerpc-linux and other powerpc-elf targets
101 with corresponding little-endian targets.
102 * emulparams/elf32lppc.sh: Update comment.
103 * emulparams/elf32lppclinux.sh: New.
105 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
107 * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
109 (targ_extra_libpath): Likewise.
110 (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
112 2013-04-24 Yufeng Zhang <yufeng.zhang@arm.com>
114 * emulparams/aarch64elf.sh: Define ELFSIZE=64.
115 * emulparams/aarch64linux.sh: Ditto.
116 * emultempl/aarch64elf.em (aarch64_elf_before_allocation):
117 Replace elf64 with elf${ELFSIZE}.
118 (elf64_aarch64_add_stub_section): Likewise.
119 (build_section_lists): Likewise.
120 (gld${EMULATION_NAME}_after_allocation): Likewise.
121 (gld${EMULATION_NAME}_finish): Likewise.
122 (aarch64_elf_create_output_section_statements): Likewise.
124 2013-04-24 Nick Clifton <nickc@redhat.com>
127 * scripttempl/avr.sc: Add .note.gnu.build-id section.
129 2013-04-22 Alan Modra <amodra@gmail.com>
131 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
132 Check return from ppc64_elf_init_stub_bfd.
134 2013-04-15 Nick Clifton <nickc@redhat.com>
136 * Makefile.am (ELF_DEPS): Add a dependency upon
137 scripttempl/DWARF.sc.
138 (ELF_GEN_DEPS): Likewise.
140 * Makefile.in: Regenerate.
142 * scripttempl/armbpabi.sc: Replace DWARF sections with an
143 inclusion of DWARF.sc.
144 * scripttempl/avr.sc: Likewise.
145 * scripttempl/elf.sc: Likewise.
146 * scripttempl/elf32cr16.sc: Likewise.
147 * scripttempl/elf32crx.sc: Likewise.
148 * scripttempl/elf32msp430.sc: Likewise.
149 * scripttempl/elf32msp430_3.sc: Likewise.
150 * scripttempl/elf32sh-symbian.sc: Likewise.
151 * scripttempl/elf64hppa.sc: Likewise.
152 * scripttempl/elf_chaos.sc: Likewise.
153 * scripttempl/elfd10v.sc: Likewise.
154 * scripttempl/elfd30v.sc: Likewise.
155 * scripttempl/elfi370.sc: Likewise.
156 * scripttempl/elfm68hc11.sc: Likewise.
157 * scripttempl/elfm68hc12.sc: Likewise.
158 * scripttempl/elfxgate.sc: Likewise.
159 * scripttempl/elfxtensa.sc: Likewise.
160 * scripttempl/epiphany_4x4.sc: Likewise.
161 * scripttempl/i386beos.sc: Likewise.
162 * scripttempl/i386go32.sc: Likewise.
163 * scripttempl/ia64vms.sc: Likewise.
164 * scripttempl/ip2k.sc: Likewise.
165 * scripttempl/iq2000.sc: Likewise.
166 * scripttempl/mep.sc: Likewise.
167 * scripttempl/mmo.sc: Likewise.
168 * scripttempl/v850.sc: Likewise.
169 * scripttempl/v850_rh850.sc: Likewise.
170 * scripttempl/xstormy16.sc: Likewise.
171 * scripttempl/DWARF.sc: New.
173 2013-04-04 Alan Modra <amodra@gmail.com>
175 * ldlang.c (load_symbols): Report "error adding symbols" on
176 bfd_link_add_symbols failure.
177 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
178 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
179 (gld${EMULATION_NAME}_try_needed): Likewise.
181 2013-03-27 Georg-Johann Lay <gjl@gcc.gnu.org>
184 * scripttempl/avr.sc: Place trampolines before .progmem section.
186 2013-03-25 Kai Tietz <ktietz@redhat.com>
188 * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.
190 2013-03-21 Michael Schewe <michael.schewe@gmx.net>
192 * ld.texinfo (H8/300): Add description of relaxation of
193 mov @(disp:32,ERx) to mov @(disp:16,ERx).
195 2013-03-21 Kai Tietz <ktietz@redhat.com>
197 * pe-dll.c (process_def_file_and_drectve): Don't handle VC
198 generated C++-symbols as stdcall/fastcall.
200 2013-03-18 Alan Modra <amodra@gmail.com>
202 * ld.texinfo (--as-needed): Update.
204 2013-03-14 Jakub Jelinek <jakub@redhat.com>
206 * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
207 aarch64linux* emulations.
209 2013-03-07 Alan Modra <amodra@gmail.com>
211 * ldfile.c (ldfile_open_command_file_1): Return after einfo
214 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
216 * configure.host: Add x86_64-*-cygwin* as valid host.
217 * configure.tgt: Add x86_64-*-cygwin* as valid target.
218 * emultempl/pep.em: Handle different requirements for Cygwin in terms
219 of start addresses for executables and DLLs, based on memory model in
220 http://cygwin.com/ml/cygwin-developers/2013-02/msg00027.html
222 2013-03-05 Alan Modra <amodra@gmail.com>
225 * ldlang.c (lang_size_sections_1): When given an lma_region align
226 LMA as per VMA only if lma_region is the same as region.
228 2013-02-27 Nick Clifton <nickc@redhat.com>
230 * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
231 Add alignment of .bss section.
232 * scripttempl/elf32msp430_3.sc: Likewise.
234 2013-02-26 Nick Clifton <nickc@redhat.com>
237 * ld.texinfo: Fix typos.
239 2013-02-21 Alan Modra <amodra@gmail.com>
241 * scripttempl/elf.sc (.init_array, .fini_array): Don't sort all
242 .init_array/.fini_array input sections before .ctors/.dtors input
244 (CTORS_IN_INIT_ARRAY, DTORS_IN_INIT_ARRAY): Adjust to suit.
246 2013-02-21 Alan Modra <amodra@gmail.com>
248 * emultempl/elf32.em (write_build_id, setup_build_id): Adjust
249 for elf_tdata changes.
251 2013-02-21 Alan Modra <amodra@gmail.com>
253 * emultempl/elf-generic.em: Use newly defined elf_obj_tdata
256 2013-02-20 Alan Modra <amodra@gmail.com>
258 * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.
259 * Makefile.in: Regenerate.
261 2013-02-19 Sandra Loosemore <sandra@codesourcery.com>
264 * plugin.c (plugin_notice): Add null check before dereferencing
267 2013-02-19 Alan Modra <amodra@gmail.com>
269 * emultempl/elf32.em (emit_note_gnu_build_id): New static var.
270 Replace all info->emit_note_gnu_build_id refs.
271 (id_note_section_size): Rename from
272 gld${EMULATION_NAME}_id_note_section_size.
273 (struct build_id_info): Delete.
274 (write_build_id): Rename from
275 gld${EMULATION_NAME}_write_build_id_section.
276 Update elf_tdata usage. Style, formatting.
277 (setup_build_id): New function.
278 (gld${EMULATION_NAME}_after_open): Use setup_build_id.
280 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
283 * plugin.c (plugin_notice): Replace the undefined dummy bfd with
286 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
289 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
291 2013-02-15 Kai Tietz <ktietz@redhat.com>
293 * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
294 (.pdata): Merge .pdata* into .pdata section.
296 2013-02-11 Alan Modra <amodra@gmail.com>
298 * ldlang.c (get_init_priority): Comment typo.
299 (lang_finish): Free link_info.hash and lang_definedness_table.
300 (lang_end): Delete lang_definedness_table comment.
302 2013-02-11 Alan Modra <amodra@gmail.com>
305 * ld.texinfo (-rpath-link): Typo fix.
307 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
309 * emultempl/metagelf.em (build_section_lists): Use sec_info_type
310 rather than userdata->flags.just_syms.
312 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
313 Andrew Jenner <andrew@codesourcery.com>
315 Based on patches from Altera Corporation.
317 * Makefile.am (enios2elf.c): New rule.
318 * Makefile.in: Regenerated.
319 * configure.tgt: Add case for nios2*-*-*.
320 * emulparams/nios2elf.sh: New file.
321 * NEWS: Note Altera Nios II support.
323 2013-02-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
325 * emultempl/avrelf.em (avr_elf_before_parse): New function.
326 (LDEMUL_BEFORE_PARSE): Define.
328 2013-02-06 Alan Modra <amodra@gmail.com>
331 * emultempl/elf32.em: Revert 2013-02-04, 2013-01-22 and 2013-01-21.
332 * emultempl/alphaelf.em: Revert 2013-02-04.
333 * emultempl/cr16elf.em: Likewise.
334 * emultempl/crxelf.em: Likewise.
335 * emultempl/hppaelf.em: Likewise.
336 * emultempl/ia64elf.em: Likewise.
337 * emultempl/mipself.em: Likewise.
338 * NEWS: Revert 2013-01-21.
340 2013-02-04 H.J. Lu <hongjiu.lu@intel.com>
343 * emultempl/alphaelf.em (alpha_after_parse): Call
344 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
345 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
346 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
347 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
348 * emultempl/mipself.em (mips_after_parse): Likewise.
350 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Renamed
352 (gld_${EMULATION_NAME}_after_parse): This. Call
353 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
354 (LDEMUL_AFTER_PARSE): Set to gld_${EMULATION_NAME}_after_parse.
356 * emultempl/elf32.em (new_dtags_set): New variable.
357 (gld${EMULATION_NAME}_before_parse): Don't set link_info.new_dtags
359 (gld${EMULATION_NAME}_after_parse): New function.
360 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default'
361 with gld${EMULATION_NAME}_after_parse.
362 (gld${EMULATION_NAME}_handle_option): Set new_dtags_set to TRUE
363 when setting link_info.new_dtags.
365 2013-01-25 Kai Tietz <ktietz@redhat.com>
367 * deffilep.y (def_image_name): Adjust type of base-address
369 (%union): Add new type bfd_vma as vma.
371 (opt_base): Use VMA instead of NUMBER rule to evaluate value.
372 (def_file_print): Use bfd's fprintf_vma to output base-address.
374 2013-01-24 Nick Clifton <nickc@redhat.com>
376 * NEWS: Mention support for V850E3V5 architecture.
378 2013-01-23 Martin Koegler <martin.koegler@chello.at>
381 * scripttempl/pep.sc (.pdata): Only accept .pdata sections.
383 (.debug_frame): Similarly.
385 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
388 * scripttempl/avr.sc (.eeprom): Keep it.
390 2013-01-23 Leif Ekblad <leif@rdos.net>
392 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
393 (eelf64rdos.c): New rule.
394 * emulparams/elf64rdos.sh: New file.
395 * configure.tgt (x86_64-*-rdos*): Use above.
396 * Makefile.in: Regenerate.
398 2013-01-22 Roland McGrath <mcgrathr@google.com>
400 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
401 new_dtags to TRUE for *-*-nacl* targets.
403 2013-01-21 Mike Frysinger <vapier@gentoo.org>
405 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
406 link_info.new_dtags to TRUE for linux/gnu targets.
407 * NEWS: Mention new dtags default.
409 2013-01-19 H.J. Lu <hongjiu.lu@intel.com>
411 * Makefile.am (HOSTING_SCRT0): New.
413 * configure.host (HOSTING_SCRT0): New. Used for PIE.
415 * configure.in (HOSTING_SCRT0): New AC_SUBST.
417 * Makefile.in: Regenerated.
418 * configure: Likewise.
420 2013-01-18 Mike Frysinger <vapier@gentoo.org>
422 * NEWS: Mention change in behavior with --enable-new-dtags.
423 * ld.texinfo (Options): Clarify --enable-new-dtags behavior.
425 2013-01-14 Leif Ekblad <leif@rdos.net>
426 Alan Modra <amodra@gmail.com>
428 * ld.texinfo (-Tldata-segment): Describe.
429 * ldlex.h (OPTION_TLDATA_SEGMENT): New enum value.
430 * lexsup.c (ld_options): Add -Tldata-segment.
431 (parse_args): Handle OPTION_TLDATA_SEGMENT.
432 * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
434 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
436 * deffilep.y: Remove trailing white spaces.
437 * elf-hints-local.h: Likewise.
439 * ldlang.h: Likewise.
440 * ldmisc.c: Likewise.
441 * ldwrite.c: Likewise.
442 * pe-dll.c: Likewise.
443 * emulparams/criself.sh: Likewise.
444 * emulparams/crislinux.sh: Likewise.
445 * emulparams/elf32_tic6x_le.sh: Likewise.
446 * emulparams/elf32bmipn32-defs.sh: Likewise.
447 * emulparams/elf32mb_linux.sh: Likewise.
448 * emulparams/elf32mep.sh: Likewise.
449 * emulparams/elf32microblaze.sh: Likewise.
450 * emulparams/elf32ppc.sh: Likewise.
451 * emulparams/elf64_s390.sh: Likewise.
452 * emulparams/elf64alpha.sh: Likewise.
453 * emulparams/elf_s390.sh: Likewise.
454 * emulparams/elf_x86_64.sh: Likewise.
455 * emulparams/tic80coff.sh: Likewise.
456 * emultempl/aix.em: Likewise.
457 * emultempl/avrelf.em: Likewise.
458 * emultempl/cr16elf.em: Likewise.
459 * emultempl/pe.em: Likewise.
460 * emultempl/pep.em: Likewise.
461 * emultempl/spuelf.em: Likewise.
462 * emultempl/tic6xdsbt.em: Likewise.
464 2013-01-10 Will Newton <will.newton@imgtec.com>
466 * Makefile.am: Add Meta.
467 * Makefile.in: Regenerate.
468 * configure.tgt: Add Meta.
469 * emulparams/elf32metag.sh: New file.
470 * emultempl/metagelf.em: New file.
472 2013-01-09 Alan Modra <amodra@gmail.com>
474 * emulparams/elf_x86_64.sh (LARGE_BSS_AFTER_BSS): Define.
475 * emulparams/elf32_x86_64.sh: Likewise.
476 * emulparams/elf_k1om.sh: Likewise.
477 * emulparams/elf_l1om.sh: Likewise.
478 * scripttempl/elf.sc (LARGE_BSS): Define rather than appending to
479 OTHER_BSS_SECTIONS. Substitute in script.
481 2013-01-08 Leif Ekblad <leif@rdos.net>
483 * scripttempl/elf.sc (RODATA_ADDR): Typo fix.
485 2013-01-08 Alan Modra <amodra@gmail.com>
487 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): Replace
488 "name" param with a bfd_link_needed_list pointer. Update caller.
489 (gld${EMULATION_NAME}_check_ld_elf_hints): Likewise.
491 2013-01-08 Alan Modra <amodra@gmail.com>
493 * Makefile.am (ALL_EMULATION_SOURCES): Correct eavrxmega entries.
494 * Makefile.in: Regenerate.
496 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
498 * lexsup.c (ld_options): Add fuse-ld= for GCC linker option
501 2013-01-07 Patrice Dumas <pertusus@free.fr>
503 * ld.texinfo: Replace @ with @@ when it is part of the text.
504 Correct ordering of M68HC11 entry.
506 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
508 * configure.tgt: Support ELF files for Sony Playstation 2 (for
510 * emulparams/elf32lr5900n32.sh: Create linker script for Sony
511 Playstation 2 ELF files using MIPS ABI n32.
512 * emulparams/elf32lr5900.sh: Create linker script for Sony
513 Playstation 2 ELF files using MIPS ABI o32.
514 * Makefile.am: Add linker scripts for Sony Playstation 2 ELF
517 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
519 * ldver.c (ldversion): Update copyright year to 2013.
521 For older changes see ChangeLog-2012
523 Copyright (C) 2013 Free Software Foundation, Inc.
525 Copying and distribution of this file, with or without modification,
526 are permitted in any medium without royalty provided the copyright
527 notice and this notice are preserved.
533 version-control: never