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