1 2014-05-27 DJ Delorie <dj@redhat.com>
3 * ld/ldemul.h (extra_map_file_text): New field.
4 (ldemul_extra_map_file_text): Declare.
5 * ld/ldemul.c (ldemul_extra_map_file_text): Define.
6 * ld/ldlang.c (lang_map): Call it.
8 * ld/emultempl/rxelf.em: Add extra_map_file_text hook.
9 * ld/emultempl/aix.em: Add NULL extra_map_file_text hook.
10 * ld/emultempl/armcoff.em: Likewise.
11 * ld/emultempl/beos.em: Likewise.
12 * ld/emultempl/elf32.em: Likewise.
13 * ld/emultempl/generic.em: Likewise.
14 * ld/emultempl/gld960.em: Likewise.
15 * ld/emultempl/gld960c.em: Likewise.
16 * ld/emultempl/linux.em: Likewise.
17 * ld/emultempl/lnk960.em: Likewise.
18 * ld/emultempl/m68kcoff.em: Likewise.
19 * ld/emultempl/pe.em: Likewise.
20 * ld/emultempl/pep.em: Likewise.
21 * ld/emultempl/sunos.em: Likewise.
22 * ld/emultempl/ticoff.em: Likewise.
23 * ld/emultempl/vanilla.em: Likewise.
25 2014-05-24 Alan Modra <amodra@gmail.com>
27 * ldlang.c (base): Move variable to..
28 * mri.c: ..here, and make static.
29 * ldlang.h (base): Delete declaration.
31 2014-05-20 Hans-Peter Nilsson <hp@axis.com>
33 * Makefile.am (ALL_EMULATION_SOURCES): Add missing eelf32mbel_linux.c.
34 * Makefile.in: Regenerate.
36 2014-05-20 Alan Modra <amodra@gmail.com>
39 * emulparams/elf32ppccommon.sh (_SDA_BASE_, _SDA2_BASE_): Delete.
40 * emultempl/ppc32elf.em (ppc_before_allocation): Call
41 ppc_elf_maybe_strip_sdata_syms.
42 * ldlang.c (size_input_section): Correct output_offset value
43 for excluded input sections.
45 2014-05-16 John Marino <binutils@marino.st>
47 * configure.tgt: Add /lib to dragonfly NATIVE_LIB_DIRS.
49 2014-05-11 Chung-Lin Tang <cltang@codesourcery.com>
51 * emulparams/nios2linux.sh (OTHER_GOT_SYMBOLS): Wrap _gp in HIDDEN(),
52 and gp in PROVIDE_HIDDEN.
54 2014-05-10 Hans-Peter Nilsson <hp@bitrange.com>
56 * ldlang.c (lang_finish): Don't call bfd_link_hash_table_free here.
57 (output_bfd_hash_table_free_fn): New variable.
58 (open_output): Save the _bfd_link_hash_table_free function for the
59 output_bfd into output_bfd_hash_table_free_fn.
60 * ldmain.c (ld_cleanup): If set, call output_bfd_hash_table_free_fn
62 * ldlang.h (output_bfd_hash_table_free_fn): Declare.
64 2014-05-02 Alan Modra <amodra@gmail.com>
66 * emultempl/metagelf.em: Update bfd target vector naming.
67 * emultempl/nios2elf.em: Likewise.
68 * emultempl/spuelf.em: Likewise.
69 * emultempl/tic6xdsbt.em: Likewise.
71 2014-04-22 Christian Svensson <blue@cmd.nu>
73 * Makefile.am: Remove openrisc and or32 support. Add support for or1k.
74 * configure.tgt: Likewise.
75 * emulparams/elf32or1k.sh: New file.
76 * emulparams/elf32or1k_linux.sh: New file.
77 * emulparams/elf32openrisc.sh: Delete.
78 * emulparams/or32.sh: Delete.
79 * emulparams/or32elf.sh: Delete.
80 * scripttempl/or32.sc: Delete.
81 * Makefile.in: Regenerate.
83 2014-04-21 Richard Henderson <rth@redhat.com>
85 * emultempl/alphaelf.em (alpha_after_parse): Enable 2 relax passes.
87 2014-04-16 Steve Ellcey <sellcey@mips.com>
89 * emultempl/elf32.em: Include safe-ctype.h.
91 2014-04-16 Steve Ellcey <sellcey@mips.com>
93 * ldbuildid.c (generate_build_id): Add ATTRIBUTE_UNUSED to size arg.
95 2014-04-09 Nick Clifton <nickc@redhat.com>
97 * Makefile.am (default-manifest.o): Remove rule.
98 (EMUL_EXTRA_BINARIES): Delete.
99 (ALL_EMUL_EXTRA_BINARIES): Delete.
100 (ld_new_DEPENDENCIES): Remove EMUL_EXTRA_BINARIES.
101 (install-data-local): Remove EMUL_EXTRA_BINARIES.
102 * Makefile.in: Regenerate.
103 * configure.in (all_emul_extra_binaries): Delete.
104 (EMUL_EXTRA_BINARIES): Remove.
105 * configure: Regenerate.
106 * configure.tgt (target_extra_binaries): Delete.
107 * emultempl/default-manifest.rc: Delete.
108 * ld.texinfo: Remove discussion of default manifest.
109 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Delete.
110 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Delete.
112 2014-04-09 Alan Modra <amodra@gmail.com>
114 * emultempl/spuelf.em: Include safe-ctype.h, remove duplicate errno.h.
115 * emultempl/nds32elf.em: Include bfd_stdint.h.
116 * po/POTFILES.in: Regenerate.
118 2014-04-09 Alan Modra <amodra@gmail.com>
120 * emultempl/ppc32elf.em (no_zero_padding, ppc_finish): New functions.
121 (LDEMUL_FINISH): Define.
123 2014-04-08 Nick Clifton <nickc@redhat.com>
125 * scripttempl/pe.sc (R_RSRC): Remove default manifest.
126 * scripttempl/pep.sc (R_RSRC): Remove default manifest.
128 2014-04-08 Jon TURNEY <jon.turney@dronecode.org.uk>
130 * emultempl/elf32.em (id_note_section_size, read_hex, write_build_id):
131 Move code for parsing build-id option and calculating the build-id to...
132 * ldbuildid.c: New file.
133 * ldbuildid.h: New file.
134 * Makefile.am (CFILES, HFILES, OFILES, ld_new_SOURCES): Add new
136 * Makefile.in: Regenerate.
137 * ld.texinfo: Update --build-id description to mention COFF
139 * NEWS: Mention support for COFF build ids.
140 * emultempl/pe.em (gld${EMULATION_NAME}_handle_option):
141 (pecoff_checksum_contents, write_build_id, setup_build_id)
142 (gld_${EMULATION_NAME}_after_open): Handle and implement
144 * emultempl/pep.em: Likewise.
146 2014-04-04 Cary Coutant <ccoutant@google.com>
149 * ld.texinfo: Document optional comma following output section
150 command and overlay command.
152 2014-04-04 Alan Modra <amodra@gmail.com>
154 * ldlang.c (lang_size_sections_1 <lang_input_section_enum>): Use
155 current "fill", not "output_section_statement->fill".
157 2014-03-31 Nick Clifton <nickc@redhat.com>
160 * emultempl/elf32.em (_after_open): Create a .note.GNU-stack
161 section when performing a relocatable link with -z [no]execstack
164 2014-03-27 H.J. Lu <hongjiu.lu@intel.com>
167 * ldmain.c (symbol_warning): New function.
168 (warning_callback): Use it. Scan all input files for a reference
171 2014-03-21 Christopher Faylor <me.cygwin2013@cgf.cx>
173 * ld.texinfo: Document change in handling of --enable-auto-image-base.
174 * emultempl/pe.em (pe_auto_image_base): Set to default base.
175 (gld_${EMULATION_NAME}_list_options): Change usage message to reflect
176 optional --enable-auto-image-base argument.
177 (gld${EMULATION_NAME}_handle_option): Handle optional
178 --enable-auto-image-base argument.
179 (compute_dll_image_base): Eliminate constant. Use pe_auto_image_base.
181 2014-03-19 Nick Clifton <nickc@redhat.com>
183 * Makefile.am (default-manifest.o): Use WINDRES_FOR_TARGET.
184 * Makefile.in: Regenerate.
185 * emultempl/default-manifest.rc: Fix typo.
186 * scripttempl/pe.sc (R_RSRC): Fix default-manifest exclusion.
187 (.rsrc): Add SUBALIGN(4). Remove SORT.
188 * scripttempl/pep.sc: Likewise.
190 2014-03-17 Christopher Faylor <me.cygwin2014@cgf.cx>
192 * Makefile.am: Use host version of windres.
193 * Makefile.in: Regenerate.
195 2014-03-14 Romain Geissler <romain.geissler@amadeus.com>
196 Alan Modra <amodra@gmail.com>
198 * ldlang.h (full_name_provided): New input flag.
199 * ldlang.c (new_afile): Don't use lang_input_file_is_search_file_enum
200 for -l:namespec. Instead use lang_input_file_is_l_enum with
201 full_name_provided flag.
202 * ldlfile.c (ldfile_open_file_search): Don't complete lib name if
203 full_name_provided flag is set.
204 * emultempl/elf32.em (gld${EMULATION_NAME}_open_dynamic_archive):
205 Handle full_name_provided libraries. Tidy EXTRA_SHLIB_EXTENSION
206 support. Set DT_NEEDED for -l:namespec as namespec.
207 * emultempl/aix.em (ppc_after_open_output): Handle full_name_provided.
208 * emultempl/linux.em (gld${EMULATION_NAME}_open_dynamic_archive):
209 Don't handle full_name_provided libraries.
210 * emultempl/pe.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
211 * emultempl/pep.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
212 * emultempl/vms.em (gld${EMULATION_NAME}_open_dynamic_archive): Ditto.
214 2014-03-12 Alan Modra <amodra@gmail.com>
216 * Makefile.in: Regenerate.
218 2014-03-05 Alan Modra <amodra@gmail.com>
220 Update copyright years.
222 2014-03-04 Nick Clifton <nickc@redhat.com>
224 * Makefile.am (ALL_EMUL_EXTRA_BINARIES): Remove default-manifest.
225 * Makefile.in: Regenerate.
227 2014-02-27 Yuri Gribov <y.gribov@samsung.com>
229 * emultempl/armelf.em (OPTION_LONG_PLT): Define.
230 (PARSE_AND_LIST_LONGOPTS): Add long-plt.
231 (PARSE_AND_LIST_OPTIONS): Likewise.
232 (PARSE_AND_LIST_ARGS_CASES): Handle long-plt.
233 * ld.texinfo: Document --long-plt.
235 2014-02-27 Alan Modra <amodra@gmail.com>
237 * emulparams/elf32ppcvxworks.sh: Source plt_unwind.sh and
239 * emultempl/ppc32elf.em (ppc_after_open): Don't compile for
241 (LDEMUL_AFTER_OPEN): Don't set for vxworks.
242 (PARSE_AND_LIST_LONGOPTS, PARSE_AND_LIST_OPTIONS): Exclude
243 -secure-plt, -bss-plt and -sdata-got when vxworks.
245 2014-02-27 Nick Clifton <nickc@redhat.com>
247 * configure.in (all_emul_extra_binaries): New variable. Populated
248 by invoking configure.tgt.
249 (EMUL_EXTRA_BINARIES): New substitution.
250 * configure: Regenerate.
251 * configure.tgt (target_extra_binaries): New variable. Set to
252 default-manifest.o for Cygwin and MinGW targets.
253 * Makefile.am (EMUL_EXTRA_BINARIES): New variable. Initialised
254 by the configure script.
255 (ALL_EMUL_EXTRA_BINARIES): New variable.
256 (default-manifest.o): New rule to build the default manifest.
257 (ld_new_DEPENDENCIES): Add EMUL_EXTRA_BINARIES.
258 (install-data-local): Add EMUL_EXTRA_BINARIES.
259 * Makefile.in: Regenerate.
260 * ld.texinfo: Document default manifest support.
261 * emulparams/i386pe.sh (DEFAULT_MANIFEST): Define.
262 * emulparams/i386pep.sh (DEFAULT_MANIFEST): Define.
263 * emultempl/default-manifest.rc: New file.
264 * scripttempl/pe.sc (R_RSRC): Include DEFAULT_MANIFEST, if defined.
265 * scripttempl/pep.sc (R_RSRC): Likewise.
267 2014-02-26 Dan Mick <dan.mick@inktank.com>
270 * ldcref.c (cref_sort_array): Compare unmangled names unless
271 demanglng has been requiested.
272 (output_one_cref): Output unmangled name unless demangling has
275 2014-02-19 Igor Zamyatin <igor.zamyatin@intel.com>
276 H.J. Lu <hongjiu.lu@intel.com>
278 * emulparams/elf_x86_64.sh (TINY_READONLY_SECTION): New.
280 2014-02-19 Alan Modra <amodra@gmail.com>
282 * emultempl/ppc64elf.em (params): Init new field.
283 (ppc_create_output_section_statements): Set params.save_restore_funcs
285 (PARSE_AND_LIST_*): Add support for --save-restore-funcs and
286 --no-save-restore-funcs.
288 2014-02-17 Alan Modra <amodra@gmail.com>
290 * emultemps/ppc64elf.em (params): New static struct replacing
291 various other static vars. Adjust code throughout file.
293 2014-02-17 Alan Modra <amodra@gmail.com>
295 * emultempl/ppc32elf.em (ppc_after_open_output): Really enable
296 ppc476 workaround for ld -r.
298 2014-02-12 Alan Modra <amodra@gmail.com>
300 * emultempl/ppc32elf.em (pagesize): New static var.
301 (ppc_after_open_output): Set params.pagesize_p2 from pagesize.
302 (PARSE_AND_LIST_ARGS_CASES): Adjust to use pagesize.
304 2014-02-11 Andrew Pinski <apinski@cavium.com>
306 * emulparams/aarch64linux32.sh (LIBPATH_SUFFIX): Change to ilp32.
307 (ELF_INTERPRETER_NAME): Define.
308 * emulparams/aarch64linux32b.sh (ELF_INTERPRETER_NAME): Define.
310 2014-02-10 Alan Modra <amodra@gmail.com>
312 * po/ld.pot: Regenerate.
314 2014-02-03 Alan Modra <amodra@gmail.com>
316 * emultempl/ppc32elf.em (no_tls_get_addr_opt, emit_stub_syms)
317 plt_style): Delete. Adjust all refs to instead use..
318 (params): ..this. New variable.
319 (ppc_after_open_output): New function. Tweak params and pass to
321 (ppc_after_open): Adjust ppc_elf_select_plt_layout call.
322 (ppc_before_allocation): Adjust ppc_elf_tls_setup call. Enable
323 relaxation for ppc476 workaround.
324 (PARSE_AND_LIST_*): Add --{no-,}ppc476-workaround support.
325 (LDEMUL_CREATE_OUTPUT_SECTION_STATEMENTS): Define.
327 2014-02-02 Sebastian Huber <sebastian.huber@embedded-brains.de>
329 * ld/ld.texinfo: Change ALIGN_WITH_INPUT documentation.
330 * ld/ldlang.c (lang_size_sections_1): Add dotdelta
331 variable which reflects the VMA change due to alignment
332 requirements. Use dotdelta do change the LMA if
333 ALIGN_WITH_INPUT is requested.
335 2014-02-01 Hans-Peter Nilsson <hp@bitrange.com>
337 * emultempl/mmix-elfnmmo.em (mmix_after_allocation): Fix typo in
338 call to bfd_set_section_vma exposed by recent bfd_set_section_vma
341 2014-01-30 Sandra Loosemore <sandra@codesourcery.com>
343 * Makefile.am (enios2elf.c, enios2linux.c): Update dependencies.
344 * Makefile.in: Regenerated.
345 * emulparams/nios2elf.sh (EXTRA_EM_FILE): Set.
346 * emulparams/nios2linux.sh (EXTRA_EM_FILE): Set.
347 * emultempl/nios2elf.em: New file.
348 * gen-doc.texi (NIOSII): Set.
349 * ld.texinfo (NIOSII): Set.
351 2014-01-28 Nick Clifton <nickc@redhat.com>
353 * Makefile.am: Remove obsolete MSP430 emulations.
354 * configure.tgt: Likewise.
355 * emulparams/msp430all.sh: Likewise.
356 * Makefile.in: Regenerate.
358 2014-01-24 H.J. Lu <hongjiu.lu@intel.com>
361 * emultempl/elf32.em (gld${EMULATION_NAME}_place_orphan): Improve
362 orphaned TLS section handling.
364 2014-01-24 Alan Modra <amodra@gmail.com>
366 * ldlang.c (lang_output_section_find_by_flags): Be careful to
367 test look->bfd_section->flags if available rather than
368 look->flags. Separate SEC_THREAD_LOCAL handling from
369 SEC_READONLY loop, and rewrite.
371 2014-01-22 Alan Modra <amodra@gmail.com>
373 * ldlang.c (asneeded_list_head, asneeded_list_tail): New vars.
374 (lang_init): Initialise them.
375 (lang_print_asneeded): New function.
376 (lang_process): Call lang_print_asneeded.
377 * ldlang.h (struct asneeded_minfo): New.
378 (asneeded_list_tail): Declare.
379 * ldmain.c (add_archive_element): Improve archive map heading.
380 * ldmisc.c (minfo): Stash --as-needed info.
382 2014-01-22 Alan Modra <amodra@gmail.com>
384 * ld.h (struct map_symbol_def): Move to..
386 * ldlang.c (print_assignment): Don't set expld.assign_name to dot.
388 2014-01-22 Alan Modra <amodra@gmail.com>
390 * ld.texinfo (Output Section Discarding): Mention assigning to dot
391 as a way of keeping otherwise empty sections.
392 * ldexp.c (is_dot, is_value, is_sym_value, is_dot_ne_0,
393 is_dot_plus_0, is_align_conditional): New predicates.
394 (exp_fold_tree_1): Set SEC_KEEP when assigning to dot inside an
395 output section, except for some special cases.
396 * scripttempl/elfmicroblaze.sc: Use canonical form to align at
397 end of .heap and .stack.
399 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
401 * emulparams/aarch64linuxb.sh (ELF_INTERPRETER_NAME): Define.
403 2014-01-20 Marcus Shawcroft <marcus.shawcroft@arm.com>
405 * emulparams/aarch64linux.sh (ELF_INTERPRETER_NAME): Define.
407 2014-01-20 Alan Modra <amodra@gmail.com>
409 * ldlang.h (struct lang_definedness_hash_entry): Add by_object and
410 by_script. Make iteration a single bit field.
411 (lang_track_definedness, lang_symbol_definition_iteration): Delete.
412 (lang_symbol_defined): Declare.
413 * ldlang.c (lang_statement_iteration): Expand comment a little.
414 (lang_init <lang_definedness_table>): Make it bigger.
415 (lang_track_definedness, lang_symbol_definition): Delete.
416 (lang_definedness_newfunc): Update.
417 (lang_symbol_defined): New function.
418 (lang_update_definedness): Create entries here. Do track whether
419 script definition of symbol is valid, even when also defined in
421 * ldexp.c (fold_name <DEFINED>): Update.
422 (fold_name <NAME>): Allow self-assignment for absolute symbols
423 defined in a linker script.
425 2014-01-20 Guy Martin <gmsoft@tuxicoman.be>
426 Alan Modra <amodra@gmail.com>
428 * ldlang.h (lang_output_section_get): Define.
429 * ldlang.c (lang_output_section_get): Likewise.
430 (init_os): Set the output_section userdata to the output
432 * emultempl/hppaelf.em: Use lang_output_section_get instead of
433 lang_output_section_find where applicable.
434 * emultempl/aarch64elf.em: Likewise.
435 * emultempl/aix.em: Likewise.
436 * emultempl/armelf.em: Likewise.
437 * emultempl/m68hc1xelf.em: Likewise.
438 * emultempl/metagelf.em: Likewise.
439 * emultempl/mipself.em: Likewise.
440 * emultempl/ppc64elf.em: Likewise.
441 * emultempl/spuelf.em: Likewise.
443 2014-01-17 Alan Modra <amodra@gmail.com>
445 * genscripts.sh (COMPILE_IN): Don't set if already set.
446 * emulparams/nds32elf.sh: Don't clear EMULATION_LIBPATH, set
448 * emulparams/nds32elf16m.sh: Likewise.
449 * emulparams/nds32elf_linux.sh: Likewise.
450 * emultempl/aix.em: Test COMPILE_IN value is "yes".
451 * emultempl/armcoff.em: Likewise.
452 * emultempl/elf32.em: Likewise.
453 * emultempl/generic.em: Likewise.
454 * emultempl/gld960.em: Likewise.
455 * emultempl/gld960c.em: Likewise.
456 * emultempl/linux.em: Likewise.
457 * emultempl/lnk960.em: Likewise.
458 * emultempl/m68kcoff.em: Likewise.
459 * emultempl/sunos.em: Likewise.
460 * emultempl/ticoff.em: Likewise.
462 2014-01-16 H.J. Lu <hongjiu.lu@intel.com>
465 * genscripts.sh: Don't search directory with LIBPATH_SUFFIX_SKIP
467 * emulparams/elf32_x86_64.sh (LIBPATH_SUFFIX_SKIP): Set to 64
468 for elf32_x86_64 emulation.
469 * emulparams/elf_i386.sh (LIBPATH_SUFFIX_SKIP): Set to 64
470 for elf_i386 emulation.
472 2014-01-16 Alan Modra <amodra@gmail.com>
474 * ld.h (fat_section_userdata_type, get_userdata): Move to..
475 * ldlang.h (input_section_userdata_type, get_userdata): ..here.
476 * ldlang.c (init_map_userdata): Delete. Fold into..
477 (sort_def_symbol): ..here. Don't attach input section userdata
478 to output sections or global bfd sections.
479 (lang_map): Don't pre-allocate input section userdata.
480 (init_os): Don't allocate userdata for output sections.
481 (print_all_symbols): Update.
483 2014-01-15 H.J. Lu <hongjiu.lu@intel.com>
485 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation):
486 Silence uninitialized warning on ehdr_start_save with older
489 2014-01-15 Alan Modra <amodra@gmail.com>
491 * emultempl/elf32.em (gld${EMULATION_NAME}_before_allocation): Define
492 __ehdr_start before size_dynamic_sections and restore afterwards.
494 2014-01-10 Alan Modra <amodra@gmail.com>
499 * ldlang.c (lang_size_sections): Remove unneeded RELRO base
500 adjust. Tidy comments.
501 * ld.texinfo (DATA_SEGMENT_RELRO_END): Correct description.
503 2014-01-10 Hans-Peter Nilsson <hp@axis.com>
505 * emulparams/crislinux.sh (COMMONPAGESIZE): Define.
507 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
512 * ldlang.c (lang_size_sections): Properly align RELRO base.
514 2014-01-08 H.J. Lu <hongjiu.lu@intel.com>
516 * ldver.c (ldversion): Update copyright year to 2014.
518 For older changes see ChangeLog-2013
520 Copyright (C) 2014 Free Software Foundation, Inc.
522 Copying and distribution of this file, with or without modification,
523 are permitted in any medium without royalty provided the copyright
524 notice and this notice are preserved.
530 version-control: never