]> Pileus Git - ~andy/linux/blobdiff - tools/perf/bench/mem-memcpy-x86-64-asm.S
perf tools: Fix perf stack to non executable on x86_64
[~andy/linux] / tools / perf / bench / mem-memcpy-x86-64-asm.S
index a57b66e853c24e3d68b73d80ce1831494320db4f..185a96d66dd18ce21b210f9747d7ab61b03b1fda 100644 (file)
@@ -1,2 +1,8 @@
 
 #include "../../../arch/x86/lib/memcpy_64.S"
+/*
+ * We need to provide note.GNU-stack section, saying that we want
+ * NOT executable stack. Otherwise the final linking will assume that
+ * the ELF stack should not be restricted at all and set it RWX.
+ */
+.section .note.GNU-stack,"",@progbits