summaryrefslogtreecommitdiff
path: root/src/mesa/x86/common_x86_asm.S
diff options
context:
space:
mode:
authorKristian Høgsberg <krh@redhat.com>2006-04-17 18:58:24 +0000
committerKristian Høgsberg <krh@redhat.com>2006-04-17 18:58:24 +0000
commitfcdc6a7d2488defd66bc7e8398c6d8c9a6190a1a (patch)
tree1a813ec767acb758cb9f0913850975c2bcbe0fe1 /src/mesa/x86/common_x86_asm.S
parent28bc3cdfbac8b8dda827e1bf03c44d14056a557f (diff)
Add .note.GNU-stack section to assembler files to avoid the default behavior
of requesting executable stacks.
Diffstat (limited to 'src/mesa/x86/common_x86_asm.S')
-rw-r--r--src/mesa/x86/common_x86_asm.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/mesa/x86/common_x86_asm.S b/src/mesa/x86/common_x86_asm.S
index 654b3469d8..ef3cc9eb59 100644
--- a/src/mesa/x86/common_x86_asm.S
+++ b/src/mesa/x86/common_x86_asm.S
@@ -213,3 +213,7 @@ GLNAME( _mesa_test_os_sse_exception_support ):
#endif
+
+#if defined (__ELF__) && defined (__linux__)
+ .section .note.GNU-stack,"",%progbits
+#endif