================
@@ -359,6 +357,12 @@ void MCELFStreamer::finalizeCGProfile() {
}
void MCELFStreamer::finishImpl() {
+ // Emit .note.GNU-stack, similar to AsmPrinter::doFinalization.
+ if (const MCTargetOptions *TO = getContext().getTargetOptions())
+ if (TO->MCNoExecStack)
+ switchSection(getContext().getAsmInfo()->getStackSection(getContext(),
+
/*Exec=*/false));
----------------
aengelke wrote:
Could there be a problem if getStackSection returns null?
https://github.com/llvm/llvm-project/pull/187880
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits