VirtualBox

Ticket #15319: 15-no-abi-tag.diff

File 15-no-abi-tag.diff, 3.9 KB (added by Luis Antolin, 8 years ago)

patch for Debian7 wheezy mesa 8.0.5-4 that corrects the 3D problem

  • src/mapi/glapi/gen/gl_x86-64_asm.py

    a b  
    181181
    182182        def printRealFooter(self):
    183183                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 ''
    197184                print '#if defined (__ELF__) && defined (__linux__)'
    198185                print ' .section .note.GNU-stack,"",%progbits'
    199186                print '#endif'
  • src/mapi/glapi/gen/gl_x86_asm.py

    a b  
    189189                print '\t\tALIGNTEXT16'
    190190                print 'GLNAME(gl_dispatch_functions_end):'
    191191                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 ''
    205192                print '#if defined (__ELF__) && defined (__linux__)'
    206193                print ' .section .note.GNU-stack,"",%progbits'
    207194                print '#endif'
  • src/mapi/glapi/glapi_x86-64.S

    a b  
    3744837448        .globl GL_PREFIX(TransformFeedbackVaryings) ; .set GL_PREFIX(TransformFeedbackVaryings), GL_PREFIX(TransformFeedbackVaryingsEXT)
    3744937449        .globl GL_PREFIX(ProvokingVertex) ; .set GL_PREFIX(ProvokingVertex), GL_PREFIX(ProvokingVertexEXT)
    3745037450
    37451 #if defined(GLX_USE_TLS) && defined(__linux__)
    37452         .section ".note.ABI-tag", "a"
    37453         .p2align 2
    37454         .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 2
    37459 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 
    3746437451#if defined (__ELF__) && defined (__linux__)
    3746537452        .section .note.GNU-stack,"",%progbits
    3746637453#endif
  • src/mapi/glapi/glapi_x86.S

    a b  
    15041504                ALIGNTEXT16
    15051505GLNAME(gl_dispatch_functions_end):
    15061506
    1507 #if defined(GLX_USE_TLS) && defined(__linux__)
    1508         .section ".note.ABI-tag", "a"
    1509         .p2align 2
    1510         .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 2
    1515 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 
    15201507#if defined (__ELF__) && defined (__linux__)
    15211508        .section .note.GNU-stack,"",%progbits
    15221509#endif
  • src/mapi/mapi/entry_x86_tls.h

    a b  
    2929#include <string.h>
    3030#include "u_macros.h"
    3131
    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 
    4532__asm__(".text");
    4633
    4734__asm__("x86_current_tls:\n\t"

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy