diff options
Diffstat (limited to 'lld/COFF/DLL.cpp')
| -rw-r--r-- | lld/COFF/DLL.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lld/COFF/DLL.cpp b/lld/COFF/DLL.cpp index e88a6b1bffb0..b9e12ef4b34d 100644 --- a/lld/COFF/DLL.cpp +++ b/lld/COFF/DLL.cpp @@ -158,7 +158,6 @@ binImports(const std::vector<DefinedImportData *> &imports) { return v; } -// Export table // See Microsoft PE/COFF spec 4.3 for details. // A chunk for the delay import descriptor table etnry. @@ -525,6 +524,8 @@ public: if (e.forwardChunk) { write32le(p, e.forwardChunk->getRVA() | bit); } else { + assert(cast<Defined>(e.sym)->getRVA() != 0 && + "Exported symbol unmapped"); write32le(p, cast<Defined>(e.sym)->getRVA() | bit); } } |
