From fcdc6a7d2488defd66bc7e8398c6d8c9a6190a1a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Mon, 17 Apr 2006 18:58:24 +0000 Subject: Add .note.GNU-stack section to assembler files to avoid the default behavior of requesting executable stacks. --- src/mesa/x86-64/glapi_x86-64.S | 4 ++++ src/mesa/x86-64/xform4.S | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'src/mesa/x86-64') diff --git a/src/mesa/x86-64/glapi_x86-64.S b/src/mesa/x86-64/glapi_x86-64.S index 34433510c5..d976d53fe4 100644 --- a/src/mesa/x86-64/glapi_x86-64.S +++ b/src/mesa/x86-64/glapi_x86-64.S @@ -31127,3 +31127,7 @@ GL_PREFIX(BlitFramebufferEXT): .long 2,4,20 /* Minimum kernel version w/TLS */ 3: .p2align 2 /* pad out section */ #endif /* GLX_USE_TLS */ + +#if defined (__ELF__) && defined (__linux__) + .section .note.GNU-stack,"",%progbits +#endif diff --git a/src/mesa/x86-64/xform4.S b/src/mesa/x86-64/xform4.S index 622c3f0c25..65328f6666 100644 --- a/src/mesa/x86-64/xform4.S +++ b/src/mesa/x86-64/xform4.S @@ -1,4 +1,4 @@ -/* $Id: xform4.S,v 1.1 2005/05/07 16:59:59 brianp Exp $ */ +/* $Id: xform4.S,v 1.2 2006/04/17 18:58:24 krh Exp $ */ /* * Mesa 3-D graphics library @@ -456,3 +456,7 @@ p4_2d_done: ret #endif + +#if defined (__ELF__) && defined (__linux__) + .section .note.GNU-stack,"",%progbits +#endif -- cgit v1.2.3