aboutsummaryrefslogtreecommitdiffstats
path: root/modules
diff options
context:
space:
mode:
authorlloyd <[email protected]>2007-03-12 01:46:37 +0000
committerlloyd <[email protected]>2007-03-12 01:46:37 +0000
commit615e45ccc278ee8109c2badb8f666abc720f0dca (patch)
tree52b9d5865395bb969c4b1abc0ad7fc85ba7c4b20 /modules
parentcc8247386812fe1f0f1af9b81121dfe2798f0488 (diff)
Insert a note so the toolchain knows that we are not using an executable
stack. At least SuSE and Gentoo are using a patch for this in their trees, probably others are as well. I still have not had a chance to check the portability aspects of this, especially on Solaris (the only ELF-based x86/amd64 operating system that I know of that does not use the GNU toolchain).
Diffstat (limited to 'modules')
-rw-r--r--modules/alg_ia32/asm_macr.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/modules/alg_ia32/asm_macr.h b/modules/alg_ia32/asm_macr.h
index 54920d37c..b852b85b1 100644
--- a/modules/alg_ia32/asm_macr.h
+++ b/modules/alg_ia32/asm_macr.h
@@ -16,6 +16,10 @@
.text; \
.p2align 4,,15;
+#ifdef __ELF__
+.section .note.GNU-stack,"",%progbits
+#endif
+
/*************************************************
* Function Definitions *
*************************************************/