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