patches/glibc/2.5/glibc-2.4-i686-assembler.patch
author "Yann E. MORIN" <yann.morin.1998@anciens.enib.fr>
Sun May 27 20:22:06 2007 +0000 (2007-05-27)
changeset 136 22b5ef41df97
permissions -rw-r--r--
Merge the NPTL stuff.
That still leaves the linuxthreads stuff broken, but it was just before. I don't care anyway. Time to fix that later...
yann@136
     1
2007-02-15  Khem Raj  <kraj@xxxxxxxxxx>
yann@136
     2
yann@136
     3
       * sysdeps/unix/sysv/linux/i386/sysdep.h: Re-define __i686.
yann@136
     4
       * nptl/sysdeps/pthread/pt-initfini.c: Ditto.
yann@136
     5
yann@136
     6
yann@136
     7
yann@136
     8
Index: glibc-2.4/sysdeps/unix/sysv/linux/i386/sysdep.h
yann@136
     9
===================================================================
yann@136
    10
--- glibc-2.4/sysdeps/unix/sysv/linux/i386/sysdep.h	(revision 1469)
yann@136
    11
+++ glibc-2.4/sysdeps/unix/sysv/linux/i386/sysdep.h	(working copy)
yann@136
    12
@@ -29,6 +29,10 @@
yann@136
    13
 #include <dl-sysdep.h>
yann@136
    14
 #include <tls.h>
yann@136
    15
 
yann@136
    16
+#if defined __i686 && defined __ASSEMBLER__
yann@136
    17
+#undef __i686
yann@136
    18
+#define __i686 __i686
yann@136
    19
+#endif
yann@136
    20
 
yann@136
    21
 /* For Linux we can use the system call table in the header file
yann@136
    22
 	/usr/include/asm/unistd.h
yann@136
    23
Index: glibc-2.4/nptl/sysdeps/pthread/pt-initfini.c
yann@136
    24
===================================================================
yann@136
    25
--- glibc-2.4/nptl/sysdeps/pthread/pt-initfini.c	(revision 1469)
yann@136
    26
+++ glibc-2.4/nptl/sysdeps/pthread/pt-initfini.c	(working copy)
yann@136
    27
@@ -45,6 +45,11 @@
yann@136
    28
 /* Embed an #include to pull in the alignment and .end directives. */
yann@136
    29
 asm ("\n#include \"defs.h\"");
yann@136
    30
 
yann@136
    31
+asm ("\n#if defined __i686 && defined __ASSEMBLER__");
yann@136
    32
+asm ("\n#undef __i686");
yann@136
    33
+asm ("\n#define __i686 __i686");
yann@136
    34
+asm ("\n#endif");
yann@136
    35
+
yann@136
    36
 /* The initial common code ends here. */
yann@136
    37
 asm ("\n/*@HEADER_ENDS*/");
yann@136
    38