1 2014-05-16 John Marino <binutils@marino.st>
3 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
5 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
7 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
8 and gp in PROVIDE_HIDDEN.
10 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
12 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
13 (output_bfd_hash_table_free_fn): New variable.
14 (open_output): Save the _bfd_link_hash_table_free function for the
15 output_bfd into output_bfd_hash_table_free_fn.
16 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
18 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
20 2014-05-02 Alan Modra <amodra@gmail.com>
22 * emultempl/metagelf.em: Update bfd target vector naming.
23 * emultempl/nios2elf.em: Likewise.
24 * emultempl/spuelf.em: Likewise.
25 * emultempl/tic6xdsbt.em: Likewise.
27 2014-04-22 Christian Svensson <blue@cmd.nu>
29 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
30 * configure.tgt: Likewise.
31 * emulparams/elf32or1k.sh: New file.
32 * emulparams/elf32or1k_linux.sh: New file.
33 * emulparams/elf32openrisc.sh: Delete.
34 * emulparams/or32.sh: Delete.
35 * emulparams/or32elf.sh: Delete.
36 * scripttempl/or32.sc: Delete.
37 * Makefile.in: Regenerate.
39 2014-04-21 Richard Henderson <rth@redhat.com>
41 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
43 2014-04-16 Steve Ellcey <sellcey@mips.com>
45 * emultempl/elf32.em: Include safe-ctype.h.
47 2014-04-16 Steve Ellcey <sellcey@mips.com>
49 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
51 2014-04-09 Nick Clifton <nickc@redhat.com>
53 * Makefile.am (default-manifest.o): Remove rule.
54 (EMUL_EXTRA_BINARIES): Delete.
55 (ALL_EMUL_EXTRA_BINARIES): Delete.
56 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
57 (install-data-local): Remove EMUL_EXTRA_BINARIES.
58 * Makefile.in: Regenerate.
59 * configure.in (all_emul_extra_binaries): Delete.
60 (EMUL_EXTRA_BINARIES): Remove.
61 * configure: Regenerate.
62 * configure.tgt (target_extra_binaries): Delete.
63 * emultempl/default-manifest.rc: Delete.
64 * ld.texinfo: Remove discussion of default manifest.
65 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
66 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
68 2014-04-09 Alan Modra <amodra@gmail.com>
70 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
71 * emultempl/nds32elf.em: Include bfd_stdint.h.
72 * po/POTFILES.in: Regenerate.
74 2014-04-09 Alan Modra <amodra@gmail.com>
76 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
77 (LDEMUL_FINISH): Define.
79 2014-04-08 Nick Clifton <nickc@redhat.com>
81 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
82 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
84 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
86 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
87 Move code for parsing build-id option and calculating the build-id to...
88 * ldbuildid.c: New file.
89 * ldbuildid.h: New file.
90 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
92 * Makefile.in: Regenerate.
93 * ld.texinfo: Update --build-id description to mention COFF
95 * NEWS: Mention support for COFF build ids.
96 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
97 (pecoff_checksum_contents, write_build_id, setup_build_id)
98 (gld_${EMULATION_NAME}_after_open): Handle and implement
100 * emultempl/pep.em: Likewise.
102 2014-04-04 Cary Coutant <ccoutant@google.com>
105 * ld.texinfo: Document optional comma following output section
106 command and overlay command.
108 2014-04-04 Alan Modra <amodra@gmail.com>
110 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
111 current "fill", not "output_section_statement->fill".
113 2014-03-31 Nick Clifton <nickc@redhat.com>
116 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
117 section when performing a relocatable link with -z [no]execstack
120 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
123 * ldmain.c (symbol_warning): New function.
124 (warning_callback): Use it. Scan all input files for a reference
127 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
129 * ld.texinfo: Document change in handling of --enable-auto-image-base.
130 * emultempl/pe.em (pe_auto_image_base): Set to default base.
131 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
132 optional --enable-auto-image-base argument.
133 (gld${EMULATION_NAME}_handle_option): Handle optional
134 --enable-auto-image-base argument.
135 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
137 2014-03-19 Nick Clifton <nickc@redhat.com>
139 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
140 * Makefile.in: Regenerate.
141 * emultempl/default-manifest.rc: Fix typo.
142 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
143 (.rsrc): Add SUBALIGN(4). Remove SORT.
144 * scripttempl/pep.sc: Likewise.
146 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
148 * Makefile.am: Use host version of windres.
149 * Makefile.in: Regenerate.
151 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
152 Alan Modra <amodra@gmail.com>
154 * ldlang.h (full_name_provided): New input flag.
155 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
156 for -l:namespec. Instead use lang_input_file_is_l_enum with
157 full_name_provided flag.
158 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
159 full_name_provided flag is set.
160 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
161 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
162 support. Set DT_NEEDED for -l:namespec as namespec.
163 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
164 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
165 Don't handle full_name_provided libraries.
166 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
167 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
168 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
170 2014-03-12 Alan Modra <amodra@gmail.com>
172 * Makefile.in: Regenerate.
174 2014-03-05 Alan Modra <amodra@gmail.com>
176 Update copyright years.
178 2014-03-04 Nick Clifton <nickc@redhat.com>
180 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
181 * Makefile.in: Regenerate.
183 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
185 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
186 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
187 (PARSE_AND_LIST_OPTIONS): Likewise.
188 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
189 * ld.texinfo: Document --long-plt.
191 2014-02-27 Alan Modra <amodra@gmail.com>
193 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
195 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
197 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
198 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
199 -secure-plt, -bss-plt and -sdata-got when vxworks.
201 2014-02-27 Nick Clifton <nickc@redhat.com>
203 * configure.in (all_emul_extra_binaries): New variable. Populated
204 by invoking configure.tgt.
205 (EMUL_EXTRA_BINARIES): New substitution.
206 * configure: Regenerate.
207 * configure.tgt (target_extra_binaries): New variable. Set to
208 default-manifest.o for Cygwin and MinGW targets.
209 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
210 by the configure script.
211 (ALL_EMUL_EXTRA_BINARIES): New variable.
212 (default-manifest.o): New rule to build the default manifest.
213 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
214 (install-data-local): Add EMUL_EXTRA_BINARIES.
215 * Makefile.in: Regenerate.
216 * ld.texinfo: Document default manifest support.
217 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
218 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
219 * emultempl/default-manifest.rc: New file.
220 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
221 * scripttempl/pep.sc (R_RSRC): Likewise.
223 2014-02-26 Dan Mick <dan.mick@inktank.com>
226 * ldcref.c (cref_sort_array): Compare unmangled names unless
227 demanglng has been requiested.
228 (output_one_cref): Output unmangled name unless demangling has
231 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
232 H.J. Lu <hongjiu.lu@intel.com>
234 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
236 2014-02-19 Alan Modra <amodra@gmail.com>
238 * emultempl/ppc64elf.em (params): Init new field.
239 (ppc_create_output_section_statements): Set params.save_restore_funcs
241 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
242 --no-save-restore-funcs.
244 2014-02-17 Alan Modra <amodra@gmail.com>
246 * emultemps/ppc64elf.em (params): New static struct replacing
247 various other static vars. Adjust code throughout file.
249 2014-02-17 Alan Modra <amodra@gmail.com>
251 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
252 ppc476 workaround for ld -r.
254 2014-02-12 Alan Modra <amodra@gmail.com>
256 * emultempl/ppc32elf.em (pagesize): New static var.
257 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
258 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
260 2014-02-11 Andrew Pinski <apinski@cavium.com>
262 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
263 (ELF_INTERPRETER_NAME): Define.
264 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
266 2014-02-10 Alan Modra <amodra@gmail.com>
268 * po/ld.pot: Regenerate.
270 2014-02-03 Alan Modra <amodra@gmail.com>
272 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
273 plt_style): Delete. Adjust all refs to instead use..
274 (params): ..this. New variable.
275 (ppc_after_open_output): New function. Tweak params and pass to
277 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
278 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
279 relaxation for ppc476 workaround.
280 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
281 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
283 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
285 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
286 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
287 variable which reflects the VMA change due to alignment
288 requirements. Use dotdelta do change the LMA if
289 ALIGN_WITH_INPUT is requested.
291 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
293 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
294 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
297 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
299 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
300 * Makefile.in: Regenerated.
301 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
302 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
303 * emultempl/nios2elf.em: New file.
304 * gen-doc.texi (NIOSII): Set.
305 * ld.texinfo (NIOSII): Set.
307 2014-01-28 Nick Clifton <nickc@redhat.com>
309 * Makefile.am: Remove obsolete MSP430 emulations.
310 * configure.tgt: Likewise.
311 * emulparams/msp430all.sh: Likewise.
312 * Makefile.in: Regenerate.
314 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
317 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
318 orphaned TLS section handling.
320 2014-01-24 Alan Modra <amodra@gmail.com>
322 * ldlang.c (lang_output_section_find_by_flags): Be careful to
323 test look->bfd_section->flags if available rather than
324 look->flags. Separate SEC_THREAD_LOCAL handling from
325 SEC_READONLY loop, and rewrite.
327 2014-01-22 Alan Modra <amodra@gmail.com>
329 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
330 (lang_init): Initialise them.
331 (lang_print_asneeded): New function.
332 (lang_process): Call lang_print_asneeded.
333 * ldlang.h (struct asneeded_minfo): New.
334 (asneeded_list_tail): Declare.
335 * ldmain.c (add_archive_element): Improve archive map heading.
336 * ldmisc.c (minfo): Stash --as-needed info.
338 2014-01-22 Alan Modra <amodra@gmail.com>
340 * ld.h (struct map_symbol_def): Move to..
342 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
344 2014-01-22 Alan Modra <amodra@gmail.com>
346 * ld.texinfo (Output Section Discarding): Mention assigning to dot
347 as a way of keeping otherwise empty sections.
348 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
349 is_dot_plus_0, is_align_conditional): New predicates.
350 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
351 output section, except for some special cases.
352 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
353 end of .heap and .stack.
355 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
357 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
359 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
361 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
363 2014-01-20 Alan Modra <amodra@gmail.com>
365 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
366 by_script. Make iteration a single bit field.
367 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
368 (lang_symbol_defined): Declare.
369 * ldlang.c (lang_statement_iteration): Expand comment a little.
370 (lang_init <lang_definedness_table>): Make it bigger.
371 (lang_track_definedness, lang_symbol_definition): Delete.
372 (lang_definedness_newfunc): Update.
373 (lang_symbol_defined): New function.
374 (lang_update_definedness): Create entries here. Do track whether
375 script definition of symbol is valid, even when also defined in
377 * ldexp.c (fold_name <DEFINED>): Update.
378 (fold_name <NAME>): Allow self-assignment for absolute symbols
379 defined in a linker script.
381 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
382 Alan Modra <amodra@gmail.com>
384 * ldlang.h (lang_output_section_get): Define.
385 * ldlang.c (lang_output_section_get): Likewise.
386 (init_os): Set the output_section userdata to the output
388 * emultempl/hppaelf.em: Use lang_output_section_get instead of
389 lang_output_section_find where applicable.
390 * emultempl/aarch64elf.em: Likewise.
391 * emultempl/aix.em: Likewise.
392 * emultempl/armelf.em: Likewise.
393 * emultempl/m68hc1xelf.em: Likewise.
394 * emultempl/metagelf.em: Likewise.
395 * emultempl/mipself.em: Likewise.
396 * emultempl/ppc64elf.em: Likewise.
397 * emultempl/spuelf.em: Likewise.
399 2014-01-17 Alan Modra <amodra@gmail.com>
401 * genscripts.sh (COMPILE_IN): Don't set if already set.
402 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
404 * emulparams/nds32elf16m.sh: Likewise.
405 * emulparams/nds32elf_linux.sh: Likewise.
406 * emultempl/aix.em: Test COMPILE_IN value is "yes".
407 * emultempl/armcoff.em: Likewise.
408 * emultempl/elf32.em: Likewise.
409 * emultempl/generic.em: Likewise.
410 * emultempl/gld960.em: Likewise.
411 * emultempl/gld960c.em: Likewise.
412 * emultempl/linux.em: Likewise.
413 * emultempl/lnk960.em: Likewise.
414 * emultempl/m68kcoff.em: Likewise.
415 * emultempl/sunos.em: Likewise.
416 * emultempl/ticoff.em: Likewise.
418 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
421 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
423 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
424 for elf32_x86_64 emulation.
425 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
426 for elf_i386 emulation.
428 2014-01-16 Alan Modra <amodra@gmail.com>
430 * ld.h (fat_section_userdata_type, get_userdata): Move to..
431 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
432 * ldlang.c (init_map_userdata): Delete. Fold into..
433 (sort_def_symbol): ..here. Don't attach input section userdata
434 to output sections or global bfd sections.
435 (lang_map): Don't pre-allocate input section userdata.
436 (init_os): Don't allocate userdata for output sections.
437 (print_all_symbols): Update.
439 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
441 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
442 Silence uninitialized warning on ehdr_start_save with older
445 2014-01-15 Alan Modra <amodra@gmail.com>
447 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
448 __ehdr_start before size_dynamic_sections and restore afterwards.
450 2014-01-10 Alan Modra <amodra@gmail.com>
455 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
456 adjust. Tidy comments.
457 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
459 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
461 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
463 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
468 * ldlang.c (lang_size_sections): Properly align RELRO base.
470 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
472 * ldver.c (ldversion): Update copyright year to 2014.
474 For older changes see ChangeLog-2013
476 Copyright (C) 2014 Free Software Foundation, Inc.
478 Copying and distribution of this file, with or without modification,
479 are permitted in any medium without royalty provided the copyright
480 notice and this notice are preserved.
486 version-control: never