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