aboutsummaryrefslogtreecommitdiff
path: root/gdb/common/errors.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2017-08-06 08:40:56 -0700
committerH.J. Lu <hjl.tools@gmail.com>2017-08-06 08:41:07 -0700
commit1d4af308ae58f459a2bfc50de70832284f1d3d2a (patch)
tree07caed1fe797634d457232326daf85edbbd2ea4b /gdb/common/errors.c
parenta4819f54c0006554179631189131080be859eefb (diff)
downloadgdb-1d4af308ae58f459a2bfc50de70832284f1d3d2a.zip
gdb-1d4af308ae58f459a2bfc50de70832284f1d3d2a.tar.gz
gdb-1d4af308ae58f459a2bfc50de70832284f1d3d2a.tar.bz2
x86: Lookup __tls_get_addr or ___tls_get_addr once
Instead of checking if a symbol is __tls_get_addr or ___tls_get_addr, we check if there is a reference to __tls_get_addr or ___tls_get_addr before starting relocation check. * elf32-i386.c (elf_i386_link_hash_entry): Change tls_get_addr to 1 bit. (elf_i386_link_hash_newfunc): Initialize tls_get_addr to 0. (elf_i386_check_tls_transition): Check tls_get_addr directly. (elf_i386_convert_load_reloc): Update tls_get_addr check. (elf_i386_link_check_relocs): New function. (bfd_elf32_bfd_link_check_relocs): New. * elf64-x86-64.c (elf_x86_64_link_hash_entry): Change tls_get_addr to 1 bit. (elf_x86_64_link_hash_newfunc): Initialize tls_get_addr to 0. (elf_x86_64_check_tls_transition): Check tls_get_addr directly. (elf_x86_64_convert_load_reloc): Update tls_get_addr check. (elf_x86_64_link_check_relocs): New function. (bfd_elf64_bfd_link_check_relocs): New. (bfd_elf32_bfd_link_check_relocs): Likewise.
Diffstat (limited to 'gdb/common/errors.c')
0 files changed, 0 insertions, 0 deletions