OSDN Git Service

linux: Don't emit a .note.ABI-tag section anymore (#26663)
authorAdam Jackson <ajax@redhat.com>
Tue, 23 Apr 2013 18:07:33 +0000 (14:07 -0400)
committerAdam Jackson <ajax@redhat.com>
Thu, 25 Apr 2013 19:51:35 +0000 (15:51 -0400)
We don't support pre-2.6 kernels anyway - the install docs say 2.6.28
for DRI - and apparently this confuses ld.so's sorting when multiple
libGLs are installed.  Just remove it.

Note: this is a candidate for the stable branches.

Acked-by: Kenneth Graunke <kenneth@whitecape.org>
Signed-off-by: Adam Jackson <ajax@redhat.com>
src/mapi/entry_x86-64_tls.h
src/mapi/entry_x86_tls.h
src/mapi/glapi/gen/gl_x86-64_asm.py
src/mapi/glapi/gen/gl_x86_asm.py

index 72d4125..36cad00 100644 (file)
 
 #include "u_macros.h"
 
-#ifdef __linux__
-__asm__(".section .note.ABI-tag, \"a\"\n\t"
-        ".p2align 2\n\t"
-        ".long 1f - 0f\n\t"      /* name length */
-        ".long 3f - 2f\n\t"      /* data length */
-        ".long 1\n\t"            /* note length */
-        "0: .asciz \"GNU\"\n\t"  /* vendor name */
-        "1: .p2align 2\n\t"
-        "2: .long 0\n\t"         /* note data: the ABI tag */
-        ".long 2,4,20\n\t"       /* Minimum kernel version w/TLS */
-        "3: .p2align 2\n\t");    /* pad out section */
-#endif /* __linux__ */
-
 __asm__(".text\n"
         ".balign 32\n"
         "x86_64_entry_start:");
index de91812..58d09ca 100644 (file)
 #include <string.h>
 #include "u_macros.h"
 
-#ifdef __linux__
-__asm__(".section .note.ABI-tag, \"a\"\n\t"
-        ".p2align 2\n\t"
-        ".long 1f - 0f\n\t"      /* name length */
-        ".long 3f - 2f\n\t"      /* data length */
-        ".long 1\n\t"            /* note length */
-        "0: .asciz \"GNU\"\n\t"  /* vendor name */
-        "1: .p2align 2\n\t"
-        "2: .long 0\n\t"         /* note data: the ABI tag */
-        ".long 2,4,20\n\t"       /* Minimum kernel version w/TLS */
-        "3: .p2align 2\n\t");    /* pad out section */
-#endif /* __linux__ */
-
 __asm__(".text");
 
 __asm__("x86_current_tls:\n\t"
index a3548c2..19e0e15 100644 (file)
@@ -181,19 +181,6 @@ class PrintGenericStubs(gl_XML.gl_print_base):
 
     def printRealFooter(self):
         print ''
-        print '#if defined(GLX_USE_TLS) && defined(__linux__)'
-        print '        .section ".note.ABI-tag", "a"'
-        print '        .p2align 2'
-        print '        .long   1f - 0f   /* name length */'
-        print '        .long   3f - 2f   /* data length */'
-        print '        .long   1         /* note length */'
-        print '0:      .asciz "GNU"      /* vendor name */'
-        print '1:      .p2align 2'
-        print '2:      .long   0         /* note data: the ABI tag */'
-        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'
index 8b0f6ee..919bbc0 100644 (file)
@@ -189,19 +189,6 @@ class PrintGenericStubs(gl_XML.gl_print_base):
         print '\t\tALIGNTEXT16'
         print 'GLNAME(gl_dispatch_functions_end):'
         print ''
-        print '#if defined(GLX_USE_TLS) && defined(__linux__)'
-        print '        .section ".note.ABI-tag", "a"'
-        print '        .p2align 2'
-        print '        .long   1f - 0f   /* name length */'
-        print '        .long   3f - 2f   /* data length */'
-        print '        .long   1         /* note length */'
-        print '0:      .asciz "GNU"      /* vendor name */'
-        print '1:      .p2align 2'
-        print '2:      .long   0         /* note data: the ABI tag */'
-        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'