1 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
3 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
4 * Makefile.in: Regenerate.
6 2014-05-20 Alan Modra <amodra@gmail.com>
9 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
10 * emultempl/ppc32elf.em (ppc_before_allocation): Call
11 ppc_elf_maybe_strip_sdata_syms.
12 * ldlang.c (size_input_section): Correct output_offset value
13 for excluded input sections.
15 2014-05-16 John Marino <binutils@marino.st>
17 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
19 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
21 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
22 and gp in PROVIDE_HIDDEN.
24 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
26 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
27 (output_bfd_hash_table_free_fn): New variable.
28 (open_output): Save the _bfd_link_hash_table_free function for the
29 output_bfd into output_bfd_hash_table_free_fn.
30 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
32 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
34 2014-05-02 Alan Modra <amodra@gmail.com>
36 * emultempl/metagelf.em: Update bfd target vector naming.
37 * emultempl/nios2elf.em: Likewise.
38 * emultempl/spuelf.em: Likewise.
39 * emultempl/tic6xdsbt.em: Likewise.
41 2014-04-22 Christian Svensson <blue@cmd.nu>
43 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
44 * configure.tgt: Likewise.
45 * emulparams/elf32or1k.sh: New file.
46 * emulparams/elf32or1k_linux.sh: New file.
47 * emulparams/elf32openrisc.sh: Delete.
48 * emulparams/or32.sh: Delete.
49 * emulparams/or32elf.sh: Delete.
50 * scripttempl/or32.sc: Delete.
51 * Makefile.in: Regenerate.
53 2014-04-21 Richard Henderson <rth@redhat.com>
55 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
57 2014-04-16 Steve Ellcey <sellcey@mips.com>
59 * emultempl/elf32.em: Include safe-ctype.h.
61 2014-04-16 Steve Ellcey <sellcey@mips.com>
63 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
65 2014-04-09 Nick Clifton <nickc@redhat.com>
67 * Makefile.am (default-manifest.o): Remove rule.
68 (EMUL_EXTRA_BINARIES): Delete.
69 (ALL_EMUL_EXTRA_BINARIES): Delete.
70 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
71 (install-data-local): Remove EMUL_EXTRA_BINARIES.
72 * Makefile.in: Regenerate.
73 * configure.in (all_emul_extra_binaries): Delete.
74 (EMUL_EXTRA_BINARIES): Remove.
75 * configure: Regenerate.
76 * configure.tgt (target_extra_binaries): Delete.
77 * emultempl/default-manifest.rc: Delete.
78 * ld.texinfo: Remove discussion of default manifest.
79 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
80 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
82 2014-04-09 Alan Modra <amodra@gmail.com>
84 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
85 * emultempl/nds32elf.em: Include bfd_stdint.h.
86 * po/POTFILES.in: Regenerate.
88 2014-04-09 Alan Modra <amodra@gmail.com>
90 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
91 (LDEMUL_FINISH): Define.
93 2014-04-08 Nick Clifton <nickc@redhat.com>
95 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
96 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
98 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
100 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
101 Move code for parsing build-id option and calculating the build-id to...
102 * ldbuildid.c: New file.
103 * ldbuildid.h: New file.
104 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
106 * Makefile.in: Regenerate.
107 * ld.texinfo: Update --build-id description to mention COFF
109 * NEWS: Mention support for COFF build ids.
110 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
111 (pecoff_checksum_contents, write_build_id, setup_build_id)
112 (gld_${EMULATION_NAME}_after_open): Handle and implement
114 * emultempl/pep.em: Likewise.
116 2014-04-04 Cary Coutant <ccoutant@google.com>
119 * ld.texinfo: Document optional comma following output section
120 command and overlay command.
122 2014-04-04 Alan Modra <amodra@gmail.com>
124 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
125 current "fill", not "output_section_statement->fill".
127 2014-03-31 Nick Clifton <nickc@redhat.com>
130 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
131 section when performing a relocatable link with -z [no]execstack
134 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
137 * ldmain.c (symbol_warning): New function.
138 (warning_callback): Use it. Scan all input files for a reference
141 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
143 * ld.texinfo: Document change in handling of --enable-auto-image-base.
144 * emultempl/pe.em (pe_auto_image_base): Set to default base.
145 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
146 optional --enable-auto-image-base argument.
147 (gld${EMULATION_NAME}_handle_option): Handle optional
148 --enable-auto-image-base argument.
149 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
151 2014-03-19 Nick Clifton <nickc@redhat.com>
153 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
154 * Makefile.in: Regenerate.
155 * emultempl/default-manifest.rc: Fix typo.
156 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
157 (.rsrc): Add SUBALIGN(4). Remove SORT.
158 * scripttempl/pep.sc: Likewise.
160 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
162 * Makefile.am: Use host version of windres.
163 * Makefile.in: Regenerate.
165 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
166 Alan Modra <amodra@gmail.com>
168 * ldlang.h (full_name_provided): New input flag.
169 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
170 for -l:namespec. Instead use lang_input_file_is_l_enum with
171 full_name_provided flag.
172 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
173 full_name_provided flag is set.
174 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
175 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
176 support. Set DT_NEEDED for -l:namespec as namespec.
177 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
178 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
179 Don't handle full_name_provided libraries.
180 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
181 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
182 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
184 2014-03-12 Alan Modra <amodra@gmail.com>
186 * Makefile.in: Regenerate.
188 2014-03-05 Alan Modra <amodra@gmail.com>
190 Update copyright years.
192 2014-03-04 Nick Clifton <nickc@redhat.com>
194 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
195 * Makefile.in: Regenerate.
197 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
199 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
200 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
201 (PARSE_AND_LIST_OPTIONS): Likewise.
202 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
203 * ld.texinfo: Document --long-plt.
205 2014-02-27 Alan Modra <amodra@gmail.com>
207 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
209 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
211 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
212 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
213 -secure-plt, -bss-plt and -sdata-got when vxworks.
215 2014-02-27 Nick Clifton <nickc@redhat.com>
217 * configure.in (all_emul_extra_binaries): New variable. Populated
218 by invoking configure.tgt.
219 (EMUL_EXTRA_BINARIES): New substitution.
220 * configure: Regenerate.
221 * configure.tgt (target_extra_binaries): New variable. Set to
222 default-manifest.o for Cygwin and MinGW targets.
223 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
224 by the configure script.
225 (ALL_EMUL_EXTRA_BINARIES): New variable.
226 (default-manifest.o): New rule to build the default manifest.
227 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
228 (install-data-local): Add EMUL_EXTRA_BINARIES.
229 * Makefile.in: Regenerate.
230 * ld.texinfo: Document default manifest support.
231 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
232 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
233 * emultempl/default-manifest.rc: New file.
234 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
235 * scripttempl/pep.sc (R_RSRC): Likewise.
237 2014-02-26 Dan Mick <dan.mick@inktank.com>
240 * ldcref.c (cref_sort_array): Compare unmangled names unless
241 demanglng has been requiested.
242 (output_one_cref): Output unmangled name unless demangling has
245 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
246 H.J. Lu <hongjiu.lu@intel.com>
248 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
250 2014-02-19 Alan Modra <amodra@gmail.com>
252 * emultempl/ppc64elf.em (params): Init new field.
253 (ppc_create_output_section_statements): Set params.save_restore_funcs
255 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
256 --no-save-restore-funcs.
258 2014-02-17 Alan Modra <amodra@gmail.com>
260 * emultemps/ppc64elf.em (params): New static struct replacing
261 various other static vars. Adjust code throughout file.
263 2014-02-17 Alan Modra <amodra@gmail.com>
265 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
266 ppc476 workaround for ld -r.
268 2014-02-12 Alan Modra <amodra@gmail.com>
270 * emultempl/ppc32elf.em (pagesize): New static var.
271 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
272 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
274 2014-02-11 Andrew Pinski <apinski@cavium.com>
276 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
277 (ELF_INTERPRETER_NAME): Define.
278 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
280 2014-02-10 Alan Modra <amodra@gmail.com>
282 * po/ld.pot: Regenerate.
284 2014-02-03 Alan Modra <amodra@gmail.com>
286 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
287 plt_style): Delete. Adjust all refs to instead use..
288 (params): ..this. New variable.
289 (ppc_after_open_output): New function. Tweak params and pass to
291 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
292 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
293 relaxation for ppc476 workaround.
294 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
295 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
297 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
299 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
300 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
301 variable which reflects the VMA change due to alignment
302 requirements. Use dotdelta do change the LMA if
303 ALIGN_WITH_INPUT is requested.
305 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
307 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
308 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
311 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
313 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
314 * Makefile.in: Regenerated.
315 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
316 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
317 * emultempl/nios2elf.em: New file.
318 * gen-doc.texi (NIOSII): Set.
319 * ld.texinfo (NIOSII): Set.
321 2014-01-28 Nick Clifton <nickc@redhat.com>
323 * Makefile.am: Remove obsolete MSP430 emulations.
324 * configure.tgt: Likewise.
325 * emulparams/msp430all.sh: Likewise.
326 * Makefile.in: Regenerate.
328 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
331 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
332 orphaned TLS section handling.
334 2014-01-24 Alan Modra <amodra@gmail.com>
336 * ldlang.c (lang_output_section_find_by_flags): Be careful to
337 test look->bfd_section->flags if available rather than
338 look->flags. Separate SEC_THREAD_LOCAL handling from
339 SEC_READONLY loop, and rewrite.
341 2014-01-22 Alan Modra <amodra@gmail.com>
343 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
344 (lang_init): Initialise them.
345 (lang_print_asneeded): New function.
346 (lang_process): Call lang_print_asneeded.
347 * ldlang.h (struct asneeded_minfo): New.
348 (asneeded_list_tail): Declare.
349 * ldmain.c (add_archive_element): Improve archive map heading.
350 * ldmisc.c (minfo): Stash --as-needed info.
352 2014-01-22 Alan Modra <amodra@gmail.com>
354 * ld.h (struct map_symbol_def): Move to..
356 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
358 2014-01-22 Alan Modra <amodra@gmail.com>
360 * ld.texinfo (Output Section Discarding): Mention assigning to dot
361 as a way of keeping otherwise empty sections.
362 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
363 is_dot_plus_0, is_align_conditional): New predicates.
364 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
365 output section, except for some special cases.
366 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
367 end of .heap and .stack.
369 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
371 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
373 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
375 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
377 2014-01-20 Alan Modra <amodra@gmail.com>
379 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
380 by_script. Make iteration a single bit field.
381 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
382 (lang_symbol_defined): Declare.
383 * ldlang.c (lang_statement_iteration): Expand comment a little.
384 (lang_init <lang_definedness_table>): Make it bigger.
385 (lang_track_definedness, lang_symbol_definition): Delete.
386 (lang_definedness_newfunc): Update.
387 (lang_symbol_defined): New function.
388 (lang_update_definedness): Create entries here. Do track whether
389 script definition of symbol is valid, even when also defined in
391 * ldexp.c (fold_name <DEFINED>): Update.
392 (fold_name <NAME>): Allow self-assignment for absolute symbols
393 defined in a linker script.
395 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
396 Alan Modra <amodra@gmail.com>
398 * ldlang.h (lang_output_section_get): Define.
399 * ldlang.c (lang_output_section_get): Likewise.
400 (init_os): Set the output_section userdata to the output
402 * emultempl/hppaelf.em: Use lang_output_section_get instead of
403 lang_output_section_find where applicable.
404 * emultempl/aarch64elf.em: Likewise.
405 * emultempl/aix.em: Likewise.
406 * emultempl/armelf.em: Likewise.
407 * emultempl/m68hc1xelf.em: Likewise.
408 * emultempl/metagelf.em: Likewise.
409 * emultempl/mipself.em: Likewise.
410 * emultempl/ppc64elf.em: Likewise.
411 * emultempl/spuelf.em: Likewise.
413 2014-01-17 Alan Modra <amodra@gmail.com>
415 * genscripts.sh (COMPILE_IN): Don't set if already set.
416 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
418 * emulparams/nds32elf16m.sh: Likewise.
419 * emulparams/nds32elf_linux.sh: Likewise.
420 * emultempl/aix.em: Test COMPILE_IN value is "yes".
421 * emultempl/armcoff.em: Likewise.
422 * emultempl/elf32.em: Likewise.
423 * emultempl/generic.em: Likewise.
424 * emultempl/gld960.em: Likewise.
425 * emultempl/gld960c.em: Likewise.
426 * emultempl/linux.em: Likewise.
427 * emultempl/lnk960.em: Likewise.
428 * emultempl/m68kcoff.em: Likewise.
429 * emultempl/sunos.em: Likewise.
430 * emultempl/ticoff.em: Likewise.
432 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
435 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
437 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
438 for elf32_x86_64 emulation.
439 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
440 for elf_i386 emulation.
442 2014-01-16 Alan Modra <amodra@gmail.com>
444 * ld.h (fat_section_userdata_type, get_userdata): Move to..
445 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
446 * ldlang.c (init_map_userdata): Delete. Fold into..
447 (sort_def_symbol): ..here. Don't attach input section userdata
448 to output sections or global bfd sections.
449 (lang_map): Don't pre-allocate input section userdata.
450 (init_os): Don't allocate userdata for output sections.
451 (print_all_symbols): Update.
453 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
455 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
456 Silence uninitialized warning on ehdr_start_save with older
459 2014-01-15 Alan Modra <amodra@gmail.com>
461 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
462 __ehdr_start before size_dynamic_sections and restore afterwards.
464 2014-01-10 Alan Modra <amodra@gmail.com>
469 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
470 adjust. Tidy comments.
471 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
473 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
475 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
477 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
482 * ldlang.c (lang_size_sections): Properly align RELRO base.
484 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
486 * ldver.c (ldversion): Update copyright year to 2014.
488 For older changes see ChangeLog-2013
490 Copyright (C) 2014 Free Software Foundation, Inc.
492 Copying and distribution of this file, with or without modification,
493 are permitted in any medium without royalty provided the copyright
494 notice and this notice are preserved.
500 version-control: never