summaryrefslogtreecommitdiffstats
path: root/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
diff options
context:
space:
mode:
authorRui Ueyama <ruiu@google.com>2014-10-09 02:48:14 +0000
committerRui Ueyama <ruiu@google.com>2014-10-09 02:48:14 +0000
commit7be03d09cd2e2bc76c86bb0730770796629fb76c (patch)
treed78757c0b9e945abafeeaa00f733f932ec5861c2 /lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
parent979fb40be0ba586f63a9c973581117ecef99b601 (diff)
downloadbcm5719-llvm-7be03d09cd2e2bc76c86bb0730770796629fb76c.tar.gz
bcm5719-llvm-7be03d09cd2e2bc76c86bb0730770796629fb76c.zip
[PECOFF] Emit the delay-import table
This is a partial patch to emit the delay-import table. With this, LLD is now able to emit the table that llvm-readobj can read and dump. The table lacks a few fields, such as the address of HMODULE, the import address table, etc. They'll be added in subsequent patches. llvm-svn: 219384
Diffstat (limited to 'lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp')
-rw-r--r--lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
index 313bcd5a737..6c241974741 100644
--- a/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
+++ b/lld/lib/ReaderWriter/PECOFF/WriterPECOFF.cpp
@@ -1043,6 +1043,7 @@ void PECOFFWriter::build(const File &linkedFile) {
.Case(".idata.d", DataDirectoryIndex::IMPORT_TABLE)
.Case(".edata", DataDirectoryIndex::EXPORT_TABLE)
.Case(".loadcfg", DataDirectoryIndex::LOAD_CONFIG_TABLE)
+ .Case(".didat.d", DataDirectoryIndex::DELAY_IMPORT_DESCRIPTOR)
.Default(ignore);
if (idx == ignore)
continue;
OpenPOWER on IntegriCloud