Ticket #15319: 15-no-abi-tag.diff
| File 15-no-abi-tag.diff, 3.9 KB (added by , 8 years ago) |
|---|
-
src/mapi/glapi/gen/gl_x86-64_asm.py
a b 181 181 182 182 def printRealFooter(self): 183 183 print '' 184 print '#if defined(GLX_USE_TLS) && defined(__linux__)'185 print ' .section ".note.ABI-tag", "a"'186 print ' .p2align 2'187 print ' .long 1f - 0f /* name length */'188 print ' .long 3f - 2f /* data length */'189 print ' .long 1 /* note length */'190 print '0: .asciz "GNU" /* vendor name */'191 print '1: .p2align 2'192 print '2: .long 0 /* note data: the ABI tag */'193 print ' .long 2,4,20 /* Minimum kernel version w/TLS */'194 print '3: .p2align 2 /* pad out section */'195 print '#endif /* GLX_USE_TLS */'196 print ''197 184 print '#if defined (__ELF__) && defined (__linux__)' 198 185 print ' .section .note.GNU-stack,"",%progbits' 199 186 print '#endif' -
src/mapi/glapi/gen/gl_x86_asm.py
a b 189 189 print '\t\tALIGNTEXT16' 190 190 print 'GLNAME(gl_dispatch_functions_end):' 191 191 print '' 192 print '#if defined(GLX_USE_TLS) && defined(__linux__)'193 print ' .section ".note.ABI-tag", "a"'194 print ' .p2align 2'195 print ' .long 1f - 0f /* name length */'196 print ' .long 3f - 2f /* data length */'197 print ' .long 1 /* note length */'198 print '0: .asciz "GNU" /* vendor name */'199 print '1: .p2align 2'200 print '2: .long 0 /* note data: the ABI tag */'201 print ' .long 2,4,20 /* Minimum kernel version w/TLS */'202 print '3: .p2align 2 /* pad out section */'203 print '#endif /* GLX_USE_TLS */'204 print ''205 192 print '#if defined (__ELF__) && defined (__linux__)' 206 193 print ' .section .note.GNU-stack,"",%progbits' 207 194 print '#endif' -
src/mapi/glapi/glapi_x86-64.S
a b 37448 37448 .globl GL_PREFIX(TransformFeedbackVaryings) ; .set GL_PREFIX(TransformFeedbackVaryings), GL_PREFIX(TransformFeedbackVaryingsEXT) 37449 37449 .globl GL_PREFIX(ProvokingVertex) ; .set GL_PREFIX(ProvokingVertex), GL_PREFIX(ProvokingVertexEXT) 37450 37450 37451 #if defined(GLX_USE_TLS) && defined(__linux__)37452 .section ".note.ABI-tag", "a"37453 .p2align 237454 .long 1f - 0f /* name length */37455 .long 3f - 2f /* data length */37456 .long 1 /* note length */37457 0: .asciz "GNU" /* vendor name */37458 1: .p2align 237459 2: .long 0 /* note data: the ABI tag */37460 .long 2,4,20 /* Minimum kernel version w/TLS */37461 3: .p2align 2 /* pad out section */37462 #endif /* GLX_USE_TLS */37463 37464 37451 #if defined (__ELF__) && defined (__linux__) 37465 37452 .section .note.GNU-stack,"",%progbits 37466 37453 #endif -
src/mapi/glapi/glapi_x86.S
a b 1504 1504 ALIGNTEXT16 1505 1505 GLNAME(gl_dispatch_functions_end): 1506 1506 1507 #if defined(GLX_USE_TLS) && defined(__linux__)1508 .section ".note.ABI-tag", "a"1509 .p2align 21510 .long 1f - 0f /* name length */1511 .long 3f - 2f /* data length */1512 .long 1 /* note length */1513 0: .asciz "GNU" /* vendor name */1514 1: .p2align 21515 2: .long 0 /* note data: the ABI tag */1516 .long 2,4,20 /* Minimum kernel version w/TLS */1517 3: .p2align 2 /* pad out section */1518 #endif /* GLX_USE_TLS */1519 1520 1507 #if defined (__ELF__) && defined (__linux__) 1521 1508 .section .note.GNU-stack,"",%progbits 1522 1509 #endif -
src/mapi/mapi/entry_x86_tls.h
a b 29 29 #include <string.h> 30 30 #include "u_macros.h" 31 31 32 #ifdef __linux__33 __asm__(".section .note.ABI-tag, \"a\"\n\t"34 ".p2align 2\n\t"35 ".long 1f - 0f\n\t" /* name length */36 ".long 3f - 2f\n\t" /* data length */37 ".long 1\n\t" /* note length */38 "0: .asciz \"GNU\"\n\t" /* vendor name */39 "1: .p2align 2\n\t"40 "2: .long 0\n\t" /* note data: the ABI tag */41 ".long 2,4,20\n\t" /* Minimum kernel version w/TLS */42 "3: .p2align 2\n\t"); /* pad out section */43 #endif /* __linux__ */44 45 32 __asm__(".text"); 46 33 47 34 __asm__("x86_current_tls:\n\t"

