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