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