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