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 9c9296f commit 832055aCopy full SHA for 832055a
lld/COFF/Writer.cpp
@@ -2014,8 +2014,12 @@ void Writer::setSectionPermissions() {
2014
StringRef name = p.first;
2015
uint32_t perm = p.second;
2016
for (OutputSection *sec : ctx.outputSections)
2017
- if (sec->name == name)
2018
- sec->setPermissions(perm);
+ if (sec->name == name) {
+ if (ctx.config.driver && name == "INIT")
2019
+ sec->appendPermissions(perm);
2020
+ else
2021
+ sec->setPermissions(perm);
2022
+ }
2023
}
2024
2025
0 commit comments