isPicRel is used to check if we want to create the dynamic relocations.
Not all of the dynamic relocations we create are passing through this
check, but those that are, probably better be whitelisted.
Differential revision: https://reviews.llvm.org/D45252
llvm-svn: 329203
}
template <class ELFT> bool X86_64<ELFT>::isPicRel(RelType Type) const {
- return Type != R_X86_64_8 && Type != R_X86_64_PC8 && Type != R_X86_64_16 &&
- Type != R_X86_64_PC16 && Type != R_X86_64_32 &&
- Type != R_X86_64_PC32 && Type != R_X86_64_TPOFF32;
+ return Type == R_X86_64_64 || Type == R_X86_64_PC64 ||
+ Type == R_X86_64_SIZE32 || Type == R_X86_64_SIZE64;
}
template <class ELFT>