aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Transforms/Utils/Local.cpp
diff options
context:
space:
mode:
authorFangrui Song <i@maskray.me>2021-04-30 17:19:45 -0700
committerFangrui Song <i@maskray.me>2021-04-30 17:19:45 -0700
commit818b508953c7684a6c104b89c6f6ce84e961d82e (patch)
treec11b76703d0c47b0563545e7f0d18d69728ad43b /llvm/lib/Transforms/Utils/Local.cpp
parentc3da07d216dd20fbdb7302fd085c0a59e189ae3d (diff)
downloadllvm-818b508953c7684a6c104b89c6f6ce84e961d82e.zip
llvm-818b508953c7684a6c104b89c6f6ce84e961d82e.tar.gz
llvm-818b508953c7684a6c104b89c6f6ce84e961d82e.tar.bz2
[ELF] Simplify the condition adding .got header
Adopt my suggestion in https://reviews.llvm.org/D91426#2653926 , generalizing the ppc64 specific code. GNU ld and glibc ld.so has a contract about the first few entries of .got . There are somewhat complex conditions when the header is needed. This patch switches to a simpler approach: add a header unconditionally if _GLOBAL_OFFSET_TABLE_ is used or the number of entries is more than just the header.
Diffstat (limited to 'llvm/lib/Transforms/Utils/Local.cpp')
0 files changed, 0 insertions, 0 deletions