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