mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-06 09:28:07 +02:00
Add .note.GNU-stack section to assembler files to avoid the default behavior
of requesting executable stacks.
This commit is contained in:
parent
28bc3cdfba
commit
fcdc6a7d24
25 changed files with 115 additions and 15 deletions
|
|
@ -493,3 +493,7 @@ GLOBL( _sse_MultiTexCoord2f_2 )
|
|||
ret
|
||||
GLOBL( _sse_MultiTexCoord2f_2_end )
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -492,3 +492,7 @@ GLOBL( _sse_MultiTexCoord2f_2 )
|
|||
ret
|
||||
GLOBL( _sse_MultiTexCoord2f_2_end )
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -190,6 +190,10 @@ class PrintGenericStubs(gl_XML.gl_print_base):
|
|||
print ' .long 2,4,20 /* Minimum kernel version w/TLS */'
|
||||
print '3: .p2align 2 /* pad out section */'
|
||||
print '#endif /* GLX_USE_TLS */'
|
||||
print ''
|
||||
print '#if defined (__ELF__) && defined (__linux__)'
|
||||
print ' .section .note.GNU-stack,"",%progbits'
|
||||
print '#endif'
|
||||
return
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -188,6 +188,10 @@ class PrintGenericStubs(gl_XML.gl_print_base):
|
|||
print ' .long 2,4,20 /* Minimum kernel version w/TLS */'
|
||||
print '3: .p2align 2 /* pad out section */'
|
||||
print '#endif /* GLX_USE_TLS */'
|
||||
print ''
|
||||
print '#if defined (__ELF__) && defined (__linux__)'
|
||||
print ' .section .note.GNU-stack,"",%progbits'
|
||||
print '#endif'
|
||||
return
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -555,3 +555,7 @@ GLOBL( _tnl_x86_dispatch_vertexattribfv )
|
|||
ret $8 /* return */
|
||||
GLOBL( _tnl_x86_dispatch_vertexattribfv_end )
|
||||
#endif /* defined (STDCALL_API) */
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: 3dnow_normal.S,v 1.9 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: 3dnow_normal.S,v 1.10 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -846,3 +846,7 @@ LLBL (G3R_end):
|
|||
RET
|
||||
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: 3dnow_xform1.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: 3dnow_xform1.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -431,3 +431,7 @@ LLBL( G3TP3R_3 ):
|
|||
RET
|
||||
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: 3dnow_xform2.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: 3dnow_xform2.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -471,3 +471,7 @@ LLBL( G3TPIR_4 ):
|
|||
POP_L ( ESI )
|
||||
RET
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: 3dnow_xform3.S,v 1.4 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: 3dnow_xform3.S,v 1.5 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -555,3 +555,7 @@ LLBL( G3TPIR_2 ):
|
|||
POP_L ( ESI )
|
||||
RET
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: 3dnow_xform4.S,v 1.4 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: 3dnow_xform4.S,v 1.5 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -564,3 +564,7 @@ LLBL( G3TPIR_2 ):
|
|||
POP_L ( ESI )
|
||||
RET
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -213,3 +213,7 @@ GLNAME( _mesa_test_os_sse_exception_support ):
|
|||
|
||||
#endif
|
||||
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1156,3 +1156,7 @@ GLNAME(gl_dispatch_functions_end):
|
|||
.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
|
||||
|
|
|
|||
|
|
@ -364,3 +364,7 @@ TWO(MOVQ ( MM1, REGIND(rgba) ))
|
|||
#include "mmx_blendtmp.h"
|
||||
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -687,3 +687,7 @@ _generic_read_RGBA_span_RGB565_MMX:
|
|||
#endif
|
||||
ret
|
||||
#endif /* !defined(__DJGPP__) && !defined(__MINGW32__) */
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sse_normal.S,v 1.5 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: sse_normal.S,v 1.6 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -255,3 +255,7 @@ LLBL(K_G3TNNRR_finish):
|
|||
RET
|
||||
#undef FRAME_OFFSET
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sse_xform1.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: sse_xform1.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -440,3 +440,7 @@ LLBL(K_GTP13P3DR_finish):
|
|||
RET
|
||||
#undef FRAME_OFFSET
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sse_xform2.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: sse_xform2.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -459,3 +459,7 @@ LLBL(K_GTP23P3DR_finish):
|
|||
RET
|
||||
#undef FRAME_OFFSET
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sse_xform3.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: sse_xform3.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -505,3 +505,7 @@ LLBL(K_GTP3P3DR_finish):
|
|||
RET
|
||||
#undef FRAME_OFFSET
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: sse_xform4.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: sse_xform4.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -229,3 +229,7 @@ LLBL( sse_identity_done ):
|
|||
POP_L( ESI )
|
||||
RET
|
||||
#endif
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: x86_cliptest.S,v 1.11 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: x86_cliptest.S,v 1.12 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -401,3 +401,7 @@ LLBL(ctp4_np_finish):
|
|||
POP_L( ESI )
|
||||
|
||||
RET
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: x86_xform2.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: x86_xform2.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -568,3 +568,7 @@ LLBL(x86_p2_ir_done):
|
|||
POP_L( ESI )
|
||||
RET
|
||||
#undef FRAME_OFFSET
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: x86_xform3.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: x86_xform3.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -638,3 +638,7 @@ LLBL(x86_p3_ir_done):
|
|||
POP_L( EDI )
|
||||
POP_L( ESI )
|
||||
RET
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
/* $Id: x86_xform4.S,v 1.3 2005/01/04 14:33:47 brianp Exp $ */
|
||||
/* $Id: x86_xform4.S,v 1.4 2006/04/17 18:58:24 krh Exp $ */
|
||||
|
||||
/*
|
||||
* Mesa 3-D graphics library
|
||||
|
|
@ -671,3 +671,7 @@ LLBL(x86_p4_ir_done):
|
|||
POP_L( EDI )
|
||||
POP_L( ESI )
|
||||
RET
|
||||
|
||||
#if defined (__ELF__) && defined (__linux__)
|
||||
.section .note.GNU-stack,"",%progbits
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue