diff options
-rw-r--r-- | lld/ELF/InputSection.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/InputSection.cpp b/lld/ELF/InputSection.cpp index 9612c29cebf..77a50b6579d 100644 --- a/lld/ELF/InputSection.cpp +++ b/lld/ELF/InputSection.cpp @@ -595,7 +595,7 @@ static uint64_t getRelocTargetVA(RelType Type, int64_t A, uint64_t P, if (StOther == 0 || StOther == 1) return SymVA - P; - return SymVA - P + (1 << StOther); + return SymVA - P + (1LL << StOther); } case R_PPC_TOC: return getPPC64TocBase() + A; |