X32: Add REX prefix to encode R_X86_64_GOTTPOFF
[platform/upstream/binutils.git] / ld / ChangeLog
1 2014-10-29  Nick Clifton  <nickc@redhat.com>
2
3         * po/bg.po: Updated Bulgarian translation.
4
5 2014-10-28  Alan Modra  <amodra@gmail.com>
6
7         Apply trunk patches
8         2014-10-16  Alan Modra  <amodra@gmail.com>
9         PR 17488
10         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_finish): Don't attempt
11         to access ELF header e_flags when not ppc64 ELF output.
12
13 2014-10-24  Tejas Belagod  <tejas.belagod@arm.com>
14
15         * emultempl/aarch64elf.em: Add command-line option for erratum
16         835769.
17
18 2014-10-17  Hans-Peter Nilsson  <hp@axis.com>
19
20         Backport "implement --print-sysroot in ld" from master
21         * ldlex.h (enum option_values): Add entry OPTION_PRINT_SYSROOT.
22         * lexsup.c (ld_options): Add entry for --print-sysroot.
23         (parse_args) <OPTION_PRINT_SYSROOT>: Print sysroot and exit early.
24
25 2014-10-15  Tristan Gingold  <gingold@adacore.com>
26
27         * configure: Regenerate.
28
29 2014-10-15  Hans-Peter Nilsson  <hp@axis.com>
30
31         Backport "="-ldscript-path-prefix changes from master.
32         * ldlex.l (INPUTLIST): New start condition.
33         (comment pattern, ",", "(", ")", "AS_NEEDED")
34         ({FILENAMECHAR1}{FILENAMECHAR}*, "-l"{FILENAMECHAR}+)
35         (quoted string pattern, whitespace pattern): Add INPUTLIST to
36         valid start conditions.
37         (<INPUTLIST>"="{FILENAMECHAR1}{FILENAMECHAR}*): New NAME rule.
38         (ldlex_inputlist): New start-condition-setter function.
39         * ldgram.y (input_list1): Rename from input_list.  All recursive
40         use changed.
41         (input_list): New wrapper rule for input_list1, setting
42         INPUTLIST lexer state for the duration of parsing input_list1.
43         * ldlang.c (lang_add_input_file): If the first character in the
44         filename is '=', prepend the sysroot and force the context of that
45         input file to non-sysroot.
46         * ld.texinfo (Options): When mentioning "=" and sysroot, mention
47         that --sysroot controls it, not only through the configuration.
48         (input files in linker scripts): When mentioning
49         behavior of first character "/" on scripts within sysroot, also
50         mention that effect can be forced by prefixing with "=" and
51         refer to SEARCH_DIR.
52
53 2014-10-14  Tristan Gingold  <gingold@adacore.com>
54
55         * NEWS: Add marker for 2.25.
56
57 2014-10-13  Alan Modra  <amodra@gmail.com>
58
59         * ldlang.c (lang_add_section): Set up map_head.s and map_tail.s when
60         relocatable.
61
62 2014-09-16  Kuan-Lin Chen  <kuanlinchentw@gmail.com>
63
64         * emultempl/nds32elf.em (nds32_elf_after_open): Do not keep
65         ex9 234th entry.
66         (nds32_elf_after_allocation): Move all optimizations into
67         nds32_elf_relax_section.
68
69 2014-09-15  Andrew Bennett  <andrew.bennett@imgtec.com>
70             Matthew Fortune  <matthew.fortune@imgtec.com>
71
72         * ldmain.c (get_emulation): Add support for -mips32r6 and -mips64r6.
73
74 2014-09-12  Andrew Bennett  <andrew.bennett@imgtec.com>
75
76         * configure.tgt: Add mips*-img-elf* target triple.
77
78 2014-09-01  Jon TURNEY  <jon.turney@dronecode.org.uk>
79
80         * emultempl/pe.em (write_build_id, setup_build_id): Change pe/coff
81         build-id section name from '.build-id' to '.buildid'.
82         * emultempl/pep.em (write_build_id, setup_build_id): Ditto.
83
84 2014-08-22  Andreas Tobler  <andreast@fgznet.ch>
85
86         * emulparams/armelf_fbsd.sh (TEXT_START_ADDR): Increase alignment to
87         64kB boundary like in armelf_linux.sh.
88
89 2014-08-22  Alan Modra  <amodra@gmail.com>
90
91         * emultempl/ppc64elf.em (gld${EMULATION_NAME}_after_allocation): Call
92         bfd_elf_discard_info after generating glink .eh_frame.  Delete
93         redundant test on ppc64_elf_setup_section_lists status.
94
95 2014-08-20  Maciej W. Rozycki  <macro@codesourcery.com>
96
97         * emultempl/armelf.em (OPTION_STUBGROUP_SIZE): Fix formatting.
98         (OPTION_NO_MERGE_EXIDX_ENTRIES, OPTION_LONG_PLT): Likewise.
99
100 2014-08-20  Will Newton  <will.newton@linaro.org>
101
102         * configure.tgt: Default armeb-*-eabi* to big endian.
103
104 2014-08-20  Daniel Micay  <danielmicay@gmail.com>
105
106         * emultempl/pep.em: Add --high-entropy-va switch.
107         * ld.texinfo: Document the --high-entropy-va switch.
108
109 2014-08-20  Nick Clifton  <nickc@redhat.com>
110
111         * scripttempl/DWARF.sc: Add copyright notice.
112         * scripttempl/aix.sc: Likewise.
113         * scripttempl/alpha.sc: Likewise.
114         * scripttempl/alphavms.sc: Likewise.
115         * scripttempl/aout.sc: Likewise.
116         * scripttempl/armaout.sc: Likewise.
117         * scripttempl/armbpabi.sc: Likewise.
118         * scripttempl/armcoff.sc: Likewise.
119         * scripttempl/avr.sc: Likewise.
120         * scripttempl/avrtiny.sc: Likewise.
121         * scripttempl/crisaout.sc: Likewise.
122         * scripttempl/delta68.sc: Likewise.
123         * scripttempl/dlx.sc: Likewise.
124         * scripttempl/elf.sc: Likewise.
125         * scripttempl/elf32cr16.sc: Likewise.
126         * scripttempl/elf32cr16c.sc: Likewise.
127         * scripttempl/elf32crx.sc: Likewise.
128         * scripttempl/elf32msp430.sc: Likewise.
129         * scripttempl/elf32msp430_3.sc: Likewise.
130         * scripttempl/elf32sh-symbian.sc: Likewise.
131         * scripttempl/elf32xc16x.sc: Likewise.
132         * scripttempl/elf32xc16xl.sc: Likewise.
133         * scripttempl/elf32xc16xs.sc: Likewise.
134         * scripttempl/elf64hppa.sc: Likewise.
135         * scripttempl/elf_chaos.sc: Likewise.
136         * scripttempl/elfd10v.sc: Likewise.
137         * scripttempl/elfd30v.sc: Likewise.
138         * scripttempl/elfi370.sc: Likewise.
139         * scripttempl/elfm68hc11.sc: Likewise.
140         * scripttempl/elfm68hc12.sc: Likewise.
141         * scripttempl/elfmicroblaze.sc: Likewise.
142         * scripttempl/elfxgate.sc: Likewise.
143         * scripttempl/elfxtensa.sc: Likewise.
144         * scripttempl/epiphany_4x4.sc: Likewise.
145         * scripttempl/epocpe.sc: Likewise.
146         * scripttempl/h8300.sc: Likewise.
147         * scripttempl/h8300h.sc: Likewise.
148         * scripttempl/h8300hn.sc: Likewise.
149         * scripttempl/h8300s.sc: Likewise.
150         * scripttempl/h8300sn.sc: Likewise.
151         * scripttempl/h8300sx.sc: Likewise.
152         * scripttempl/h8300sxn.sc: Likewise.
153         * scripttempl/h8500.sc: Likewise.
154         * scripttempl/h8500b.sc: Likewise.
155         * scripttempl/h8500c.sc: Likewise.
156         * scripttempl/h8500m.sc: Likewise.
157         * scripttempl/h8500s.sc: Likewise.
158         * scripttempl/hppaelf.sc: Likewise.
159         * scripttempl/i386beos.sc: Likewise.
160         * scripttempl/i386coff.sc: Likewise.
161         * scripttempl/i386go32.sc: Likewise.
162         * scripttempl/i386msdos.sc: Likewise.
163         * scripttempl/i860coff.sc: Likewise.
164         * scripttempl/i960.sc: Likewise.
165         * scripttempl/ia64vms.sc: Likewise.
166         * scripttempl/ip2k.sc: Likewise.
167         * scripttempl/iq2000.sc: Likewise.
168         * scripttempl/m68kaux.sc: Likewise.
169         * scripttempl/m68kcoff.sc: Likewise.
170         * scripttempl/m88kbcs.sc: Likewise.
171         * scripttempl/mcorepe.sc: Likewise.
172         * scripttempl/mep.sc: Likewise.
173         * scripttempl/mips.sc: Likewise.
174         * scripttempl/mipsbsd.sc: Likewise.
175         * scripttempl/mmo.sc: Likewise.
176         * scripttempl/moxie.sc: Likewise.
177         * scripttempl/nds32elf.sc: Likewise.
178         * scripttempl/nw.sc: Likewise.
179         * scripttempl/pe.sc: Likewise.
180         * scripttempl/pep.sc: Likewise.
181         * scripttempl/pj.sc: Likewise.
182         * scripttempl/ppcpe.sc: Likewise.
183         * scripttempl/psos.sc: Likewise.
184         * scripttempl/riscix.sc: Likewise.
185         * scripttempl/sh.sc: Likewise.
186         * scripttempl/sparccoff.sc: Likewise.
187         * scripttempl/st2000.sc: Likewise.
188         * scripttempl/tic30aout.sc: Likewise.
189         * scripttempl/tic30coff.sc: Likewise.
190         * scripttempl/tic4xcoff.sc: Likewise.
191         * scripttempl/tic54xcoff.sc: Likewise.
192         * scripttempl/tic80coff.sc: Likewise.
193         * scripttempl/v850.sc: Likewise.
194         * scripttempl/v850_rh850.sc: Likewise.
195         * scripttempl/vanilla.sc: Likewise.
196         * scripttempl/w65.sc: Likewise.
197         * scripttempl/xstormy16.sc: Likewise.
198         * scripttempl/z80.sc: Likewise.
199         * scripttempl/z8000.sc: Likewise.
200
201 2014-08-19  Alan Modra  <amodra@gmail.com>
202
203         * configure: Regenerate.
204
205 2014-08-18  Alan Modra  <amodra@gmail.com>
206
207         * ld.texinfo (--as-needed): Clarify that references from libraries
208         must be from needed libraries.
209
210 2014-08-18  Alan Modra  <amodra@gmail.com>
211
212         * emultempl/aarch64elf.em (gld${EMULATION_NAME}_after_allocation):
213         Handle error status from bfd_elf_discard_info.
214         * emultempl/armelf.em: Likewise.
215         * emultempl/elf32.em: Likewise.
216         * emultempl/hppaelf.em: Likewise.
217         * emultempl/metagelf.em: Likewise.
218         * emultempl/nios2elf.em: Likewise.
219         * emultempl/ppc64elf.em: Likewise.
220         * emultempl/tic6xdsbt.em: Likewise.
221         * emultempl/vms.em: Likewise.
222
223 2014-08-14  Alan Modra  <amodra@gmail.com>
224
225         PR 16563
226         * ldlang.c (map_head_is_link_order): Rename from
227         stripped_excluded_sections.
228         (lang_clear_os_map): New function, extracted from..
229         (strip_excluded_output_sections): ..here.
230         * ldlang.h (lang_clear_os_map): Declare.
231         * ldwrite.c (ldwrite): Call lang_clear_os_map.
232         * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
233         Likewise.
234
235 2014-08-14  Alan Modra  <amodra@gmail.com>
236
237         * configure.ac: Move AC_PROG_CC and other macros earlier.  Delete
238         plugin checks now done in config/plugins.m4.
239         * config.in: Regenerate.
240         * configure: Regenerate.
241
242 2014-08-14  Alan Modra  <amodra@gmail.com>
243
244         * plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
245         flags.claimed.
246
247 2014-08-13  Yaakov Selkowitz  <yselkowi@redhat.com>
248
249         * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
250         __dso_handle.
251
252 2014-08-13  Alan Modra  <amodra@gmail.com>
253
254         * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
255
256 2014-08-12  Alan Modra  <amodra@gmail.com>
257
258         * ldlang.h (struct lang_input_statement_flags): Don't make "reload"
259         field conditional on ENABLE_PLUGINS.
260         * ldlang.c (open_input_bfds): Expand plugin_should_reload.
261         * plugin.h (plugin_should_reload): Delete.
262         * plugin.c (plugin_should_reload): Delete.
263
264 2014-08-12  Alan Modra  <amodra@gmail.com>
265
266         * ldmain.c (notice): Update args.
267         * plugin.c (plugin_notice): Likewise.  Follow warning sym link.
268         Handle new indirect symbol.
269
270 2014-08-12  Alan Modra  <amodra@gmail.com>
271
272         * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
273
274 2014-08-08  Ulrich Drepper  <drepper@gmail.com>
275
276         * ldlang.h (struct lang_input_statement_flags): Add pushed
277         member.
278         * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
279         OPTION_POP_STATE.
280         * lexsup.c (ld_options): Add entries for --push-state and
281         --pop-state.
282         (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
283         * ld.texinfo: Document --push-state and --pop-state.
284
285 2014-08-06  H.J. Lu  <hongjiu.lu@intel.com>
286
287         PR14918
288         * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
289
290 2014-08-05  Alan Modra  <amodra@gmail.com>
291
292         * Makefile.in: Regenerate.
293
294 2014-07-29  Matthew Fortune  <matthew.fortune@imgtec.com>
295
296         * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
297         * emulparams/elf32bmipn32-defs.sh: Likewise.
298         * emulparams/elf64bmip-defs.sh: Likewise.
299
300 2014-07-27  Anthony Green  <green@moxielogic.com>
301
302         * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
303         (emoxiebox.c): Build.
304         * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
305         * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
306         * Makefile.in: Rebuilt.
307
308 2014-07-17  Stefan Kristiansson  <stefan.kristiansson@saunalahti.fi>
309
310         * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
311         0x0 to first page boundary at 0x2000.
312
313 2014-07-10  Max Filippov  <jcmvbkbc@gmail.com>
314
315         * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
316         correctly handle missing dot in section name after
317         ".gnu.linkonce.prop.".
318
319 2014-07-08  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
320
321         * scripttempl/avr.sc: Remove KEEP for .data and
322         force .bss VMA to end of .data VMA.
323
324 2014-07-08  Will Newton  <will.newton@linaro.org>
325
326         * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
327         alignment to 64kB boundary.
328
329 2014-07-04  Alan Modra  <amodra@gmail.com>
330
331         * configure.ac: Update "configure.in" comments.
332         * configure: Regenerate.
333
334 2014-07-04  Alan Modra  <amodra@gmail.com>
335
336         * configure.ac: Rename from configure.in.
337         * Makefile.in: Regenerate.
338         * config.in: Regenerate.
339
340 2014-07-04  Alan Modra  <amodra@gmail.com>
341
342         * configure.in: Include bfd/version.m4.
343         (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
344         (BFD_VERSION): Delete.
345         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
346         * configure: Regenerate.
347         * Makefile.in: Regenerate.
348
349 2014-07-03  Alan Modra  <amodra@gmail.com>
350
351         PR 17068
352         * ldlang.c (load_symbols): Always check flags.reload.
353         (open_input_bfds): Always reload --as-needed shared libraries,
354         not just when rescanning.
355         * ldlang.h (struct lang_input_statement_flags): Update reload comment.
356         * plugin.c (plugin_should_reload): Assume shared library arg.
357         * plugin.h (plugin_should_reload): Update comment.
358
359 2014-07-01  Alan Modra  <amodra@gmail.com>
360
361         * emultempl/ppc64elf.em (stub_added): Delete.
362         (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
363         none of the usual stubs have been added.  Only change entry_section
364         for ELFv1.
365
366 2014-07-01  Alan Modra  <amodra@gmail.com>
367
368         * sysdep.h: Don't include limits.h and sys/param.h.  Don't
369         include unistd.h twice.
370         (LD_PATHMAX): Don't define.
371         * ldlang.c (lang_common): Don't use UINT_MAX.
372
373 2014-07-01  Barney Stratford  <barney_stratford@fastmail.fm>
374             Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
375             Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
376             Soundararajan  <Sounderarajan.D@atmel.com>
377
378         * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
379         (eavrtiny.c): Add rules for avrtiny emulation source.
380         * Makefile.in: Regenerate.
381         * configure.tgt: Add avrtiny to avr target emulations.
382         * scripttempl/avrtiny.sc: New file.  Linker script template for
383         avrtiny arch.
384         * emulparams/avrtiny.sh: New file.  Emulation parameters for
385         avrtiny arch.
386
387 2014-06-30  Ulrich Drepper  <drepper@gmail.com>
388
389         * lexsup.c (parse_args): Check whether provided SONAME is empty
390         string.  If yes, warn and ignore it.  Don't overwrite valid SONAME
391         with empty string.
392
393 2014-06-26  Linda Zhang  <lindasc@qq.com>
394
395         * emultempl/pe.em: Initialise insert_timestamp to true.
396         Add a --no-insert-timestamp command line option.
397         * emultempl/pep.em: Likewise.
398         * ld.texinfo: Document that --insert-timestamp is enabled by
399         default and that it now has an inverse command line option.
400         * NEWS: Mention the new behaviour.
401
402 2014-06-25  Nick Clifton  <nickc@redhat.com>
403
404         * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
405         here...
406         (ALL_64_EMULATION_SOURCES): ... to here.
407         (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
408         (ALL_64_EMUL_EXTRA_OFILES): New.  ... to here.
409         * configure.in (EMUL_EXTRA_OFILES): Include
410         ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
411         * Makefile.in: Regenerate.
412         * configure: Regenerate.
413
414 2014-06-18  Andreas Tobler  <andreast@fgznet.ch>
415
416         * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
417         (arm*b-*-freebsd*): Add target.
418         * emulparams/armelfb_fbsd.sh: Added.
419         * emulparams/armelf_fbsd.sh: Updated.
420         * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
421         * Makefile.in: Regenerate.
422
423 2014-06-16  Alan Modra  <amodra@gmail.com>
424
425         * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
426         .rel sections, and __rel_iplt from .rela sections.
427         * scripttempl/nds32elf.sc: Likewise.
428         * Makefile.am (ends32*.c) Depend on nds32elf.sc.
429         * Makefile.in: Regenerate.
430
431 2014-06-13  Alan Modra  <amodra@gmail.com>
432
433         PR 17047
434         * ldlang.c (output_bfd_hash_table_free_fn): Delete.
435         (open_output): Don't set it..
436         * ldmain.c (ld_cleanup): ..or call it.
437
438 2014-06-13  Alan Modra  <amodra@gmail.com>
439
440         * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
441         * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
442         * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
443         * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
444
445 2014-06-13  Alan Modra  <amodra@gmail.com>
446
447         * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
448         * Makefile.in: Regenerate.
449
450 2014-06-07  Alan Modra  <amodra@gmail.com>
451
452         * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
453         linker script symbol value override a built-in linker symbol.
454
455 2014-06-05  Joel Brobecker  <brobecker@adacore.com>
456
457         * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
458         bfd's development.sh.
459         * Makefile.in, configure: Regenerate.
460
461 2014-06-02  Alan Modra  <amodra@gmail.com>
462
463         * emulparams/elf32bfin.sh: Rename from bfin.sh.
464         * emulparams/elf32bfinfd.sh: Update to suit.
465         * emulparams/msp430.sh: Rename from msp430all.sh.  Remove
466         MSP430_NAME and msp430X vars.
467         * emulparams/msp430X.sh: New.
468         * emulparams/score3_elf.sh: Rename from scoreelf.sh.  Remove
469         SCORE_NAME and score7_elf ARCH setting.
470         * emulparams/score7_elf.sh: New.
471         * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
472         (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
473         * Makefile.in: Regenerate.
474         * genscripts.sh: Delete customizer_script param.
475
476 2014-05-28  Hans-Peter Nilsson  <hp@axis.com>
477
478         * Makefile.am: Change all rules with ${GENSCRIPTS}
479         invocations to be just dependencies.
480         ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
481         (run-genscripts): New rules.
482         * Makefile.in: Regenerate.
483
484 2014-05-27  DJ Delorie  <dj@redhat.com>
485
486         * ld/ldemul.h (extra_map_file_text): New field.
487         (ldemul_extra_map_file_text): Declare.
488         * ld/ldemul.c (ldemul_extra_map_file_text): Define.
489         * ld/ldlang.c (lang_map): Call it.
490
491         * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
492         * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
493         * ld/emultempl/armcoff.em: Likewise.
494         * ld/emultempl/beos.em: Likewise.
495         * ld/emultempl/elf32.em: Likewise.
496         * ld/emultempl/generic.em: Likewise.
497         * ld/emultempl/gld960.em: Likewise.
498         * ld/emultempl/gld960c.em: Likewise.
499         * ld/emultempl/linux.em: Likewise.
500         * ld/emultempl/lnk960.em: Likewise.
501         * ld/emultempl/m68kcoff.em: Likewise.
502         * ld/emultempl/pe.em: Likewise.
503         * ld/emultempl/pep.em: Likewise.
504         * ld/emultempl/sunos.em: Likewise.
505         * ld/emultempl/ticoff.em: Likewise.
506         * ld/emultempl/vanilla.em: Likewise.
507
508 2014-05-24  Alan Modra  <amodra@gmail.com>
509
510         * ldlang.c (base): Move variable to..
511         * mri.c: ..here, and make static.
512         * ldlang.h (base): Delete declaration.
513
514 2014-05-20  Hans-Peter Nilsson  <hp@axis.com>
515
516         * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
517         * Makefile.in: Regenerate.
518
519 2014-05-20  Alan Modra  <amodra@gmail.com>
520
521         PR 16952
522         * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
523         * emultempl/ppc32elf.em (ppc_before_allocation): Call
524         ppc_elf_maybe_strip_sdata_syms.
525         * ldlang.c (size_input_section): Correct output_offset value
526         for excluded input sections.
527
528 2014-05-16  John Marino  <binutils@marino.st>
529
530         * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
531
532 2014-05-11  Chung-Lin Tang  <cltang@codesourcery.com>
533
534         * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
535         and gp in PROVIDE_HIDDEN.
536
537 2014-05-10  Hans-Peter Nilsson  <hp@bitrange.com>
538
539         * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
540         (output_bfd_hash_table_free_fn): New variable.
541         (open_output): Save the _bfd_link_hash_table_free function for the
542         output_bfd into output_bfd_hash_table_free_fn.
543         * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
544         on link_info.hash.
545         * ldlang.h (output_bfd_hash_table_free_fn): Declare.
546
547 2014-05-02  Alan Modra  <amodra@gmail.com>
548
549         * emultempl/metagelf.em: Update bfd target vector naming.
550         * emultempl/nios2elf.em: Likewise.
551         * emultempl/spuelf.em: Likewise.
552         * emultempl/tic6xdsbt.em: Likewise.
553
554 2014-04-22  Christian Svensson  <blue@cmd.nu>
555
556         * Makefile.am: Remove openrisc and or32 support.  Add support for or1k.
557         * configure.tgt: Likewise.
558         * emulparams/elf32or1k.sh: New file.
559         * emulparams/elf32or1k_linux.sh: New file.
560         * emulparams/elf32openrisc.sh: Delete.
561         * emulparams/or32.sh: Delete.
562         * emulparams/or32elf.sh: Delete.
563         * scripttempl/or32.sc: Delete.
564         * Makefile.in: Regenerate.
565
566 2014-04-21  Richard Henderson  <rth@redhat.com>
567
568         * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
569
570 2014-04-16  Steve Ellcey  <sellcey@mips.com>
571
572         * emultempl/elf32.em: Include safe-ctype.h.
573
574 2014-04-16  Steve Ellcey  <sellcey@mips.com>
575
576         * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
577
578 2014-04-09  Nick Clifton  <nickc@redhat.com>
579
580         * Makefile.am (default-manifest.o): Remove rule.
581         (EMUL_EXTRA_BINARIES): Delete.
582         (ALL_EMUL_EXTRA_BINARIES): Delete.
583         (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
584         (install-data-local): Remove EMUL_EXTRA_BINARIES.
585         * Makefile.in: Regenerate.
586         * configure.in (all_emul_extra_binaries): Delete.
587         (EMUL_EXTRA_BINARIES): Remove.
588         * configure: Regenerate.
589         * configure.tgt (target_extra_binaries): Delete.
590         * emultempl/default-manifest.rc: Delete.
591         * ld.texinfo: Remove discussion of default manifest.
592         * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
593         * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
594
595 2014-04-09  Alan Modra  <amodra@gmail.com>
596
597         * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
598         * emultempl/nds32elf.em: Include bfd_stdint.h.
599         * po/POTFILES.in: Regenerate.
600
601 2014-04-09  Alan Modra  <amodra@gmail.com>
602
603         * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
604         (LDEMUL_FINISH): Define.
605
606 2014-04-08  Nick Clifton  <nickc@redhat.com>
607
608         * scripttempl/pe.sc (R_RSRC): Remove default manifest.
609         * scripttempl/pep.sc (R_RSRC): Remove default manifest.
610
611 2014-04-08  Jon TURNEY  <jon.turney@dronecode.org.uk>
612
613         * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
614         Move code for parsing build-id option and calculating the build-id to...
615         * ldbuildid.c: New file.
616         * ldbuildid.h: New file.
617         * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
618         files.
619         * Makefile.in: Regenerate.
620         * ld.texinfo: Update --build-id description to mention COFF
621         support.
622         * NEWS: Mention support for COFF build ids.
623         * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
624         (pecoff_checksum_contents, write_build_id, setup_build_id)
625         (gld_${EMULATION_NAME}_after_open):  Handle and implement
626         build-id option.
627         * emultempl/pep.em: Likewise.
628
629 2014-04-04  Cary Coutant  <ccoutant@google.com>
630
631         PR gold/16804
632         * ld.texinfo: Document optional comma following output section
633         command and overlay command.
634
635 2014-04-04  Alan Modra  <amodra@gmail.com>
636
637         * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
638         current "fill", not "output_section_statement->fill".
639
640 2014-03-31  Nick Clifton  <nickc@redhat.com>
641
642         PR ld/16744
643         * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
644         section when performing a relocatable link with -z [no]execstack
645         specified.
646
647 2014-03-27  H.J. Lu  <hongjiu.lu@intel.com>
648
649         PR ld/16756
650         * ldmain.c (symbol_warning): New function.
651         (warning_callback): Use it.  Scan all input files for a reference
652         to SYMBOL.
653
654 2014-03-21  Christopher Faylor  <me.cygwin2013@cgf.cx>
655
656         * ld.texinfo: Document change in handling of --enable-auto-image-base.
657         * emultempl/pe.em (pe_auto_image_base): Set to default base.
658         (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
659         optional --enable-auto-image-base argument.
660         (gld${EMULATION_NAME}_handle_option): Handle optional
661         --enable-auto-image-base argument.
662         (compute_dll_image_base): Eliminate constant.  Use pe_auto_image_base.
663
664 2014-03-19  Nick Clifton  <nickc@redhat.com>
665
666         * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
667         * Makefile.in: Regenerate.
668         * emultempl/default-manifest.rc: Fix typo.
669         * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
670         (.rsrc): Add SUBALIGN(4).  Remove SORT.
671         * scripttempl/pep.sc: Likewise.
672
673 2014-03-17  Christopher Faylor  <me.cygwin2014@cgf.cx>
674
675         * Makefile.am: Use host version of windres.
676         * Makefile.in: Regenerate.
677
678 2014-03-14  Romain Geissler  <romain.geissler@amadeus.com>
679             Alan Modra  <amodra@gmail.com>
680
681         * ldlang.h (full_name_provided): New input flag.
682         * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
683         for -l:namespec.  Instead use lang_input_file_is_l_enum with
684         full_name_provided flag.
685         * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
686         full_name_provided flag is set.
687         * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
688         Handle full_name_provided libraries.  Tidy EXTRA_SHLIB_EXTENSION
689         support.  Set DT_NEEDED for -l:namespec as namespec.
690         * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
691         * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
692         Don't handle full_name_provided libraries.
693         * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
694         * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
695         * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
696
697 2014-03-12  Alan Modra  <amodra@gmail.com>
698
699         * Makefile.in: Regenerate.
700
701 2014-03-05  Alan Modra  <amodra@gmail.com>
702
703         Update copyright years.
704
705 2014-03-04  Nick Clifton  <nickc@redhat.com>
706
707         * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
708         * Makefile.in: Regenerate.
709
710 2014-02-27  Yuri Gribov  <y.gribov@samsung.com>
711
712         * emultempl/armelf.em (OPTION_LONG_PLT): Define.
713         (PARSE_AND_LIST_LONGOPTS): Add long-plt.
714         (PARSE_AND_LIST_OPTIONS): Likewise.
715         (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
716         * ld.texinfo: Document --long-plt.
717
718 2014-02-27  Alan Modra  <amodra@gmail.com>
719
720         * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
721         use ppc32elf.em.
722         * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
723         vxworks.
724         (LDEMUL_AFTER_OPEN): Don't set for vxworks.
725         (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
726         -secure-plt, -bss-plt and -sdata-got when vxworks.
727
728 2014-02-27  Nick Clifton  <nickc@redhat.com>
729
730         * configure.in (all_emul_extra_binaries): New variable.  Populated
731         by invoking configure.tgt.
732         (EMUL_EXTRA_BINARIES): New substitution.
733         * configure: Regenerate.
734         * configure.tgt (target_extra_binaries): New variable.  Set to
735         default-manifest.o for Cygwin and MinGW targets.
736         * Makefile.am (EMUL_EXTRA_BINARIES): New variable.  Initialised
737         by the configure script.
738         (ALL_EMUL_EXTRA_BINARIES): New variable.
739         (default-manifest.o): New rule to build the default manifest.
740         (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
741         (install-data-local): Add EMUL_EXTRA_BINARIES.
742         * Makefile.in: Regenerate.
743         * ld.texinfo: Document default manifest support.
744         * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
745         * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
746         * emultempl/default-manifest.rc: New file.
747         * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
748         * scripttempl/pep.sc (R_RSRC): Likewise.
749
750 2014-02-26  Dan Mick  <dan.mick@inktank.com>
751
752         PR ld/16569
753         * ldcref.c (cref_sort_array): Compare unmangled names unless
754         demanglng has been requiested.
755         (output_one_cref): Output unmangled name unless demangling has
756         been requested.
757
758 2014-02-19  Igor Zamyatin  <igor.zamyatin@intel.com>
759             H.J. Lu  <hongjiu.lu@intel.com>
760
761         * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
762
763 2014-02-19  Alan Modra  <amodra@gmail.com>
764
765         * emultempl/ppc64elf.em (params): Init new field.
766         (ppc_create_output_section_statements): Set params.save_restore_funcs
767         default.
768         (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
769         --no-save-restore-funcs.
770
771 2014-02-17  Alan Modra  <amodra@gmail.com>
772
773         * emultemps/ppc64elf.em (params): New static struct replacing
774         various other static vars.  Adjust code throughout file.
775
776 2014-02-17  Alan Modra  <amodra@gmail.com>
777
778         * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
779         ppc476 workaround for ld -r.
780
781 2014-02-12  Alan Modra  <amodra@gmail.com>
782
783         * emultempl/ppc32elf.em (pagesize): New static var.
784         (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
785         (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
786
787 2014-02-11  Andrew Pinski  <apinski@cavium.com>
788
789         * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
790         (ELF_INTERPRETER_NAME): Define.
791         * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
792
793 2014-02-10  Alan Modra  <amodra@gmail.com>
794
795         * po/ld.pot: Regenerate.
796
797 2014-02-03  Alan Modra  <amodra@gmail.com>
798
799         * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
800         plt_style): Delete.  Adjust all refs to instead use..
801         (params): ..this.  New variable.
802         (ppc_after_open_output): New function.  Tweak params and pass to
803         ppc_elf_link_params.
804         (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
805         (ppc_before_allocation): Adjust ppc_elf_tls_setup call.  Enable
806         relaxation for ppc476 workaround.
807         (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
808         (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
809
810 2014-02-02  Sebastian Huber  <sebastian.huber@embedded-brains.de>
811
812         * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
813         * ld/ldlang.c (lang_size_sections_1): Add dotdelta
814         variable which reflects the VMA change due to alignment
815         requirements.  Use dotdelta do change the LMA if
816         ALIGN_WITH_INPUT is requested.
817
818 2014-02-01  Hans-Peter Nilsson  <hp@bitrange.com>
819
820         * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
821         call to bfd_set_section_vma exposed by recent bfd_set_section_vma
822         change.
823
824 2014-01-30  Sandra Loosemore  <sandra@codesourcery.com>
825
826         * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
827         * Makefile.in: Regenerated.
828         * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
829         * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
830         * emultempl/nios2elf.em: New file.
831         * gen-doc.texi (NIOSII): Set.
832         * ld.texinfo (NIOSII): Set.
833
834 2014-01-28  Nick Clifton  <nickc@redhat.com>
835
836         * Makefile.am: Remove obsolete MSP430 emulations.
837         * configure.tgt: Likewise.
838         * emulparams/msp430all.sh: Likewise.
839         * Makefile.in: Regenerate.
840
841 2014-01-24  H.J. Lu  <hongjiu.lu@intel.com>
842
843         PR ld/16498
844         * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
845         orphaned TLS section handling.
846
847 2014-01-24  Alan Modra  <amodra@gmail.com>
848
849         * ldlang.c (lang_output_section_find_by_flags): Be careful to
850         test look->bfd_section->flags if available rather than
851         look->flags.  Separate SEC_THREAD_LOCAL handling from
852         SEC_READONLY loop, and rewrite.
853
854 2014-01-22  Alan Modra  <amodra@gmail.com>
855
856         * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
857         (lang_init): Initialise them.
858         (lang_print_asneeded): New function.
859         (lang_process): Call lang_print_asneeded.
860         * ldlang.h (struct asneeded_minfo): New.
861         (asneeded_list_tail): Declare.
862         * ldmain.c (add_archive_element): Improve archive map heading.
863         * ldmisc.c (minfo): Stash --as-needed info.
864
865 2014-01-22  Alan Modra  <amodra@gmail.com>
866
867         * ld.h (struct map_symbol_def): Move to..
868         * ldlang.h: ..here.
869         * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
870
871 2014-01-22  Alan Modra  <amodra@gmail.com>
872
873         * ld.texinfo (Output Section Discarding): Mention assigning to dot
874         as a way of keeping otherwise empty sections.
875         * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
876         is_dot_plus_0, is_align_conditional): New predicates.
877         (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
878         output section, except for some special cases.
879         * scripttempl/elfmicroblaze.sc: Use canonical form to align at
880         end of .heap and .stack.
881
882 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
883
884         * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
885
886 2014-01-20  Marcus Shawcroft  <marcus.shawcroft@arm.com>
887
888         * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
889
890 2014-01-20  Alan Modra  <amodra@gmail.com>
891
892         * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
893         by_script.  Make iteration a single bit field.
894         (lang_track_definedness, lang_symbol_definition_iteration): Delete.
895         (lang_symbol_defined): Declare.
896         * ldlang.c (lang_statement_iteration): Expand comment a little.
897         (lang_init <lang_definedness_table>): Make it bigger.
898         (lang_track_definedness, lang_symbol_definition): Delete.
899         (lang_definedness_newfunc): Update.
900         (lang_symbol_defined): New function.
901         (lang_update_definedness): Create entries here.  Do track whether
902         script definition of symbol is valid, even when also defined in
903         an object file.
904         * ldexp.c (fold_name <DEFINED>): Update.
905         (fold_name <NAME>): Allow self-assignment for absolute symbols
906         defined in a linker script.
907
908 2014-01-20  Guy Martin <gmsoft@tuxicoman.be>
909             Alan Modra  <amodra@gmail.com>
910
911         * ldlang.h (lang_output_section_get): Define.
912         * ldlang.c (lang_output_section_get): Likewise.
913         (init_os): Set the output_section userdata to the output
914         section statement.
915         * emultempl/hppaelf.em: Use lang_output_section_get instead of
916         lang_output_section_find where applicable.
917         * emultempl/aarch64elf.em: Likewise.
918         * emultempl/aix.em: Likewise.
919         * emultempl/armelf.em: Likewise.
920         * emultempl/m68hc1xelf.em: Likewise.
921         * emultempl/metagelf.em: Likewise.
922         * emultempl/mipself.em: Likewise.
923         * emultempl/ppc64elf.em: Likewise.
924         * emultempl/spuelf.em: Likewise.
925
926 2014-01-17  Alan Modra  <amodra@gmail.com>
927
928         * genscripts.sh (COMPILE_IN): Don't set if already set.
929         * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
930         COMPILE_IN=no.
931         * emulparams/nds32elf16m.sh: Likewise.
932         * emulparams/nds32elf_linux.sh: Likewise.
933         * emultempl/aix.em: Test COMPILE_IN value is "yes".
934         * emultempl/armcoff.em: Likewise.
935         * emultempl/elf32.em: Likewise.
936         * emultempl/generic.em: Likewise.
937         * emultempl/gld960.em: Likewise.
938         * emultempl/gld960c.em: Likewise.
939         * emultempl/linux.em: Likewise.
940         * emultempl/lnk960.em: Likewise.
941         * emultempl/m68kcoff.em: Likewise.
942         * emultempl/sunos.em: Likewise.
943         * emultempl/ticoff.em: Likewise.
944
945 2014-01-16  H.J. Lu  <hongjiu.lu@intel.com>
946
947         PR ld/16456
948         * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
949         suffix.
950         * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
951         for elf32_x86_64 emulation.
952         * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
953         for elf_i386 emulation.
954
955 2014-01-16  Alan Modra  <amodra@gmail.com>
956
957         * ld.h (fat_section_userdata_type, get_userdata): Move to..
958         * ldlang.h (input_section_userdata_type, get_userdata): ..here.
959         * ldlang.c (init_map_userdata): Delete.  Fold into..
960         (sort_def_symbol): ..here.  Don't attach input section userdata
961         to output sections or global bfd sections.
962         (lang_map): Don't pre-allocate input section userdata.
963         (init_os): Don't allocate userdata for output sections.
964         (print_all_symbols): Update.
965
966 2014-01-15  H.J. Lu  <hongjiu.lu@intel.com>
967
968         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
969         Silence uninitialized warning on ehdr_start_save with older
970         GCC.
971
972 2014-01-15  Alan Modra  <amodra@gmail.com>
973
974         * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
975         __ehdr_start before size_dynamic_sections and restore afterwards.
976
977 2014-01-10  Alan Modra  <amodra@gmail.com>
978
979         PR ld/14207
980         PR ld/16322
981         PR binutils/16323
982         * ldlang.c (lang_size_sections): Remove unneeded RELRO base
983         adjust.  Tidy comments.
984         * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
985
986 2014-01-10  Hans-Peter Nilsson  <hp@axis.com>
987
988         * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
989
990 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
991
992         PR ld/14207
993         PR ld/16322
994         PR binutils/16323
995         * ldlang.c (lang_size_sections): Properly align RELRO base.
996
997 2014-01-08  H.J. Lu  <hongjiu.lu@intel.com>
998
999         * ldver.c (ldversion): Update copyright year to 2014.
1000
1001 For older changes see ChangeLog-2013
1002 \f
1003 Copyright (C) 2014 Free Software Foundation, Inc.
1004
1005 Copying and distribution of this file, with or without modification,
1006 are permitted in any medium without royalty provided the copyright
1007 notice and this notice are preserved.
1008
1009 Local Variables:
1010 mode: change-log
1011 left-margin: 8
1012 fill-column: 74
1013 version-control: never
1014 End: