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