Skip to content

Commit

Permalink
Add .note.GNU-stack section to produced executables (llvm#162)
Browse files Browse the repository at this point in the history
Do this unconditionally because there's no scenario where we would need executable stack for managed code.
  • Loading branch information
MichalStrehovsky authored Jan 20, 2022
1 parent 7c6e230 commit 4d93f24
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions llvm/tools/objwriter/objwriter.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ bool ObjectWriter::Init(llvm::StringRef ObjectFilePath, const char* tripleName)
/*DWARFMustBeAtTheEnd*/ false);
if (!Streamer)
return error("no object streamer for target " + TripleName);
Streamer->InitSections(/* NoExecStack */ true);
Assembler = &Streamer->getAssembler();

FrameOpened = false;
Expand Down

0 comments on commit 4d93f24

Please sign in to comment.