|
|
bca718 |
commit eb72478a286e0104f5636d21d86407b4c0e89fa1
|
|
|
bca718 |
Author: Siddhesh Poyarekar <siddhesh@redhat.com>
|
|
|
bca718 |
Date: Thu Aug 21 10:26:46 2014 +0530
|
|
|
bca718 |
|
|
|
bca718 |
Remove unnecessary uses of NOT_IN_libc
|
|
|
bca718 |
|
|
|
bca718 |
If a IS_IN_* macro is defined, then NOT_IN_libc is always defined,
|
|
|
bca718 |
except obviously for IS_IN_libc. There's no need to check for both.
|
|
|
bca718 |
Verified on x86_64 and i686 that the source is unchanged.
|
|
|
bca718 |
|
|
|
bca718 |
* include/libc-symbols.h: Remove unnecessary check for
|
|
|
bca718 |
NOT_IN_libc.
|
|
|
bca718 |
* nptl/pthreadP.h: Likewise.
|
|
|
bca718 |
* sysdeps/aarch64/setjmp.S: Likewise.
|
|
|
bca718 |
* sysdeps/alpha/setjmp.S: Likewise.
|
|
|
bca718 |
* sysdeps/arm/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/i386/setjmp.S: Likewise.
|
|
|
bca718 |
* sysdeps/m68k/setjmp.c: Likewise.
|
|
|
bca718 |
* sysdeps/posix/getcwd.c: Likewise.
|
|
|
bca718 |
* sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
|
|
|
bca718 |
* sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
|
|
|
bca718 |
* sysdeps/s390/s390-32/setjmp.S: Likewise.
|
|
|
bca718 |
* sysdeps/s390/s390-64/setjmp.S: Likewise.
|
|
|
bca718 |
* sysdeps/sh/sh3/setjmp.S: Likewise.
|
|
|
bca718 |
* sysdeps/sh/sh4/setjmp.S: Likewise.
|
|
|
bca718 |
* sysdeps/unix/alpha/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
|
|
|
bca718 |
* sysdeps/x86_64/setjmp.S: Likewise.
|
|
|
bca718 |
Index: glibc-2.17-c758a686/include/libc-symbols.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/include/libc-symbols.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/include/libc-symbols.h
|
|
|
bca718 |
@@ -561,7 +561,7 @@ for linking")
|
|
|
bca718 |
# define libc_hidden_data_ver(local, name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
# define rtld_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define rtld_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define rtld_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
@@ -579,7 +579,7 @@ for linking")
|
|
|
bca718 |
# define rtld_hidden_data_ver(local, name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libm
|
|
|
bca718 |
+#ifdef IS_IN_libm
|
|
|
bca718 |
# define libm_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define libm_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define libm_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
@@ -597,7 +597,7 @@ for linking")
|
|
|
bca718 |
# define libm_hidden_data_ver(local, name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libresolv
|
|
|
bca718 |
+#ifdef IS_IN_libresolv
|
|
|
bca718 |
# define libresolv_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define libresolv_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define libresolv_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
@@ -615,7 +615,7 @@ for linking")
|
|
|
bca718 |
# define libresolv_hidden_data_ver(local, name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_librt
|
|
|
bca718 |
+#ifdef IS_IN_librt
|
|
|
bca718 |
# define librt_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define librt_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define librt_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
@@ -633,7 +633,7 @@ for linking")
|
|
|
bca718 |
# define librt_hidden_data_ver(local, name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libdl
|
|
|
bca718 |
+#ifdef IS_IN_libdl
|
|
|
bca718 |
# define libdl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define libdl_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define libdl_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
@@ -651,7 +651,7 @@ for linking")
|
|
|
bca718 |
# define libdl_hidden_data_ver(local, name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libnss_files
|
|
|
bca718 |
+#ifdef IS_IN_libnss_files
|
|
|
bca718 |
# define libnss_files_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define libnss_files_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define libnss_files_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
@@ -669,7 +669,7 @@ for linking")
|
|
|
bca718 |
# define libnss_files_hidden_data_ver(local, name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libnsl
|
|
|
bca718 |
+#ifdef IS_IN_libnsl
|
|
|
bca718 |
# define libnsl_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define libnsl_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define libnsl_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
@@ -687,7 +687,7 @@ for linking")
|
|
|
bca718 |
# define libnsl_hidden_data_ver(local, name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libnss_nisplus
|
|
|
bca718 |
+#ifdef IS_IN_libnss_nisplus
|
|
|
bca718 |
# define libnss_nisplus_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define libnss_nisplus_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define libnss_nisplus_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
@@ -713,7 +713,7 @@ for linking")
|
|
|
bca718 |
# define HIDDEN_BUILTIN_JUMPTARGET(name) HIDDEN_JUMPTARGET(name)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libutil
|
|
|
bca718 |
+#ifdef IS_IN_libutil
|
|
|
bca718 |
# define libutil_hidden_proto(name, attrs...) hidden_proto (name, ##attrs)
|
|
|
bca718 |
# define libutil_hidden_def(name) hidden_def (name)
|
|
|
bca718 |
# define libutil_hidden_weak(name) hidden_weak (name)
|
|
|
bca718 |
Index: glibc-2.17-c758a686/nptl/pthreadP.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/nptl/pthreadP.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/nptl/pthreadP.h
|
|
|
bca718 |
@@ -239,7 +239,7 @@ extern void __pthread_register_cancel (_
|
|
|
bca718 |
__cleanup_fct_attribute;
|
|
|
bca718 |
extern void __pthread_unregister_cancel (__pthread_unwind_buf_t *__buf)
|
|
|
bca718 |
__cleanup_fct_attribute;
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libpthread
|
|
|
bca718 |
+#ifdef IS_IN_libpthread
|
|
|
bca718 |
hidden_proto (__pthread_unwind)
|
|
|
bca718 |
hidden_proto (__pthread_unwind_next)
|
|
|
bca718 |
hidden_proto (__pthread_register_cancel)
|
|
|
bca718 |
@@ -283,13 +283,13 @@ __do_cancel (void)
|
|
|
bca718 |
# define LIBC_CANCEL_HANDLED() \
|
|
|
bca718 |
__asm (".globl " __SYMBOL_PREFIX "__libc_enable_asynccancel"); \
|
|
|
bca718 |
__asm (".globl " __SYMBOL_PREFIX "__libc_disable_asynccancel")
|
|
|
bca718 |
-#elif defined NOT_IN_libc && defined IS_IN_libpthread
|
|
|
bca718 |
+#elif defined IS_IN_libpthread
|
|
|
bca718 |
# define LIBC_CANCEL_ASYNC() CANCEL_ASYNC ()
|
|
|
bca718 |
# define LIBC_CANCEL_RESET(val) CANCEL_RESET (val)
|
|
|
bca718 |
# define LIBC_CANCEL_HANDLED() \
|
|
|
bca718 |
__asm (".globl " __SYMBOL_PREFIX "__pthread_enable_asynccancel"); \
|
|
|
bca718 |
__asm (".globl " __SYMBOL_PREFIX "__pthread_disable_asynccancel")
|
|
|
bca718 |
-#elif defined NOT_IN_libc && defined IS_IN_librt
|
|
|
bca718 |
+#elif defined IS_IN_librt
|
|
|
bca718 |
# define LIBC_CANCEL_ASYNC() \
|
|
|
bca718 |
__librt_enable_asynccancel ()
|
|
|
bca718 |
# define LIBC_CANCEL_RESET(val) \
|
|
|
bca718 |
@@ -344,7 +344,7 @@ extern int __make_stacks_executable (voi
|
|
|
bca718 |
|
|
|
bca718 |
/* longjmp handling. */
|
|
|
bca718 |
extern void __pthread_cleanup_upto (__jmp_buf target, char *targetframe);
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libpthread
|
|
|
bca718 |
+#ifdef IS_IN_libpthread
|
|
|
bca718 |
hidden_proto (__pthread_cleanup_upto)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
@@ -489,7 +489,7 @@ extern int __pthread_enable_asynccancel
|
|
|
bca718 |
extern void __pthread_disable_asynccancel (int oldtype)
|
|
|
bca718 |
internal_function attribute_hidden;
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_libpthread
|
|
|
bca718 |
+#ifdef IS_IN_libpthread
|
|
|
bca718 |
hidden_proto (__pthread_mutex_init)
|
|
|
bca718 |
hidden_proto (__pthread_mutex_destroy)
|
|
|
bca718 |
hidden_proto (__pthread_mutex_lock)
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/posix/getcwd.c
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/posix/getcwd.c
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/posix/getcwd.c
|
|
|
bca718 |
@@ -206,7 +206,7 @@ extern char *alloca ();
|
|
|
bca718 |
|
|
|
bca718 |
#ifdef __ASSUME_ATFCTS
|
|
|
bca718 |
# define __have_atfcts 1
|
|
|
bca718 |
-#elif defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#elif defined IS_IN_rtld
|
|
|
bca718 |
static int __rtld_have_atfcts;
|
|
|
bca718 |
# define __have_atfcts __rtld_have_atfcts
|
|
|
bca718 |
#endif
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/setjmp-common.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc64/setjmp-common.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc64/setjmp-common.S
|
|
|
bca718 |
@@ -212,7 +212,7 @@ L(no_vmx):
|
|
|
bca718 |
#else
|
|
|
bca718 |
li r6,0
|
|
|
bca718 |
#endif
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
li r3,0
|
|
|
bca718 |
blr
|
|
|
bca718 |
#elif defined SHARED
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/s390/s390-32/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/s390/s390-32/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/s390/s390-32/setjmp.S
|
|
|
bca718 |
@@ -57,7 +57,7 @@ ENTRY(__sigsetjmp)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
std %f4,40(%r2)
|
|
|
bca718 |
std %f6,48(%r2)
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
lhi %r2,0
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/s390/s390-64/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/s390/s390-64/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/s390/s390-64/setjmp.S
|
|
|
bca718 |
@@ -63,7 +63,7 @@ ENTRY(__sigsetjmp)
|
|
|
bca718 |
std %f13,120(%r2)
|
|
|
bca718 |
std %f14,128(%r2)
|
|
|
bca718 |
std %f15,136(%r2)
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
lghi %r2,0
|
|
|
bca718 |
br %r14
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/sh/sh3/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/sh/sh3/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/sh/sh3/setjmp.S
|
|
|
bca718 |
@@ -46,7 +46,7 @@ ENTRY (__sigsetjmp)
|
|
|
bca718 |
mov.l r9, @-r4
|
|
|
bca718 |
mov.l r8, @-r4
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
rts
|
|
|
bca718 |
mov #0, r0
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/sh/sh4/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/sh/sh4/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/sh/sh4/setjmp.S
|
|
|
bca718 |
@@ -55,7 +55,7 @@ ENTRY (__sigsetjmp)
|
|
|
bca718 |
mov.l r9, @-r4
|
|
|
bca718 |
mov.l r8, @-r4
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
rts
|
|
|
bca718 |
mov #0, r0
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/i386/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/i386/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/i386/sysdep.h
|
|
|
bca718 |
@@ -521,7 +521,7 @@ asm (".L__X'%ebx = 1\n\t"
|
|
|
bca718 |
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. Using a global variable
|
|
|
bca718 |
is too complicated here since we have no PC-relative addressing mode. */
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
|
|
|
bca718 |
@@ -272,7 +272,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. */
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
|
|
|
bca718 |
@@ -282,7 +282,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. */
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
|
|
|
bca718 |
@@ -367,7 +367,7 @@
|
|
|
bca718 |
_ret; })
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. */
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
|
|
|
bca718 |
@@ -373,7 +373,7 @@
|
|
|
bca718 |
_ret; })
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. */
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sh/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sh/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sh/sysdep.h
|
|
|
bca718 |
@@ -338,7 +338,7 @@
|
|
|
bca718 |
#endif /* __ASSEMBLER__ */
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. Using a global variable
|
|
|
bca718 |
is too complicated here since we have no PC-relative addressing mode. */
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
|
|
|
bca718 |
@@ -126,7 +126,7 @@ ENTRY(name); \
|
|
|
bca718 |
#endif /* __ASSEMBLER__ */
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. */
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
|
|
|
bca718 |
@@ -141,7 +141,7 @@ ENTRY(name); \
|
|
|
bca718 |
#define STACK_BIAS 2047
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. */
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/unix/sysv/linux/x86_64/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/unix/sysv/linux/x86_64/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/unix/sysv/linux/x86_64/sysdep.h
|
|
|
bca718 |
@@ -395,7 +395,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. */
|
|
|
bca718 |
# ifdef __ASSEMBLER__
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/x86_64/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/x86_64/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/x86_64/setjmp.S
|
|
|
bca718 |
@@ -54,7 +54,7 @@ ENTRY (__sigsetjmp)
|
|
|
bca718 |
#endif
|
|
|
bca718 |
movq %rax, (JB_PC*8)(%rdi)
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
xorl %eax, %eax
|
|
|
bca718 |
retq
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/aarch64/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/aarch64/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/aarch64/setjmp.S
|
|
|
bca718 |
@@ -58,7 +58,7 @@ ENTRY (__sigsetjmp)
|
|
|
bca718 |
mov x2, sp
|
|
|
bca718 |
str x2, [x0, #JB_SP<<3]
|
|
|
bca718 |
#endif
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask */
|
|
|
bca718 |
mov w0, #0
|
|
|
bca718 |
RET
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/alpha/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/alpha/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/alpha/setjmp.S
|
|
|
bca718 |
@@ -86,7 +86,7 @@ $sigsetjmp_local:
|
|
|
bca718 |
ldq ra, 0(sp)
|
|
|
bca718 |
addq sp, 16, sp
|
|
|
bca718 |
ret
|
|
|
bca718 |
-#elif defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#elif defined IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
mov 0, v0
|
|
|
bca718 |
ret
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/m68k/setjmp.c
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/m68k/setjmp.c
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/m68k/setjmp.c
|
|
|
bca718 |
@@ -57,7 +57,7 @@ __sigsetjmp (jmp_buf env, int savemask)
|
|
|
bca718 |
: : "m" (env[0].__jmpbuf[0].__fpregs[0]));
|
|
|
bca718 |
#endif
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
return 0;
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/alpha/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/alpha/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/alpha/sysdep.h
|
|
|
bca718 |
@@ -346,7 +346,7 @@ __LABEL(name) \
|
|
|
bca718 |
|
|
|
bca718 |
#include <stdint.h>
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
# ifdef __ASSEMBLER__
|
|
|
bca718 |
# define PTR_MANGLE(dst, src, tmp) \
|
|
|
bca718 |
ldah tmp, __pointer_chk_guard_local($29) !gprelhigh; \
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/i386/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/i386/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/i386/setjmp.S
|
|
|
bca718 |
@@ -51,7 +51,7 @@ ENTRY (BP_SYM (__sigsetjmp))
|
|
|
bca718 |
LEAVE /* pop frame pointer to prepare for tail-call. */
|
|
|
bca718 |
movl %ebp, (JB_BP*4)(%eax) /* Save caller's frame pointer. */
|
|
|
bca718 |
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
xorl %eax, %eax
|
|
|
bca718 |
ret
|
|
|
bca718 |
Index: glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/setjmp-common.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/sysdeps/powerpc/powerpc32/setjmp-common.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/sysdeps/powerpc/powerpc32/setjmp-common.S
|
|
|
bca718 |
@@ -64,7 +64,7 @@ ENTRY (BP_SYM (__sigsetjmp))
|
|
|
bca718 |
stw r29,((JB_GPRS+15)*4)(3)
|
|
|
bca718 |
stw r30,((JB_GPRS+16)*4)(3)
|
|
|
bca718 |
stw r31,((JB_GPRS+17)*4)(3)
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
li r3,0
|
|
|
bca718 |
blr
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/aarch64/sysdep.h
|
|
|
bca718 |
@@ -324,8 +324,9 @@
|
|
|
bca718 |
#endif /* __ASSEMBLER__ */
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling is supported for AArch64. */
|
|
|
bca718 |
-#if (defined NOT_IN_libc && defined IS_IN_rtld) || \
|
|
|
bca718 |
- (!defined SHARED && (!defined NOT_IN_libc || defined IS_IN_libpthread))
|
|
|
bca718 |
+#if (defined IS_IN_rtld) || \
|
|
|
bca718 |
+ (!defined SHARED && (!defined NOT_IN_libc \
|
|
|
bca718 |
+ || defined IS_IN_libpthread))
|
|
|
bca718 |
# ifdef __ASSEMBLER__
|
|
|
bca718 |
# define PTR_MANGLE(dst, src, guard, tmp) \
|
|
|
bca718 |
LDST_PCREL (ldr, guard, tmp, C_SYMBOL_NAME(__pointer_chk_guard_local)); \
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/setjmp.S
|
|
|
bca718 |
@@ -179,7 +179,7 @@ ENTRY(__sigsetjmp)
|
|
|
bca718 |
;;
|
|
|
bca718 |
st8.nta [r2]=r25 // ar.unat
|
|
|
bca718 |
st8.nta [r3]=in0 // &__jmp_buf
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* In ld.so we never save the signal mask. */
|
|
|
bca718 |
;;
|
|
|
bca718 |
#else
|
|
|
bca718 |
Index: glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
|
|
|
bca718 |
===================================================================
|
|
|
bca718 |
--- glibc-2.17-c758a686.orig/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
|
|
|
bca718 |
+++ glibc-2.17-c758a686/ports/sysdeps/unix/sysv/linux/ia64/sysdep.h
|
|
|
bca718 |
@@ -62,7 +62,7 @@
|
|
|
bca718 |
|
|
|
bca718 |
#if defined USE_DL_SYSINFO \
|
|
|
bca718 |
&& (!defined NOT_IN_libc \
|
|
|
bca718 |
- || defined IS_IN_libpthread || defined IS_IN_librt)
|
|
|
bca718 |
+ || IS_IN (libpthread) || defined IS_IN_librt)
|
|
|
bca718 |
# define IA64_USE_NEW_STUB
|
|
|
bca718 |
#else
|
|
|
bca718 |
# undef IA64_USE_NEW_STUB
|
|
|
bca718 |
@@ -361,7 +361,7 @@
|
|
|
bca718 |
#endif /* not __ASSEMBLER__ */
|
|
|
bca718 |
|
|
|
bca718 |
/* Pointer mangling support. */
|
|
|
bca718 |
-#if defined NOT_IN_libc && defined IS_IN_rtld
|
|
|
bca718 |
+#ifdef IS_IN_rtld
|
|
|
bca718 |
/* We cannot use the thread descriptor because in ld.so we use setjmp
|
|
|
bca718 |
earlier than the descriptor is initialized. */
|
|
|
bca718 |
#else
|