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