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