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