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