[lld] [ELF] Error for executable .note.GNU-stack unless -z execstack (PR #124068)

Fangrui Song via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 23 09:05:29 PST 2025


================
@@ -1026,8 +1026,15 @@ InputSectionBase *ObjFile<ELFT>::createInputSection(uint32_t idx,
     // explicitly told to do otherwise (by -z execstack). Because the stack
     // executable-ness is controlled solely by command line options,
     // .note.GNU-stack sections are simply ignored.
----------------
MaskRay wrote:

Thanks for the suggestion. Adopted.

https://github.com/llvm/llvm-project/pull/124068


More information about the llvm-commits mailing list