OSDN Git Service

Fixes to get nptl compiling for x86
authorKhem Raj <raj.khem@gmail.com>
Fri, 19 Feb 2010 08:34:29 +0000 (00:34 -0800)
committerKhem Raj <raj.khem@gmail.com>
Fri, 19 Feb 2010 08:34:29 +0000 (00:34 -0800)
Signed-off-by: Khem Raj <raj.khem@gmail.com>
libpthread/nptl/pthread_atfork.c
libpthread/nptl/sysdeps/unix/sysv/linux/i386/Makefile.arch
libpthread/nptl/sysdeps/unix/sysv/linux/i386/pt-vfork.S

index a11d568..e607d49 100644 (file)
@@ -38,8 +38,8 @@
 #include <fork.h>
 
 /* This is defined by newer gcc version unique for each module.  */
-extern void *__dso_handle __attribute__ ((__weak__,
-                                         __visibility__ ("hidden")));
+extern void *__dso_handle __attribute__ ((__weak__));
+                                         //,__visibility__ ("hidden")));
 
 
 /* Hide the symbol so that no definition but the one locally in the
index 9bb1938..b36c042 100644 (file)
@@ -24,6 +24,7 @@ libc_a_SSRC += i486/libc-lowlevellock.S
 
 
 CFLAGS-OMIT-fork.c = -DNOT_IN_libc=1 -DIS_IN_libpthread=1
+CFLAGS-pt-__syscall_error.c =  -DNOT_IN_libc=1 -DIS_IN_libpthread=1
 
 ifeq ($(UCLIBC_HAS_STDIO_FUTEXES),y)
 CFLAGS-fork.c = -D__USE_STDIO_FUTEXES__
index 7ab222e..aff926a 100644 (file)
@@ -61,7 +61,7 @@ ENTRY (__vfork)
 
        cmpl    $-4095, %eax
        jae     SYSCALL_ERROR_LABEL     /* Branch forward if it failed.  */
-.Lpseudo_end:
+L(pseudo_end):
        ret
 PSEUDO_END (__vfork)