We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 82ea55c commit e010c11Copy full SHA for e010c11
lld/COFF/Writer.cpp
@@ -917,9 +917,9 @@ void Writer::createSections() {
917
auto createSection = [&](StringRef name, uint32_t outChars) {
918
// If the user specified /driver, then we need to set the nonpaged attribute
919
// for the specific sections.
920
- if (ctx.config.driver &&
921
- (name == ".text" || name == "llvmmsvc" || name == ".data" ||
922
- name == ".rdata" || name == ".pdata"))
+ if (ctx.config.driver && (name == ".text" || name == ".data" ||
+ name == ".rdata" || name == ".pdata") ||
+ ((outChars & (code | r | x)) == (code | r | x)))
923
outChars |= nonpaged;
924
OutputSection *&sec = sections[{name, outChars}];
925
if (!sec) {
0 commit comments