mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
x86_64: Fix build with RTLD_PRIVATE_ERRNO defined to 1
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include <dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of testing whether it is defined.
This commit is contained in:
parent
6dbe9dcae5
commit
dd28d4ba97
@ -100,6 +100,9 @@
|
||||
cthread_setspecific.
|
||||
* sysdeps/mach/libc-lock.h (__libc_key_create, __libc_setspecific):
|
||||
Likewise.
|
||||
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Always include
|
||||
<dl-sysdep.h>. Test for value of RTLD_PRIVATE_ERRNO instead of
|
||||
testing whether it is defined.
|
||||
|
||||
2018-03-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||
|
||||
|
@ -23,9 +23,8 @@
|
||||
#include <sysdeps/unix/x86_64/sysdep.h>
|
||||
#include <tls.h>
|
||||
|
||||
#if IS_IN (rtld)
|
||||
# include <dl-sysdep.h> /* Defines RTLD_PRIVATE_ERRNO. */
|
||||
#endif
|
||||
/* Defines RTLD_PRIVATE_ERRNO. */
|
||||
#include <dl-sysdep.h>
|
||||
|
||||
/* For Linux we can use the system call table in the header file
|
||||
/usr/include/asm/unistd.h
|
||||
@ -110,7 +109,7 @@
|
||||
|
||||
# define ret_ERRVAL ret
|
||||
|
||||
# if defined PIC && defined RTLD_PRIVATE_ERRNO
|
||||
# if defined PIC && RTLD_PRIVATE_ERRNO
|
||||
# define SYSCALL_SET_ERRNO \
|
||||
lea rtld_errno(%rip), %RCX_LP; \
|
||||
neg %eax; \
|
||||
|
Loading…
Reference in New Issue
Block a user