Skip to contentSkip to conversation

crc32: mark gnu stack non-executable

PATCH New Dennis Lan (dlan) 1 participant 1 message Feb 17, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 crc32: mark gnu stack non-executable

https://wiki.gentoo.org/wiki/Project:Hardened/GNU_stack_quickstart
https://bugs.gentoo.org/show_bug.cgi?id=500514

---
 src/common/crc32c_intel_fast_asm.S      | 3 +++
 src/common/crc32c_intel_fast_zero_asm.S | 3 +++
 2 files changed, 6 insertions(+)
src/common/crc32c_intel_fast_asm.S +3 -0
index 4ca5d65..68d3426 100644
@@ -662,3 +662,6 @@ global %1_slver
 %endmacro
 ;;;       func            core, ver, snum
 slversion crc32_iscsi_00, 00,   02,  0014
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endiF
src/common/crc32c_intel_fast_zero_asm.S +3 -0
index b7246f2..9728be9 100644
@@ -644,3 +644,6 @@ global %1_slver
 %endmacro
 ;;;       func            core, ver, snum
 slversion crc32_iscsi_zero_00, 00,   02,  0014
+#if defined(__linux__) && defined(__ELF__)
+.section .note.GNU-stack,"",%progbits
+#endiF
Signature · 1 line
1.8.5.3