Add copyright notice to linker script files.
[external/binutils.git] / ld / ChangeLog
1 2014-08-20  Nick Clifton  <nickc@redhat.com>
2
3         * scripttempl/DWARF.sc: Add copyright notice.
4         * scripttempl/aix.sc: Likewise.
5         * scripttempl/alpha.sc: Likewise.
6         * scripttempl/alphavms.sc: Likewise.
7         * scripttempl/aout.sc: Likewise.
8         * scripttempl/armaout.sc: Likewise.
9         * scripttempl/armbpabi.sc: Likewise.
10         * scripttempl/armcoff.sc: Likewise.
11         * scripttempl/avr.sc: Likewise.
12         * scripttempl/avrtiny.sc: Likewise.
13         * scripttempl/crisaout.sc: Likewise.
14         * scripttempl/delta68.sc: Likewise.
15         * scripttempl/dlx.sc: Likewise.
16         * scripttempl/elf.sc: Likewise.
17         * scripttempl/elf32cr16.sc: Likewise.
18         * scripttempl/elf32cr16c.sc: Likewise.
19         * scripttempl/elf32crx.sc: Likewise.
20         * scripttempl/elf32msp430.sc: Likewise.
21         * scripttempl/elf32msp430_3.sc: Likewise.
22         * scripttempl/elf32sh-symbian.sc: Likewise.
23         * scripttempl/elf32xc16x.sc: Likewise.
24         * scripttempl/elf32xc16xl.sc: Likewise.
25         * scripttempl/elf32xc16xs.sc: Likewise.
26         * scripttempl/elf64hppa.sc: Likewise.
27         * scripttempl/elf_chaos.sc: Likewise.
28         * scripttempl/elfd10v.sc: Likewise.
29         * scripttempl/elfd30v.sc: Likewise.
30         * scripttempl/elfi370.sc: Likewise.
31         * scripttempl/elfm68hc11.sc: Likewise.
32         * scripttempl/elfm68hc12.sc: Likewise.
33         * scripttempl/elfmicroblaze.sc: Likewise.
34         * scripttempl/elfxgate.sc: Likewise.
35         * scripttempl/elfxtensa.sc: Likewise.
36         * scripttempl/epiphany_4x4.sc: Likewise.
37         * scripttempl/epocpe.sc: Likewise.
38         * scripttempl/h8300.sc: Likewise.
39         * scripttempl/h8300h.sc: Likewise.
40         * scripttempl/h8300hn.sc: Likewise.
41         * scripttempl/h8300s.sc: Likewise.
42         * scripttempl/h8300sn.sc: Likewise.
43         * scripttempl/h8300sx.sc: Likewise.
44         * scripttempl/h8300sxn.sc: Likewise.
45         * scripttempl/h8500.sc: Likewise.
46         * scripttempl/h8500b.sc: Likewise.
47         * scripttempl/h8500c.sc: Likewise.
48         * scripttempl/h8500m.sc: Likewise.
49         * scripttempl/h8500s.sc: Likewise.
50         * scripttempl/hppaelf.sc: Likewise.
51         * scripttempl/i386beos.sc: Likewise.
52         * scripttempl/i386coff.sc: Likewise.
53         * scripttempl/i386go32.sc: Likewise.
54         * scripttempl/i386msdos.sc: Likewise.
55         * scripttempl/i860coff.sc: Likewise.
56         * scripttempl/i960.sc: Likewise.
57         * scripttempl/ia64vms.sc: Likewise.
58         * scripttempl/ip2k.sc: Likewise.
59         * scripttempl/iq2000.sc: Likewise.
60         * scripttempl/m68kaux.sc: Likewise.
61         * scripttempl/m68kcoff.sc: Likewise.
62         * scripttempl/m88kbcs.sc: Likewise.
63         * scripttempl/mcorepe.sc: Likewise.
64         * scripttempl/mep.sc: Likewise.
65         * scripttempl/mips.sc: Likewise.
66         * scripttempl/mipsbsd.sc: Likewise.
67         * scripttempl/mmo.sc: Likewise.
68         * scripttempl/moxie.sc: Likewise.
69         * scripttempl/nds32elf.sc: Likewise.
70         * scripttempl/nw.sc: Likewise.
71         * scripttempl/pe.sc: Likewise.
72         * scripttempl/pep.sc: Likewise.
73         * scripttempl/pj.sc: Likewise.
74         * scripttempl/ppcpe.sc: Likewise.
75         * scripttempl/psos.sc: Likewise.
76         * scripttempl/riscix.sc: Likewise.
77         * scripttempl/sh.sc: Likewise.
78         * scripttempl/sparccoff.sc: Likewise.
79         * scripttempl/st2000.sc: Likewise.
80         * scripttempl/tic30aout.sc: Likewise.
81         * scripttempl/tic30coff.sc: Likewise.
82         * scripttempl/tic4xcoff.sc: Likewise.
83         * scripttempl/tic54xcoff.sc: Likewise.
84         * scripttempl/tic80coff.sc: Likewise.
85         * scripttempl/v850.sc: Likewise.
86         * scripttempl/v850_rh850.sc: Likewise.
87         * scripttempl/vanilla.sc: Likewise.
88         * scripttempl/w65.sc: Likewise.
89         * scripttempl/xstormy16.sc: Likewise.
90         * scripttempl/z80.sc: Likewise.
91         * scripttempl/z8000.sc: Likewise.
92
93 2014-08-19  Alan Modra  <amodra@gmail.com>
94
95         * configure: Regenerate.
96
97 2014-08-18  Alan Modra  <amodra@gmail.com>
98
99         * ld.texinfo (--as-needed): Clarify that references from libraries
100         must be from needed libraries.
101
102 2014-08-18  Alan Modra  <amodra@gmail.com>
103
104         * emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation):
105         Handle error status from bfd_elf_discard_info.
106         * emultempl/armelf.em: Likewise.
107         * emultempl/elf32.em: Likewise.
108         * emultempl/hppaelf.em: Likewise.
109         * emultempl/metagelf.em: Likewise.
110         * emultempl/nios2elf.em: Likewise.
111         * emultempl/ppc64elf.em: Likewise.
112         * emultempl/tic6xdsbt.em: Likewise.
113         * emultempl/vms.em: Likewise.
114
115 2014-08-14  Alan Modra  <amodra@gmail.com>
116
117         PR 16563
118         * ldlang.c (map_head_is_link_order): Rename from
119         stripped_excluded_sections.
120         (lang_clear_os_map): New function, extracted from..
121         (strip_excluded_output_sections): ..here.
122         * ldlang.h (lang_clear_os_map): Declare.
123         * ldwrite.c (ldwrite): Call lang_clear_os_map.
124         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
125         Likewise.
126
127 2014-08-14  Alan Modra  <amodra@gmail.com>
128
129         * configure.ac: Move AC_PROG_CC and other macros earlier.  Delete
130         plugin checks now done in config/plugins.m4.
131         * config.in: Regenerate.
132         * configure: Regenerate.
133
134 2014-08-14  Alan Modra  <amodra@gmail.com>
135
136         * plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
137         flags.claimed.
138
139 2014-08-13  Yaakov Selkowitz  <yselkowi@redhat.com>
140
141         * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
142         __dso_handle.
143
144 2014-08-13  Alan Modra  <amodra@gmail.com>
145
146         * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
147
148 2014-08-12  Alan Modra  <amodra@gmail.com>
149
150         * ldlang.h (struct lang_input_statement_flags): Don't make "reload"
151         field conditional on ENABLE_PLUGINS.
152         * ldlang.c (open_input_bfds): Expand plugin_should_reload.
153         * plugin.h (plugin_should_reload): Delete.
154         * plugin.c (plugin_should_reload): Delete.
155
156 2014-08-12  Alan Modra  <amodra@gmail.com>
157
158         * ldmain.c (notice): Update args.
159         * plugin.c (plugin_notice): Likewise.  Follow warning sym link.
160         Handle new indirect symbol.
161
162 2014-08-12  Alan Modra  <amodra@gmail.com>
163
164         * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
165
166 2014-08-08  Ulrich Drepper  <drepper@gmail.com>
167
168         * ldlang.h (struct lang_input_statement_flags): Add pushed
169         member.
170         * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
171         OPTION_POP_STATE.
172         * lexsup.c (ld_options): Add entries for --push-state and
173         --pop-state.
174         (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
175         * ld.texinfo: Document --push-state and --pop-state.
176
177 2014-08-06  H.J. Lu  <hongjiu.lu@intel.com>
178
179         PR14918
180         * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
181
182 2014-08-05  Alan Modra  <amodra@gmail.com>
183
184         * Makefile.in: Regenerate.
185
186 2014-07-29  Matthew Fortune  <matthew.fortune@imgtec.com>
187
188         * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
189         * emulparams/elf32bmipn32-defs.sh: Likewise.
190         * emulparams/elf64bmip-defs.sh: Likewise.
191
192 2014-07-27  Anthony Green  <green@moxielogic.com>
193
194         * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
195         (emoxiebox.c): Build.
196         * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
197         * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
198         * Makefile.in: Rebuilt.
199
200 2014-07-17  Stefan Kristiansson  <stefan.kristiansson@saunalahti.fi>
201
202         * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
203         0x0 to first page boundary at 0x2000.
204
205 2014-07-10  Max Filippov  <jcmvbkbc@gmail.com>
206
207         * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
208         correctly handle missing dot in section name after
209         ".gnu.linkonce.prop.".
210
211 2014-07-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
212
213         * scripttempl/avr.sc: Remove KEEP for .data and
214         force .bss VMA to end of .data VMA.
215
216 2014-07-08  Will Newton  <will.newton@linaro.org>
217
218         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
219         alignment to 64kB boundary.
220
221 2014-07-04  Alan Modra  <amodra@gmail.com>
222
223         * configure.ac: Update "configure.in" comments.
224         * configure: Regenerate.
225
226 2014-07-04  Alan Modra  <amodra@gmail.com>
227
228         * configure.ac: Rename from configure.in.
229         * Makefile.in: Regenerate.
230         * config.in: Regenerate.
231
232 2014-07-04  Alan Modra  <amodra@gmail.com>
233
234         * configure.in: Include bfd/version.m4.
235         (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
236         (BFD_VERSION): Delete.
237         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
238         * configure: Regenerate.
239         * Makefile.in: Regenerate.
240
241 2014-07-03  Alan Modra  <amodra@gmail.com>
242
243         PR 17068
244         * ldlang.c (load_symbols): Always check flags.reload.
245         (open_input_bfds): Always reload --as-needed shared libraries,
246         not just when rescanning.
247         * ldlang.h (struct lang_input_statement_flags): Update reload comment.
248         * plugin.c (plugin_should_reload): Assume shared library arg.
249         * plugin.h (plugin_should_reload): Update comment.
250
251 2014-07-01  Alan Modra  <amodra@gmail.com>
252
253         * emultempl/ppc64elf.em (stub_added): Delete.
254         (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
255         none of the usual stubs have been added.  Only change entry_section
256         for ELFv1.
257
258 2014-07-01  Alan Modra  <amodra@gmail.com>
259
260         * sysdep.h: Don't include limits.h and sys/param.h.  Don't
261         include unistd.h twice.
262         (LD_PATHMAX): Don't define.
263         * ldlang.c (lang_common): Don't use UINT_MAX.
264
265 2014-07-01  Barney Stratford  <barney_stratford@fastmail.fm>
266             Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
267             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
268             Soundararajan  <Sounderarajan.D@atmel.com>
269
270         * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
271         (eavrtiny.c): Add rules for avrtiny emulation source.
272         * Makefile.in: Regenerate.
273         * configure.tgt: Add avrtiny to avr target emulations.
274         * scripttempl/avrtiny.sc: New file.  Linker script template for
275         avrtiny arch.
276         * emulparams/avrtiny.sh: New file.  Emulation parameters for
277         avrtiny arch.
278
279 2014-06-30  Ulrich Drepper  <drepper@gmail.com>
280
281         * lexsup.c (parse_args): Check whether provided SONAME is empty
282         string.  If yes, warn and ignore it.  Don't overwrite valid SONAME
283         with empty string.
284
285 2014-06-26  Linda Zhang  <lindasc@qq.com>
286
287         * emultempl/pe.em: Initialise insert_timestamp to true.
288         Add a --no-insert-timestamp command line option.
289         * emultempl/pep.em: Likewise.
290         * ld.texinfo: Document that --insert-timestamp is enabled by
291         default and that it now has an inverse command line option.
292         * NEWS: Mention the new behaviour.
293
294 2014-06-25  Nick Clifton  <nickc@redhat.com>
295
296         * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
297         here...
298         (ALL_64_EMULATION_SOURCES): ... to here.
299         (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
300         (ALL_64_EMUL_EXTRA_OFILES): New.  ... to here.
301         * configure.in (EMUL_EXTRA_OFILES): Include
302         ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
303         * Makefile.in: Regenerate.
304         * configure: Regenerate.
305
306 2014-06-18  Andreas Tobler  <andreast@fgznet.ch>
307
308         * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
309         (arm*b-*-freebsd*): Add target.
310         * emulparams/armelfb_fbsd.sh: Added.
311         * emulparams/armelf_fbsd.sh: Updated.
312         * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
313         * Makefile.in: Regenerate.
314
315 2014-06-16  Alan Modra  <amodra@gmail.com>
316
317         * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
318         .rel sections, and __rel_iplt from .rela sections.
319         * scripttempl/nds32elf.sc: Likewise.
320         * Makefile.am (ends32*.c) Depend on nds32elf.sc.
321         * Makefile.in: Regenerate.
322
323 2014-06-13  Alan Modra  <amodra@gmail.com>
324
325         PR 17047
326         * ldlang.c (output_bfd_hash_table_free_fn): Delete.
327         (open_output): Don't set it..
328         * ldmain.c (ld_cleanup): ..or call it.
329
330 2014-06-13  Alan Modra  <amodra@gmail.com>
331
332         * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
333         * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
334         * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
335         * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
336
337 2014-06-13  Alan Modra  <amodra@gmail.com>
338
339         * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
340         * Makefile.in: Regenerate.
341
342 2014-06-07  Alan Modra  <amodra@gmail.com>
343
344         * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
345         linker script symbol value override a built-in linker symbol.
346
347 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
348
349         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
350         bfd's development.sh.
351         * Makefile.in, configure: Regenerate.
352
353 2014-06-02  Alan Modra  <amodra@gmail.com>
354
355         * emulparams/elf32bfin.sh: Rename from bfin.sh.
356         * emulparams/elf32bfinfd.sh: Update to suit.
357         * emulparams/msp430.sh: Rename from msp430all.sh.  Remove
358         MSP430_NAME and msp430X vars.
359         * emulparams/msp430X.sh: New.
360         * emulparams/score3_elf.sh: Rename from scoreelf.sh.  Remove
361         SCORE_NAME and score7_elf ARCH setting.
362         * emulparams/score7_elf.sh: New.
363         * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
364         (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
365         * Makefile.in: Regenerate.
366         * genscripts.sh: Delete customizer_script param.
367
368 2014-05-28  Hans-Peter Nilsson  <hp@axis.com>
369
370         * Makefile.am: Change all rules with ${GENSCRIPTS}
371         invocations to be just dependencies.
372         ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
373         (run-genscripts): New rules.
374         * Makefile.in: Regenerate.
375
376 2014-05-27  DJ Delorie  <dj@redhat.com>
377
378         * ld/ldemul.h (extra_map_file_text): New field.
379         (ldemul_extra_map_file_text): Declare.
380         * ld/ldemul.c (ldemul_extra_map_file_text): Define.
381         * ld/ldlang.c (lang_map): Call it.
382
383         * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
384         * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
385         * ld/emultempl/armcoff.em: Likewise.
386         * ld/emultempl/beos.em: Likewise.
387         * ld/emultempl/elf32.em: Likewise.
388         * ld/emultempl/generic.em: Likewise.
389         * ld/emultempl/gld960.em: Likewise.
390         * ld/emultempl/gld960c.em: Likewise.
391         * ld/emultempl/linux.em: Likewise.
392         * ld/emultempl/lnk960.em: Likewise.
393         * ld/emultempl/m68kcoff.em: Likewise.
394         * ld/emultempl/pe.em: Likewise.
395         * ld/emultempl/pep.em: Likewise.
396         * ld/emultempl/sunos.em: Likewise.
397         * ld/emultempl/ticoff.em: Likewise.
398         * ld/emultempl/vanilla.em: Likewise.
399
400 2014-05-24  Alan Modra  <amodra@gmail.com>
401
402         * ldlang.c (base): Move variable to..
403         * mri.c: ..here, and make static.
404         * ldlang.h (base): Delete declaration.
405
406 2014-05-20  Hans-Peter Nilsson  <hp@axis.com>
407
408         * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
409         * Makefile.in: Regenerate.
410
411 2014-05-20  Alan Modra  <amodra@gmail.com>
412
413         PR 16952
414         * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
415         * emultempl/ppc32elf.em (ppc_before_allocation): Call
416         ppc_elf_maybe_strip_sdata_syms.
417         * ldlang.c (size_input_section): Correct output_offset value
418         for excluded input sections.
419
420 2014-05-16  John Marino  <binutils@marino.st>
421
422         * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
423
424 2014-05-11  Chung-Lin Tang  <cltang@codesourcery.com>
425
426         * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
427         and gp in PROVIDE_HIDDEN.
428
429 2014-05-10  Hans-Peter Nilsson  <hp@bitrange.com>
430
431         * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
432         (output_bfd_hash_table_free_fn): New variable.
433         (open_output): Save the _bfd_link_hash_table_free function for the
434         output_bfd into output_bfd_hash_table_free_fn.
435         * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
436         on link_info.hash.
437         * ldlang.h (output_bfd_hash_table_free_fn): Declare.
438
439 2014-05-02  Alan Modra  <amodra@gmail.com>
440
441         * emultempl/metagelf.em: Update bfd target vector naming.
442         * emultempl/nios2elf.em: Likewise.
443         * emultempl/spuelf.em: Likewise.
444         * emultempl/tic6xdsbt.em: Likewise.
445
446 2014-04-22  Christian Svensson  <blue@cmd.nu>
447
448         * Makefile.am: Remove openrisc and or32 support.  Add support for or1k.
449         * configure.tgt: Likewise.
450         * emulparams/elf32or1k.sh: New file.
451         * emulparams/elf32or1k_linux.sh: New file.
452         * emulparams/elf32openrisc.sh: Delete.
453         * emulparams/or32.sh: Delete.
454         * emulparams/or32elf.sh: Delete.
455         * scripttempl/or32.sc: Delete.
456         * Makefile.in: Regenerate.
457
458 2014-04-21  Richard Henderson  <rth@redhat.com>
459
460         * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
461
462 2014-04-16  Steve Ellcey  <sellcey@mips.com>
463
464         * emultempl/elf32.em: Include safe-ctype.h.
465
466 2014-04-16  Steve Ellcey  <sellcey@mips.com>
467
468         * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
469
470 2014-04-09  Nick Clifton  <nickc@redhat.com>
471
472         * Makefile.am (default-manifest.o): Remove rule.
473         (EMUL_EXTRA_BINARIES): Delete.
474         (ALL_EMUL_EXTRA_BINARIES): Delete.
475         (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
476         (install-data-local): Remove EMUL_EXTRA_BINARIES.
477         * Makefile.in: Regenerate.
478         * configure.in (all_emul_extra_binaries): Delete.
479         (EMUL_EXTRA_BINARIES): Remove.
480         * configure: Regenerate.
481         * configure.tgt (target_extra_binaries): Delete.
482         * emultempl/default-manifest.rc: Delete.
483         * ld.texinfo: Remove discussion of default manifest.
484         * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
485         * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
486
487 2014-04-09  Alan Modra  <amodra@gmail.com>
488
489         * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
490         * emultempl/nds32elf.em: Include bfd_stdint.h.
491         * po/POTFILES.in: Regenerate.
492
493 2014-04-09  Alan Modra  <amodra@gmail.com>
494
495         * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
496         (LDEMUL_FINISH): Define.
497
498 2014-04-08  Nick Clifton  <nickc@redhat.com>
499
500         * scripttempl/pe.sc (R_RSRC): Remove default manifest.
501         * scripttempl/pep.sc (R_RSRC): Remove default manifest.
502
503 2014-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>
504
505         * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
506         Move code for parsing build-id option and calculating the build-id to...
507         * ldbuildid.c: New file.
508         * ldbuildid.h: New file.
509         * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
510         files.
511         * Makefile.in: Regenerate.
512         * ld.texinfo: Update --build-id description to mention COFF
513         support.
514         * NEWS: Mention support for COFF build ids.
515         * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
516         (pecoff_checksum_contents, write_build_id, setup_build_id)
517         (gld_${EMULATION_NAME}_after_open):  Handle and implement
518         build-id option.
519         * emultempl/pep.em: Likewise.
520
521 2014-04-04  Cary Coutant  <ccoutant@google.com>
522
523         PR gold/16804
524         * ld.texinfo: Document optional comma following output section
525         command and overlay command.
526
527 2014-04-04  Alan Modra  <amodra@gmail.com>
528
529         * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
530         current "fill", not "output_section_statement->fill".
531
532 2014-03-31  Nick Clifton  <nickc@redhat.com>
533
534         PR ld/16744
535         * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
536         section when performing a relocatable link with -z [no]execstack
537         specified.
538
539 2014-03-27  H.J. Lu  <hongjiu.lu@intel.com>
540
541         PR ld/16756
542         * ldmain.c (symbol_warning): New function.
543         (warning_callback): Use it.  Scan all input files for a reference
544         to SYMBOL.
545
546 2014-03-21  Christopher Faylor  <me.cygwin2013@cgf.cx>
547
548         * ld.texinfo: Document change in handling of --enable-auto-image-base.
549         * emultempl/pe.em (pe_auto_image_base): Set to default base.
550         (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
551         optional --enable-auto-image-base argument.
552         (gld${EMULATION_NAME}_handle_option): Handle optional
553         --enable-auto-image-base argument.
554         (compute_dll_image_base): Eliminate constant.  Use pe_auto_image_base.
555
556 2014-03-19  Nick Clifton  <nickc@redhat.com>
557
558         * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
559         * Makefile.in: Regenerate.
560         * emultempl/default-manifest.rc: Fix typo.
561         * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
562         (.rsrc): Add SUBALIGN(4).  Remove SORT.
563         * scripttempl/pep.sc: Likewise.
564
565 2014-03-17  Christopher Faylor  <me.cygwin2014@cgf.cx>
566
567         * Makefile.am: Use host version of windres.
568         * Makefile.in: Regenerate.
569
570 2014-03-14  Romain Geissler  <romain.geissler@amadeus.com>
571             Alan Modra  <amodra@gmail.com>
572
573         * ldlang.h (full_name_provided): New input flag.
574         * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
575         for -l:namespec.  Instead use lang_input_file_is_l_enum with
576         full_name_provided flag.
577         * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
578         full_name_provided flag is set.
579         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
580         Handle full_name_provided libraries.  Tidy EXTRA_SHLIB_EXTENSION
581         support.  Set DT_NEEDED for -l:namespec as namespec.
582         * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
583         * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
584         Don't handle full_name_provided libraries.
585         * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
586         * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
587         * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
588
589 2014-03-12  Alan Modra  <amodra@gmail.com>
590
591         * Makefile.in: Regenerate.
592
593 2014-03-05  Alan Modra  <amodra@gmail.com>
594
595         Update copyright years.
596
597 2014-03-04  Nick Clifton  <nickc@redhat.com>
598
599         * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
600         * Makefile.in: Regenerate.
601
602 2014-02-27  Yuri Gribov  <y.gribov@samsung.com>
603
604         * emultempl/armelf.em (OPTION_LONG_PLT): Define.
605         (PARSE_AND_LIST_LONGOPTS): Add long-plt.
606         (PARSE_AND_LIST_OPTIONS): Likewise.
607         (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
608         * ld.texinfo: Document --long-plt.
609
610 2014-02-27  Alan Modra  <amodra@gmail.com>
611
612         * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
613         use ppc32elf.em.
614         * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
615         vxworks.
616         (LDEMUL_AFTER_OPEN): Don't set for vxworks.
617         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
618         -secure-plt, -bss-plt and -sdata-got when vxworks.
619
620 2014-02-27  Nick Clifton  <nickc@redhat.com>
621
622         * configure.in (all_emul_extra_binaries): New variable.  Populated
623         by invoking configure.tgt.
624         (EMUL_EXTRA_BINARIES): New substitution.
625         * configure: Regenerate.
626         * configure.tgt (target_extra_binaries): New variable.  Set to
627         default-manifest.o for Cygwin and MinGW targets.
628         * Makefile.am (EMUL_EXTRA_BINARIES): New variable.  Initialised
629         by the configure script.
630         (ALL_EMUL_EXTRA_BINARIES): New variable.
631         (default-manifest.o): New rule to build the default manifest.
632         (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
633         (install-data-local): Add EMUL_EXTRA_BINARIES.
634         * Makefile.in: Regenerate.
635         * ld.texinfo: Document default manifest support.
636         * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
637         * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
638         * emultempl/default-manifest.rc: New file.
639         * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
640         * scripttempl/pep.sc (R_RSRC): Likewise.
641
642 2014-02-26  Dan Mick  <dan.mick@inktank.com>
643
644         PR ld/16569
645         * ldcref.c (cref_sort_array): Compare unmangled names unless
646         demanglng has been requiested.
647         (output_one_cref): Output unmangled name unless demangling has
648         been requested.
649
650 2014-02-19  Igor Zamyatin  <igor.zamyatin@intel.com>
651             H.J. Lu  <hongjiu.lu@intel.com>
652
653         * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
654
655 2014-02-19  Alan Modra  <amodra@gmail.com>
656
657         * emultempl/ppc64elf.em (params): Init new field.
658         (ppc_create_output_section_statements): Set params.save_restore_funcs
659         default.
660         (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
661         --no-save-restore-funcs.
662
663 2014-02-17  Alan Modra  <amodra@gmail.com>
664
665         * emultemps/ppc64elf.em (params): New static struct replacing
666         various other static vars.  Adjust code throughout file.
667
668 2014-02-17  Alan Modra  <amodra@gmail.com>
669
670         * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
671         ppc476 workaround for ld -r.
672
673 2014-02-12  Alan Modra  <amodra@gmail.com>
674
675         * emultempl/ppc32elf.em (pagesize): New static var.
676         (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
677         (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
678
679 2014-02-11  Andrew Pinski  <apinski@cavium.com>
680
681         * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
682         (ELF_INTERPRETER_NAME): Define.
683         * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
684
685 2014-02-10  Alan Modra  <amodra@gmail.com>
686
687         * po/ld.pot: Regenerate.
688
689 2014-02-03  Alan Modra  <amodra@gmail.com>
690
691         * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
692         plt_style): Delete.  Adjust all refs to instead use..
693         (params): ..this.  New variable.
694         (ppc_after_open_output): New function.  Tweak params and pass to
695         ppc_elf_link_params.
696         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
697         (ppc_before_allocation): Adjust ppc_elf_tls_setup call.  Enable
698         relaxation for ppc476 workaround.
699         (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
700         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
701
702 2014-02-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
703
704         * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
705         * ld/ldlang.c (lang_size_sections_1): Add dotdelta
706         variable which reflects the VMA change due to alignment
707         requirements.  Use dotdelta do change the LMA if
708         ALIGN_WITH_INPUT is requested.
709
710 2014-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
711
712         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
713         call to bfd_set_section_vma exposed by recent bfd_set_section_vma
714         change.
715
716 2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
717
718         * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
719         * Makefile.in: Regenerated.
720         * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
721         * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
722         * emultempl/nios2elf.em: New file.
723         * gen-doc.texi (NIOSII): Set.
724         * ld.texinfo (NIOSII): Set.
725
726 2014-01-28  Nick Clifton  <nickc@redhat.com>
727
728         * Makefile.am: Remove obsolete MSP430 emulations.
729         * configure.tgt: Likewise.
730         * emulparams/msp430all.sh: Likewise.
731         * Makefile.in: Regenerate.
732
733 2014-01-24  H.J. Lu  <hongjiu.lu@intel.com>
734
735         PR ld/16498
736         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
737         orphaned TLS section handling.
738
739 2014-01-24  Alan Modra  <amodra@gmail.com>
740
741         * ldlang.c (lang_output_section_find_by_flags): Be careful to
742         test look->bfd_section->flags if available rather than
743         look->flags.  Separate SEC_THREAD_LOCAL handling from
744         SEC_READONLY loop, and rewrite.
745
746 2014-01-22  Alan Modra  <amodra@gmail.com>
747
748         * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
749         (lang_init): Initialise them.
750         (lang_print_asneeded): New function.
751         (lang_process): Call lang_print_asneeded.
752         * ldlang.h (struct asneeded_minfo): New.
753         (asneeded_list_tail): Declare.
754         * ldmain.c (add_archive_element): Improve archive map heading.
755         * ldmisc.c (minfo): Stash --as-needed info.
756
757 2014-01-22  Alan Modra  <amodra@gmail.com>
758
759         * ld.h (struct map_symbol_def): Move to..
760         * ldlang.h: ..here.
761         * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
762
763 2014-01-22  Alan Modra  <amodra@gmail.com>
764
765         * ld.texinfo (Output Section Discarding): Mention assigning to dot
766         as a way of keeping otherwise empty sections.
767         * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
768         is_dot_plus_0, is_align_conditional): New predicates.
769         (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
770         output section, except for some special cases.
771         * scripttempl/elfmicroblaze.sc: Use canonical form to align at
772         end of .heap and .stack.
773
774 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
775
776         * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
777
778 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
779
780         * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
781
782 2014-01-20  Alan Modra  <amodra@gmail.com>
783
784         * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
785         by_script.  Make iteration a single bit field.
786         (lang_track_definedness, lang_symbol_definition_iteration): Delete.
787         (lang_symbol_defined): Declare.
788         * ldlang.c (lang_statement_iteration): Expand comment a little.
789         (lang_init <lang_definedness_table>): Make it bigger.
790         (lang_track_definedness, lang_symbol_definition): Delete.
791         (lang_definedness_newfunc): Update.
792         (lang_symbol_defined): New function.
793         (lang_update_definedness): Create entries here.  Do track whether
794         script definition of symbol is valid, even when also defined in
795         an object file.
796         * ldexp.c (fold_name <DEFINED>): Update.
797         (fold_name <NAME>): Allow self-assignment for absolute symbols
798         defined in a linker script.
799
800 2014-01-20  Guy Martin <gmsoft@tuxicoman.be>
801             Alan Modra  <amodra@gmail.com>
802
803         * ldlang.h (lang_output_section_get): Define.
804         * ldlang.c (lang_output_section_get): Likewise.
805         (init_os): Set the output_section userdata to the output
806         section statement.
807         * emultempl/hppaelf.em: Use lang_output_section_get instead of
808         lang_output_section_find where applicable.
809         * emultempl/aarch64elf.em: Likewise.
810         * emultempl/aix.em: Likewise.
811         * emultempl/armelf.em: Likewise.
812         * emultempl/m68hc1xelf.em: Likewise.
813         * emultempl/metagelf.em: Likewise.
814         * emultempl/mipself.em: Likewise.
815         * emultempl/ppc64elf.em: Likewise.
816         * emultempl/spuelf.em: Likewise.
817
818 2014-01-17  Alan Modra  <amodra@gmail.com>
819
820         * genscripts.sh (COMPILE_IN): Don't set if already set.
821         * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
822         COMPILE_IN=no.
823         * emulparams/nds32elf16m.sh: Likewise.
824         * emulparams/nds32elf_linux.sh: Likewise.
825         * emultempl/aix.em: Test COMPILE_IN value is "yes".
826         * emultempl/armcoff.em: Likewise.
827         * emultempl/elf32.em: Likewise.
828         * emultempl/generic.em: Likewise.
829         * emultempl/gld960.em: Likewise.
830         * emultempl/gld960c.em: Likewise.
831         * emultempl/linux.em: Likewise.
832         * emultempl/lnk960.em: Likewise.
833         * emultempl/m68kcoff.em: Likewise.
834         * emultempl/sunos.em: Likewise.
835         * emultempl/ticoff.em: Likewise.
836
837 2014-01-16  H.J. Lu  <hongjiu.lu@intel.com>
838
839         PR ld/16456
840         * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
841         suffix.
842         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
843         for elf32_x86_64 emulation.
844         * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
845         for elf_i386 emulation.
846
847 2014-01-16  Alan Modra  <amodra@gmail.com>
848
849         * ld.h (fat_section_userdata_type, get_userdata): Move to..
850         * ldlang.h (input_section_userdata_type, get_userdata): ..here.
851         * ldlang.c (init_map_userdata): Delete.  Fold into..
852         (sort_def_symbol): ..here.  Don't attach input section userdata
853         to output sections or global bfd sections.
854         (lang_map): Don't pre-allocate input section userdata.
855         (init_os): Don't allocate userdata for output sections.
856         (print_all_symbols): Update.
857
858 2014-01-15  H.J. Lu  <hongjiu.lu@intel.com>
859
860         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
861         Silence uninitialized warning on ehdr_start_save with older
862         GCC.
863
864 2014-01-15  Alan Modra  <amodra@gmail.com>
865
866         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
867         __ehdr_start before size_dynamic_sections and restore afterwards.
868
869 2014-01-10  Alan Modra  <amodra@gmail.com>
870
871         PR ld/14207
872         PR ld/16322
873         PR binutils/16323
874         * ldlang.c (lang_size_sections): Remove unneeded RELRO base
875         adjust.  Tidy comments.
876         * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
877
878 2014-01-10  Hans-Peter Nilsson  <hp@axis.com>
879
880         * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
881
882 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
883
884         PR ld/14207
885         PR ld/16322
886         PR binutils/16323
887         * ldlang.c (lang_size_sections): Properly align RELRO base.
888
889 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
890
891         * ldver.c (ldversion): Update copyright year to 2014.
892
893 For older changes see ChangeLog-2013
894 \f
895 Copyright (C) 2014 Free Software Foundation, Inc.
896
897 Copying and distribution of this file, with or without modification,
898 are permitted in any medium without royalty provided the copyright
899 notice and this notice are preserved.
900
901 Local Variables:
902 mode: change-log
903 left-margin: 8
904 fill-column: 74
905 version-control: never
906 End: