SHA256
1
0
forked from pool/Botan
Botan/Botan-no_executable_stack.patch

41 lines
1.5 KiB
Diff
Raw Normal View History

--- modules/alg_amd64/asm_macr.h
+++ modules/alg_amd64/asm_macr.h
@@ -19,10 +19,12 @@
/*************************************************
* Function Definitions *
*************************************************/
-#define START_FUNCTION(func_name) \
- ALIGN; \
- .global func_name; \
- .type func_name,@function; \
+#define START_FUNCTION(func_name) \
+ ALIGN; \
+ .global func_name; \
+ .type func_name,@function; \
+ .section .note.GNU-stack,"",@progbits; \
+ .previous; \
func_name:
#define END_FUNCTION(func_name) \
--- modules/alg_ia32/asm_macr.h
+++ modules/alg_ia32/asm_macr.h
@@ -19,11 +19,13 @@
/*************************************************
* Function Definitions *
*************************************************/
-#define START_FUNCTION(func_name) \
- .align 8; \
- ALIGN; \
- .global func_name; \
- .type func_name,@function; \
+#define START_FUNCTION(func_name) \
+ .align 8; \
+ ALIGN; \
+ .global func_name; \
+ .type func_name,@function; \
+ .section .note.GNU-stack,"",@progbits; \
+ .previous; \
func_name:
#define END_FUNCTION(func_name) \