summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lld/ELF/OutputSections.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/lld/ELF/OutputSections.cpp b/lld/ELF/OutputSections.cpp
index 3a8a6519a8d..4fc87ded169 100644
--- a/lld/ELF/OutputSections.cpp
+++ b/lld/ELF/OutputSections.cpp
@@ -48,7 +48,7 @@ template <class ELFT> void PltSection<ELFT>::writeTo(uint8_t *Buf) {
Buf += Jmp.size();
uintptr_t OffsetInPLT = (InstPos + 6) - Start;
- uintptr_t Delta = GotSec.getEntryAddr(*E) - (this->getVA() + OffsetInPLT);
+ intptr_t Delta = GotSec.getEntryAddr(*E) - (this->getVA() + OffsetInPLT);
assert(isInt<32>(Delta));
support::endian::write32le(Buf, Delta);
Buf += 4;
OpenPOWER on IntegriCloud