File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -981,6 +981,9 @@ void PECOFFWriter::build(const File &linkedFile) {
981
981
if (section->getSectionName () == " .pdata" )
982
982
dataDirectory->setField (DataDirectoryIndex::EXCEPTION_TABLE,
983
983
section->getVirtualAddress (), section->size ());
984
+ if (section->getSectionName () == " .rsrc" )
985
+ dataDirectory->setField (DataDirectoryIndex::RESOURCE_TABLE,
986
+ section->getVirtualAddress (), section->size ());
984
987
if (section->getSectionName () == " .idata.a" )
985
988
dataDirectory->setField (DataDirectoryIndex::IAT,
986
989
section->getVirtualAddress (), section->size ());
Original file line number Diff line number Diff line change 13
13
14
14
# Multiple resource files are concatenated.
15
15
# RUN: cat %t.exe | grep 'H.e.l.l.o.H.e.l.l.o.'
16
+
17
+ # RUN: lld -flavor link /out:%t.exe /subsystem:console /entry:start /opt:noref \
18
+ # RUN: /manifest:embed -- %t.obj %p/Inputs/resource.res
19
+ # RUN: llvm-readobj -file-headers %t.exe | FileCheck %s
20
+
21
+ CHECK: ResourceTableRVA: 0x1000
22
+ CHECK: ResourceTableSize: 0x208
You can’t perform that action at this time.
0 commit comments