summaryrefslogtreecommitdiffstats
path: root/lld/COFF/DLL.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-06-26 22:05:32 +0000
committerRui Ueyama <ruiu@google.com>2015-06-26 22:05:32 +0000
commit810551a694e1ba7dd9b7897d60efb129173c8e15 (patch)
tree542a3f9fa319c256ed30e49227c7803e624a564b /lld/COFF/DLL.cpp
parent9818dd77b4fc0da2217867e36d71275cc8f86acd (diff)
downloadbcm5719-llvm-810551a694e1ba7dd9b7897d60efb129173c8e15.tar.gz
bcm5719-llvm-810551a694e1ba7dd9b7897d60efb129173c8e15.zip
COFF: Add base relocation for delay-import table.
Because the address table of the delay-import table contains absolute address, it needs to be added to the base relocation table. llvm-svn: 240844
Diffstat (limited to 'lld/COFF/DLL.cpp')
-rw-r--r--lld/COFF/DLL.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/lld/COFF/DLL.cpp b/lld/COFF/DLL.cpp
index 9d5eb817220..d44dd4b4a0b 100644
--- a/lld/COFF/DLL.cpp
+++ b/lld/COFF/DLL.cpp
@@ -326,6 +326,10 @@ public:
write64le(Buf + FileOff, Thunk->getRVA() + Config->ImageBase);
}
+ void getBaserels(std::vector<uint32_t> *Res, Defined *ImageBase) override {
+ Res->push_back(RVA);
+ }
+
Chunk *Thunk;
};
OpenPOWER on IntegriCloud