diff options
author | Fangrui Song <i@maskray.me> | 2021-04-30 17:19:45 -0700 |
---|---|---|
committer | Fangrui Song <i@maskray.me> | 2021-04-30 17:19:45 -0700 |
commit | 818b508953c7684a6c104b89c6f6ce84e961d82e (patch) | |
tree | c11b76703d0c47b0563545e7f0d18d69728ad43b /llvm/lib/Transforms/Utils/Local.cpp | |
parent | c3da07d216dd20fbdb7302fd085c0a59e189ae3d (diff) | |
download | llvm-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