#define MEMPCPY_P (defined memcpy)
.text
-#if defined PIC && !defined NOT_IN_libc
+#if defined __PIC__ && !defined NOT_IN_libc
ENTRY (__memcpy_chk)
cmpq %rdx, %rcx
jb HIDDEN_JUMPTARGET (__chk_fail)
#define LARGE $120000
.text
-#if !BZERO_P && defined PIC && !defined NOT_IN_libc
+#if !BZERO_P && defined __PIC__ && !defined NOT_IN_libc
ENTRY (__memset_chk)
cmpq %rdx, %rcx
jb HIDDEN_JUMPTARGET (__chk_fail)
libc_hidden_def(memset)
#endif
-#if !BZERO_P && defined PIC && !defined NOT_IN_libc
+#if !BZERO_P && defined __PIC__ && !defined NOT_IN_libc
strong_alias (__memset_chk, __memset_zero_constant_len_parameter)
#endif
#define LITERAL_POSITION .literal_position
#undef JUMPTARGET
-#ifdef PIC
+#ifdef __PIC__
/* The "@PLT" suffix is currently a no-op for non-shared linking, but
it doesn't hurt to use it conditionally for PIC code in case that
changes someday. */
# define __local_multiple_threads __libc_multiple_threads
# endif
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE bsr ra, __local_enable_asynccancel !samegp
# define CDISABLE bsr ra, __local_disable_asynccancel !samegp
# else
/* We push lr onto the stack, so we have to use ldmib instead of ldmia
to find the saved arguments. */
-# ifdef PIC
+# ifdef __PIC__
# undef DOARGS_5
# undef DOARGS_6
# undef DOARGS_7
extern int __local_multiple_threads attribute_hidden;
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
# else
-# if !defined PIC
+# if !defined __PIC__
# define SINGLE_THREAD_P \
ldr ip, =__local_multiple_threads; \
ldr ip, [ip]; \
# define POPARGS_6 POPARGS_5 ldw -54(%sr0,%sp), %r21 ASM_LINE_SEP
# ifdef IS_IN_libpthread
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE .import __pthread_enable_asynccancel,code ASM_LINE_SEP \
bl __pthread_enable_asynccancel,%r2 ASM_LINE_SEP
# define CDISABLE .import __pthread_disable_asynccancel,code ASM_LINE_SEP \
bl __pthread_disable_asynccancel,%r2 ASM_LINE_SEP
# endif
# elif !defined NOT_IN_libc
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE .import __libc_enable_asynccancel,code ASM_LINE_SEP \
bl __libc_enable_asynccancel,%r2 ASM_LINE_SEP
# define CDISABLE .import __libc_disable_asynccancel,code ASM_LINE_SEP \
bl __libc_disable_asynccancel,%r2 ASM_LINE_SEP
# endif
# else
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE .import __librt_enable_asynccancel,code ASM_LINE_SEP \
bl __librt_enable_asynccancel,%r2 ASM_LINE_SEP
# define CDISABLE .import __librt_disable_asynccancel,code ASM_LINE_SEP \
nop ASM_LINE_SEP \
ldw MULTIPLE_THREADS_OFFSET(%sr0,%ret0),%ret0 ASM_LINE_SEP \
Lstp: ASM_LINE_SEP
-# ifdef PIC
+# ifdef __PIC__
/* Slower version uses GOT to get value of __local_multiple_threads */
# define SINGLE_THREAD_P \
addil LT%__local_multiple_threads, %r19 ASM_LINE_SEP \
# define CENABLE call __pthread_enable_asynccancel;
# define CDISABLE call __pthread_disable_asynccancel
# elif defined IS_IN_librt
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE pushl %ebx; \
call __i686.get_pc_thunk.bx; \
addl $_GLOBAL_OFFSET_TABLE_, %ebx; \
#endif
# ifndef __ASSEMBLER__
-# if defined FLOATING_STACKS && USE___THREAD && defined PIC
+# if defined FLOATING_STACKS && USE___THREAD && defined __PIC__
# define SINGLE_THREAD_P \
__builtin_expect (THREAD_GETMEM (THREAD_SELF, \
p_header.data.multiple_threads) == 0, 1)
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
# endif
# else
-# if !defined PIC
+# if !defined __PIC__
# define SINGLE_THREAD_P cmpl $0, __local_multiple_threads
# elif defined FLOATING_STACKS && USE___THREAD
# define SINGLE_THREAD_P cmpl $0, %gs:MULTIPLE_THREADS_OFFSET
# define UNDOCARGS_5 UNDOCARGS_4; move.l (%sp)+, %d5;
# ifdef IS_IN_libpthread
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE jbsr __pthread_enable_asynccancel@PLTPC
# define CDISABLE jbsr __pthread_disable_asynccancel@PLTPC
# else
# define CDISABLE jbsr __pthread_disable_asynccancel
# endif
# elif !defined NOT_IN_libc
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE jbsr __libc_enable_asynccancel@PLTPC
# define CDISABLE jbsr __libc_disable_asynccancel@PLTPC
# else
# define CDISABLE jbsr __libc_disable_asynccancel
# endif
# else
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE jbsr __librt_enable_asynccancel@PLTPC
# define CDISABLE jbsr __librt_disable_asynccancel@PLTPC
# else
extern int __local_multiple_threads attribute_hidden;
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
# else
-# if !defined PIC
+# if !defined __PIC__
# define SINGLE_THREAD_P tst.l __local_multiple_threads
# else
# define SINGLE_THREAD_P tst.l (__local_multiple_threads, %pc)
movel %a0,%sp@-
# ifdef __ASSUME_VFORK_SYSCALL
-# ifndef PIC
+# ifndef __PIC__
jbra SYSCALL_ERROR_LABEL
# endif
# else
# else
# define CENABLE bl JUMPTARGET(__librt_enable_asynccancel)
# define CDISABLE bl JUMPTARGET(__librt_disable_asynccancel)
-# if defined HAVE_AS_REL16 && defined PIC
+# if defined HAVE_AS_REL16 && defined __PIC__
# undef CGOTSETUP
# define CGOTSETUP \
bcl 20,31,1f; \
extern int __local_multiple_threads attribute_hidden;
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
# else
-# if !defined PIC
+# if !defined __PIC__
# define SINGLE_THREAD_P \
lis 10,__local_multiple_threads@ha; \
lwz 10,__local_multiple_threads@l(10); \
# define __local_multiple_threads __librt_multiple_threads
# endif
-# if defined IS_IN_librt && defined PIC
+# if defined IS_IN_librt && defined __PIC__
# define CENABLE \
mov.l r12,@-r15; \
mov.l 1f,r12; \
# endif
# ifndef __ASSEMBLER__
-# if defined FLOATING_STACKS && USE___THREAD && defined PIC
+# if defined FLOATING_STACKS && USE___THREAD && defined __PIC__
# define SINGLE_THREAD_P \
__builtin_expect (THREAD_GETMEM (THREAD_SELF, p_multiple_threads) == 0, 1)
# else
# define SINGLE_THREAD_P __builtin_expect (__local_multiple_threads == 0, 1)
# endif
# else
-# if !defined PIC
+# if !defined __PIC__
# define SINGLE_THREAD_P \
mov.l 1f,r0; \
mov.l @r0,r0; \
END (name)
#undef JUMPTARGET
-#ifdef PIC
+#ifdef __PIC__
#define JUMPTARGET(name) name##@PLT
#define SYSCALL_PIC_SETUP \
pushl %ebx; \
# error Unsupported library
# endif
-# ifdef PIC
+# ifdef __PIC__
# define CENABLE bsr ra, __local_enable_asynccancel !samegp
# define CDISABLE bsr ra, __local_disable_asynccancel !samegp
# else
ret
1:
-#ifdef PIC
+#ifdef __PIC__
call __x86.get_pc_thunk.bx
#else
movl $4f, %ebx
weak_alias(__new_sem_post, sem_post)
-#ifdef PIC
+#ifdef __PIC__
.section .gnu.linkonce.t.__x86.get_pc_thunk.bx,"ax",@progbits
.globl __x86.get_pc_thunk.bx
.hidden __x86.get_pc_thunk.bx
cfi_offset(3, -16) /* %ebx */
3: negl %esi
6:
-#ifdef PIC
+#ifdef __PIC__
call __x86.get_pc_thunk.bx
#else
movl $4f, %ebx
ret
1:
-#ifdef PIC
+#ifdef __PIC__
call __x86.get_pc_thunk.cx
#else
movl $3f, %ecx
weak_alias(__new_sem_trywait, sem_trywait)
-#ifdef PIC
+#ifdef __PIC__
.section .gnu.linkonce.t.__x86.get_pc_thunk.cx,"ax",@progbits
.globl __x86.get_pc_thunk.cx
.hidden __x86.get_pc_thunk.cx
cmpl $-EWOULDBLOCK, %esi
je 3b
negl %esi
-#ifdef PIC
+#ifdef __PIC__
call __x86.get_pc_thunk.bx
#else
movl $4f, %ebx
#define LLL_MUTEX_LOCK_INITIALIZER_WAITERS (2)
-#ifdef PIC
+#ifdef __PIC__
# define LLL_EBX_LOAD "xchgl %2, %%ebx\n"
# define LLL_EBX_REG "D"
#else
/* Not yet initialized or initialization in progress.
Get the fork generation counter now. */
6: movl (%ebx), %eax
-#ifdef PIC
+#ifdef __PIC__
call __x86.get_pc_thunk.cx
addl $_GLOBAL_OFFSET_TABLE_, %ecx
#endif
jnz 4f
andl $3, %edx
-#ifdef PIC
+#ifdef __PIC__
orl __fork_generation@GOTOFF(%ecx), %edx
#else
orl __fork_generation, %edx
pthread_once = __pthread_once
-#ifdef PIC
+#ifdef __PIC__
.section .gnu.linkonce.t.__x86.get_pc_thunk.cx,"ax",@progbits
.globl __x86.get_pc_thunk.cx
.hidden __x86.get_pc_thunk.cx
/* We don't want the label for the error handle to be global when we define
it here. */
-#ifdef PIC
+#ifdef __PIC__
# define SYSCALL_ERROR_LABEL 0f
#else
# define SYSCALL_ERROR_LABEL syscall_error
#define ret_ERRVAL ret
-#ifndef PIC
+#ifndef __PIC__
# define SYSCALL_ERROR_HANDLER /* Nothing here; code in sysdep.S is used. */
#else
orl $-1, %eax; \
jmp L(pseudo_end);
# endif /* _LIBC_REENTRANT */
-#endif /* PIC */
+#endif /* __PIC__ */
/* The original calling convention for system calls on Linux/i386 is
# elif defined IS_IN_librt
# define CENABLE bl JUMPTARGET(__librt_enable_asynccancel)
# define CDISABLE bl JUMPTARGET(__librt_disable_asynccancel)
-# if defined HAVE_AS_REL16 && defined PIC
+# if defined HAVE_AS_REL16 && defined __PIC__
# undef CGOTSETUP
# define CGOTSETUP \
bcl 20,31,1f; \
mov r4, r8
mov r5, r9
mov r6, r13
-#ifdef PIC
+#ifdef __PIC__
mova .Lgot0, r0
mov.l .Lgot0, r12
add r0, r12
bt 2f
bra 1f
nop
-#ifdef PIC
+#ifdef __PIC__
.align 2
.Lgot0:
.long _GLOBAL_OFFSET_TABLE_
.LcallUR:
mov.l .Lresume, r1
-#ifdef PIC
+#ifdef __PIC__
add r12, r1
#endif
jsr @r1
.Lmlocki5:
.long __pthread_mutex_cond_lock-.Lmlocki5b
.Lresume:
-#ifdef PIC
+#ifdef __PIC__
.long _Unwind_Resume@GOTOFF
#else
.long _Unwind_Resume
.Lalloc:
mov r4, r8
mov r5, r9
-#ifdef PIC
+#ifdef __PIC__
mova .Lgot0, r0
mov.l .Lgot0, r12
add r0, r12
bt 2f
bra 1f
nop
-#ifdef PIC
+#ifdef __PIC__
.align 2
.Lgot0:
.long _GLOBAL_OFFSET_TABLE_
.LcallUR:
mov.l .Lresume, r1
-#ifdef PIC
+#ifdef __PIC__
add r12, r1
#endif
jsr @r1
.Lmlocki3:
.long __pthread_mutex_cond_lock-.Lmlocki3b
.Lresume:
-#ifdef PIC
+#ifdef __PIC__
.long _Unwind_Resume@GOTOFF
#else
.long _Unwind_Resume
and #3, r0
mov.l .Lfgen, r2
-#ifdef PIC
+#ifdef __PIC__
add r12, r2
#endif
mov.l @r2, r3
.align 2
.Lgot:
.long _GLOBAL_OFFSET_TABLE_
-#ifdef PIC
+#ifdef __PIC__
.Lfgen:
.long __fork_generation@GOTOFF
#else
#define ret_ERRVAL ret
-#ifndef PIC
+#ifndef __PIC__
# define SYSCALL_ERROR_HANDLER \
mov.l 0f,r1; \
jmp @r1; \
0: .long _GLOBAL_OFFSET_TABLE_; \
1: .long errno@GOT
# endif /* _LIBC_REENTRANT */
-#endif /* PIC */
+#endif /* __PIC__ */
# ifdef NEED_SYSCALL_INST_PAD
# define SYSCALL_INST_PAD \
__lll_robust_timedlock_wait:
cfi_startproc
# ifndef __ASSUME_FUTEX_CLOCK_REALTIME
-# ifdef PIC
+# ifdef __PIC__
cmpl $0, __have_futex_clock_realtime(%rip)
# else
cmpl $0, __have_futex_clock_realtime
addl $(1 << clock_bits), cond_nwaiters(%rdi)
/* Install cancellation handler. */
-#ifdef PIC
+#ifdef __PIC__
leaq __condvar_cleanup(%rip), %rsi
#else
leaq __condvar_cleanup, %rsi
addl $(1 << clock_bits), cond_nwaiters(%rdi)
/* Install cancellation handler. */
-#ifdef PIC
+#ifdef __PIC__
leaq __condvar_cleanup(%rip), %rsi
#else
leaq __condvar_cleanup, %rsi
/* We don't want the label for the error handle to be global when we define
it here. */
-# ifdef PIC
+# ifdef __PIC__
# define SYSCALL_ERROR_LABEL 0f
# else
# define SYSCALL_ERROR_LABEL syscall_error
# define ret_ERRVAL ret
-# ifndef PIC
+# ifndef __PIC__
# define SYSCALL_ERROR_HANDLER /* Nothing here; code in sysdep.S is used. */
# elif defined(RTLD_PRIVATE_ERRNO)
# define SYSCALL_ERROR_HANDLER \
movl %edx, (%rcx); \
orq $-1, %rax; \
jmp L(pseudo_end);
-# endif /* PIC */
+# endif /* __PIC__ */
/* The Linux/x86-64 kernel expects the system call parameters in
registers according to the following table:
END (name)
#undef JUMPTARGET
-#ifdef PIC
+#ifdef __PIC__
#define JUMPTARGET(name) name##@PLT
#else
#define JUMPTARGET(name) name
: "=r" (__l)); \
__l; })
-# ifdef PIC
+# ifdef __PIC__
# define TLS_IE(x) \
({ int *__l; \
__asm__ ("movl %%gs:0,%0\n\t" \
__l; })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_LD(x) \
({ int *__l, __c, __d; \
__asm__ ("leal " #x "@tlsldm(%%ebx),%%eax\n\t" \
__l; })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_GD(x) \
({ int *__l, __c, __d; \
__asm__ ("leal " #x "@tlsgd(%%ebx),%%eax\n\t" \
: "=r" (__l), "=r" (__tp)); \
__l; })
-# ifdef PIC
+# ifdef __PIC__
# define TLS_IE(x) \
({ int *__l; void *__tp; \
register void *__gp __asm__("r12"); \
__l; })
#endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_LD(x) \
({ int *__l; \
register void *__gp __asm__("r12"); \
__l; })
#endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_GD(x) \
({ int *__l; \
register void *__gp __asm__("r12"); \
: "=a" (__offset) : : "cc" ); \
(int *) (__builtin_thread_pointer() + __offset); })
-# ifdef PIC
+# ifdef __PIC__
# define TLS_IE(x) \
({ unsigned long __offset; \
__asm__ ("bras %0,1f\n" \
(int *) (__builtin_thread_pointer() + __offset); })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_LD(x) \
({ unsigned long __offset, __save12; \
__asm__ ("bras %0,1f\n" \
(int *) (__builtin_thread_pointer() + __offset); })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_GD(x) \
({ unsigned long __offset, __save12; \
__asm__ ("bras %0,1f\n" \
: "=a" (__offset) : : "cc" ); \
(int *) (__builtin_thread_pointer() + __offset); })
-# ifdef PIC
+# ifdef __PIC__
# define TLS_IE(x) \
({ unsigned long __offset; \
__asm__ ("bras %0,1f\n" \
(int *) (__builtin_thread_pointer() + __offset); })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_LD(x) \
({ unsigned long __offset, __save12; \
__asm__ ("bras %0,1f\n" \
(int *) (__builtin_thread_pointer() + __offset); })
# endif
-# ifdef PIC
+# ifdef __PIC__
# define TLS_GD(x) \
({ unsigned long __offset, __save12; \
__asm__ ("bras %0,1f\n" \