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