set -e; \
echo " "; \
echo "The path '$(KERNEL_SOURCE)/include/asm' doesn't exist."; \
- echo "I bet you didn't set KERNEL_SOURCE, TARGET_ARCH or UCLIBC_HAS_MMU"; \
+ echo "I bet you did not set KERNEL_SOURCE, TARGET_ARCH or UCLIBC_HAS_MMU"; \
echo "correctly when you configured uClibc. Please fix these settings."; \
echo " "; \
false; \
#define _ERRNO_H
#include <bits/errno.h>
-#ifdef PIC
+#ifdef __PIC__
.section .bss
.align 3
.globl __curbrk
/* Call __sigjmp_save. */
pushl $1
pushl 8(%esp)
-#ifdef PIC
+#ifdef __PIC__
/* We cannot use the PLT, because it requires that %ebx be set, but
we can't save and restore our caller's value. Instead, we do an
indirect jump through the GOT, using for the temporary register
CLONE_ERROR_LABEL:
negl %eax
pushl %eax
-#ifdef PIC
- call L(here)
-L(here):
+#ifdef __PIC__
+ call .Lhere
+.Lhere:
popl %ebx
- addl $_GLOBAL_OFFSET_TABLE_+[.-L(here)], %ebx
+ addl $_GLOBAL_OFFSET_TABLE_+[.- .Lhere ], %ebx
call __errno_location@PLT
#else
call __errno_location
movl %ebp, (3 *4)(%eax)
/* Make a tail call to __sigjmp_save; it takes the same args. */
-#ifdef PIC
+#ifdef __PIC__
/* We cannot use the PLT, because it requires that %ebx be set, but
we can't save and restore our caller's value. Instead, we do an
indirect jump through the GOT, using for the temporary register
cmpl $-4095,%eax
jbe .Ldone
-#ifdef PIC
+#ifdef __PIC__
call Lhere
Lhere:
popl %ebx
movl %eax,errno
#endif /* __UCLIBC_HAS_THREADS__ */
-#endif /* PIC */
+#endif /* __PIC__ */
movl $-1,%eax
.p2align 4,,7
vfork:
popl %ecx
movl $190,%eax
-#ifdef PIC
+#ifdef __PIC__
pushl %ebx
#endif
#APP
int $0x80
#NO_APP
-#ifdef PIC
+#ifdef __PIC__
popl %ebx
#endif
cmpl $-4095,%eax
.Lerror:
pushl %ecx
-#ifdef PIC
+#ifdef __PIC__
pushl %ebx
call .Lhere
.Lhere:
movl %eax,errno
#endif /* __UCLIBC_HAS_THREADS__ */
-#endif /* PIC */
+#endif /* __PIC__ */
movl $-1,%eax
ret
#include <asm/asm.h>
#include <asm/regdef.h>
-#ifdef PIC
+#ifdef __PIC__
.option pic2
#endif
.text
stw r10,40(r1)
stw r4, 44(r1)
stw r5, 8(r1)
-#ifdef PIC
+#ifdef __PIC__
bl __mcount_internal@plt
#else
bl __mcount_internal
#endif
}
-#ifndef PIC
+#ifndef __PIC__
/* We need a hook to force the cancelation wrappers to be linked in when
static libpthread is used. */
extern const int __pthread_provide_wrappers;
}
}
-#if defined PIC && DO_VERSIONING
+#if defined __PIC__ && DO_VERSIONING
symbol_version (__old_sem_init, sem_init, GLIBC_2.0);
symbol_version (__old_sem_wait, sem_wait, GLIBC_2.0);
symbol_version (__old_sem_trywait, sem_trywait, GLIBC_2.0);
#endif
-#ifndef PIC
+#ifndef __PIC__
/* We need a hook to force the cancelation wrappers to be linked in when
static libpthread is used. */
extern const int __pthread_provide_wrappers;
*/
/* Those are pthread functions which return 0 if successful. */
-//#if defined __HAVE_ELF__ && defined PIC && defined DO_VERSIONING
+//#if defined __HAVE_ELF__ && defined __PIC__ && defined DO_VERSIONING
//weak_alias (__pthread_return_0, __libc_pthread_attr_init_2_0)
//symbol_version (__libc_pthread_attr_init_2_0, pthread_attr_init, GLIBC_2.0);
//weak_alias (__pthread_return_0, __libc_pthread_attr_init_2_1)
#include <sys/syscall.h>
-#ifndef PIC
+#ifndef __PIC__
/* We need a hook to force this file to be linked in when static
libpthread is used. */
const int __pthread_provide_wrappers = 0;