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