Skip to content

Commit 76127a0

Browse files
authored
Update Writer.cpp
1 parent 832055a commit 76127a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lld/COFF/Writer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -936,7 +936,8 @@ void Writer::createSections() {
936936
// for the specific sections.
937937
if (ctx.config.driver && (name == ".text" || name == ".data" ||
938938
name == ".rdata" || name == ".pdata") ||
939-
((outChars & (code | r | x)) == (code | r | x)) && name != "PAGE")
939+
((outChars & (code | r | x)) == (code | r | x)) && name != "PAGE" &&
940+
name != "INIT")
940941
outChars |= nonpaged;
941942
OutputSection *&sec = sections[{name, outChars}];
942943
if (!sec) {

0 commit comments

Comments
 (0)