41 lines
1.5 KiB
Diff
41 lines
1.5 KiB
Diff
--- 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) \
|