Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/llvm/llvm-project.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lld/COFF
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2015-06-27 01:05:32 +0300
committerRui Ueyama <ruiu@google.com>2015-06-27 01:05:32 +0300
commit810551a694e1ba7dd9b7897d60efb129173c8e15 (patch)
tree542a3f9fa319c256ed30e49227c7803e624a564b /lld/COFF
parent9818dd77b4fc0da2217867e36d71275cc8f86acd (diff)
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')
-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 9d5eb817220a..d44dd4b4a0b6 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;
};