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