1 2013-06-07 Nick Clifton <nickc@redhat.com>
3 * ld.texinfo (SEGMENT_START): Rephrase to indicate that a -T
4 option must appear before the SEGMENT_START is encountered in
5 order for the default value to be overridden.
7 2013-05-03 Alan Modra <amodra@gmail.com>
10 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
11 Restrict __ehdr_start's export class to no less than STV_HIDDEN.
13 2013-05-03 Alan Modra <amodra@gmail.com>
15 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
16 Only call lang_for_each_statement if an ELF hash table is used.
18 2013-05-02 Nick Clifton <nickc@redhat.com>
20 * Makefile.am: Add emsp430X.c
21 * Makefine.in: Regenerate.
22 * configure.tgt (msp430): Add msp430X emulation.
23 * ldmain.c (multiple_definition): Only disable relaxation if it
24 was enabled by the user.
25 * ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
26 * emulparams/msp430all.sh: Add support for MSP430X.
27 * emultempl/generic.em: (before_parse): Enable relaxation for the
29 * scripttempl/msp430.sc: Reorganize sections. Add .rodata
31 * scripttempl/msp430_3.sc: Likewise.
32 * NEWS: Mention support for MSP430X.
34 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
36 * configure.tgt: Replace alpha*-*-linuxecoff* pattern with
37 alpha*-*-linux*ecoff*. Update the `sed' pattern used to convert
38 from alpha*-*-linux-* to alpha*-*-linux*ecoff*.
40 2013-05-01 Maciej W. Rozycki <macro@codesourcery.com>
42 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
43 Use is_elf_hash_table rather than a handcoded condition.
45 2013-04-30 Nick Clifton <nickc@redhat.com>
47 * ld.texinfo (SORT_BY_ALIGNMENT): Fix and clarify typo - sections
48 are sorted by descending order of alignment.
50 2013-04-29 Nick Clifton <nickc@redhat.com>
52 * scripttempl/DWARF.sc: Add support for .debug_line.* and
55 2013-04-29 Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
57 * emultempl/pe.em [cygwin]: Do not merge rdata with v2
60 2013-04-28 Thomas Schwinge <thomas@codesourcery.com>
62 * scripttempl/armbpabi.sc: Replace "source" usage with ".".
63 * scripttempl/avr.sc: Likewise.
64 * scripttempl/elf.sc: Likewise.
65 * scripttempl/elf32cr16.sc: Likewise.
66 * scripttempl/elf32crx.sc: Likewise.
67 * scripttempl/elf32msp430.sc: Likewise.
68 * scripttempl/elf32msp430_3.sc: Likewise.
69 * scripttempl/elf32sh-symbian.sc: Likewise.
70 * scripttempl/elf64hppa.sc: Likewise.
71 * scripttempl/elf_chaos.sc: Likewise.
72 * scripttempl/elfd10v.sc: Likewise.
73 * scripttempl/elfd30v.sc: Likewise.
74 * scripttempl/elfi370.sc: Likewise.
75 * scripttempl/elfm68hc11.sc: Likewise.
76 * scripttempl/elfm68hc12.sc: Likewise.
77 * scripttempl/elfxgate.sc: Likewise.
78 * scripttempl/elfxtensa.sc: Likewise.
79 * scripttempl/epiphany_4x4.sc: Likewise.
80 * scripttempl/i386beos.sc: Likewise.
81 * scripttempl/i386go32.sc: Likewise.
82 * scripttempl/ia64vms.sc: Likewise.
83 * scripttempl/ip2k.sc: Likewise.
84 * scripttempl/iq2000.sc: Likewise.
85 * scripttempl/mep.sc: Likewise.
86 * scripttempl/mmo.sc: Likewise.
87 * scripttempl/v850.sc: Likewise.
88 * scripttempl/v850_rh850.sc: Likewise.
89 * scripttempl/xstormy16.sc: Likewise.
91 2013-04-26 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
93 * scripttempl/avr.sc: Add ALIGN directive after *(.progmem*).
95 2013-04-26 Alan Modra <amodra@gmail.com>
97 * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Test
98 unresolved_syms_in_shared_libs rather than !executable to
99 determine whether to load DT_NEEDED libraries.
101 2013-04-25 Alan Modra <amodra@gmail.com>
103 * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lppclinux.c.
104 (eelf32lppclinux.c): New rule.
105 * Makefile.in: Regenerate.
106 * configure.tgt: Merge powerpc-linux and other powerpc-elf targets
107 with corresponding little-endian targets.
108 * emulparams/elf32lppc.sh: Update comment.
109 * emulparams/elf32lppclinux.sh: New.
111 2013-04-24 H.J. Lu <hongjiu.lu@intel.com>
113 * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
115 (targ_extra_libpath): Likewise.
116 (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
118 2013-04-24 Yufeng Zhang <yufeng.zhang@arm.com>
120 * emulparams/aarch64elf.sh: Define ELFSIZE=64.
121 * emulparams/aarch64linux.sh: Ditto.
122 * emultempl/aarch64elf.em (aarch64_elf_before_allocation):
123 Replace elf64 with elf${ELFSIZE}.
124 (elf64_aarch64_add_stub_section): Likewise.
125 (build_section_lists): Likewise.
126 (gld${EMULATION_NAME}_after_allocation): Likewise.
127 (gld${EMULATION_NAME}_finish): Likewise.
128 (aarch64_elf_create_output_section_statements): Likewise.
130 2013-04-24 Nick Clifton <nickc@redhat.com>
133 * scripttempl/avr.sc: Add .note.gnu.build-id section.
135 2013-04-22 Alan Modra <amodra@gmail.com>
137 * emultempl/ppc64elf.em (ppc_create_output_section_statements):
138 Check return from ppc64_elf_init_stub_bfd.
140 2013-04-15 Nick Clifton <nickc@redhat.com>
142 * Makefile.am (ELF_DEPS): Add a dependency upon
143 scripttempl/DWARF.sc.
144 (ELF_GEN_DEPS): Likewise.
146 * Makefile.in: Regenerate.
148 * scripttempl/armbpabi.sc: Replace DWARF sections with an
149 inclusion of DWARF.sc.
150 * scripttempl/avr.sc: Likewise.
151 * scripttempl/elf.sc: Likewise.
152 * scripttempl/elf32cr16.sc: Likewise.
153 * scripttempl/elf32crx.sc: Likewise.
154 * scripttempl/elf32msp430.sc: Likewise.
155 * scripttempl/elf32msp430_3.sc: Likewise.
156 * scripttempl/elf32sh-symbian.sc: Likewise.
157 * scripttempl/elf64hppa.sc: Likewise.
158 * scripttempl/elf_chaos.sc: Likewise.
159 * scripttempl/elfd10v.sc: Likewise.
160 * scripttempl/elfd30v.sc: Likewise.
161 * scripttempl/elfi370.sc: Likewise.
162 * scripttempl/elfm68hc11.sc: Likewise.
163 * scripttempl/elfm68hc12.sc: Likewise.
164 * scripttempl/elfxgate.sc: Likewise.
165 * scripttempl/elfxtensa.sc: Likewise.
166 * scripttempl/epiphany_4x4.sc: Likewise.
167 * scripttempl/i386beos.sc: Likewise.
168 * scripttempl/i386go32.sc: Likewise.
169 * scripttempl/ia64vms.sc: Likewise.
170 * scripttempl/ip2k.sc: Likewise.
171 * scripttempl/iq2000.sc: Likewise.
172 * scripttempl/mep.sc: Likewise.
173 * scripttempl/mmo.sc: Likewise.
174 * scripttempl/v850.sc: Likewise.
175 * scripttempl/v850_rh850.sc: Likewise.
176 * scripttempl/xstormy16.sc: Likewise.
177 * scripttempl/DWARF.sc: New.
179 2013-04-04 Alan Modra <amodra@gmail.com>
181 * ldlang.c (load_symbols): Report "error adding symbols" on
182 bfd_link_add_symbols failure.
183 * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
184 * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
185 (gld${EMULATION_NAME}_try_needed): Likewise.
187 2013-03-27 Georg-Johann Lay <gjl@gcc.gnu.org>
190 * scripttempl/avr.sc: Place trampolines before .progmem section.
192 2013-03-25 Kai Tietz <ktietz@redhat.com>
194 * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.
196 2013-03-21 Michael Schewe <michael.schewe@gmx.net>
198 * ld.texinfo (H8/300): Add description of relaxation of
199 mov @(disp:32,ERx) to mov @(disp:16,ERx).
201 2013-03-21 Kai Tietz <ktietz@redhat.com>
203 * pe-dll.c (process_def_file_and_drectve): Don't handle VC
204 generated C++-symbols as stdcall/fastcall.
206 2013-03-18 Alan Modra <amodra@gmail.com>
208 * ld.texinfo (--as-needed): Update.
210 2013-03-14 Jakub Jelinek <jakub@redhat.com>
212 * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
213 aarch64linux* emulations.
215 2013-03-07 Alan Modra <amodra@gmail.com>
217 * ldfile.c (ldfile_open_command_file_1): Return after einfo
220 2013-03-05 Corinna Vinschen <vinschen@redhat.com>
222 * configure.host: Add x86_64-*-cygwin* as valid host.
223 * configure.tgt: Add x86_64-*-cygwin* as valid target.
224 * emultempl/pep.em: Handle different requirements for Cygwin in terms
225 of start addresses for executables and DLLs, based on memory model in
226 http://cygwin.com/ml/cygwin-developers/2013-02/msg00027.html
228 2013-03-05 Alan Modra <amodra@gmail.com>
231 * ldlang.c (lang_size_sections_1): When given an lma_region align
232 LMA as per VMA only if lma_region is the same as region.
234 2013-02-27 Nick Clifton <nickc@redhat.com>
236 * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
237 Add alignment of .bss section.
238 * scripttempl/elf32msp430_3.sc: Likewise.
240 2013-02-26 Nick Clifton <nickc@redhat.com>
243 * ld.texinfo: Fix typos.
245 2013-02-21 Alan Modra <amodra@gmail.com>
247 * scripttempl/elf.sc (.init_array, .fini_array): Don't sort all
248 .init_array/.fini_array input sections before .ctors/.dtors input
250 (CTORS_IN_INIT_ARRAY, DTORS_IN_INIT_ARRAY): Adjust to suit.
252 2013-02-21 Alan Modra <amodra@gmail.com>
254 * emultempl/elf32.em (write_build_id, setup_build_id): Adjust
255 for elf_tdata changes.
257 2013-02-21 Alan Modra <amodra@gmail.com>
259 * emultempl/elf-generic.em: Use newly defined elf_obj_tdata
262 2013-02-20 Alan Modra <amodra@gmail.com>
264 * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.
265 * Makefile.in: Regenerate.
267 2013-02-19 Sandra Loosemore <sandra@codesourcery.com>
270 * plugin.c (plugin_notice): Add null check before dereferencing
273 2013-02-19 Alan Modra <amodra@gmail.com>
275 * emultempl/elf32.em (emit_note_gnu_build_id): New static var.
276 Replace all info->emit_note_gnu_build_id refs.
277 (id_note_section_size): Rename from
278 gld${EMULATION_NAME}_id_note_section_size.
279 (struct build_id_info): Delete.
280 (write_build_id): Rename from
281 gld${EMULATION_NAME}_write_build_id_section.
282 Update elf_tdata usage. Style, formatting.
283 (setup_build_id): New function.
284 (gld${EMULATION_NAME}_after_open): Use setup_build_id.
286 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
289 * plugin.c (plugin_notice): Replace the undefined dummy bfd with
292 2013-02-16 H.J. Lu <hongjiu.lu@intel.com>
295 * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
297 2013-02-15 Kai Tietz <ktietz@redhat.com>
299 * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
300 (.pdata): Merge .pdata* into .pdata section.
302 2013-02-11 Alan Modra <amodra@gmail.com>
304 * ldlang.c (get_init_priority): Comment typo.
305 (lang_finish): Free link_info.hash and lang_definedness_table.
306 (lang_end): Delete lang_definedness_table comment.
308 2013-02-11 Alan Modra <amodra@gmail.com>
311 * ld.texinfo (-rpath-link): Typo fix.
313 2013-02-08 Markos Chandras <markos.chandras@imgtec.com>
315 * emultempl/metagelf.em (build_section_lists): Use sec_info_type
316 rather than userdata->flags.just_syms.
318 2013-02-06 Sandra Loosemore <sandra@codesourcery.com>
319 Andrew Jenner <andrew@codesourcery.com>
321 Based on patches from Altera Corporation.
323 * Makefile.am (enios2elf.c): New rule.
324 * Makefile.in: Regenerated.
325 * configure.tgt: Add case for nios2*-*-*.
326 * emulparams/nios2elf.sh: New file.
327 * NEWS: Note Altera Nios II support.
329 2013-02-06 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
331 * emultempl/avrelf.em (avr_elf_before_parse): New function.
332 (LDEMUL_BEFORE_PARSE): Define.
334 2013-02-06 Alan Modra <amodra@gmail.com>
337 * emultempl/elf32.em: Revert 2013-02-04, 2013-01-22 and 2013-01-21.
338 * emultempl/alphaelf.em: Revert 2013-02-04.
339 * emultempl/cr16elf.em: Likewise.
340 * emultempl/crxelf.em: Likewise.
341 * emultempl/hppaelf.em: Likewise.
342 * emultempl/ia64elf.em: Likewise.
343 * emultempl/mipself.em: Likewise.
344 * NEWS: Revert 2013-01-21.
346 2013-02-04 H.J. Lu <hongjiu.lu@intel.com>
349 * emultempl/alphaelf.em (alpha_after_parse): Call
350 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
351 * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
352 * emultempl/crxelf.em (crxelf_after_parse): Likewise.
353 * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
354 * emultempl/mipself.em (mips_after_parse): Likewise.
356 * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Renamed
358 (gld_${EMULATION_NAME}_after_parse): This. Call
359 gld${EMULATION_NAME}_after_parse instead of after_parse_default.
360 (LDEMUL_AFTER_PARSE): Set to gld_${EMULATION_NAME}_after_parse.
362 * emultempl/elf32.em (new_dtags_set): New variable.
363 (gld${EMULATION_NAME}_before_parse): Don't set link_info.new_dtags
365 (gld${EMULATION_NAME}_after_parse): New function.
366 (ld_${EMULATION_NAME}_emulation): Replace after_parse_default'
367 with gld${EMULATION_NAME}_after_parse.
368 (gld${EMULATION_NAME}_handle_option): Set new_dtags_set to TRUE
369 when setting link_info.new_dtags.
371 2013-01-25 Kai Tietz <ktietz@redhat.com>
373 * deffilep.y (def_image_name): Adjust type of base-address
375 (%union): Add new type bfd_vma as vma.
377 (opt_base): Use VMA instead of NUMBER rule to evaluate value.
378 (def_file_print): Use bfd's fprintf_vma to output base-address.
380 2013-01-24 Nick Clifton <nickc@redhat.com>
382 * NEWS: Mention support for V850E3V5 architecture.
384 2013-01-23 Martin Koegler <martin.koegler@chello.at>
387 * scripttempl/pep.sc (.pdata): Only accept .pdata sections.
389 (.debug_frame): Similarly.
391 2013-01-23 Georg-Johann Lay <avr@gjlay.de>
394 * scripttempl/avr.sc (.eeprom): Keep it.
396 2013-01-23 Leif Ekblad <leif@rdos.net>
398 * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
399 (eelf64rdos.c): New rule.
400 * emulparams/elf64rdos.sh: New file.
401 * configure.tgt (x86_64-*-rdos*): Use above.
402 * Makefile.in: Regenerate.
404 2013-01-22 Roland McGrath <mcgrathr@google.com>
406 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
407 new_dtags to TRUE for *-*-nacl* targets.
409 2013-01-21 Mike Frysinger <vapier@gentoo.org>
411 * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
412 link_info.new_dtags to TRUE for linux/gnu targets.
413 * NEWS: Mention new dtags default.
415 2013-01-19 H.J. Lu <hongjiu.lu@intel.com>
417 * Makefile.am (HOSTING_SCRT0): New.
419 * configure.host (HOSTING_SCRT0): New. Used for PIE.
421 * configure.in (HOSTING_SCRT0): New AC_SUBST.
423 * Makefile.in: Regenerated.
424 * configure: Likewise.
426 2013-01-18 Mike Frysinger <vapier@gentoo.org>
428 * NEWS: Mention change in behavior with --enable-new-dtags.
429 * ld.texinfo (Options): Clarify --enable-new-dtags behavior.
431 2013-01-14 Leif Ekblad <leif@rdos.net>
432 Alan Modra <amodra@gmail.com>
434 * ld.texinfo (-Tldata-segment): Describe.
435 * ldlex.h (OPTION_TLDATA_SEGMENT): New enum value.
436 * lexsup.c (ld_options): Add -Tldata-segment.
437 (parse_args): Handle OPTION_TLDATA_SEGMENT.
438 * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
440 2013-01-10 H.J. Lu <hongjiu.lu@intel.com>
442 * deffilep.y: Remove trailing white spaces.
443 * elf-hints-local.h: Likewise.
445 * ldlang.h: Likewise.
446 * ldmisc.c: Likewise.
447 * ldwrite.c: Likewise.
448 * pe-dll.c: Likewise.
449 * emulparams/criself.sh: Likewise.
450 * emulparams/crislinux.sh: Likewise.
451 * emulparams/elf32_tic6x_le.sh: Likewise.
452 * emulparams/elf32bmipn32-defs.sh: Likewise.
453 * emulparams/elf32mb_linux.sh: Likewise.
454 * emulparams/elf32mep.sh: Likewise.
455 * emulparams/elf32microblaze.sh: Likewise.
456 * emulparams/elf32ppc.sh: Likewise.
457 * emulparams/elf64_s390.sh: Likewise.
458 * emulparams/elf64alpha.sh: Likewise.
459 * emulparams/elf_s390.sh: Likewise.
460 * emulparams/elf_x86_64.sh: Likewise.
461 * emulparams/tic80coff.sh: Likewise.
462 * emultempl/aix.em: Likewise.
463 * emultempl/avrelf.em: Likewise.
464 * emultempl/cr16elf.em: Likewise.
465 * emultempl/pe.em: Likewise.
466 * emultempl/pep.em: Likewise.
467 * emultempl/spuelf.em: Likewise.
468 * emultempl/tic6xdsbt.em: Likewise.
470 2013-01-10 Will Newton <will.newton@imgtec.com>
472 * Makefile.am: Add Meta.
473 * Makefile.in: Regenerate.
474 * configure.tgt: Add Meta.
475 * emulparams/elf32metag.sh: New file.
476 * emultempl/metagelf.em: New file.
478 2013-01-09 Alan Modra <amodra@gmail.com>
480 * emulparams/elf_x86_64.sh (LARGE_BSS_AFTER_BSS): Define.
481 * emulparams/elf32_x86_64.sh: Likewise.
482 * emulparams/elf_k1om.sh: Likewise.
483 * emulparams/elf_l1om.sh: Likewise.
484 * scripttempl/elf.sc (LARGE_BSS): Define rather than appending to
485 OTHER_BSS_SECTIONS. Substitute in script.
487 2013-01-08 Leif Ekblad <leif@rdos.net>
489 * scripttempl/elf.sc (RODATA_ADDR): Typo fix.
491 2013-01-08 Alan Modra <amodra@gmail.com>
493 * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): Replace
494 "name" param with a bfd_link_needed_list pointer. Update caller.
495 (gld${EMULATION_NAME}_check_ld_elf_hints): Likewise.
497 2013-01-08 Alan Modra <amodra@gmail.com>
499 * Makefile.am (ALL_EMULATION_SOURCES): Correct eavrxmega entries.
500 * Makefile.in: Regenerate.
502 2013-01-07 H.J. Lu <hongjiu.lu@intel.com>
504 * lexsup.c (ld_options): Add fuse-ld= for GCC linker option
507 2013-01-07 Patrice Dumas <pertusus@free.fr>
509 * ld.texinfo: Replace @ with @@ when it is part of the text.
510 Correct ordering of M68HC11 entry.
512 2013-01-04 Juergen Urban <JuergenUrban@gmx.de>
514 * configure.tgt: Support ELF files for Sony Playstation 2 (for
516 * emulparams/elf32lr5900n32.sh: Create linker script for Sony
517 Playstation 2 ELF files using MIPS ABI n32.
518 * emulparams/elf32lr5900.sh: Create linker script for Sony
519 Playstation 2 ELF files using MIPS ABI o32.
520 * Makefile.am: Add linker scripts for Sony Playstation 2 ELF
523 2013-01-02 H.J. Lu <hongjiu.lu@intel.com>
525 * ldver.c (ldversion): Update copyright year to 2013.
527 For older changes see ChangeLog-2012
529 Copyright (C) 2013 Free Software Foundation, Inc.
531 Copying and distribution of this file, with or without modification,
532 are permitted in any medium without royalty provided the copyright
533 notice and this notice are preserved.
539 version-control: never