COFF: Fix locally-imported symbol's base relocations.
Base relocations are RVA and not VA, so we shouldn't add ImageBase.
llvm-svn: 241883
diff --git a/lld/COFF/Chunks.cpp b/lld/COFF/Chunks.cpp
index 0c4e99a..873d2a7 100644
--- a/lld/COFF/Chunks.cpp
+++ b/lld/COFF/Chunks.cpp
@@ -263,7 +263,7 @@
void LocalImportChunk::getBaserels(std::vector<uint32_t> *Res,
Defined *ImageBase) {
- Res->push_back(getRVA() + Config->ImageBase);
+ Res->push_back(getRVA());
}
size_t LocalImportChunk::getSize() const {