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