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