1 2014-07-08 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3 * scripttempl/avr.sc: Remove KEEP for .data and
4 force .bss VMA to end of .data VMA.
6 2014-07-08 Will Newton <will.newton@linaro.org>
8 * emulparams/armelf_linux.sh (TEXT_START_ADDR): Increase
9 alignment to 64kB boundary.
11 2014-07-04 Alan Modra <amodra@gmail.com>
13 * configure.ac: Update "configure.in" comments.
14 * configure: Regenerate.
16 2014-07-04 Alan Modra <amodra@gmail.com>
18 * configure.ac: Rename from configure.in.
19 * Makefile.in: Regenerate.
20 * config.in: Regenerate.
22 2014-07-04 Alan Modra <amodra@gmail.com>
24 * configure.in: Include bfd/version.m4.
25 (AC_INIT, AM_INIT_AUTOMAKE): Use modern form.
26 (BFD_VERSION): Delete.
27 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Remove bfd/configure.in.
28 * configure: Regenerate.
29 * Makefile.in: Regenerate.
31 2014-07-03 Alan Modra <amodra@gmail.com>
34 * ldlang.c (load_symbols): Always check flags.reload.
35 (open_input_bfds): Always reload --as-needed shared libraries,
36 not just when rescanning.
37 * ldlang.h (struct lang_input_statement_flags): Update reload comment.
38 * plugin.c (plugin_should_reload): Assume shared library arg.
39 * plugin.h (plugin_should_reload): Update comment.
41 2014-07-01 Alan Modra <amodra@gmail.com>
43 * emultempl/ppc64elf.em (stub_added): Delete.
44 (gld${EMULATION_NAME}_finish): Call ppc64_elf_build_stubs even when
45 none of the usual stubs have been added. Only change entry_section
48 2014-07-01 Alan Modra <amodra@gmail.com>
50 * sysdep.h: Don't include limits.h and sys/param.h. Don't
51 include unistd.h twice.
52 (LD_PATHMAX): Don't define.
53 * ldlang.c (lang_common): Don't use UINT_MAX.
55 2014-07-01 Barney Stratford <barney_stratford@fastmail.fm>
56 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
57 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
58 Soundararajan <Sounderarajan.D@atmel.com>
60 * Makefile.am (ALL_EMULATION_SOURCES): Add avrtiny emulation source.
61 (eavrtiny.c): Add rules for avrtiny emulation source.
62 * Makefile.in: Regenerate.
63 * configure.tgt: Add avrtiny to avr target emulations.
64 * scripttempl/avrtiny.sc: New file. Linker script template for
66 * emulparams/avrtiny.sh: New file. Emulation parameters for
69 2014-06-30 Ulrich Drepper <drepper@gmail.com>
71 * lexsup.c (parse_args): Check whether provided SONAME is empty
72 string. If yes, warn and ignore it. Don't overwrite valid SONAME
75 2014-06-26 Linda Zhang <lindasc@qq.com>
77 * emultempl/pe.em: Initialise insert_timestamp to true.
78 Add a --no-insert-timestamp command line option.
79 * emultempl/pep.em: Likewise.
80 * ld.texinfo: Document that --insert-timestamp is enabled by
81 default and that it now has an inverse command line option.
82 * NEWS: Mention the new behaviour.
84 2014-06-25 Nick Clifton <nickc@redhat.com>
86 * Makefile.am (ALL_EMULATION_SOURCES): Move ei386pep.c from
88 (ALL_64_EMULATION_SOURCES): ... to here.
89 (ALL_EMUL_EXTRA_OFILES): Move pep-dll.o from here...
90 (ALL_64_EMUL_EXTRA_OFILES): New. ... to here.
91 * configure.in (EMUL_EXTRA_OFILES): Include
92 ALL_64_EMUL_EXTRA_OFILES when making a 64-bit enabled build.
93 * Makefile.in: Regenerate.
94 * configure: Regenerate.
96 2014-06-18 Andreas Tobler <andreast@fgznet.ch>
98 * configure.tgt (arm*-*-freebsd*): Update targ_extra_emuls.
99 (arm*b-*-freebsd*): Add target.
100 * emulparams/armelfb_fbsd.sh: Added.
101 * emulparams/armelf_fbsd.sh: Updated.
102 * Makefile.am (ALL_EMULATION_SOURCES): Add earmelfb_fbsd.c.
103 * Makefile.in: Regenerate.
105 2014-06-16 Alan Modra <amodra@gmail.com>
107 * scripttempl/elf.sc: Edit out __rela_iplt symbol assignments from
108 .rel sections, and __rel_iplt from .rela sections.
109 * scripttempl/nds32elf.sc: Likewise.
110 * Makefile.am (ends32*.c) Depend on nds32elf.sc.
111 * Makefile.in: Regenerate.
113 2014-06-13 Alan Modra <amodra@gmail.com>
116 * ldlang.c (output_bfd_hash_table_free_fn): Delete.
117 (open_output): Don't set it..
118 * ldmain.c (ld_cleanup): ..or call it.
120 2014-06-13 Alan Modra <amodra@gmail.com>
122 * emultempl/cr16elf.em, * emultempl/elf32.em, * emultempl/genelf.em,
123 * emultempl/m68kcoff.em, * emultempl/m68kelf.em,
124 * emultempl/nds32elf.em, * emultempl/pe.em, * emultempl/pep.em,
125 * ldlang.c, * ldmain.c, * pe-dll.c: Update for bfd.link_next change.
127 2014-06-13 Alan Modra <amodra@gmail.com>
129 * Makefile.am (ALL_EMULATION_SOURCES): Add enios2elf.c, enios2linux.c.
130 * Makefile.in: Regenerate.
132 2014-06-07 Alan Modra <amodra@gmail.com>
134 * ldexp.c (exp_fold_tree_1 <etree_provide>): Make PROVIDEd
135 linker script symbol value override a built-in linker symbol.
137 2014-06-05 Joel Brobecker <brobecker@adacore.com>
139 * Makefile.am (CONFIG_STATUS_DEPENDENCIES): Add dependency on
140 bfd's development.sh.
141 * Makefile.in, configure: Regenerate.
143 2014-06-02 Alan Modra <amodra@gmail.com>
145 * emulparams/elf32bfin.sh: Rename from bfin.sh.
146 * emulparams/elf32bfinfd.sh: Update to suit.
147 * emulparams/msp430.sh: Rename from msp430all.sh. Remove
148 MSP430_NAME and msp430X vars.
149 * emulparams/msp430X.sh: New.
150 * emulparams/score3_elf.sh: Rename from scoreelf.sh. Remove
151 SCORE_NAME and score7_elf ARCH setting.
152 * emulparams/score7_elf.sh: New.
153 * Makefile.am (eelf32bfin.c, eelf32bfinfd.c): Update dependencies.
154 (emsp430.c, emsp430X.c, escore3_elf.c, escore7_elf.c): Likewise.
155 * Makefile.in: Regenerate.
156 * genscripts.sh: Delete customizer_script param.
158 2014-05-28 Hans-Peter Nilsson <hp@axis.com>
160 * Makefile.am: Change all rules with ${GENSCRIPTS}
161 invocations to be just dependencies.
162 ($(ALL_EMULATION_SOURCES) $(ALL_64_EMULATION_SOURCES))
163 (run-genscripts): New rules.
164 * Makefile.in: Regenerate.
166 2014-05-27 DJ Delorie <dj@redhat.com>
168 * ld/ldemul.h (extra_map_file_text): New field.
169 (ldemul_extra_map_file_text): Declare.
170 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
171 * ld/ldlang.c (lang_map): Call it.
173 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
174 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
175 * ld/emultempl/armcoff.em: Likewise.
176 * ld/emultempl/beos.em: Likewise.
177 * ld/emultempl/elf32.em: Likewise.
178 * ld/emultempl/generic.em: Likewise.
179 * ld/emultempl/gld960.em: Likewise.
180 * ld/emultempl/gld960c.em: Likewise.
181 * ld/emultempl/linux.em: Likewise.
182 * ld/emultempl/lnk960.em: Likewise.
183 * ld/emultempl/m68kcoff.em: Likewise.
184 * ld/emultempl/pe.em: Likewise.
185 * ld/emultempl/pep.em: Likewise.
186 * ld/emultempl/sunos.em: Likewise.
187 * ld/emultempl/ticoff.em: Likewise.
188 * ld/emultempl/vanilla.em: Likewise.
190 2014-05-24 Alan Modra <amodra@gmail.com>
192 * ldlang.c (base): Move variable to..
193 * mri.c: ..here, and make static.
194 * ldlang.h (base): Delete declaration.
196 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
198 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
199 * Makefile.in: Regenerate.
201 2014-05-20 Alan Modra <amodra@gmail.com>
204 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
205 * emultempl/ppc32elf.em (ppc_before_allocation): Call
206 ppc_elf_maybe_strip_sdata_syms.
207 * ldlang.c (size_input_section): Correct output_offset value
208 for excluded input sections.
210 2014-05-16 John Marino <binutils@marino.st>
212 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
214 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
216 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
217 and gp in PROVIDE_HIDDEN.
219 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
221 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
222 (output_bfd_hash_table_free_fn): New variable.
223 (open_output): Save the _bfd_link_hash_table_free function for the
224 output_bfd into output_bfd_hash_table_free_fn.
225 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
227 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
229 2014-05-02 Alan Modra <amodra@gmail.com>
231 * emultempl/metagelf.em: Update bfd target vector naming.
232 * emultempl/nios2elf.em: Likewise.
233 * emultempl/spuelf.em: Likewise.
234 * emultempl/tic6xdsbt.em: Likewise.
236 2014-04-22 Christian Svensson <blue@cmd.nu>
238 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
239 * configure.tgt: Likewise.
240 * emulparams/elf32or1k.sh: New file.
241 * emulparams/elf32or1k_linux.sh: New file.
242 * emulparams/elf32openrisc.sh: Delete.
243 * emulparams/or32.sh: Delete.
244 * emulparams/or32elf.sh: Delete.
245 * scripttempl/or32.sc: Delete.
246 * Makefile.in: Regenerate.
248 2014-04-21 Richard Henderson <rth@redhat.com>
250 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
252 2014-04-16 Steve Ellcey <sellcey@mips.com>
254 * emultempl/elf32.em: Include safe-ctype.h.
256 2014-04-16 Steve Ellcey <sellcey@mips.com>
258 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
260 2014-04-09 Nick Clifton <nickc@redhat.com>
262 * Makefile.am (default-manifest.o): Remove rule.
263 (EMUL_EXTRA_BINARIES): Delete.
264 (ALL_EMUL_EXTRA_BINARIES): Delete.
265 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
266 (install-data-local): Remove EMUL_EXTRA_BINARIES.
267 * Makefile.in: Regenerate.
268 * configure.in (all_emul_extra_binaries): Delete.
269 (EMUL_EXTRA_BINARIES): Remove.
270 * configure: Regenerate.
271 * configure.tgt (target_extra_binaries): Delete.
272 * emultempl/default-manifest.rc: Delete.
273 * ld.texinfo: Remove discussion of default manifest.
274 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
275 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
277 2014-04-09 Alan Modra <amodra@gmail.com>
279 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
280 * emultempl/nds32elf.em: Include bfd_stdint.h.
281 * po/POTFILES.in: Regenerate.
283 2014-04-09 Alan Modra <amodra@gmail.com>
285 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
286 (LDEMUL_FINISH): Define.
288 2014-04-08 Nick Clifton <nickc@redhat.com>
290 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
291 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
293 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
295 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
296 Move code for parsing build-id option and calculating the build-id to...
297 * ldbuildid.c: New file.
298 * ldbuildid.h: New file.
299 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
301 * Makefile.in: Regenerate.
302 * ld.texinfo: Update --build-id description to mention COFF
304 * NEWS: Mention support for COFF build ids.
305 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
306 (pecoff_checksum_contents, write_build_id, setup_build_id)
307 (gld_${EMULATION_NAME}_after_open): Handle and implement
309 * emultempl/pep.em: Likewise.
311 2014-04-04 Cary Coutant <ccoutant@google.com>
314 * ld.texinfo: Document optional comma following output section
315 command and overlay command.
317 2014-04-04 Alan Modra <amodra@gmail.com>
319 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
320 current "fill", not "output_section_statement->fill".
322 2014-03-31 Nick Clifton <nickc@redhat.com>
325 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
326 section when performing a relocatable link with -z [no]execstack
329 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
332 * ldmain.c (symbol_warning): New function.
333 (warning_callback): Use it. Scan all input files for a reference
336 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
338 * ld.texinfo: Document change in handling of --enable-auto-image-base.
339 * emultempl/pe.em (pe_auto_image_base): Set to default base.
340 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
341 optional --enable-auto-image-base argument.
342 (gld${EMULATION_NAME}_handle_option): Handle optional
343 --enable-auto-image-base argument.
344 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
346 2014-03-19 Nick Clifton <nickc@redhat.com>
348 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
349 * Makefile.in: Regenerate.
350 * emultempl/default-manifest.rc: Fix typo.
351 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
352 (.rsrc): Add SUBALIGN(4). Remove SORT.
353 * scripttempl/pep.sc: Likewise.
355 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
357 * Makefile.am: Use host version of windres.
358 * Makefile.in: Regenerate.
360 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
361 Alan Modra <amodra@gmail.com>
363 * ldlang.h (full_name_provided): New input flag.
364 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
365 for -l:namespec. Instead use lang_input_file_is_l_enum with
366 full_name_provided flag.
367 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
368 full_name_provided flag is set.
369 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
370 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
371 support. Set DT_NEEDED for -l:namespec as namespec.
372 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
373 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
374 Don't handle full_name_provided libraries.
375 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
376 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
377 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
379 2014-03-12 Alan Modra <amodra@gmail.com>
381 * Makefile.in: Regenerate.
383 2014-03-05 Alan Modra <amodra@gmail.com>
385 Update copyright years.
387 2014-03-04 Nick Clifton <nickc@redhat.com>
389 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
390 * Makefile.in: Regenerate.
392 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
394 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
395 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
396 (PARSE_AND_LIST_OPTIONS): Likewise.
397 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
398 * ld.texinfo: Document --long-plt.
400 2014-02-27 Alan Modra <amodra@gmail.com>
402 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
404 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
406 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
407 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
408 -secure-plt, -bss-plt and -sdata-got when vxworks.
410 2014-02-27 Nick Clifton <nickc@redhat.com>
412 * configure.in (all_emul_extra_binaries): New variable. Populated
413 by invoking configure.tgt.
414 (EMUL_EXTRA_BINARIES): New substitution.
415 * configure: Regenerate.
416 * configure.tgt (target_extra_binaries): New variable. Set to
417 default-manifest.o for Cygwin and MinGW targets.
418 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
419 by the configure script.
420 (ALL_EMUL_EXTRA_BINARIES): New variable.
421 (default-manifest.o): New rule to build the default manifest.
422 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
423 (install-data-local): Add EMUL_EXTRA_BINARIES.
424 * Makefile.in: Regenerate.
425 * ld.texinfo: Document default manifest support.
426 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
427 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
428 * emultempl/default-manifest.rc: New file.
429 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
430 * scripttempl/pep.sc (R_RSRC): Likewise.
432 2014-02-26 Dan Mick <dan.mick@inktank.com>
435 * ldcref.c (cref_sort_array): Compare unmangled names unless
436 demanglng has been requiested.
437 (output_one_cref): Output unmangled name unless demangling has
440 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
441 H.J. Lu <hongjiu.lu@intel.com>
443 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
445 2014-02-19 Alan Modra <amodra@gmail.com>
447 * emultempl/ppc64elf.em (params): Init new field.
448 (ppc_create_output_section_statements): Set params.save_restore_funcs
450 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
451 --no-save-restore-funcs.
453 2014-02-17 Alan Modra <amodra@gmail.com>
455 * emultemps/ppc64elf.em (params): New static struct replacing
456 various other static vars. Adjust code throughout file.
458 2014-02-17 Alan Modra <amodra@gmail.com>
460 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
461 ppc476 workaround for ld -r.
463 2014-02-12 Alan Modra <amodra@gmail.com>
465 * emultempl/ppc32elf.em (pagesize): New static var.
466 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
467 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
469 2014-02-11 Andrew Pinski <apinski@cavium.com>
471 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
472 (ELF_INTERPRETER_NAME): Define.
473 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
475 2014-02-10 Alan Modra <amodra@gmail.com>
477 * po/ld.pot: Regenerate.
479 2014-02-03 Alan Modra <amodra@gmail.com>
481 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
482 plt_style): Delete. Adjust all refs to instead use..
483 (params): ..this. New variable.
484 (ppc_after_open_output): New function. Tweak params and pass to
486 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
487 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
488 relaxation for ppc476 workaround.
489 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
490 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
492 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
494 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
495 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
496 variable which reflects the VMA change due to alignment
497 requirements. Use dotdelta do change the LMA if
498 ALIGN_WITH_INPUT is requested.
500 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
502 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
503 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
506 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
508 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
509 * Makefile.in: Regenerated.
510 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
511 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
512 * emultempl/nios2elf.em: New file.
513 * gen-doc.texi (NIOSII): Set.
514 * ld.texinfo (NIOSII): Set.
516 2014-01-28 Nick Clifton <nickc@redhat.com>
518 * Makefile.am: Remove obsolete MSP430 emulations.
519 * configure.tgt: Likewise.
520 * emulparams/msp430all.sh: Likewise.
521 * Makefile.in: Regenerate.
523 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
526 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
527 orphaned TLS section handling.
529 2014-01-24 Alan Modra <amodra@gmail.com>
531 * ldlang.c (lang_output_section_find_by_flags): Be careful to
532 test look->bfd_section->flags if available rather than
533 look->flags. Separate SEC_THREAD_LOCAL handling from
534 SEC_READONLY loop, and rewrite.
536 2014-01-22 Alan Modra <amodra@gmail.com>
538 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
539 (lang_init): Initialise them.
540 (lang_print_asneeded): New function.
541 (lang_process): Call lang_print_asneeded.
542 * ldlang.h (struct asneeded_minfo): New.
543 (asneeded_list_tail): Declare.
544 * ldmain.c (add_archive_element): Improve archive map heading.
545 * ldmisc.c (minfo): Stash --as-needed info.
547 2014-01-22 Alan Modra <amodra@gmail.com>
549 * ld.h (struct map_symbol_def): Move to..
551 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
553 2014-01-22 Alan Modra <amodra@gmail.com>
555 * ld.texinfo (Output Section Discarding): Mention assigning to dot
556 as a way of keeping otherwise empty sections.
557 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
558 is_dot_plus_0, is_align_conditional): New predicates.
559 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
560 output section, except for some special cases.
561 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
562 end of .heap and .stack.
564 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
566 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
568 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
570 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
572 2014-01-20 Alan Modra <amodra@gmail.com>
574 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
575 by_script. Make iteration a single bit field.
576 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
577 (lang_symbol_defined): Declare.
578 * ldlang.c (lang_statement_iteration): Expand comment a little.
579 (lang_init <lang_definedness_table>): Make it bigger.
580 (lang_track_definedness, lang_symbol_definition): Delete.
581 (lang_definedness_newfunc): Update.
582 (lang_symbol_defined): New function.
583 (lang_update_definedness): Create entries here. Do track whether
584 script definition of symbol is valid, even when also defined in
586 * ldexp.c (fold_name <DEFINED>): Update.
587 (fold_name <NAME>): Allow self-assignment for absolute symbols
588 defined in a linker script.
590 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
591 Alan Modra <amodra@gmail.com>
593 * ldlang.h (lang_output_section_get): Define.
594 * ldlang.c (lang_output_section_get): Likewise.
595 (init_os): Set the output_section userdata to the output
597 * emultempl/hppaelf.em: Use lang_output_section_get instead of
598 lang_output_section_find where applicable.
599 * emultempl/aarch64elf.em: Likewise.
600 * emultempl/aix.em: Likewise.
601 * emultempl/armelf.em: Likewise.
602 * emultempl/m68hc1xelf.em: Likewise.
603 * emultempl/metagelf.em: Likewise.
604 * emultempl/mipself.em: Likewise.
605 * emultempl/ppc64elf.em: Likewise.
606 * emultempl/spuelf.em: Likewise.
608 2014-01-17 Alan Modra <amodra@gmail.com>
610 * genscripts.sh (COMPILE_IN): Don't set if already set.
611 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
613 * emulparams/nds32elf16m.sh: Likewise.
614 * emulparams/nds32elf_linux.sh: Likewise.
615 * emultempl/aix.em: Test COMPILE_IN value is "yes".
616 * emultempl/armcoff.em: Likewise.
617 * emultempl/elf32.em: Likewise.
618 * emultempl/generic.em: Likewise.
619 * emultempl/gld960.em: Likewise.
620 * emultempl/gld960c.em: Likewise.
621 * emultempl/linux.em: Likewise.
622 * emultempl/lnk960.em: Likewise.
623 * emultempl/m68kcoff.em: Likewise.
624 * emultempl/sunos.em: Likewise.
625 * emultempl/ticoff.em: Likewise.
627 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
630 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
632 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
633 for elf32_x86_64 emulation.
634 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
635 for elf_i386 emulation.
637 2014-01-16 Alan Modra <amodra@gmail.com>
639 * ld.h (fat_section_userdata_type, get_userdata): Move to..
640 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
641 * ldlang.c (init_map_userdata): Delete. Fold into..
642 (sort_def_symbol): ..here. Don't attach input section userdata
643 to output sections or global bfd sections.
644 (lang_map): Don't pre-allocate input section userdata.
645 (init_os): Don't allocate userdata for output sections.
646 (print_all_symbols): Update.
648 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
650 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
651 Silence uninitialized warning on ehdr_start_save with older
654 2014-01-15 Alan Modra <amodra@gmail.com>
656 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
657 __ehdr_start before size_dynamic_sections and restore afterwards.
659 2014-01-10 Alan Modra <amodra@gmail.com>
664 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
665 adjust. Tidy comments.
666 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
668 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
670 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
672 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
677 * ldlang.c (lang_size_sections): Properly align RELRO base.
679 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
681 * ldver.c (ldversion): Update copyright year to 2014.
683 For older changes see ChangeLog-2013
685 Copyright (C) 2014 Free Software Foundation, Inc.
687 Copying and distribution of this file, with or without modification,
688 are permitted in any medium without royalty provided the copyright
689 notice and this notice are preserved.
695 version-control: never