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