* scripttempl/avr.sc: Set .data section's LMA to next available
[platform/upstream/binutils.git] / ld / ChangeLog
1 2013-11-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2
3         * scripttempl/avr.sc: Set .data section's LMA to next available
4         address in text region.
5
6 2013-11-21  Andrew Pinski  <apinski@cavium.com>
7
8         * Makefile.am (ALL_64_EMULATION_SOURCES): Add eaarch64linux32.c
9         and eaarch64linux32b.c
10         (eaarch64linux32.c): New target.
11         (eaarch64linux32b.c): Likewise.
12         * Makefile.in: Regenerate.
13         * configure.tgt (aarch64_be-*-linux*): Add
14         aarch64linux32 and aarch64linux32b to targ_extra_libpath.
15         (aarch64-*-linux*): Likewise.
16         * emulparams/aarch64elf32.sh (SEPARATE_GOTPLT): Change to 12 (3 words).
17         * emulparams/aarch64linux32.sh: New file.
18         * emulparams/aarch64linux32b.sh: New file.
19
20 2013-11-21  Andrew Pinski  <apinski@cavium.com>
21
22         * configure.tgt (aarch64_be-*-linux*): Split out the linux targets
23         into targ_extra_libpath.
24         (aarch64-*-linux*): Likewise.
25
26 2013-11-21  Nick Clifton  <nickc@redhat.com>
27
28         PR ld/16192
29         * pe-dll.c (pe_create_runtime_relocator_reference): Zero the
30         newly allocated idata5 block.
31
32 2013-11-20  Nick Clifton  <nickc@redhat.com>
33
34         * scripttempl/elf32msp430.sc (.data): Set the based on the next
35         free location in the text memory region, not a computation based
36         upon the size of the text section.  Orphaned sections or other
37         linker scripts might insert new sections between the .text section
38         and the .data section.
39         * scripttempl/elf32msp430_3.sc (.data): Likewise.
40
41 2013-11-19  Roland McGrath  <mcgrathr@google.com>
42             Alan Modra  <amodra@gmail.com>
43
44         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
45         Don't use bfd_elf_record_link_assignment to mark __ehdr_start
46         hidden.  Instead, just do it directly here, and only if it was
47         referenced but not defined.
48
49 2013-11-18  Chung-Lin Tang  <cltang@codesourcery.com>
50
51         * emulparams/nios2linux.sh: New emulation file.
52         * configure.tgt: Add nios2*-*-linux* emulation case.
53         * Makefile.am (enios2linux.c): New emulation entry.
54         * Makefile.in: Regenerate.
55
56 2013-10-14  Nick Clifton  <nickc@redhat.com>
57
58         * emultempl/aix.em (_read_file): Close file at end of function.
59
60 2013-10-10  Roland McGrath  <mcgrathr@google.com>
61
62         * ldmisc.c (vfinfo): Use Boolean ? "" : ":" in place of ":" + Boolean.
63         It silences some compilers' warnings and is much less bizarre to read.
64
65 2013-10-09  Roland McGrath  <mcgrathr@google.com>
66
67         * emultempl/elf32.em (id_note_section_size): Use ATTRIBUTE_UNUSED
68         rather than a dummy assignment for unused parameter.
69         * plugin.c (get_input_file, release_input_file): Likewise.
70
71 2013-10-09  Nick Clifton  <nickc@redhat.com>
72
73         PR ld/16028
74         * ldmain.c (add_keepsyms_file): Close file at end of function.
75
76 2013-10-03  Will Newton  <will.newton@linaro.org>
77
78         * emulparams/aarch64elf.sh: Add IREL_IN_PLT.
79         * emulparams/aarch64elf32.sh: Likewise.
80
81 2013-09-30  Nick Clifton  <nickc@redhat.com>
82
83         * emulparams/msp430all.sh: Update ARCH names.
84
85 2013-09-24  Alan Modra  <amodra@gmail.com>
86
87         * emulparams/elf32ppccommon.sh (LIBPATH_SUFFIX): Provide 32-bit
88         and cross-endian values.
89         * emulparams/elf64ppc.sh: Source elf32ppccomon.sh.  Delete duplicate,
90         and unset unwanted variables.
91
92 2013-09-24  Alan Modra  <amodra@gmail.com>
93
94         * genscripts.sh (LIB_PATH): Don't exclude libdir or tooldir when
95         sysrooted.  Also, don't always add tooldir when non-sysrooted.
96         Instead add both when native and tooldir also when TOOL_DIR is
97         defined.  Always prepend '=' to paths when sysrooted.  Always
98         put paths with LIBPATH_SUFFIX first in search order.
99
100 2013-09-20  Chung-Lin Tang  <cltang@codesourcery.com>
101
102         * Makefile.am (enios2elf.c): Change tdir_nios2 to tdir_nios2elf.
103         * Makefile.in: Regenerate.
104
105 2013-09-20  Alan Modra  <amodra@gmail.com>
106
107         * configure: Regenerate.
108
109 2013-09-18  Tristan Gingold  <gingold@adacore.com>
110
111         * NEWS: Add marker for 2.24.
112
113 2013-09-17  Nick Clifton  <nickc@redhat.com>
114
115         PR ld/15957
116         * deffilep.y (def_file_add_directive): Avoid readin past end of
117         buffer.
118
119 2013-08-28  Nick Clifton  <nickc@redhat.com>
120
121         PR ld/15896
122         * ld.texinfo: Fix uses of MB abbreviation.
123
124 2013-08-26  Roland McGrath  <mcgrathr@google.com>
125
126         * emulparams/elf_i386_nacl.sh (ARCH): Set to i386:nacl.
127         * emulparams/elf_x86_64_nacl.sh (ARCH): Set to i386:x86-64:nacl.
128         * emulparams/elf32_x86_64_nacl.sh (ARCH): Set to i386:x64-32:nacl.
129
130 2013-08-23  Roland McGrath  <mcgrathr@google.com>
131
132         * emulparams/elf_nacl.sh (nacl_rodata_addr): Don't add in
133         SIZEOF_HEADERS here; elf.sc does it already.
134
135 2013-08-23  Nick Clifton  <nickc@redhat.com>
136
137         PR ld/15839
138         * scripttempl/avr.sc: Do not include gc'able sections into general
139         sections during relocatable links.
140
141 2013-08-22  Christian Franke  <franke@computer.org>
142
143         * emultempl/pe.em: Add --disable-large-address-aware option.
144         * ld.texinfo (--disable-large-address-aware): Add documentation.
145
146 2013-08-14  Clemens Lang  <clemens.lang@fau.de>
147
148         * ldexp.c: Add LOG2CEIL() builtin function to linker script language
149         * ldgram.y: Likewise
150         * ldlex.l: Likewise
151         * NEWS: Mention the new feature.
152         * ld.texinfo: Document the new feature.
153
154 2013-07-19  Sebastian Huber  <sebastian.huber@embedded-brains.de>
155
156         * ldgram.y: Add ALIGN_WITH_INPUT output section attribute.
157         * ldlang.c: Likewise.
158         * ldlang.h: Likewise.
159         * ldlex.l: Likewise.
160         * mri.c: Likewise.
161         * ld.texinfo: Document new feature.
162         * NEWS: Mention new feature.
163
164 2013-07-18  Roland McGrath  <mcgrathr@google.com>
165
166         * emultempl/armelf.em (elf32_arm_add_stub_section): Take third
167         argument ALIGNMENT_POWER, use it instead of constant 3.
168
169 2013-07-08  Jeff Law  <law@redhat.com>
170
171         * scripttempl/elf.sc: Handle function names and other text after
172         .text.unlikely too.
173
174 2013-07-08  Tristan Gingold  <gingold@adacore.com>
175
176         * scripttempl/ia64vms.sc: Add support of per data and per function
177         sections.
178
179 2013-07-01  Alan Modra  <amodra@gmail.com>
180
181         * emultempl/ppc64elf.em: (ppc_layout_sections_again): Call
182         ppc64_elf_set_toc rather than ppc64_elf_toc/_bfd_set_gp_value.
183         (gld${EMULATION_NAME}_after_allocation): Likewise.
184
185 2013-06-26  Yufeng Zhang  <yufeng.zhang@arm.com>
186
187         * emulparams/aarch64elf32.sh: New file.
188
189 2013-06-26  Yufeng Zhang  <yufeng.zhang@arm.com>
190
191         * Makefile.am (ALL_64_EMULATION_SOURCES): Add eaarch64elf32b.c.
192         (eaarch64elf32b.c): New dependency and rule.
193         * Makefile.in: Re-generated.
194         * configure.tgt (aarch64-*-elf): Add aarch64elf32b.
195         (aarch64_be-*-elf, aarch64_be-*-linux*, aarch64-*-linux*): Likewise.
196         * emulparams/aarch64elf32b.sh: New file.
197
198 2013-06-26  Yufeng Zhang  <yufeng.zhang@arm.com>
199
200         * Makefile.am (ALL_64_EMULATION_SOURCES): Add eaarch64elf32.c.
201         (eaarch64elf32.c): New dependency and rule.
202         * Makefile.in: Re-generated.
203         * configure.tgt (aarch64-*-elf): Add aarch64elf32.
204         (aarch64_be-*-elf, aarch64_be-*-linux*, aarch64-*-linux*): Likewise.
205         * emulparams/aarch64elf32.sh: New file.
206
207 2013-06-25  Maciej W. Rozycki  <macro@codesourcery.com>
208
209         * emultempl/mipself.em (insn32): New variable.
210         (mips_create_output_section_statements): Handle insn32 mode.
211         (PARSE_AND_LIST_PROLOGUE): New macro.
212         (PARSE_AND_LIST_LONGOPTS): Likewise.
213         (PARSE_AND_LIST_OPTIONS): Likewise.
214
215         * gen-doc.texi: Set MIPS.
216         * ld.texinfo: Likewise.
217         (Options specific to MIPS targets): New section.
218         (ld and MIPS family): New node.
219         (Top, Machine Dependent): List the new node.
220
221 2013-06-24  Maciej W. Rozycki  <macro@codesourcery.com>
222
223         * emulparams/elf32btsmip.sh: Arrange for .got.plt to be placed
224         as close to .plt as possible.
225         * scripttempl/elf.sc: Handle $INITIAL_READWRITE_SECTIONS and
226         $PLT_NEXT_DATA variables.
227
228 2013-06-23  Richard Sandiford  <rdsandiford@googlemail.com>
229
230         * Makefile.am (ALL_EMULATION_SOURCES): Move MIPS ELF emulations to...
231         (ALL_64_EMULATION_SOURCES): ...here.
232         * Makefile.in: Regenerate.
233
234 2013-06-22  Richard Sandiford  <rdsandiford@googlemail.com>
235
236         * NEWS: Document the removal of MIPS ECOFF targets.
237         * ld.texinfo (--gpsize=@var{value}): Use MIPS ELF rather than
238         MIPS ECOFF as an example of a target that supports small data.
239         * ldmain.c (g_switch_value): Likewise.
240         * configure.tgt (mips*-*-pe, mips*-dec-ultrix*, mips*-dec-osf*)
241         (mips*-sgi-irix* [v4 and earlier], mips*el-*-ecoff*, mips*-*-ecoff*)
242         (mips*-*-bsd*, mips*-*-lnews*): Remove cases.
243         * Makefile.am (ALL_EMULATION_SOURCES): Remove emipsbig.c, emipsbsd.c,
244         emipsidt.c, emipsidtl.c, emipslit.c, emipslnews.c and emipspe.c.
245         (emipsbig.c, emipsbsd.c, emipsidt.c, emipsidtl.c, emipslit.c)
246         (emipslnews.c, emipspe.c): Delete rules.
247         * Makefile.in: Regenerate.
248         * emulparams/mipsbig.sh, emulparams/mipsbsd.sh, emulparams/mipsidt.sh,
249         emulparams/mipsidtl.sh, emulparams/mipslit.sh, emulparams/mipslnews.sh,
250         emulparams/mipspe.sh, emultempl/mipsecoff.em: Delete.
251         * emultempl/m68kcoff.em: Update comment to say that MIPS ECOFF support
252         has now been removed.
253         * emultempl/pe.em: Remove TARGET_IS_mipspe checks.
254
255 2013-06-19  Will Newton  <will.newton@linaro.org>
256
257         * emulparams/aarch64elf.sh: Remove IREL_IN_PLT.
258
259 2013-06-14  Yufeng Zhang  <yufeng.zhang@arm.com>
260
261         * emulparams/aarch64elf.sh: Add IREL_IN_PLT.
262
263 2013-06-12  Nick Clifton  <nickc@redhat.com>
264
265         * ldcref.c (output_one_cref): Place common definitions after
266         ordinary definitions but before references.
267
268 2013-06-10  Dilyan Palauzov  <dilyan.palauzov@aegee.org>
269
270         PR ld/15598
271         * ld.texinfo (Source Code Reference): Fix typos.
272
273 2013-06-07  Will Newton  <will.newton@linaro.org>
274
275         * emulparams/aarch64elf.sh: Add IREL_IN_PLT.
276
277 2013-06-07  Nick Clifton  <nickc@redhat.com>
278
279         * ld.texinfo (SEGMENT_START): Rephrase to indicate that a -T
280         option must appear before the SEGMENT_START is encountered in
281         order for the default value to be overridden.
282
283 2013-05-03  Alan Modra  <amodra@gmail.com>
284
285         PR ld/15365
286         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
287         Restrict __ehdr_start's export class to no less than STV_HIDDEN.
288
289 2013-05-03  Alan Modra  <amodra@gmail.com>
290
291         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
292         Only call lang_for_each_statement if an ELF hash table is used.
293
294 2013-05-02  Nick Clifton  <nickc@redhat.com>
295
296         * Makefile.am: Add emsp430X.c
297         * Makefine.in: Regenerate.
298         * configure.tgt (msp430): Add msp430X emulation.
299         * ldmain.c (multiple_definition): Only disable relaxation if it
300         was enabled by the user.
301         * ldmain.h (RELAXATION_ENABLED_BY_USER): New macro.
302         * emulparams/msp430all.sh: Add support for MSP430X.
303         * emultempl/generic.em: (before_parse): Enable relaxation for the
304         MSP430.
305         * scripttempl/msp430.sc: Reorganize sections.  Add .rodata
306         section.
307         * scripttempl/msp430_3.sc: Likewise.
308         * NEWS: Mention support for MSP430X.
309
310 2013-05-01  Maciej W. Rozycki  <macro@codesourcery.com>
311
312         * configure.tgt: Replace alpha*-*-linuxecoff* pattern with
313         alpha*-*-linux*ecoff*.  Update the `sed' pattern used to convert
314         from alpha*-*-linux-* to alpha*-*-linux*ecoff*.
315
316 2013-05-01  Maciej W. Rozycki  <macro@codesourcery.com>
317
318         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
319         Use is_elf_hash_table rather than a handcoded condition.
320
321 2013-04-30  Nick Clifton  <nickc@redhat.com>
322
323         * ld.texinfo (SORT_BY_ALIGNMENT): Fix and clarify typo - sections
324         are sorted by descending order of alignment.
325
326 2013-04-29  Nick Clifton  <nickc@redhat.com>
327
328         * scripttempl/DWARF.sc: Add support for .debug_line.* and
329         .debug_line_end.
330
331 2013-04-29  Yaakov Selkowitz  <yselkowitz@users.sourceforge.net>
332
333         * emultempl/pe.em [cygwin]: Do not merge rdata with v2
334         psuedo-relocs.
335
336 2013-04-28  Thomas Schwinge  <thomas@codesourcery.com>
337
338         * scripttempl/armbpabi.sc: Replace "source" usage with ".".
339         * scripttempl/avr.sc: Likewise.
340         * scripttempl/elf.sc: Likewise.
341         * scripttempl/elf32cr16.sc: Likewise.
342         * scripttempl/elf32crx.sc: Likewise.
343         * scripttempl/elf32msp430.sc: Likewise.
344         * scripttempl/elf32msp430_3.sc: Likewise.
345         * scripttempl/elf32sh-symbian.sc: Likewise.
346         * scripttempl/elf64hppa.sc: Likewise.
347         * scripttempl/elf_chaos.sc: Likewise.
348         * scripttempl/elfd10v.sc: Likewise.
349         * scripttempl/elfd30v.sc: Likewise.
350         * scripttempl/elfi370.sc: Likewise.
351         * scripttempl/elfm68hc11.sc: Likewise.
352         * scripttempl/elfm68hc12.sc: Likewise.
353         * scripttempl/elfxgate.sc: Likewise.
354         * scripttempl/elfxtensa.sc: Likewise.
355         * scripttempl/epiphany_4x4.sc: Likewise.
356         * scripttempl/i386beos.sc: Likewise.
357         * scripttempl/i386go32.sc: Likewise.
358         * scripttempl/ia64vms.sc: Likewise.
359         * scripttempl/ip2k.sc: Likewise.
360         * scripttempl/iq2000.sc: Likewise.
361         * scripttempl/mep.sc: Likewise.
362         * scripttempl/mmo.sc: Likewise.
363         * scripttempl/v850.sc: Likewise.
364         * scripttempl/v850_rh850.sc: Likewise.
365         * scripttempl/xstormy16.sc: Likewise.
366
367 2013-04-26  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
368
369         * scripttempl/avr.sc: Add ALIGN directive after *(.progmem*).
370
371 2013-04-26  Alan Modra  <amodra@gmail.com>
372
373         * emultempl/elf32.em (gld${EMULATION_NAME}_after_open): Test
374         unresolved_syms_in_shared_libs rather than !executable to
375         determine whether to load DT_NEEDED libraries.
376
377 2013-04-25  Alan Modra  <amodra@gmail.com>
378
379         * Makefile.am (ALL_EMULATION_SOURCES): Add eelf32lppclinux.c.
380         (eelf32lppclinux.c): New rule.
381         * Makefile.in: Regenerate.
382         * configure.tgt: Merge powerpc-linux and other powerpc-elf targets
383         with corresponding little-endian targets.
384         * emulparams/elf32lppc.sh: Update comment.
385         * emulparams/elf32lppclinux.sh: New.
386
387 2013-04-24  H.J. Lu  <hongjiu.lu@intel.com>
388
389         * configure.tgt (targ_extra_emuls): Adds elf32_x86_64 for
390         x86_64-*-elf*.
391         (targ_extra_libpath): Likewise.
392         (tdir_elf_i386): Replace x86_64 with i386 for x86_64-*-elf*.
393
394 2013-04-24  Yufeng Zhang  <yufeng.zhang@arm.com>
395
396         * emulparams/aarch64elf.sh: Define ELFSIZE=64.
397         * emulparams/aarch64linux.sh: Ditto.
398         * emultempl/aarch64elf.em (aarch64_elf_before_allocation):
399         Replace elf64 with elf${ELFSIZE}.
400         (elf64_aarch64_add_stub_section): Likewise.
401         (build_section_lists): Likewise.
402         (gld${EMULATION_NAME}_after_allocation): Likewise.
403         (gld${EMULATION_NAME}_finish): Likewise.
404         (aarch64_elf_create_output_section_statements): Likewise.
405
406 2013-04-24  Nick Clifton  <nickc@redhat.com>
407
408         PR ld/15389
409         * scripttempl/avr.sc: Add .note.gnu.build-id section.
410
411 2013-04-22  Alan Modra  <amodra@gmail.com>
412
413         * emultempl/ppc64elf.em (ppc_create_output_section_statements):
414         Check return from ppc64_elf_init_stub_bfd.
415
416 2013-04-15  Nick Clifton  <nickc@redhat.com>
417
418         * Makefile.am (ELF_DEPS): Add a dependency upon
419         scripttempl/DWARF.sc.
420         (ELF_GEN_DEPS): Likewise.
421         (emmo.c): Likewise.
422         * Makefile.in: Regenerate.
423
424         * scripttempl/armbpabi.sc: Replace DWARF sections with an
425         inclusion of DWARF.sc.
426         * scripttempl/avr.sc: Likewise.
427         * scripttempl/elf.sc: Likewise.
428         * scripttempl/elf32cr16.sc: Likewise.
429         * scripttempl/elf32crx.sc: Likewise.
430         * scripttempl/elf32msp430.sc: Likewise.
431         * scripttempl/elf32msp430_3.sc: Likewise.
432         * scripttempl/elf32sh-symbian.sc: Likewise.
433         * scripttempl/elf64hppa.sc: Likewise.
434         * scripttempl/elf_chaos.sc: Likewise.
435         * scripttempl/elfd10v.sc: Likewise.
436         * scripttempl/elfd30v.sc: Likewise.
437         * scripttempl/elfi370.sc: Likewise.
438         * scripttempl/elfm68hc11.sc: Likewise.
439         * scripttempl/elfm68hc12.sc: Likewise.
440         * scripttempl/elfxgate.sc: Likewise.
441         * scripttempl/elfxtensa.sc: Likewise.
442         * scripttempl/epiphany_4x4.sc: Likewise.
443         * scripttempl/i386beos.sc: Likewise.
444         * scripttempl/i386go32.sc: Likewise.
445         * scripttempl/ia64vms.sc: Likewise.
446         * scripttempl/ip2k.sc: Likewise.
447         * scripttempl/iq2000.sc: Likewise.
448         * scripttempl/mep.sc: Likewise.
449         * scripttempl/mmo.sc: Likewise.
450         * scripttempl/v850.sc: Likewise.
451         * scripttempl/v850_rh850.sc: Likewise.
452         * scripttempl/xstormy16.sc: Likewise.
453         * scripttempl/DWARF.sc: New.
454
455 2013-04-04  Alan Modra  <amodra@gmail.com>
456
457         * ldlang.c (load_symbols): Report "error adding symbols" on
458         bfd_link_add_symbols failure.
459         * emultempl/elf32.em (gld${EMULATION_NAME}_try_needed): Likewise.
460         * emultempl/sunos.em (gld${EMULATION_NAME}_after_open): Likewise.
461         (gld${EMULATION_NAME}_try_needed): Likewise.
462
463 2013-03-27  Georg-Johann Lay  <gjl@gcc.gnu.org>
464
465         PR ld/13812
466         * scripttempl/avr.sc: Place trampolines before .progmem section.
467
468 2013-03-25  Kai Tietz  <ktietz@redhat.com>
469
470         * ld.texinfo (--disable-runtime-pseudo-reloc): Adjust default.
471
472 2013-03-21  Michael Schewe  <michael.schewe@gmx.net>
473
474         * ld.texinfo (H8/300): Add description of relaxation of
475         mov @(disp:32,ERx) to mov @(disp:16,ERx).
476
477 2013-03-21  Kai Tietz  <ktietz@redhat.com>
478
479         * pe-dll.c (process_def_file_and_drectve): Don't handle VC
480         generated C++-symbols as stdcall/fastcall.
481
482 2013-03-18  Alan Modra  <amodra@gmail.com>
483
484         * ld.texinfo (--as-needed): Update.
485
486 2013-03-14  Jakub Jelinek  <jakub@redhat.com>
487
488         * emulparams/aarch64linux.sh (LIBPATH_SUFFIX): Set to 64 for
489         aarch64linux* emulations.
490
491 2013-03-07  Alan Modra  <amodra@gmail.com>
492
493         * ldfile.c (ldfile_open_command_file_1): Return after einfo
494         to avoid warning.
495
496 2013-03-05  Corinna Vinschen  <vinschen@redhat.com>
497
498         * configure.host: Add x86_64-*-cygwin* as valid host.
499         * configure.tgt: Add x86_64-*-cygwin* as valid target.
500         * emultempl/pep.em: Handle different requirements for Cygwin in terms
501         of start addresses for executables and DLLs, based on memory model in
502         http://cygwin.com/ml/cygwin-developers/2013-02/msg00027.html
503
504 2013-03-05  Alan Modra  <amodra@gmail.com>
505
506         PR ld/15222
507         * ldlang.c (lang_size_sections_1): When given an lma_region align
508         LMA as per VMA only if lma_region is the same as region.
509
510 2013-02-27  Nick Clifton  <nickc@redhat.com>
511
512         * scripttempl/elf32msp430.sc: Add placement of .data.* sections.
513         Add alignment of .bss section.
514         * scripttempl/elf32msp430_3.sc: Likewise.
515
516 2013-02-26  Nick Clifton  <nickc@redhat.com>
517
518         PR ld/15188
519         * ld.texinfo: Fix typos.
520
521 2013-02-21  Alan Modra  <amodra@gmail.com>
522
523         * scripttempl/elf.sc (.init_array, .fini_array): Don't sort all
524         .init_array/.fini_array input sections before .ctors/.dtors input
525         sections.
526         (CTORS_IN_INIT_ARRAY, DTORS_IN_INIT_ARRAY): Adjust to suit.
527
528 2013-02-21  Alan Modra  <amodra@gmail.com>
529
530         * emultempl/elf32.em (write_build_id, setup_build_id): Adjust
531         for elf_tdata changes.
532
533 2013-02-21  Alan Modra  <amodra@gmail.com>
534
535         * emultempl/elf-generic.em: Use newly defined elf_obj_tdata
536         accessor macros.
537
538 2013-02-20  Alan Modra  <amodra@gmail.com>
539
540         * Makefile.am: Use $(ELF_DEPS) on a number of eelf*.c rules.
541         * Makefile.in: Regenerate.
542
543 2013-02-19  Sandra Loosemore  <sandra@codesourcery.com>
544
545         PR ld/15146
546         * plugin.c (plugin_notice): Add null check before dereferencing
547         pointer.
548
549 2013-02-19  Alan Modra  <amodra@gmail.com>
550
551         * emultempl/elf32.em (emit_note_gnu_build_id): New static var.
552         Replace all info->emit_note_gnu_build_id refs.
553         (id_note_section_size): Rename from
554         gld${EMULATION_NAME}_id_note_section_size.
555         (struct build_id_info): Delete.
556         (write_build_id): Rename from
557         gld${EMULATION_NAME}_write_build_id_section.
558         Update elf_tdata usage.  Style, formatting.
559         (setup_build_id): New function.
560         (gld${EMULATION_NAME}_after_open): Use setup_build_id.
561
562 2013-02-16  H.J. Lu  <hongjiu.lu@intel.com>
563
564         PR ld/15146
565         * plugin.c (plugin_notice): Replace the undefined dummy bfd with
566         the real one.
567
568 2013-02-16  H.J. Lu  <hongjiu.lu@intel.com>
569
570         PR ld/15141
571         * plugin.c (plugin_notice): Also trace symbol from the IR bfd.
572
573 2013-02-15  Kai Tietz  <ktietz@redhat.com>
574
575         * scripttempl/pep.sc (.xdata): Merge .xdata* into .xdata section.
576         (.pdata): Merge .pdata* into .pdata section.
577
578 2013-02-11  Alan Modra  <amodra@gmail.com>
579
580         * ldlang.c (get_init_priority): Comment typo.
581         (lang_finish): Free link_info.hash and lang_definedness_table.
582         (lang_end): Delete lang_definedness_table comment.
583
584 2013-02-11  Alan Modra  <amodra@gmail.com>
585
586         PR ld/15130
587         * ld.texinfo (-rpath-link): Typo fix.
588
589 2013-02-08  Markos Chandras  <markos.chandras@imgtec.com>
590
591         * emultempl/metagelf.em (build_section_lists): Use sec_info_type
592         rather than userdata->flags.just_syms.
593
594 2013-02-06  Sandra Loosemore  <sandra@codesourcery.com>
595             Andrew Jenner <andrew@codesourcery.com>
596
597         Based on patches from Altera Corporation.
598
599         * Makefile.am (enios2elf.c): New rule.
600         * Makefile.in: Regenerated.
601         * configure.tgt: Add case for nios2*-*-*.
602         * emulparams/nios2elf.sh: New file.
603         * NEWS: Note Altera Nios II support.
604
605 2013-02-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
606
607         * emultempl/avrelf.em (avr_elf_before_parse): New function.
608         (LDEMUL_BEFORE_PARSE): Define.
609
610 2013-02-06  Alan Modra  <amodra@gmail.com>
611
612         PR ld/15096
613         * emultempl/elf32.em: Revert 2013-02-04, 2013-01-22 and 2013-01-21.
614         * emultempl/alphaelf.em: Revert 2013-02-04.
615         * emultempl/cr16elf.em: Likewise.
616         * emultempl/crxelf.em: Likewise.
617         * emultempl/hppaelf.em: Likewise.
618         * emultempl/ia64elf.em: Likewise.
619         * emultempl/mipself.em: Likewise.
620         * NEWS: Revert 2013-01-21.
621
622 2013-02-04  H.J. Lu  <hongjiu.lu@intel.com>
623
624         PR ld/15096
625         * emultempl/alphaelf.em (alpha_after_parse): Call
626         gld${EMULATION_NAME}_after_parse instead of after_parse_default.
627         * emultempl/cr16elf.em (cr16elf_after_parse): Likewise.
628         * emultempl/crxelf.em (crxelf_after_parse): Likewise.
629         * emultempl/hppaelf.em (hppaelf_after_parse): Likewise.
630         * emultempl/mipself.em (mips_after_parse): Likewise.
631
632         * emultempl/ia64elf.em (gld${EMULATION_NAME}_after_parse): Renamed
633         to ...
634         (gld_${EMULATION_NAME}_after_parse): This.  Call
635         gld${EMULATION_NAME}_after_parse instead of after_parse_default.
636         (LDEMUL_AFTER_PARSE): Set to gld_${EMULATION_NAME}_after_parse.
637
638         * emultempl/elf32.em (new_dtags_set): New variable.
639         (gld${EMULATION_NAME}_before_parse): Don't set link_info.new_dtags
640         here.
641         (gld${EMULATION_NAME}_after_parse): New function.
642         (ld_${EMULATION_NAME}_emulation): Replace after_parse_default'
643         with gld${EMULATION_NAME}_after_parse.
644         (gld${EMULATION_NAME}_handle_option): Set new_dtags_set to TRUE
645         when setting link_info.new_dtags.
646
647 2013-01-25  Kai Tietz  <ktietz@redhat.com>
648
649         * deffilep.y (def_image_name): Adjust type of base-address
650         argument.
651         (%union): Add new type bfd_vma as vma.
652         (VMA):  New rule.
653         (opt_base): Use VMA instead of NUMBER rule to evaluate value.
654         (def_file_print): Use bfd's fprintf_vma to output base-address.
655
656 2013-01-24  Nick Clifton  <nickc@redhat.com>
657
658         * NEWS: Mention support for V850E3V5 architecture.
659
660 2013-01-23  Martin Koegler  <martin.koegler@chello.at>
661
662         PR ld/15041
663         * scripttempl/pep.sc (.pdata): Only accept .pdata sections.
664         (.xdata): Similarly.
665         (.debug_frame): Similarly.
666
667 2013-01-23  Georg-Johann Lay  <avr@gjlay.de>
668
669         PR ld/15037
670         * scripttempl/avr.sc (.eeprom): Keep it.
671
672 2013-01-23  Leif Ekblad  <leif@rdos.net>
673
674         * Makefile.am (ALL_64_EMULATION_SOURCES): Add eelf64rdos.c.
675         (eelf64rdos.c): New rule.
676         * emulparams/elf64rdos.sh: New file.
677         * configure.tgt (x86_64-*-rdos*): Use above.
678         * Makefile.in: Regenerate.
679
680 2013-01-22  Roland McGrath  <mcgrathr@google.com>
681
682         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
683         new_dtags to TRUE for *-*-nacl* targets.
684
685 2013-01-21  Mike Frysinger  <vapier@gentoo.org>
686
687         * emultempl/elf32.em (gld${EMULATION_NAME}_before_parse): Set
688         link_info.new_dtags to TRUE for linux/gnu targets.
689         * NEWS: Mention new dtags default.
690
691 2013-01-19  H.J. Lu  <hongjiu.lu@intel.com>
692
693         * Makefile.am (HOSTING_SCRT0): New.
694
695         * configure.host (HOSTING_SCRT0): New.  Used for PIE.
696
697         * configure.in (HOSTING_SCRT0): New AC_SUBST.
698
699         * Makefile.in: Regenerated.
700         * configure: Likewise.
701
702 2013-01-18  Mike Frysinger  <vapier@gentoo.org>
703
704         * NEWS: Mention change in behavior with --enable-new-dtags.
705         * ld.texinfo (Options): Clarify --enable-new-dtags behavior.
706
707 2013-01-14  Leif Ekblad <leif@rdos.net>
708             Alan Modra  <amodra@gmail.com>
709
710         * ld.texinfo (-Tldata-segment): Describe.
711         * ldlex.h (OPTION_TLDATA_SEGMENT): New enum value.
712         * lexsup.c (ld_options): Add -Tldata-segment.
713         (parse_args): Handle OPTION_TLDATA_SEGMENT.
714         * scripttempl/elf.sc: Support LARGE_DATA_ADDR.
715
716 2013-01-10  H.J. Lu  <hongjiu.lu@intel.com>
717
718         * deffilep.y: Remove trailing white spaces.
719         * elf-hints-local.h: Likewise.
720         * ldexp.c: Likewise.
721         * ldlang.h: Likewise.
722         * ldmisc.c: Likewise.
723         * ldwrite.c: Likewise.
724         * pe-dll.c: Likewise.
725         * emulparams/criself.sh: Likewise.
726         * emulparams/crislinux.sh: Likewise.
727         * emulparams/elf32_tic6x_le.sh: Likewise.
728         * emulparams/elf32bmipn32-defs.sh: Likewise.
729         * emulparams/elf32mb_linux.sh: Likewise.
730         * emulparams/elf32mep.sh: Likewise.
731         * emulparams/elf32microblaze.sh: Likewise.
732         * emulparams/elf32ppc.sh: Likewise.
733         * emulparams/elf64_s390.sh: Likewise.
734         * emulparams/elf64alpha.sh: Likewise.
735         * emulparams/elf_s390.sh: Likewise.
736         * emulparams/elf_x86_64.sh: Likewise.
737         * emulparams/tic80coff.sh: Likewise.
738         * emultempl/aix.em: Likewise.
739         * emultempl/avrelf.em: Likewise.
740         * emultempl/cr16elf.em: Likewise.
741         * emultempl/pe.em: Likewise.
742         * emultempl/pep.em: Likewise.
743         * emultempl/spuelf.em: Likewise.
744         * emultempl/tic6xdsbt.em: Likewise.
745
746 2013-01-10  Will Newton <will.newton@imgtec.com>
747
748         * Makefile.am: Add Meta.
749         * Makefile.in: Regenerate.
750         * configure.tgt: Add Meta.
751         * emulparams/elf32metag.sh: New file.
752         * emultempl/metagelf.em: New file.
753
754 2013-01-09  Alan Modra  <amodra@gmail.com>
755
756         * emulparams/elf_x86_64.sh (LARGE_BSS_AFTER_BSS): Define.
757         * emulparams/elf32_x86_64.sh: Likewise.
758         * emulparams/elf_k1om.sh: Likewise.
759         * emulparams/elf_l1om.sh: Likewise.
760         * scripttempl/elf.sc (LARGE_BSS): Define rather than appending to
761         OTHER_BSS_SECTIONS.  Substitute in script.
762
763 2013-01-08  Leif Ekblad  <leif@rdos.net>
764
765         * scripttempl/elf.sc (RODATA_ADDR): Typo fix.
766
767 2013-01-08  Alan Modra  <amodra@gmail.com>
768
769         * emultempl/elf32.em (gld${EMULATION_NAME}_check_ld_so_conf): Replace
770         "name" param with a bfd_link_needed_list pointer.  Update caller.
771         (gld${EMULATION_NAME}_check_ld_elf_hints): Likewise.
772
773 2013-01-08  Alan Modra  <amodra@gmail.com>
774
775         * Makefile.am (ALL_EMULATION_SOURCES): Correct eavrxmega entries.
776         * Makefile.in: Regenerate.
777
778 2013-01-07  H.J. Lu  <hongjiu.lu@intel.com>
779
780         * lexsup.c (ld_options): Add fuse-ld= for GCC linker option
781         compatibility.
782
783 2013-01-07  Patrice Dumas  <pertusus@free.fr>
784
785         * ld.texinfo: Replace @ with @@ when it is part of the text.
786         Correct ordering of M68HC11 entry.
787
788 2013-01-04  Juergen Urban <JuergenUrban@gmx.de>
789
790         * configure.tgt: Support ELF files for Sony Playstation 2 (for
791         ps2dev and ps2sdk).
792         * emulparams/elf32lr5900n32.sh: Create linker script for Sony
793         Playstation 2 ELF files using MIPS ABI n32.
794         * emulparams/elf32lr5900.sh: Create linker script for Sony
795         Playstation 2 ELF files using MIPS ABI o32.
796         * Makefile.am: Add linker scripts for Sony Playstation 2 ELF
797         files.
798
799 2013-01-02  H.J. Lu  <hongjiu.lu@intel.com>
800
801         * ldver.c (ldversion): Update copyright year to 2013.
802
803 For older changes see ChangeLog-2012
804 \f
805 Copyright (C) 2013 Free Software Foundation, Inc.
806
807 Copying and distribution of this file, with or without modification,
808 are permitted in any medium without royalty provided the copyright
809 notice and this notice are preserved.
810
811 Local Variables:
812 mode: change-log
813 left-margin: 8
814 fill-column: 74
815 version-control: never
816 End: