aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/CodeGen/StackProtector.cpp
diff options
context:
space:
mode:
authorEd Schouten <ed@nuxi.nl>2016-04-05 20:51:50 +0000
committerEd Schouten <ed@nuxi.nl>2016-04-05 20:51:50 +0000
commit639a333730817517fba83e28620891cbe30ce642 (patch)
tree99a79dbfa0bfa2d3a8c983c13587be7735a821b4 /llvm/lib/CodeGen/StackProtector.cpp
parent9def2afd5c0c18e3f8e45c5d3463efb603da47fd (diff)
downloadllvm-639a333730817517fba83e28620891cbe30ce642.zip
llvm-639a333730817517fba83e28620891cbe30ce642.tar.gz
llvm-639a333730817517fba83e28620891cbe30ce642.tar.bz2
Make TLS work for PIE executables on x86-64.
While trying to get PIE work on CloudABI for x86-64, I noticed that even though GNU ld would generate functional binaries, LLD would not. It turns out that we generate relocations for referencing TLS objects inside of the text segment, which shouldn't happen. This change extends the isRelRelative() function to list some additional relocation types that should be treated as relative. This makes my C library unit testing binary work on x86-64. Approved by: ruiu Differential Revision: http://reviews.llvm.org/D18688 Fixes bug: https://llvm.org/bugs/show_bug.cgi?id=27174 llvm-svn: 265462
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions