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