sparc: Check bfd_link_executable for TLS check
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Oct 2017 12:18:07 +0000 (05:18 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Thu, 19 Oct 2017 12:18:22 +0000 (05:18 -0700)
commit0fb7012e88683b8bd67a4fb8f782359fa0e11724
tree2d0332be7cbf2dbb9dd14fc0c2a84234ae46478b
parentfa57faa0dad237b3f418f17e7ee2114c32da818a
sparc: Check bfd_link_executable for TLS check

Copied from x86, check bfd_link_executable, instead of bfd_link_pic,
for TLS transition check.  Not sure if it works correctly.  All usages
of bfd_link_pic should be audited.

PR ld/22263
* elfxx-sparc.c (sparc_elf_tls_transition): Replace
bfd_link_pic with !bfd_link_executable, !bfd_link_pic with
bfd_link_executable for TLS check.
(_bfd_sparc_elf_check_relocs): Likewise.
(allocate_dynrelocs): Likewise.
(_bfd_sparc_elf_relocate_section): Likewise.
bfd/ChangeLog
bfd/elfxx-sparc.c
This page took 0.037647 seconds and 4 git commands to generate.