diff options
author | H.J. Lu <hjl.tools@gmail.com> | 2017-10-19 05:18:07 -0700 |
---|---|---|
committer | H.J. Lu <hjl.tools@gmail.com> | 2017-10-19 05:18:22 -0700 |
commit | 0fb7012e88683b8bd67a4fb8f782359fa0e11724 (patch) | |
tree | 2d0332be7cbf2dbb9dd14fc0c2a84234ae46478b /bfd/ChangeLog | |
parent | fa57faa0dad237b3f418f17e7ee2114c32da818a (diff) | |
download | gdb-0fb7012e88683b8bd67a4fb8f782359fa0e11724.zip gdb-0fb7012e88683b8bd67a4fb8f782359fa0e11724.tar.gz gdb-0fb7012e88683b8bd67a4fb8f782359fa0e11724.tar.bz2 |
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.
Diffstat (limited to 'bfd/ChangeLog')
-rw-r--r-- | bfd/ChangeLog | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index a300d1c..303159b 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,5 +1,15 @@ 2017-10-18 H.J. Lu <hongjiu.lu@intel.com> + 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. + +2017-10-18 H.J. Lu <hongjiu.lu@intel.com> + * elf32-tilepro.c (tilepro_elf_gc_mark_hook): Call _bfd_generic_link_add_one_symbol to mark __tls_get_addr. * elfxx-tilegx.c (tilegx_elf_gc_mark_hook): Likewise. |