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