1 2013-06-12 Nick Clifton <nickc@redhat.com>
3 * ldcref.c (output_one_cref): Place common definitions after
4 ordinary definitions but before references.
6 2013-06-10 Dilyan Palauzov <dilyan.palauzov@aegee.org>
9 * ld.texinfo (Source Code Reference): Fix typos.
11 2013-06-07 Will Newton <will.newton@linaro.org>
13 * emulparams/aarch64elf.sh: Add IREL_IN_PLT.
15 2013-06-07 Nick Clifton <nickc@redhat.com>
17 * ld.texinfo (SEGMENT_START): Rephrase to indicate that a -T
18 option must appear before the SEGMENT_START is encountered in
19 order for the default value to be overridden.
21 2013-05-03 Alan Modra <amodra@gmail.com>
24 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
25 Restrict __ehdr_start's export class to no less than STV_HIDDEN.
27 2013-05-03 Alan Modra <amodra@gmail.com>
29 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
30 Only call lang_for_each_statement if an ELF hash table is used.
32 2013-05-02 Nick Clifton <nickc@redhat.com>
34 * Makefile.am: Add emsp430X.c
35 * Makefine.in: Regenerate.
36 * configure.tgt (msp430): Add msp430X emulation.
37 * ldmain.c (multiple_definition): Only disable relaxation if it
38 was enabled by the user.
39 * ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
40 * emulparams/msp430all.sh: Add support for MSP430X.
41 * emultempl/generic.em: (before_parse): Enable relaxation for the
43 * scripttempl/msp430.sc: Reorganize sections. Add .rodata
45 * scripttempl/msp430_3.sc: Likewise.
46 * NEWS: Mention support for MSP430X.
48 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
50 * configure.tgt: Replace alpha*-*-linuxecoff* pattern with
51 alpha*-*-linux*ecoff*. Update the `sed' pattern used to convert
52 from alpha*-*-linux-* to alpha*-*-linux*ecoff*.
54 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
56 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
57 Use is_elf_hash_table rather than a handcoded condition.
59 2013-04-30 Nick Clifton <nickc@redhat.com>
61 * ld.texinfo (SORT_BY_ALIGNMENT): Fix and clarify typo - sections
62 are sorted by descending order of alignment.
64 2013-04-29 Nick Clifton <nickc@redhat.com>
66 * scripttempl/DWARF.sc: Add support for .debug_line.* and
69 2013-04-29 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
71 * emultempl/pe.em [cygwin]: Do not merge rdata with v2
74 2013-04-28 Thomas Schwinge <thomas@codesourcery.com>
76 * scripttempl/armbpabi.sc: Replace "source" usage with ".".
77 * scripttempl/avr.sc: Likewise.
78 * scripttempl/elf.sc: Likewise.
79 * scripttempl/elf32cr16.sc: Likewise.
80 * scripttempl/elf32crx.sc: Likewise.
81 * scripttempl/elf32msp430.sc: Likewise.
82 * scripttempl/elf32msp430_3.sc: Likewise.
83 * scripttempl/elf32sh-symbian.sc: Likewise.
84 * scripttempl/elf64hppa.sc: Likewise.
85 * scripttempl/elf_chaos.sc: Likewise.
86 * scripttempl/elfd10v.sc: Likewise.
87 * scripttempl/elfd30v.sc: Likewise.
88 * scripttempl/elfi370.sc: Likewise.
89 * scripttempl/elfm68hc11.sc: Likewise.
90 * scripttempl/elfm68hc12.sc: Likewise.
91 * scripttempl/elfxgate.sc: Likewise.
92 * scripttempl/elfxtensa.sc: Likewise.
93 * scripttempl/epiphany_4x4.sc: Likewise.
94 * scripttempl/i386beos.sc: Likewise.
95 * scripttempl/i386go32.sc: Likewise.
96 * scripttempl/ia64vms.sc: Likewise.
97 * scripttempl/ip2k.sc: Likewise.
98 * scripttempl/iq2000.sc: Likewise.
99 * scripttempl/mep.sc: Likewise.
100 * scripttempl/mmo.sc: Likewise.
101 * scripttempl/v850.sc: Likewise.
102 * scripttempl/v850_rh850.sc: Likewise.
103 * scripttempl/xstormy16.sc: Likewise.
105 2013-04-26 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
107 * scripttempl/avr.sc: Add ALIGN directive after *(.progmem*).
109 2013-04-26 Alan Modra <amodra@gmail.com>
111 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Test
112 unresolved_syms_in_shared_libs rather than !executable to
113 determine whether to load DT_NEEDED libraries.
115 2013-04-25 Alan Modra <amodra@gmail.com>
117 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lppclinux.c.
118 (eelf32lppclinux.c): New rule.
119 * Makefile.in: Regenerate.
120 * configure.tgt: Merge powerpc-linux and other powerpc-elf targets
121 with corresponding little-endian targets.
122 * emulparams/elf32lppc.sh: Update comment.
123 * emulparams/elf32lppclinux.sh: New.
125 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
127 * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
129 (targ_extra_libpath): Likewise.
130 (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
132 2013-04-24 Yufeng Zhang <yufeng.zhang@arm.com>
134 * emulparams/aarch64elf.sh: Define ELFSIZE=64.
135 * emulparams/aarch64linux.sh: Ditto.
136 * emultempl/aarch64elf.em (aarch64_elf_before_allocation):
137 Replace elf64 with elf${ELFSIZE}.
138 (elf64_aarch64_add_stub_section): Likewise.
139 (build_section_lists): Likewise.
140 (gld${EMULATION_NAME}_after_allocation): Likewise.
141 (gld${EMULATION_NAME}_finish): Likewise.
142 (aarch64_elf_create_output_section_statements): Likewise.
144 2013-04-24 Nick Clifton <nickc@redhat.com>
147 * scripttempl/avr.sc: Add .note.gnu.build-id section.
149 2013-04-22 Alan Modra <amodra@gmail.com>
151 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
152 Check return from ppc64_elf_init_stub_bfd.
154 2013-04-15 Nick Clifton <nickc@redhat.com>
156 * Makefile.am (ELF_DEPS): Add a dependency upon
157 scripttempl/DWARF.sc.
158 (ELF_GEN_DEPS): Likewise.
160 * Makefile.in: Regenerate.
162 * scripttempl/armbpabi.sc: Replace DWARF sections with an
163 inclusion of DWARF.sc.
164 * scripttempl/avr.sc: Likewise.
165 * scripttempl/elf.sc: Likewise.
166 * scripttempl/elf32cr16.sc: Likewise.
167 * scripttempl/elf32crx.sc: Likewise.
168 * scripttempl/elf32msp430.sc: Likewise.
169 * scripttempl/elf32msp430_3.sc: Likewise.
170 * scripttempl/elf32sh-symbian.sc: Likewise.
171 * scripttempl/elf64hppa.sc: Likewise.
172 * scripttempl/elf_chaos.sc: Likewise.
173 * scripttempl/elfd10v.sc: Likewise.
174 * scripttempl/elfd30v.sc: Likewise.
175 * scripttempl/elfi370.sc: Likewise.
176 * scripttempl/elfm68hc11.sc: Likewise.
177 * scripttempl/elfm68hc12.sc: Likewise.
178 * scripttempl/elfxgate.sc: Likewise.
179 * scripttempl/elfxtensa.sc: Likewise.
180 * scripttempl/epiphany_4x4.sc: Likewise.
181 * scripttempl/i386beos.sc: Likewise.
182 * scripttempl/i386go32.sc: Likewise.
183 * scripttempl/ia64vms.sc: Likewise.
184 * scripttempl/ip2k.sc: Likewise.
185 * scripttempl/iq2000.sc: Likewise.
186 * scripttempl/mep.sc: Likewise.
187 * scripttempl/mmo.sc: Likewise.
188 * scripttempl/v850.sc: Likewise.
189 * scripttempl/v850_rh850.sc: Likewise.
190 * scripttempl/xstormy16.sc: Likewise.
191 * scripttempl/DWARF.sc: New.
193 2013-04-04 Alan Modra <amodra@gmail.com>
195 * ldlang.c (load_symbols): Report "error adding symbols" on
196 bfd_link_add_symbols failure.
197 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
198 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
199 (gld${EMULATION_NAME}_try_needed): Likewise.
201 2013-03-27 Georg-Johann Lay <gjl@gcc.gnu.org>
204 * scripttempl/avr.sc: Place trampolines before .progmem section.
206 2013-03-25 Kai Tietz <ktietz@redhat.com>
208 * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.
210 2013-03-21 Michael Schewe <michael.schewe@gmx.net>
212 * ld.texinfo (H8/300): Add description of relaxation of
213 mov @(disp:32,ERx) to mov @(disp:16,ERx).
215 2013-03-21 Kai Tietz <ktietz@redhat.com>
217 * pe-dll.c (process_def_file_and_drectve): Don't handle VC
218 generated C++-symbols as stdcall/fastcall.
220 2013-03-18 Alan Modra <amodra@gmail.com>
222 * ld.texinfo (--as-needed): Update.
224 2013-03-14 Jakub Jelinek <jakub@redhat.com>
226 * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
227 aarch64linux* emulations.
229 2013-03-07 Alan Modra <amodra@gmail.com>
231 * ldfile.c (ldfile_open_command_file_1): Return after einfo
234 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
236 * configure.host: Add x86_64-*-cygwin* as valid host.
237 * configure.tgt: Add x86_64-*-cygwin* as valid target.
238 * emultempl/pep.em: Handle different requirements for Cygwin in terms
239 of start addresses for executables and DLLs, based on memory model in
240 http://cygwin.com/ml/cygwin-developers/2013-02/msg00027.html
242 2013-03-05 Alan Modra <amodra@gmail.com>
245 * ldlang.c (lang_size_sections_1): When given an lma_region align
246 LMA as per VMA only if lma_region is the same as region.
248 2013-02-27 Nick Clifton <nickc@redhat.com>
250 * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
251 Add alignment of .bss section.
252 * scripttempl/elf32msp430_3.sc: Likewise.
254 2013-02-26 Nick Clifton <nickc@redhat.com>
257 * ld.texinfo: Fix typos.
259 2013-02-21 Alan Modra <amodra@gmail.com>
261 * scripttempl/elf.sc (.init_array, .fini_array): Don't sort all
262 .init_array/.fini_array input sections before .ctors/.dtors input
264 (CTORS_IN_INIT_ARRAY, DTORS_IN_INIT_ARRAY): Adjust to suit.
266 2013-02-21 Alan Modra <amodra@gmail.com>
268 * emultempl/elf32.em (write_build_id, setup_build_id): Adjust
269 for elf_tdata changes.
271 2013-02-21 Alan Modra <amodra@gmail.com>
273 * emultempl/elf-generic.em: Use newly defined elf_obj_tdata
276 2013-02-20 Alan Modra <amodra@gmail.com>
278 * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.
279 * Makefile.in: Regenerate.
281 2013-02-19 Sandra Loosemore <sandra@codesourcery.com>
284 * plugin.c (plugin_notice): Add null check before dereferencing
287 2013-02-19 Alan Modra <amodra@gmail.com>
289 * emultempl/elf32.em (emit_note_gnu_build_id): New static var.
290 Replace all info->emit_note_gnu_build_id refs.
291 (id_note_section_size): Rename from
292 gld${EMULATION_NAME}_id_note_section_size.
293 (struct build_id_info): Delete.
294 (write_build_id): Rename from
295 gld${EMULATION_NAME}_write_build_id_section.
296 Update elf_tdata usage. Style, formatting.
297 (setup_build_id): New function.
298 (gld${EMULATION_NAME}_after_open): Use setup_build_id.
300 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
303 * plugin.c (plugin_notice): Replace the undefined dummy bfd with
306 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
309 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
311 2013-02-15 Kai Tietz <ktietz@redhat.com>
313 * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
314 (.pdata): Merge .pdata* into .pdata section.
316 2013-02-11 Alan Modra <amodra@gmail.com>
318 * ldlang.c (get_init_priority): Comment typo.
319 (lang_finish): Free link_info.hash and lang_definedness_table.
320 (lang_end): Delete lang_definedness_table comment.
322 2013-02-11 Alan Modra <amodra@gmail.com>
325 * ld.texinfo (-rpath-link): Typo fix.
327 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
329 * emultempl/metagelf.em (build_section_lists): Use sec_info_type
330 rather than userdata->flags.just_syms.
332 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
333 Andrew Jenner <andrew@codesourcery.com>
335 Based on patches from Altera Corporation.
337 * Makefile.am (enios2elf.c): New rule.
338 * Makefile.in: Regenerated.
339 * configure.tgt: Add case for nios2*-*-*.
340 * emulparams/nios2elf.sh: New file.
341 * NEWS: Note Altera Nios II support.
343 2013-02-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
345 * emultempl/avrelf.em (avr_elf_before_parse): New function.
346 (LDEMUL_BEFORE_PARSE): Define.
348 2013-02-06 Alan Modra <amodra@gmail.com>
351 * emultempl/elf32.em: Revert 2013-02-04, 2013-01-22 and 2013-01-21.
352 * emultempl/alphaelf.em: Revert 2013-02-04.
353 * emultempl/cr16elf.em: Likewise.
354 * emultempl/crxelf.em: Likewise.
355 * emultempl/hppaelf.em: Likewise.
356 * emultempl/ia64elf.em: Likewise.
357 * emultempl/mipself.em: Likewise.
358 * NEWS: Revert 2013-01-21.
360 2013-02-04 H.J. Lu <hongjiu.lu@intel.com>
363 * emultempl/alphaelf.em (alpha_after_parse): Call
364 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
365 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
366 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
367 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
368 * emultempl/mipself.em (mips_after_parse): Likewise.
370 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Renamed
372 (gld_${EMULATION_NAME}_after_parse): This. Call
373 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
374 (LDEMUL_AFTER_PARSE): Set to gld_${EMULATION_NAME}_after_parse.
376 * emultempl/elf32.em (new_dtags_set): New variable.
377 (gld${EMULATION_NAME}_before_parse): Don't set link_info.new_dtags
379 (gld${EMULATION_NAME}_after_parse): New function.
380 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default'
381 with gld${EMULATION_NAME}_after_parse.
382 (gld${EMULATION_NAME}_handle_option): Set new_dtags_set to TRUE
383 when setting link_info.new_dtags.
385 2013-01-25 Kai Tietz <ktietz@redhat.com>
387 * deffilep.y (def_image_name): Adjust type of base-address
389 (%union): Add new type bfd_vma as vma.
391 (opt_base): Use VMA instead of NUMBER rule to evaluate value.
392 (def_file_print): Use bfd's fprintf_vma to output base-address.
394 2013-01-24 Nick Clifton <nickc@redhat.com>
396 * NEWS: Mention support for V850E3V5 architecture.
398 2013-01-23 Martin Koegler <martin.koegler@chello.at>
401 * scripttempl/pep.sc (.pdata): Only accept .pdata sections.
403 (.debug_frame): Similarly.
405 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
408 * scripttempl/avr.sc (.eeprom): Keep it.
410 2013-01-23 Leif Ekblad <leif@rdos.net>
412 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
413 (eelf64rdos.c): New rule.
414 * emulparams/elf64rdos.sh: New file.
415 * configure.tgt (x86_64-*-rdos*): Use above.
416 * Makefile.in: Regenerate.
418 2013-01-22 Roland McGrath <mcgrathr@google.com>
420 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
421 new_dtags to TRUE for *-*-nacl* targets.
423 2013-01-21 Mike Frysinger <vapier@gentoo.org>
425 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
426 link_info.new_dtags to TRUE for linux/gnu targets.
427 * NEWS: Mention new dtags default.
429 2013-01-19 H.J. Lu <hongjiu.lu@intel.com>
431 * Makefile.am (HOSTING_SCRT0): New.
433 * configure.host (HOSTING_SCRT0): New. Used for PIE.
435 * configure.in (HOSTING_SCRT0): New AC_SUBST.
437 * Makefile.in: Regenerated.
438 * configure: Likewise.
440 2013-01-18 Mike Frysinger <vapier@gentoo.org>
442 * NEWS: Mention change in behavior with --enable-new-dtags.
443 * ld.texinfo (Options): Clarify --enable-new-dtags behavior.
445 2013-01-14 Leif Ekblad <leif@rdos.net>
446 Alan Modra <amodra@gmail.com>
448 * ld.texinfo (-Tldata-segment): Describe.
449 * ldlex.h (OPTION_TLDATA_SEGMENT): New enum value.
450 * lexsup.c (ld_options): Add -Tldata-segment.
451 (parse_args): Handle OPTION_TLDATA_SEGMENT.
452 * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
454 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
456 * deffilep.y: Remove trailing white spaces.
457 * elf-hints-local.h: Likewise.
459 * ldlang.h: Likewise.
460 * ldmisc.c: Likewise.
461 * ldwrite.c: Likewise.
462 * pe-dll.c: Likewise.
463 * emulparams/criself.sh: Likewise.
464 * emulparams/crislinux.sh: Likewise.
465 * emulparams/elf32_tic6x_le.sh: Likewise.
466 * emulparams/elf32bmipn32-defs.sh: Likewise.
467 * emulparams/elf32mb_linux.sh: Likewise.
468 * emulparams/elf32mep.sh: Likewise.
469 * emulparams/elf32microblaze.sh: Likewise.
470 * emulparams/elf32ppc.sh: Likewise.
471 * emulparams/elf64_s390.sh: Likewise.
472 * emulparams/elf64alpha.sh: Likewise.
473 * emulparams/elf_s390.sh: Likewise.
474 * emulparams/elf_x86_64.sh: Likewise.
475 * emulparams/tic80coff.sh: Likewise.
476 * emultempl/aix.em: Likewise.
477 * emultempl/avrelf.em: Likewise.
478 * emultempl/cr16elf.em: Likewise.
479 * emultempl/pe.em: Likewise.
480 * emultempl/pep.em: Likewise.
481 * emultempl/spuelf.em: Likewise.
482 * emultempl/tic6xdsbt.em: Likewise.
484 2013-01-10 Will Newton <will.newton@imgtec.com>
486 * Makefile.am: Add Meta.
487 * Makefile.in: Regenerate.
488 * configure.tgt: Add Meta.
489 * emulparams/elf32metag.sh: New file.
490 * emultempl/metagelf.em: New file.
492 2013-01-09 Alan Modra <amodra@gmail.com>
494 * emulparams/elf_x86_64.sh (LARGE_BSS_AFTER_BSS): Define.
495 * emulparams/elf32_x86_64.sh: Likewise.
496 * emulparams/elf_k1om.sh: Likewise.
497 * emulparams/elf_l1om.sh: Likewise.
498 * scripttempl/elf.sc (LARGE_BSS): Define rather than appending to
499 OTHER_BSS_SECTIONS. Substitute in script.
501 2013-01-08 Leif Ekblad <leif@rdos.net>
503 * scripttempl/elf.sc (RODATA_ADDR): Typo fix.
505 2013-01-08 Alan Modra <amodra@gmail.com>
507 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): Replace
508 "name" param with a bfd_link_needed_list pointer. Update caller.
509 (gld${EMULATION_NAME}_check_ld_elf_hints): Likewise.
511 2013-01-08 Alan Modra <amodra@gmail.com>
513 * Makefile.am (ALL_EMULATION_SOURCES): Correct eavrxmega entries.
514 * Makefile.in: Regenerate.
516 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
518 * lexsup.c (ld_options): Add fuse-ld= for GCC linker option
521 2013-01-07 Patrice Dumas <pertusus@free.fr>
523 * ld.texinfo: Replace @ with @@ when it is part of the text.
524 Correct ordering of M68HC11 entry.
526 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
528 * configure.tgt: Support ELF files for Sony Playstation 2 (for
530 * emulparams/elf32lr5900n32.sh: Create linker script for Sony
531 Playstation 2 ELF files using MIPS ABI n32.
532 * emulparams/elf32lr5900.sh: Create linker script for Sony
533 Playstation 2 ELF files using MIPS ABI o32.
534 * Makefile.am: Add linker scripts for Sony Playstation 2 ELF
537 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
539 * ldver.c (ldversion): Update copyright year to 2013.
541 For older changes see ChangeLog-2012
543 Copyright (C) 2013 Free Software Foundation, Inc.
545 Copying and distribution of this file, with or without modification,
546 are permitted in any medium without royalty provided the copyright
547 notice and this notice are preserved.
553 version-control: never