1 2014-08-14 Alan Modra <amodra@gmail.com>
4 * ldlang.c (map_head_is_link_order): Rename from
5 stripped_excluded_sections.
6 (lang_clear_os_map): New function, extracted from..
7 (strip_excluded_output_sections): ..here.
8 * ldlang.h (lang_clear_os_map): Declare.
9 * ldwrite.c (ldwrite): Call lang_clear_os_map.
10 * emultempl/sh64elf.em (sh64_elf_${EMULATION_NAME}_after_allocation):
13 2014-08-14 Alan Modra <amodra@gmail.com>
15 * configure.ac: Move AC_PROG_CC and other macros earlier. Delete
16 plugin checks now done in config/plugins.m4.
17 * config.in: Regenerate.
18 * configure: Regenerate.
20 2014-08-14 Alan Modra <amodra@gmail.com>
22 * plugin.c (is_ir_dummy_bfd): Test BFD_PLUGIN flag rather than
25 2014-08-13 Yaakov Selkowitz <yselkowi@redhat.com>
27 * pe-dll.c (autofilter_entry_type autofilter_symbollist_i386): Add
30 2014-08-13 Alan Modra <amodra@gmail.com>
32 * ldlang.c (open_input_bfds): Don't use bfd_elf_get_dyn_lib_class.
34 2014-08-12 Alan Modra <amodra@gmail.com>
36 * ldlang.h (struct lang_input_statement_flags): Don't make "reload"
37 field conditional on ENABLE_PLUGINS.
38 * ldlang.c (open_input_bfds): Expand plugin_should_reload.
39 * plugin.h (plugin_should_reload): Delete.
40 * plugin.c (plugin_should_reload): Delete.
42 2014-08-12 Alan Modra <amodra@gmail.com>
44 * ldmain.c (notice): Update args.
45 * plugin.c (plugin_notice): Likewise. Follow warning sym link.
46 Handle new indirect symbol.
48 2014-08-12 Alan Modra <amodra@gmail.com>
50 * plugin.c (plugin_load_plugins): Set link_info.lto_plugin_active.
52 2014-08-08 Ulrich Drepper <drepper@gmail.com>
54 * ldlang.h (struct lang_input_statement_flags): Add pushed
56 * ldlex.h (enum option_values): Add OPTION_PUSH_STATE and
58 * lexsup.c (ld_options): Add entries for --push-state and
60 (parse_args): Handle OPTION_PUSH_STATE and OPTION_POP_STATE.
61 * ld.texinfo: Document --push-state and --pop-state.
63 2014-08-06 H.J. Lu <hongjiu.lu@intel.com>
66 * plugin.c (plugin_opt_plugin_arg): Drop --pass-through.
68 2014-08-05 Alan Modra <amodra@gmail.com>
70 * Makefile.in: Regenerate.
72 2014-07-29 Matthew Fortune <matthew.fortune@imgtec.com>
74 * emulparams/elf32bmip.sh: Add .MIPS.abiflags.
75 * emulparams/elf32bmipn32-defs.sh: Likewise.
76 * emulparams/elf64bmip-defs.sh: Likewise.
78 2014-07-27 Anthony Green <green@moxielogic.com>
80 * Makefile.am (ALL_EMULATION_SOURCES): Add moxiebox support.
82 * configure.tgt (targ_extra_ofiles): Add moxie-*-moxiebox*.
83 * emulparams/moxiebox.sh (TEXT_START_ADDR): New file.
84 * Makefile.in: Rebuilt.
86 2014-07-17 Stefan Kristiansson <stefan.kristiansson@saunalahti.fi>
88 * emulparams/elf32or1k_linux.sh (TEXT_START_ADDR): Increase from
89 0x0 to first page boundary at 0x2000.
91 2014-07-10 Max Filippov <jcmvbkbc@gmail.com>
93 * emultempl/xtensaelf.em (is_inconsistent_linkonce_section):
94 correctly handle missing dot in section name after
95 ".gnu.linkonce.prop.".
97 2014-07-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
99 * scripttempl/avr.sc: Remove KEEP for .data and
100 force .bss VMA to end of .data VMA.
102 2014-07-08 Will Newton <will.newton@linaro.org>
104 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
105 alignment to 64kB boundary.
107 2014-07-04 Alan Modra <amodra@gmail.com>
109 * configure.ac: Update "configure.in" comments.
110 * configure: Regenerate.
112 2014-07-04 Alan Modra <amodra@gmail.com>
114 * configure.ac: Rename from configure.in.
115 * Makefile.in: Regenerate.
116 * config.in: Regenerate.
118 2014-07-04 Alan Modra <amodra@gmail.com>
120 * configure.in: Include bfd/version.m4.
121 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
122 (BFD_VERSION): Delete.
123 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
124 * configure: Regenerate.
125 * Makefile.in: Regenerate.
127 2014-07-03 Alan Modra <amodra@gmail.com>
130 * ldlang.c (load_symbols): Always check flags.reload.
131 (open_input_bfds): Always reload --as-needed shared libraries,
132 not just when rescanning.
133 * ldlang.h (struct lang_input_statement_flags): Update reload comment.
134 * plugin.c (plugin_should_reload): Assume shared library arg.
135 * plugin.h (plugin_should_reload): Update comment.
137 2014-07-01 Alan Modra <amodra@gmail.com>
139 * emultempl/ppc64elf.em (stub_added): Delete.
140 (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
141 none of the usual stubs have been added. Only change entry_section
144 2014-07-01 Alan Modra <amodra@gmail.com>
146 * sysdep.h: Don't include limits.h and sys/param.h. Don't
147 include unistd.h twice.
148 (LD_PATHMAX): Don't define.
149 * ldlang.c (lang_common): Don't use UINT_MAX.
151 2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
152 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
153 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
154 Soundararajan <Sounderarajan.D@atmel.com>
156 * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
157 (eavrtiny.c): Add rules for avrtiny emulation source.
158 * Makefile.in: Regenerate.
159 * configure.tgt: Add avrtiny to avr target emulations.
160 * scripttempl/avrtiny.sc: New file. Linker script template for
162 * emulparams/avrtiny.sh: New file. Emulation parameters for
165 2014-06-30 Ulrich Drepper <drepper@gmail.com>
167 * lexsup.c (parse_args): Check whether provided SONAME is empty
168 string. If yes, warn and ignore it. Don't overwrite valid SONAME
171 2014-06-26 Linda Zhang <lindasc@qq.com>
173 * emultempl/pe.em: Initialise insert_timestamp to true.
174 Add a --no-insert-timestamp command line option.
175 * emultempl/pep.em: Likewise.
176 * ld.texinfo: Document that --insert-timestamp is enabled by
177 default and that it now has an inverse command line option.
178 * NEWS: Mention the new behaviour.
180 2014-06-25 Nick Clifton <nickc@redhat.com>
182 * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
184 (ALL_64_EMULATION_SOURCES): ... to here.
185 (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
186 (ALL_64_EMUL_EXTRA_OFILES): New. ... to here.
187 * configure.in (EMUL_EXTRA_OFILES): Include
188 ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
189 * Makefile.in: Regenerate.
190 * configure: Regenerate.
192 2014-06-18 Andreas Tobler <andreast@fgznet.ch>
194 * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
195 (arm*b-*-freebsd*): Add target.
196 * emulparams/armelfb_fbsd.sh: Added.
197 * emulparams/armelf_fbsd.sh: Updated.
198 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
199 * Makefile.in: Regenerate.
201 2014-06-16 Alan Modra <amodra@gmail.com>
203 * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
204 .rel sections, and __rel_iplt from .rela sections.
205 * scripttempl/nds32elf.sc: Likewise.
206 * Makefile.am (ends32*.c) Depend on nds32elf.sc.
207 * Makefile.in: Regenerate.
209 2014-06-13 Alan Modra <amodra@gmail.com>
212 * ldlang.c (output_bfd_hash_table_free_fn): Delete.
213 (open_output): Don't set it..
214 * ldmain.c (ld_cleanup): ..or call it.
216 2014-06-13 Alan Modra <amodra@gmail.com>
218 * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
219 * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
220 * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
221 * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
223 2014-06-13 Alan Modra <amodra@gmail.com>
225 * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
226 * Makefile.in: Regenerate.
228 2014-06-07 Alan Modra <amodra@gmail.com>
230 * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
231 linker script symbol value override a built-in linker symbol.
233 2014-06-05 Joel Brobecker <brobecker@adacore.com>
235 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
236 bfd's development.sh.
237 * Makefile.in, configure: Regenerate.
239 2014-06-02 Alan Modra <amodra@gmail.com>
241 * emulparams/elf32bfin.sh: Rename from bfin.sh.
242 * emulparams/elf32bfinfd.sh: Update to suit.
243 * emulparams/msp430.sh: Rename from msp430all.sh. Remove
244 MSP430_NAME and msp430X vars.
245 * emulparams/msp430X.sh: New.
246 * emulparams/score3_elf.sh: Rename from scoreelf.sh. Remove
247 SCORE_NAME and score7_elf ARCH setting.
248 * emulparams/score7_elf.sh: New.
249 * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
250 (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
251 * Makefile.in: Regenerate.
252 * genscripts.sh: Delete customizer_script param.
254 2014-05-28 Hans-Peter Nilsson <hp@axis.com>
256 * Makefile.am: Change all rules with ${GENSCRIPTS}
257 invocations to be just dependencies.
258 ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
259 (run-genscripts): New rules.
260 * Makefile.in: Regenerate.
262 2014-05-27 DJ Delorie <dj@redhat.com>
264 * ld/ldemul.h (extra_map_file_text): New field.
265 (ldemul_extra_map_file_text): Declare.
266 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
267 * ld/ldlang.c (lang_map): Call it.
269 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
270 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
271 * ld/emultempl/armcoff.em: Likewise.
272 * ld/emultempl/beos.em: Likewise.
273 * ld/emultempl/elf32.em: Likewise.
274 * ld/emultempl/generic.em: Likewise.
275 * ld/emultempl/gld960.em: Likewise.
276 * ld/emultempl/gld960c.em: Likewise.
277 * ld/emultempl/linux.em: Likewise.
278 * ld/emultempl/lnk960.em: Likewise.
279 * ld/emultempl/m68kcoff.em: Likewise.
280 * ld/emultempl/pe.em: Likewise.
281 * ld/emultempl/pep.em: Likewise.
282 * ld/emultempl/sunos.em: Likewise.
283 * ld/emultempl/ticoff.em: Likewise.
284 * ld/emultempl/vanilla.em: Likewise.
286 2014-05-24 Alan Modra <amodra@gmail.com>
288 * ldlang.c (base): Move variable to..
289 * mri.c: ..here, and make static.
290 * ldlang.h (base): Delete declaration.
292 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
294 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
295 * Makefile.in: Regenerate.
297 2014-05-20 Alan Modra <amodra@gmail.com>
300 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
301 * emultempl/ppc32elf.em (ppc_before_allocation): Call
302 ppc_elf_maybe_strip_sdata_syms.
303 * ldlang.c (size_input_section): Correct output_offset value
304 for excluded input sections.
306 2014-05-16 John Marino <binutils@marino.st>
308 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
310 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
312 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
313 and gp in PROVIDE_HIDDEN.
315 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
317 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
318 (output_bfd_hash_table_free_fn): New variable.
319 (open_output): Save the _bfd_link_hash_table_free function for the
320 output_bfd into output_bfd_hash_table_free_fn.
321 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
323 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
325 2014-05-02 Alan Modra <amodra@gmail.com>
327 * emultempl/metagelf.em: Update bfd target vector naming.
328 * emultempl/nios2elf.em: Likewise.
329 * emultempl/spuelf.em: Likewise.
330 * emultempl/tic6xdsbt.em: Likewise.
332 2014-04-22 Christian Svensson <blue@cmd.nu>
334 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
335 * configure.tgt: Likewise.
336 * emulparams/elf32or1k.sh: New file.
337 * emulparams/elf32or1k_linux.sh: New file.
338 * emulparams/elf32openrisc.sh: Delete.
339 * emulparams/or32.sh: Delete.
340 * emulparams/or32elf.sh: Delete.
341 * scripttempl/or32.sc: Delete.
342 * Makefile.in: Regenerate.
344 2014-04-21 Richard Henderson <rth@redhat.com>
346 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
348 2014-04-16 Steve Ellcey <sellcey@mips.com>
350 * emultempl/elf32.em: Include safe-ctype.h.
352 2014-04-16 Steve Ellcey <sellcey@mips.com>
354 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
356 2014-04-09 Nick Clifton <nickc@redhat.com>
358 * Makefile.am (default-manifest.o): Remove rule.
359 (EMUL_EXTRA_BINARIES): Delete.
360 (ALL_EMUL_EXTRA_BINARIES): Delete.
361 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
362 (install-data-local): Remove EMUL_EXTRA_BINARIES.
363 * Makefile.in: Regenerate.
364 * configure.in (all_emul_extra_binaries): Delete.
365 (EMUL_EXTRA_BINARIES): Remove.
366 * configure: Regenerate.
367 * configure.tgt (target_extra_binaries): Delete.
368 * emultempl/default-manifest.rc: Delete.
369 * ld.texinfo: Remove discussion of default manifest.
370 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
371 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
373 2014-04-09 Alan Modra <amodra@gmail.com>
375 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
376 * emultempl/nds32elf.em: Include bfd_stdint.h.
377 * po/POTFILES.in: Regenerate.
379 2014-04-09 Alan Modra <amodra@gmail.com>
381 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
382 (LDEMUL_FINISH): Define.
384 2014-04-08 Nick Clifton <nickc@redhat.com>
386 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
387 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
389 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
391 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
392 Move code for parsing build-id option and calculating the build-id to...
393 * ldbuildid.c: New file.
394 * ldbuildid.h: New file.
395 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
397 * Makefile.in: Regenerate.
398 * ld.texinfo: Update --build-id description to mention COFF
400 * NEWS: Mention support for COFF build ids.
401 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
402 (pecoff_checksum_contents, write_build_id, setup_build_id)
403 (gld_${EMULATION_NAME}_after_open): Handle and implement
405 * emultempl/pep.em: Likewise.
407 2014-04-04 Cary Coutant <ccoutant@google.com>
410 * ld.texinfo: Document optional comma following output section
411 command and overlay command.
413 2014-04-04 Alan Modra <amodra@gmail.com>
415 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
416 current "fill", not "output_section_statement->fill".
418 2014-03-31 Nick Clifton <nickc@redhat.com>
421 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
422 section when performing a relocatable link with -z [no]execstack
425 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
428 * ldmain.c (symbol_warning): New function.
429 (warning_callback): Use it. Scan all input files for a reference
432 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
434 * ld.texinfo: Document change in handling of --enable-auto-image-base.
435 * emultempl/pe.em (pe_auto_image_base): Set to default base.
436 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
437 optional --enable-auto-image-base argument.
438 (gld${EMULATION_NAME}_handle_option): Handle optional
439 --enable-auto-image-base argument.
440 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
442 2014-03-19 Nick Clifton <nickc@redhat.com>
444 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
445 * Makefile.in: Regenerate.
446 * emultempl/default-manifest.rc: Fix typo.
447 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
448 (.rsrc): Add SUBALIGN(4). Remove SORT.
449 * scripttempl/pep.sc: Likewise.
451 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
453 * Makefile.am: Use host version of windres.
454 * Makefile.in: Regenerate.
456 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
457 Alan Modra <amodra@gmail.com>
459 * ldlang.h (full_name_provided): New input flag.
460 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
461 for -l:namespec. Instead use lang_input_file_is_l_enum with
462 full_name_provided flag.
463 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
464 full_name_provided flag is set.
465 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
466 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
467 support. Set DT_NEEDED for -l:namespec as namespec.
468 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
469 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
470 Don't handle full_name_provided libraries.
471 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
472 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
473 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
475 2014-03-12 Alan Modra <amodra@gmail.com>
477 * Makefile.in: Regenerate.
479 2014-03-05 Alan Modra <amodra@gmail.com>
481 Update copyright years.
483 2014-03-04 Nick Clifton <nickc@redhat.com>
485 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
486 * Makefile.in: Regenerate.
488 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
490 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
491 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
492 (PARSE_AND_LIST_OPTIONS): Likewise.
493 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
494 * ld.texinfo: Document --long-plt.
496 2014-02-27 Alan Modra <amodra@gmail.com>
498 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
500 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
502 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
503 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
504 -secure-plt, -bss-plt and -sdata-got when vxworks.
506 2014-02-27 Nick Clifton <nickc@redhat.com>
508 * configure.in (all_emul_extra_binaries): New variable. Populated
509 by invoking configure.tgt.
510 (EMUL_EXTRA_BINARIES): New substitution.
511 * configure: Regenerate.
512 * configure.tgt (target_extra_binaries): New variable. Set to
513 default-manifest.o for Cygwin and MinGW targets.
514 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
515 by the configure script.
516 (ALL_EMUL_EXTRA_BINARIES): New variable.
517 (default-manifest.o): New rule to build the default manifest.
518 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
519 (install-data-local): Add EMUL_EXTRA_BINARIES.
520 * Makefile.in: Regenerate.
521 * ld.texinfo: Document default manifest support.
522 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
523 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
524 * emultempl/default-manifest.rc: New file.
525 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
526 * scripttempl/pep.sc (R_RSRC): Likewise.
528 2014-02-26 Dan Mick <dan.mick@inktank.com>
531 * ldcref.c (cref_sort_array): Compare unmangled names unless
532 demanglng has been requiested.
533 (output_one_cref): Output unmangled name unless demangling has
536 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
537 H.J. Lu <hongjiu.lu@intel.com>
539 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
541 2014-02-19 Alan Modra <amodra@gmail.com>
543 * emultempl/ppc64elf.em (params): Init new field.
544 (ppc_create_output_section_statements): Set params.save_restore_funcs
546 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
547 --no-save-restore-funcs.
549 2014-02-17 Alan Modra <amodra@gmail.com>
551 * emultemps/ppc64elf.em (params): New static struct replacing
552 various other static vars. Adjust code throughout file.
554 2014-02-17 Alan Modra <amodra@gmail.com>
556 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
557 ppc476 workaround for ld -r.
559 2014-02-12 Alan Modra <amodra@gmail.com>
561 * emultempl/ppc32elf.em (pagesize): New static var.
562 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
563 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
565 2014-02-11 Andrew Pinski <apinski@cavium.com>
567 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
568 (ELF_INTERPRETER_NAME): Define.
569 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
571 2014-02-10 Alan Modra <amodra@gmail.com>
573 * po/ld.pot: Regenerate.
575 2014-02-03 Alan Modra <amodra@gmail.com>
577 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
578 plt_style): Delete. Adjust all refs to instead use..
579 (params): ..this. New variable.
580 (ppc_after_open_output): New function. Tweak params and pass to
582 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
583 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
584 relaxation for ppc476 workaround.
585 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
586 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
588 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
590 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
591 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
592 variable which reflects the VMA change due to alignment
593 requirements. Use dotdelta do change the LMA if
594 ALIGN_WITH_INPUT is requested.
596 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
598 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
599 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
602 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
604 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
605 * Makefile.in: Regenerated.
606 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
607 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
608 * emultempl/nios2elf.em: New file.
609 * gen-doc.texi (NIOSII): Set.
610 * ld.texinfo (NIOSII): Set.
612 2014-01-28 Nick Clifton <nickc@redhat.com>
614 * Makefile.am: Remove obsolete MSP430 emulations.
615 * configure.tgt: Likewise.
616 * emulparams/msp430all.sh: Likewise.
617 * Makefile.in: Regenerate.
619 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
622 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
623 orphaned TLS section handling.
625 2014-01-24 Alan Modra <amodra@gmail.com>
627 * ldlang.c (lang_output_section_find_by_flags): Be careful to
628 test look->bfd_section->flags if available rather than
629 look->flags. Separate SEC_THREAD_LOCAL handling from
630 SEC_READONLY loop, and rewrite.
632 2014-01-22 Alan Modra <amodra@gmail.com>
634 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
635 (lang_init): Initialise them.
636 (lang_print_asneeded): New function.
637 (lang_process): Call lang_print_asneeded.
638 * ldlang.h (struct asneeded_minfo): New.
639 (asneeded_list_tail): Declare.
640 * ldmain.c (add_archive_element): Improve archive map heading.
641 * ldmisc.c (minfo): Stash --as-needed info.
643 2014-01-22 Alan Modra <amodra@gmail.com>
645 * ld.h (struct map_symbol_def): Move to..
647 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
649 2014-01-22 Alan Modra <amodra@gmail.com>
651 * ld.texinfo (Output Section Discarding): Mention assigning to dot
652 as a way of keeping otherwise empty sections.
653 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
654 is_dot_plus_0, is_align_conditional): New predicates.
655 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
656 output section, except for some special cases.
657 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
658 end of .heap and .stack.
660 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
662 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
664 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
666 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
668 2014-01-20 Alan Modra <amodra@gmail.com>
670 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
671 by_script. Make iteration a single bit field.
672 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
673 (lang_symbol_defined): Declare.
674 * ldlang.c (lang_statement_iteration): Expand comment a little.
675 (lang_init <lang_definedness_table>): Make it bigger.
676 (lang_track_definedness, lang_symbol_definition): Delete.
677 (lang_definedness_newfunc): Update.
678 (lang_symbol_defined): New function.
679 (lang_update_definedness): Create entries here. Do track whether
680 script definition of symbol is valid, even when also defined in
682 * ldexp.c (fold_name <DEFINED>): Update.
683 (fold_name <NAME>): Allow self-assignment for absolute symbols
684 defined in a linker script.
686 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
687 Alan Modra <amodra@gmail.com>
689 * ldlang.h (lang_output_section_get): Define.
690 * ldlang.c (lang_output_section_get): Likewise.
691 (init_os): Set the output_section userdata to the output
693 * emultempl/hppaelf.em: Use lang_output_section_get instead of
694 lang_output_section_find where applicable.
695 * emultempl/aarch64elf.em: Likewise.
696 * emultempl/aix.em: Likewise.
697 * emultempl/armelf.em: Likewise.
698 * emultempl/m68hc1xelf.em: Likewise.
699 * emultempl/metagelf.em: Likewise.
700 * emultempl/mipself.em: Likewise.
701 * emultempl/ppc64elf.em: Likewise.
702 * emultempl/spuelf.em: Likewise.
704 2014-01-17 Alan Modra <amodra@gmail.com>
706 * genscripts.sh (COMPILE_IN): Don't set if already set.
707 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
709 * emulparams/nds32elf16m.sh: Likewise.
710 * emulparams/nds32elf_linux.sh: Likewise.
711 * emultempl/aix.em: Test COMPILE_IN value is "yes".
712 * emultempl/armcoff.em: Likewise.
713 * emultempl/elf32.em: Likewise.
714 * emultempl/generic.em: Likewise.
715 * emultempl/gld960.em: Likewise.
716 * emultempl/gld960c.em: Likewise.
717 * emultempl/linux.em: Likewise.
718 * emultempl/lnk960.em: Likewise.
719 * emultempl/m68kcoff.em: Likewise.
720 * emultempl/sunos.em: Likewise.
721 * emultempl/ticoff.em: Likewise.
723 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
726 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
728 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
729 for elf32_x86_64 emulation.
730 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
731 for elf_i386 emulation.
733 2014-01-16 Alan Modra <amodra@gmail.com>
735 * ld.h (fat_section_userdata_type, get_userdata): Move to..
736 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
737 * ldlang.c (init_map_userdata): Delete. Fold into..
738 (sort_def_symbol): ..here. Don't attach input section userdata
739 to output sections or global bfd sections.
740 (lang_map): Don't pre-allocate input section userdata.
741 (init_os): Don't allocate userdata for output sections.
742 (print_all_symbols): Update.
744 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
746 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
747 Silence uninitialized warning on ehdr_start_save with older
750 2014-01-15 Alan Modra <amodra@gmail.com>
752 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
753 __ehdr_start before size_dynamic_sections and restore afterwards.
755 2014-01-10 Alan Modra <amodra@gmail.com>
760 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
761 adjust. Tidy comments.
762 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
764 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
766 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
768 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
773 * ldlang.c (lang_size_sections): Properly align RELRO base.
775 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
777 * ldver.c (ldversion): Update copyright year to 2014.
779 For older changes see ChangeLog-2013
781 Copyright (C) 2014 Free Software Foundation, Inc.
783 Copying and distribution of this file, with or without modification,
784 are permitted in any medium without royalty provided the copyright
785 notice and this notice are preserved.
791 version-control: never