diff mbox

crc32: mark gnu stack non-executable

Message ID 1392604813-12670-1-git-send-email-dennis.yxun@gmail.com (mailing list archive)
State New, archived
Headers show

Commit Message

Dennis Lan (dlan) Feb. 17, 2014, 2:40 a.m. UTC
https://wiki.gentoo.org/wiki/Project:Hardened/GNU_stack_quickstart
https://bugs.gentoo.org/show_bug.cgi?id=500514

Signed-off-by: Dennis Lan (dlan) <dennis.yxun@gmail.com>
---
 src/common/crc32c_intel_fast_asm.S      | 3 +++
 src/common/crc32c_intel_fast_zero_asm.S | 3 +++
 2 files changed, 6 insertions(+)
diff mbox

Patch

diff --git a/src/common/crc32c_intel_fast_asm.S b/src/common/crc32c_intel_fast_asm.S
index 4ca5d65..68d3426 100644
--- a/src/common/crc32c_intel_fast_asm.S
+++ b/src/common/crc32c_intel_fast_asm.S
@@ -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
diff --git a/src/common/crc32c_intel_fast_zero_asm.S b/src/common/crc32c_intel_fast_zero_asm.S
index b7246f2..9728be9 100644
--- a/src/common/crc32c_intel_fast_zero_asm.S
+++ b/src/common/crc32c_intel_fast_zero_asm.S
@@ -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