aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2020-10-23 10:37:24 -0700
committerFangrui Song <i@maskray.me>2020-10-23 10:38:07 -0700
commit9267caebfa9209e4ae69517043d008d1b83307aa (patch)
tree1698e28d23d23fcd78cf4633751c7202c9e69439 /llvm/lib/CodeGen/StackProtector.cpp
parent2b8fb5185e4a2087874924468086e3fb6a2ec495 (diff)
downloadllvm-9267caebfa9209e4ae69517043d008d1b83307aa.zip
llvm-9267caebfa9209e4ae69517043d008d1b83307aa.tar.gz
llvm-9267caebfa9209e4ae69517043d008d1b83307aa.tar.bz2
[ELF] Don't error on R_PPC64_REL24/R_PPC64_REL24_NOTOC referencing __tls_get_addr for missing R_PPC64_TLSGD/R_PPC64_TLSLD
This partially reverts D85994. In glibc, elf/dl-sym.c calls the raw `__tls_get_addr` by specifying the tls_index parameter. Such a call does not have a pairing R_PPC64_TLSGD/R_PPC64_TLSLD. This is legitimate. Since we cannot distinguish the benign case from cases due to toolchain issues, we have to be permissive. Acked by Stefan Pintilie
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions