]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
Remove IS_IN_rtld
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Thu, 20 Nov 2014 15:39:43 +0000 (21:09 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Mon, 24 Nov 2014 06:11:48 +0000 (11:41 +0530)
Replace with IS_IN (rtld).  Generated code is unchanged on
x86_64.

        * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
        * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
        * elf/rtld-Rules: Likewise.
        * elf/setup-vdso.h: Likewise.
        * include/assert.h: Likewise.
        * include/bits/stdlib-float.h: Likewise.
        * include/errno.h: Likewise.
        * include/sys/stat.h: Likewise.
        * include/unistd.h: Likewise.
        * sysdeps/aarch64/setjmp.S: Likewise.
        * sysdeps/alpha/setjmp.S: Likewise.
        * sysdeps/arm/__longjmp.S: Likewise.
        * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
        * sysdeps/arm/setjmp.S: Likewise.
        * sysdeps/arm/sysdep.h: Likewise.
        * sysdeps/generic/_itoa.h: Likewise.
        * sysdeps/generic/dl-sysdep.h: Likewise.
        * sysdeps/generic/ldsodefs.h: Likewise.
        * sysdeps/i386/dl-tls.h: Likewise.
        * sysdeps/i386/setjmp.S: Likewise.
        * sysdeps/m68k/setjmp.c: Likewise.
        * sysdeps/mach/hurd/dl-execstack.c: Likewise.
        * sysdeps/mach/hurd/opendir.c: Likewise.
        * sysdeps/posix/getcwd.c: Likewise.
        * sysdeps/posix/opendir.c: Likewise.
        * sysdeps/posix/profil.c: Likewise.
        * sysdeps/powerpc/dl-procinfo.h: Likewise.
        * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
        * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
        * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
        * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
        * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
        * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
        * sysdeps/s390/dl-tls.h: Likewise.
        * sysdeps/s390/s390-32/setjmp.S: Likewise.
        * sysdeps/s390/s390-64/setjmp.S: Likewise.
        * sysdeps/sh/sh3/setjmp.S: Likewise.
        * sysdeps/sh/sh4/setjmp.S: Likewise.
        * sysdeps/unix/alpha/sysdep.h: Likewise.
        * sysdeps/unix/arm/sysdep.S: Likewise.
        * sysdeps/unix/i386/sysdep.S: Likewise.
        * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
        * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
        * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
        * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
        * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
        * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
        * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
        * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
        * sysdeps/unix/x86_64/sysdep.S: Likewise.
        * sysdeps/x86_64/setjmp.S: Likewise.

68 files changed:
ChangeLog
elf/Makefile
elf/dl-open.c
elf/rtld-Rules
elf/setup-vdso.h
include/assert.h
include/bits/stdlib-float.h
include/errno.h
include/sys/stat.h
sysdeps/aarch64/setjmp.S
sysdeps/alpha/setjmp.S
sysdeps/arm/__longjmp.S
sysdeps/arm/aeabi_unwind_cpp_pr1.c
sysdeps/arm/setjmp.S
sysdeps/arm/sysdep.h
sysdeps/generic/_itoa.h
sysdeps/generic/dl-sysdep.h
sysdeps/generic/ldsodefs.h
sysdeps/i386/dl-tls.h
sysdeps/i386/setjmp.S
sysdeps/m68k/setjmp.c
sysdeps/mach/hurd/dl-execstack.c
sysdeps/mach/hurd/opendir.c
sysdeps/posix/getcwd.c
sysdeps/posix/opendir.c
sysdeps/posix/profil.c
sysdeps/powerpc/dl-procinfo.h
sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S
sysdeps/powerpc/powerpc32/fpu/setjmp-common.S
sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h
sysdeps/powerpc/powerpc32/setjmp-common.S
sysdeps/powerpc/powerpc64/__longjmp-common.S
sysdeps/powerpc/powerpc64/setjmp-common.S
sysdeps/s390/dl-tls.h
sysdeps/s390/s390-32/setjmp.S
sysdeps/s390/s390-64/setjmp.S
sysdeps/sh/sh3/setjmp.S
sysdeps/sh/sh4/setjmp.S
sysdeps/unix/alpha/sysdep.h
sysdeps/unix/arm/sysdep.S
sysdeps/unix/i386/sysdep.S
sysdeps/unix/sysv/linux/aarch64/sysdep.h
sysdeps/unix/sysv/linux/getcwd.c
sysdeps/unix/sysv/linux/hppa/lowlevellock.h
sysdeps/unix/sysv/linux/i386/lowlevellock.h
sysdeps/unix/sysv/linux/i386/sysdep.h
sysdeps/unix/sysv/linux/ia64/lowlevellock.h
sysdeps/unix/sysv/linux/ia64/setjmp.S
sysdeps/unix/sysv/linux/ia64/sysdep.h
sysdeps/unix/sysv/linux/lowlevellock-futex.h
sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h
sysdeps/unix/sysv/linux/m68k/m68k-helpers.S
sysdeps/unix/sysv/linux/microblaze/lowlevellock.h
sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h
sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h
sysdeps/unix/sysv/linux/s390/lowlevellock.h
sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h
sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h
sysdeps/unix/sysv/linux/sh/lowlevellock.h
sysdeps/unix/sysv/linux/sh/sysdep.h
sysdeps/unix/sysv/linux/sparc/lowlevellock.h
sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h
sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h
sysdeps/unix/sysv/linux/tile/sysdep.h
sysdeps/unix/sysv/linux/x86_64/lowlevellock.h
sysdeps/unix/sysv/linux/x86_64/sysdep.h
sysdeps/unix/x86_64/sysdep.S
sysdeps/x86_64/setjmp.S

index faeec31775bc439d00427533e385740764c87e6e..ce1559e31ed0113432288b35b7fcb612365b8420 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,76 @@
 2014-11-24  Siddhesh Poyarekar  <siddhesh@redhat.com>
 
+       * elf/Makefile (CPPFLAGS-.os): Remove IS_IN_rtld.
+       * elf/dl-open.c: Use IS_IN (rtld) instead if IS_IN_rtld.
+       * elf/rtld-Rules: Likewise.
+       * elf/setup-vdso.h: Likewise.
+       * include/assert.h: Likewise.
+       * include/bits/stdlib-float.h: Likewise.
+       * include/errno.h: Likewise.
+       * include/sys/stat.h: Likewise.
+       * include/unistd.h: Likewise.
+       * sysdeps/aarch64/setjmp.S: Likewise.
+       * sysdeps/alpha/setjmp.S: Likewise.
+       * sysdeps/arm/__longjmp.S: Likewise.
+       * sysdeps/arm/aeabi_unwind_cpp_pr1.c: Likewise.
+       * sysdeps/arm/setjmp.S: Likewise.
+       * sysdeps/arm/sysdep.h: Likewise.
+       * sysdeps/generic/_itoa.h: Likewise.
+       * sysdeps/generic/dl-sysdep.h: Likewise.
+       * sysdeps/generic/ldsodefs.h: Likewise.
+       * sysdeps/i386/dl-tls.h: Likewise.
+       * sysdeps/i386/setjmp.S: Likewise.
+       * sysdeps/m68k/setjmp.c: Likewise.
+       * sysdeps/mach/hurd/dl-execstack.c: Likewise.
+       * sysdeps/mach/hurd/opendir.c: Likewise.
+       * sysdeps/posix/getcwd.c: Likewise.
+       * sysdeps/posix/opendir.c: Likewise.
+       * sysdeps/posix/profil.c: Likewise.
+       * sysdeps/powerpc/dl-procinfo.h: Likewise.
+       * sysdeps/powerpc/powerpc32/fpu/__longjmp-common.S: Likewise.
+       * sysdeps/powerpc/powerpc32/fpu/setjmp-common.S: Likewise.
+       * sysdeps/powerpc/powerpc32/power4/multiarch/init-arch.h: Likewise.
+       * sysdeps/powerpc/powerpc32/setjmp-common.S: Likewise.
+       * sysdeps/powerpc/powerpc64/__longjmp-common.S: Likewise.
+       * sysdeps/powerpc/powerpc64/setjmp-common.S: Likewise.
+       * sysdeps/s390/dl-tls.h: Likewise.
+       * sysdeps/s390/s390-32/setjmp.S: Likewise.
+       * sysdeps/s390/s390-64/setjmp.S: Likewise.
+       * sysdeps/sh/sh3/setjmp.S: Likewise.
+       * sysdeps/sh/sh4/setjmp.S: Likewise.
+       * sysdeps/unix/alpha/sysdep.h: Likewise.
+       * sysdeps/unix/arm/sysdep.S: Likewise.
+       * sysdeps/unix/i386/sysdep.S: Likewise.
+       * sysdeps/unix/sysv/linux/aarch64/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/getcwd.c: Likewise.
+       * sysdeps/unix/sysv/linux/hppa/nptl/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/i386/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/i386/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/setjmp.S: Likewise.
+       * sysdeps/unix/sysv/linux/ia64/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/lowlevellock-futex.h: Likewise.
+       * sysdeps/unix/sysv/linux/m68k/bits/m68k-vdso.h: Likewise.
+       * sysdeps/unix/sysv/linux/m68k/m68k-helpers.S: Likewise.
+       * sysdeps/unix/sysv/linux/microblaze/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/s390/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/sh/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/sh/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/tile/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/tile/sysdep.h: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/lowlevellock.h: Likewise.
+       * sysdeps/unix/sysv/linux/x86_64/sysdep.h: Likewise.
+       * sysdeps/unix/x86_64/sysdep.S: Likewise.
+       * sysdeps/x86_64/setjmp.S: Likewise.
+
        * include/math.h: Use IS_IN instead of IS_IN_libm.
        * sysdeps/alpha/fpu/s_copysign.c: Likewise.
        * sysdeps/ieee754/ldbl-128ibm/s_copysignl.c: Likewise.
index 3629135221df947d9f89d82c3bbb04ffbbccae22..eef3cb8a64df2e565dc82df47cbee65637ff5b1d 100644 (file)
@@ -444,7 +444,7 @@ CFLAGS-cache.c = $(SYSCONF-FLAGS)
 CFLAGS-rtld.c = $(SYSCONF-FLAGS)
 
 CPPFLAGS-.os += $(if $(filter $(@F),$(patsubst %,%.os,$(all-rtld-routines))),\
-                    -DNOT_IN_libc=1 -DIS_IN_rtld=1)
+                    -DNOT_IN_libc=1)
 
 cpp-srcs-left := $(all-rtld-routines:=.os)
 lib := rtld
index 7cc4cc16e196dd0cc4073eba07f01d247ae29635..dec3d3248e96c4b9ab15f6cf41d53844de851750 100644 (file)
@@ -737,7 +737,7 @@ _dl_show_scope (struct link_map *l, int from)
   _dl_debug_printf ("\n");
 }
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* Return non-zero if ADDR lies within one of L's segments.  */
 int
 internal_function
index 4d22436da25e7775f9edd3e94fedc45f5d52ce9b..65d147f6c4953747c2689ceda02b6d080186ef8e 100644 (file)
@@ -144,6 +144,6 @@ lib := rtld
 include $(patsubst %,$(..)cppflags-iterator.mk,$(cpp-srcs-left))
 
 # This here is the whole point of all the shenanigans.
-rtld-CPPFLAGS := -DNOT_IN_libc=1 -DIS_IN_rtld=1
+rtld-CPPFLAGS := -DNOT_IN_libc=1
 
 endif
index 1057cf000357b98bac187a01460d97dbf16d3a00..a6dcc4e971b08708d129de81106cb1e305bd49c6 100644 (file)
@@ -99,7 +99,7 @@ setup_vdso (struct link_map *main_map __attribute__ ((unused)),
       /* Add the vDSO to the object list.  */
       _dl_add_to_namespace_list (l, LM_ID_BASE);
 
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
       /* Rearrange the list so this DSO appears after rtld_map.  */
       assert (l->l_next == NULL);
       assert (l->l_prev == main_map);
index d0d9259ab33d9f1b8b9cbec811e22cb453bd6b03..abe182fced78b6a5484bfb4747ccff6d22a620eb 100644 (file)
@@ -20,7 +20,7 @@ extern void __assert_fail_base (const char *fmt, const char *assertion,
                                const char *function)
      __THROW  __attribute__ ((__noreturn__));
 
-# if !defined NOT_IN_libc || defined IS_IN_rtld
+# if !defined NOT_IN_libc || IS_IN (rtld)
 hidden_proto (__assert_fail)
 hidden_proto (__assert_perror_fail)
 # endif
index d3f5c5b927507149ea5e7c09a707d98f7f76a812..346631482d61f7a130ab66f6fc191b94116a3649 100644 (file)
@@ -1,4 +1,4 @@
 /* No floating-point inline functions in rtld.  */
-#ifndef IS_IN_rtld
+#if !IS_IN (rtld)
 # include <stdlib/bits/stdlib-float.h>
 #endif
index 8e60288f5070f1dbfccd545009cee00bba63bd05..d650a1545f74cd93c145c588591e40e24982ff4f 100644 (file)
@@ -4,7 +4,7 @@
 
 #if defined _ERRNO_H && !defined _ISOMAC && !defined __cplusplus
 
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 #  include <dl-sysdep.h>
 #  ifndef RTLD_PRIVATE_ERRNO
 #   error "dl-sysdep.h must define RTLD_PRIVATE_ERRNO!"
index 7a65d608c51b02aef2269d3db472cda0f5d1fa38..a44fbec465374cc1b272c5b85cdf72f998c3576b 100644 (file)
@@ -12,7 +12,7 @@ extern __mode_t __umask (__mode_t __mask);
 extern int __mkdir (const char *__path, __mode_t __mode);
 extern int __mknod (const char *__path,
                    __mode_t __mode, __dev_t __dev);
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 hidden_proto (__fxstat)
 hidden_proto (__fxstat64)
 hidden_proto (__lxstat)
index d548dd50184a78b075de0f98ead410d1ec79c121..825186862700b2fd55dd87ac44026fb58dcbe87a 100644 (file)
@@ -63,7 +63,7 @@ ENTRY (__sigsetjmp)
        mov     x2,  sp
        str     x2,  [x0, #JB_SP<<3]
 #endif
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        /* In ld.so we never save the signal mask */
        mov     w0, #0
        RET
index 840b56068dee7ff6464b63f4715e8be26d7bc381..dfa147bc910fc8cc34b32a5303db5ddbdaebbd22 100644 (file)
@@ -86,7 +86,7 @@ $sigsetjmp_local:
        ldq     ra, 0(sp)
        addq    sp, 16, sp
        ret
-#elif defined IS_IN_rtld
+#elif IS_IN (rtld)
        /* In ld.so we never save the signal mask.  */
        mov     0, v0
        ret
index a98395797adb2cf63bea25fd1faa608d3e2ef999..6124631c1071d21ab76104d026fa9c01f2851e4b 100644 (file)
@@ -76,7 +76,7 @@ ENTRY (__longjmp)
 #endif
 
 #ifdef NEED_HWCAP
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
        LDST_PCREL (ldr, a4, a3, \
                    C_SYMBOL_NAME(_rtld_local_ro) \
                    + RTLD_GLOBAL_RO_DL_HWCAP_OFFSET)
index f65061310a0c01990ddcd3e966b2de0255059a87..fa7e9607cd59e1764240ca47391d3e1cac2859b5 100644 (file)
@@ -27,7 +27,7 @@ attribute_hidden
 void
 __aeabi_unwind_cpp_pr0 (void)
 {
-#ifndef IS_IN_rtld
+#if !IS_IN (rtld)
   abort ();
 #endif
 }
@@ -36,7 +36,7 @@ attribute_hidden
 void
 __aeabi_unwind_cpp_pr1 (void)
 {
-#ifndef IS_IN_rtld
+#if !IS_IN (rtld)
   abort ();
 #endif
 }
@@ -45,7 +45,7 @@ attribute_hidden
 void
 __aeabi_unwind_cpp_pr2 (void)
 {
-#ifndef IS_IN_rtld
+#if !IS_IN (rtld)
   abort ();
 #endif
 }
index 6f54ab3b70822d5730696928fc331460da83976f..4dfbf8ed0e2a3b4ef4d22bb1327fa0741de7dbd0 100644 (file)
@@ -57,7 +57,7 @@ ENTRY (__sigsetjmp)
 
 #ifdef NEED_HWCAP
        /* Check if we have a VFP unit.  */
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
        LDST_PCREL (ldr, a3, a4, \
                    C_SYMBOL_NAME(_rtld_local_ro) \
                    + RTLD_GLOBAL_RO_DL_HWCAP_OFFSET)
index 9299be21f7a3fca6faee9297ebc01037138ad0e9..bc86d5a4e665de4fde5a7a9ee6676d143abffac9 100644 (file)
 #endif
 
 /* Pointer mangling support.  */
-#if (defined IS_IN_rtld || \
+#if (IS_IN (rtld) || \
      (!defined SHARED && (!defined NOT_IN_libc || IS_IN (libpthread))))
 # ifdef __ASSEMBLER__
 #  define PTR_MANGLE_LOAD(guard, tmp)                                  \
index 98e91cce79ecac972bfa62f3300660273ab53e64..8360bafe706ab7aebf2f24dee5b850975f1388ab 100644 (file)
@@ -46,7 +46,7 @@ extern char *_itoa (unsigned long long int value, char *buflim,
 
 extern const char _itoa_upper_digits[];
 extern const char _itoa_lower_digits[];
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 hidden_proto (_itoa_upper_digits)
 hidden_proto (_itoa_lower_digits)
 #endif
index ae0e4be6d18e6f80ae13fc6c613e1b7faea52f1d..1d76aa62598ff57318f1a500dabd8a26305ee90c 100644 (file)
@@ -27,7 +27,7 @@
    all the libc functions that ld.so uses are called without PLT and always
    get the versions linked into ld.so rather than the libc ones.  */
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # define RTLD_PRIVATE_ERRNO 1
 #else
 # define RTLD_PRIVATE_ERRNO 0
index b91a97318ecc271985080665d9be484ff707b184..d07eaac4cb1282eb589ff294fc61acbac89c9a52 100644 (file)
@@ -250,7 +250,7 @@ typedef void (*receiver_fct) (int, const char *, const char *);
 # define GL(name) _##name
 #else
 # define EXTERN
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 #  define GL(name) _rtld_local._##name
 # else
 #  define GL(name) _rtld_global._##name
@@ -409,7 +409,7 @@ struct rtld_global
 #ifdef SHARED
 };
 # define __rtld_global_attribute__
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 #  ifdef HAVE_SDATA_SECTION
 #   define __rtld_local_attribute__ \
            __attribute__ ((visibility ("hidden"), section (".sdata")))
@@ -428,7 +428,7 @@ extern struct rtld_global _rtld_global __rtld_global_attribute__;
 #ifndef SHARED
 # define GLRO(name) _##name
 #else
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 #  define GLRO(name) _rtld_local_ro._##name
 # else
 #  define GLRO(name) _rtld_global_ro._##name
@@ -587,7 +587,7 @@ struct rtld_global_ro
   EXTERN int _dl_pointer_guard;
 };
 # define __rtld_global_attribute__
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 #  define __rtld_local_attribute__ __attribute__ ((visibility ("hidden")))
 extern struct rtld_global_ro _rtld_local_ro
     attribute_relro __rtld_local_attribute__;
@@ -610,7 +610,7 @@ extern const ElfW(Phdr) *_dl_phdr;
 extern size_t _dl_phnum;
 #endif
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* This is the initial value of GL(dl_error_catch_tsd).
    A non-TLS libpthread will change it.  */
 extern void **_dl_initial_error_catch_tsd (void) __attribute__ ((const))
@@ -642,7 +642,7 @@ extern char **_dl_argv
 #endif
      ;
 rtld_hidden_proto (_dl_argv)
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 extern unsigned int _dl_skip_args attribute_hidden
 # ifndef DL_ARGV_NOT_RELRO
      attribute_relro
index 736137254f42b4980e19760caa965f1e3fa3cc01..48809a5da1b1aefc2ae2bf3f01630bc99e73b66c 100644 (file)
@@ -32,7 +32,7 @@ extern void *___tls_get_addr (tls_index *ti)
 extern void *___tls_get_addr_internal (tls_index *ti)
      __attribute__ ((__regparm__ (1))) attribute_hidden;
 
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 /* The special thing about the x86 TLS ABI is that we have two
    variants of the __tls_get_addr function with different calling
    conventions.  The GNU version, which we are mostly concerned here,
index 7204ce0eb585263e6b335eac950713fecd1ea981..ad4d7241341b662f73dc11cf947f2783abbfd9f3 100644 (file)
@@ -46,7 +46,7 @@ ENTRY (__sigsetjmp)
        movl %ecx, (JB_PC*4)(%eax)
        movl %ebp, (JB_BP*4)(%eax) /* Save caller's frame pointer.  */
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        /* In ld.so we never save the signal mask.  */
        xorl %eax, %eax
        ret
index 4ba50a139d33d241641a0cd86228b82417b3e007..cc4d8bd822889a9a4e56cb13d92b9d6f64176735 100644 (file)
@@ -57,7 +57,7 @@ __sigsetjmp (jmp_buf env, int savemask)
                : : "m" (env[0].__jmpbuf[0].__fpregs[0]));
 #endif
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
   /* In ld.so we never save the signal mask.  */
   return 0;
 #else
index 9069efb9cd4537dde4626b4ae49ce8a482d68f1d..c67b5349acbcc3826c422054138b672dcbaef6f7 100644 (file)
@@ -34,7 +34,7 @@ _dl_make_stack_executable (void **stack_endp)
     return EPERM;
   *stack_endp = NULL;
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
   if (__mprotect ((void *)_dl_hurd_data->stack_base, _dl_hurd_data->stack_size,
                  PROT_READ|PROT_WRITE|PROT_EXEC) != 0)
     return errno;
index 570f0856cc067556ee6154988f67b713f4ea1feb..a2c73bcb12d4d98e630bc636fae11ebf9fc70049 100644 (file)
@@ -82,7 +82,7 @@ __opendirat (int dfd, const char *name)
 
   int flags = O_RDONLY | O_NONBLOCK | O_DIRECTORY | O_CLOEXEC;
   int fd;
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
   assert (dfd == AT_FDCWD);
   fd = open_not_cancel_2 (name, flags);
 #else
index 92cb22ef3316d780c78ec8c845927e1c4f1fdf5c..b80107fbd97b499ab908659ff766f6c9d90667ac 100644 (file)
@@ -210,7 +210,7 @@ extern char *alloca ();
 
 #ifdef __ASSUME_ATFCTS
 # define __have_atfcts 1
-#elif defined IS_IN_rtld
+#elif IS_IN (rtld)
 static int __rtld_have_atfcts;
 # define __have_atfcts __rtld_have_atfcts
 #endif
index 2740b3ac29ffffb26b282d8ba40b109be4747534..be234bda8ca473ca793d6de40812c22600fce58b 100644 (file)
@@ -122,7 +122,7 @@ __opendirat (int dfd, const char *name)
   flags |= O_CLOEXEC;
 #endif
   int fd;
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
   assert (dfd == AT_FDCWD);
   fd = open_not_cancel_2 (name, flags);
 #else
index 696c7a6cadde50d9122f975107143cff36b27a0b..54ace22537997da840fa13dd9447e19ac5daf979 100644 (file)
@@ -64,7 +64,7 @@ __profil (u_short *sample_buffer, size_t size, size_t offset, u_int scale)
 {
   struct sigaction act;
   struct itimerval timer;
-#ifndef IS_IN_rtld
+#if !IS_IN (rtld)
   static struct sigaction oact;
   static struct itimerval otimer;
 # define oact_ptr &oact
index 03338316646d4f5f813189a62325c6b9f5ae1a49..5f8d9ab92a322a0dfb71fda8a6726d914f83db18 100644 (file)
@@ -166,7 +166,7 @@ _dl_string_platform (const char *str)
   return -1;
 }
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 static inline int
 __attribute__ ((unused))
 _dl_procinfo (unsigned int type, unsigned long int word)
index 088e389b0e981568a8b628080e39ca8f62919ca0..d8e46823f5d0f245ebac2b6ebd2d4c40b468d1d6 100644 (file)
@@ -35,7 +35,7 @@ ENTRY (__longjmp_symbol)
        addis   r5,r5,_GLOBAL_OFFSET_TABLE_-got_label@ha
        addi    r5,r5,_GLOBAL_OFFSET_TABLE_-got_label@l
 #  ifdef SHARED
-#   ifdef IS_IN_rtld
+#   if IS_IN (rtld)
        /* Inside ld.so we use the local alias to avoid runtime GOT
           relocations.  */
        lwz     r5,_rtld_local_ro@got(r5)
index 926a1b121503da983aded51eb6fcbff5b8f6da18..720da09017faf9807b98bb51f96b5716c4b59415 100644 (file)
@@ -91,7 +91,7 @@ ENTRY (__sigsetjmp_symbol)
        mtlr    r6
        cfi_same_value (lr)
 #  ifdef SHARED
-#   ifdef IS_IN_rtld
+#   if IS_IN (rtld)
        /* Inside ld.so we use the local alias to avoid runtime GOT
           relocations.  */
        lwz     r5,_rtld_local_ro@got(r5)
index 72d720d55ac71115289f621452e8a33defa7679f..ca479d81ef0dd26bbd7d885837fce88337b6b622 100644 (file)
@@ -21,7 +21,7 @@
    the dl_hwcap field. The assembly is to make the compiler not optimize the
    test (&_rtld_global_ro != NULL), which is always true in ISO C (but not
    in that case since _rtld_global_ro might not been realocated yet).  */
-#if defined(SHARED) && !defined(IS_IN_rtld)
+#if defined(SHARED) && !IS_IN (rtld)
 # define __GLRO(value) \
   ({ volatile void **__p = (volatile void**)(&_rtld_global_ro);        \
     unsigned long int __ret;                                   \
index 681b540e8f2161357faf6a92d2677369a0fa69d8..50ff436804dc054a096add3dcfcd291a3322f5eb 100644 (file)
@@ -69,7 +69,7 @@ ENTRY (__sigsetjmp_symbol)
        SAVE_GP (29)
        SAVE_GP (30)
        SAVE_GP (31)
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        li   r3,0
        blr
 #else
index 9452a3cb5bc7b9fbc210feed739f38038e9eb8b6..e48922408baa39f6baf0fb336668902bc163a484 100644 (file)
@@ -30,7 +30,7 @@
        .section        ".toc","aw"
 .LC__dl_hwcap:
 # ifdef SHARED
-#  ifdef IS_IN_rtld
+#  if IS_IN (rtld)
        /* Inside ld.so we use the local alias to avoid runtime GOT
           relocations.  */
        .tc _rtld_local_ro[TC],_rtld_local_ro
@@ -130,7 +130,7 @@ L(no_vmx):
        ld r0,(JB_LR*8)(r3)
        ld r14,((JB_GPRS+0)*8)(r3)
        lfd fp14,((JB_FPRS+0)*8)(r3)
-#if defined SHARED && !defined IS_IN_rtld
+#if defined SHARED && !IS_IN (rtld)
        std r2,FRAME_TOC_SAVE(r1)       /* Restore the callers TOC save area.  */
 #endif
        ld r15,((JB_GPRS+1)*8)(r3)
index 704ee97dc13b8b4bdd75195f730b642b26ac103c..5979cde7980efb13d975bd8b35de7c22377e0884 100644 (file)
@@ -29,7 +29,7 @@
        .section        ".toc","aw"
 .LC__dl_hwcap:
 # ifdef SHARED
-#  ifdef IS_IN_rtld
+#  if IS_IN (rtld)
        /* Inside ld.so we use the local alias to avoid runtime GOT
           relocations.  */
        .tc _rtld_local_ro[TC],_rtld_local_ro
@@ -49,7 +49,7 @@ ENTRY (setjmp_symbol)
        b JUMPTARGET (GLUE(__sigsetjmp_symbol,_ent))
 END (setjmp_symbol)
 
-#if defined SHARED && !defined IS_IN_rtld && !defined __NO_VMX__
+#if defined SHARED && !IS_IN (rtld) && !defined __NO_VMX__
 /* When called from within libc we need a special version of _setjmp
    that saves r2 since the call won't go via a plt call stub.  See
    bugz #269.  __GI__setjmp is used in csu/libc-start.c when
@@ -80,7 +80,7 @@ JUMPTARGET(GLUE(__sigsetjmp_symbol,_ent)):
        std  r1,(JB_GPR1*8)(3)
 #endif
        mflr r0
-#if defined SHARED && !defined IS_IN_rtld
+#if defined SHARED && !IS_IN (rtld)
        ld   r5,FRAME_TOC_SAVE(r1)      /* Retrieve the callers TOC.  */
        std  r5,(JB_GPR2*8)(3)
 #else
@@ -213,7 +213,7 @@ L(no_vmx):
 #else
        li      r6,0
 #endif
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        li      r3,0
        blr
 #elif defined SHARED
index 4801bf86226057cf24694832916de9745e392c5e..0ceb6f2e95b654f78976a5ad38cd2958c5000c77 100644 (file)
@@ -29,7 +29,7 @@ typedef struct
 
 extern unsigned long __tls_get_offset (unsigned long got_offset);
 
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 
 #  include <shlib-compat.h>
 
@@ -78,9 +78,9 @@ __tls_get_offset:\n\
 1:     .long   __tls_get_addr - 0b\n\
 ");
 #  endif
-# else /* IS_IN_rtld */
+# else /* IS_IN (rtld) */
 extern void *__tls_get_addr_internal (tls_index *ti);
-# endif /* !IS_IN_rtld */
+# endif /* !IS_IN (rtld) */
 
 # define GET_ADDR_OFFSET \
   (ti->ti_offset - (unsigned long) __builtin_thread_pointer ())
index f601f2589c1a926dba98de042c39521b70d25f43..e617623d15b0a901ceee8fe39103974334598156 100644 (file)
 #include <shlib-compat.h>
 #include <stap-probe.h>
 
-#if !defined IS_IN_rtld
+#if !IS_IN (rtld)
 # if defined SHARED &&  SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)
        /* we need a unique name in case of symbol versioning.  */
 #  define __sigsetjmp __v1__sigsetjmp
 # endif /* if defined SHARED && SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)  */
-#endif /* !defined IS_IN_rtld  */
+#endif /* !IS_IN (rtld)  */
 
        /* We include the BSD entry points here as well but we make
           them weak.  */
@@ -69,7 +69,7 @@ ENTRY(__sigsetjmp)
 #endif
        std    %f4,40(%r2)
        std    %f6,48(%r2)
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        /* In ld.so we never save the signal mask.  */
        lhi    %r2,0
        br     %r14
@@ -91,7 +91,7 @@ ENTRY(__sigsetjmp)
 #endif
 END (__sigsetjmp)
 
-#if !defined IS_IN_rtld
+#if !IS_IN (rtld)
 # if defined SHARED &&  SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)
 /* In glibc release 2.19 new versions of setjmp-functions were introduced,
    but were reverted before 2.20. Thus both versions are the same function.  */
@@ -112,4 +112,4 @@ strong_alias (__v1__sigsetjmp, __v2__sigsetjmp);
 versioned_symbol (libc, __v1__sigsetjmp, __sigsetjmp, GLIBC_2_0);
 compat_symbol (libc, __v2__sigsetjmp, __sigsetjmp, GLIBC_2_19);
 # endif /* if defined SHARED && SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)  */
-#endif /* if !defined IS_IN_rtld  */
+#endif /* if !IS_IN (rtld)  */
index 03de2bf47ec72ea5b41637d3627501403be53279..a439cecbe191a92308ef1612bbe96110ac000792 100644 (file)
 #include <shlib-compat.h>
 #include <stap-probe.h>
 
-#if !defined IS_IN_rtld
+#if !IS_IN (rtld)
 # if defined SHARED &&  SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)
        /* we need a unique name in case of symbol versioning.  */
 #  define __sigsetjmp __v1__sigsetjmp
 # endif /* if defined SHARED && SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)  */
-#endif /* !defined IS_IN_rtld  */
+#endif /* !IS_IN (rtld)  */
 
        /* We include the BSD entry points here as well but we make
           them weak.  */
@@ -75,7 +75,7 @@ ENTRY(__sigsetjmp)
        std    %f13,120(%r2)
        std    %f14,128(%r2)
        std    %f15,136(%r2)
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        /* In ld.so we never save the signal mask.  */
        lghi   %r2,0
        br     %r14
@@ -86,7 +86,7 @@ ENTRY(__sigsetjmp)
 #endif
 END (__sigsetjmp)
 
-#if !defined IS_IN_rtld
+#if !IS_IN (rtld)
 # if defined SHARED &&  SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)
 /* In glibc release 2.19 new versions of setjmp-functions were introduced,
    but were reverted before 2.20. Thus both versions are the same function.  */
@@ -107,4 +107,4 @@ strong_alias (__v1__sigsetjmp, __v2__sigsetjmp);
 versioned_symbol (libc, __v1__sigsetjmp, __sigsetjmp, GLIBC_2_0);
 compat_symbol (libc, __v2__sigsetjmp, __sigsetjmp, GLIBC_2_19);
 # endif /* if defined SHARED && SHLIB_COMPAT (libc, GLIBC_2_19, GLIBC_2_20)  */
-#endif /* if !defined IS_IN_rtld  */
+#endif /* if !IS_IN (rtld)  */
index f3a8e6abbb522155ac28f17db99eff4b49e6f630..1bc76a5ec526356880fa7de999fd14e1282f1eb7 100644 (file)
@@ -46,7 +46,7 @@ ENTRY (__sigsetjmp)
        mov.l   r9, @-r4
        mov.l   r8, @-r4
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        /* In ld.so we never save the signal mask.  */
        rts
         mov    #0, r0
index 4bbd6661a946e58d306059d7c2d2ae288ee3a55a..91b84418d26d78ef66c33d94aa5320479dda1eea 100644 (file)
@@ -55,7 +55,7 @@ ENTRY (__sigsetjmp)
        mov.l   r9, @-r4
        mov.l   r8, @-r4
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        /* In ld.so we never save the signal mask.  */
        rts
         mov    #0, r0
index 68b06e1739ffbcad94a8f7ea45b4cbee41d3d598..0b5ff20229a207a3654f3e6c92a1abcd77e13dd3 100644 (file)
@@ -26,7 +26,7 @@
 # include <regdef.h>
 #endif
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # include <dl-sysdep.h>         /* Defines RTLD_PRIVATE_ERRNO.  */
 #endif
 
@@ -349,7 +349,7 @@ __LABEL(name)                                               \
    we don't deoptimize things by placing the pointer check value there.  */
 
 #ifdef __ASSEMBLER__
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 #  define PTR_MANGLE(dst, src, tmp)                            \
        ldah    tmp, __pointer_chk_guard_local($29) !gprelhigh; \
        ldq     tmp, __pointer_chk_guard_local(tmp) !gprellow;  \
@@ -371,7 +371,7 @@ __LABEL(name)                                               \
 # define PTR_DEMANGLE2(dst, tmp)  PTR_MANGLE2(dst, dst, tmp)
 #else
 # include <stdint.h>
-# if (defined IS_IN_rtld \
+# if (IS_IN (rtld) \
       || (!defined SHARED && (!defined NOT_IN_libc \
                              || IS_IN (libpthread))))
 extern uintptr_t __pointer_chk_guard_local attribute_relro attribute_hidden;
index 1a0f0932381de44457b079be1e892610ba690b8a..5566528e7fba67c0ce34700dfd0d299e422ef0ae 100644 (file)
@@ -19,7 +19,7 @@
 #define _ERRNO_H
 #include <bits/errno.h>
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # include <dl-sysdep.h>                        /* Defines RTLD_PRIVATE_ERRNO.  */
 #endif
 
@@ -36,7 +36,7 @@ __syscall_error:
        moveq   r0, $EAGAIN     /* Yes; translate it to EAGAIN.  */
 #endif
 
-#ifndef IS_IN_rtld
+#if !IS_IN (rtld)
        mov     r1, r0
        GET_TLS (r2)
        ldr     r2, 1f
index bfe0d00c1e0883a074ff090295ac2521b911aad4..06af33703f69aae926daf86eb3a500b7d22fc2a8 100644 (file)
@@ -19,7 +19,7 @@
 #define _ERRNO_H
 #include <bits/errno.h>
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # include <dl-sysdep.h>                /* Defines RTLD_PRIVATE_ERRNO.  */
 #endif
 
index 84bec80ba1e7883e9104a5a9896273112c4ab377..3fb67427595f7311f1bf648876ed39fa3b1938a8 100644 (file)
 #endif /* __ASSEMBLER__ */
 
 /* Pointer mangling is supported for AArch64.  */
-#if (defined IS_IN_rtld || \
+#if (IS_IN (rtld) || \
      (!defined SHARED && (!defined NOT_IN_libc \
                          || IS_IN (libpthread))))
 # ifdef __ASSEMBLER__
index a9abcefa4dca1c68e250f5ff2d707aa7506f1789..ca0f271da6fd3066d798a2de23a5d0cfaefbebfe 100644 (file)
@@ -30,7 +30,7 @@
 
 /* If we compile the file for use in ld.so we don't need the feature
    that getcwd() allocates the buffers itself.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # define NO_ALLOCATION 1
 #endif
 
index fb61d0c6d053e805de6d9f5ceede530ba0c56a40..9a60492479e677735f8261748083c036e4d55e74 100644 (file)
@@ -58,7 +58,7 @@
 /* Initialize locks to zero.  */
 #define LLL_MUTEX_LOCK_INITIALIZER (0)
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private) \
index 9d9ae587ed1c9986a3f6ec44442c263451521647..ffae47716000a2724345fe4aafbb09261295b2b9 100644 (file)
@@ -71,7 +71,7 @@
 #define LLL_SHARED     FUTEX_PRIVATE_FLAG
 
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private) \
index 028276167c55238b7003b3aef18dd6b6e142297b..b5380043a83e52b88e847e9aa6226e6baa6abe4e 100644 (file)
@@ -519,7 +519,7 @@ asm (".L__X'%ebx = 1\n\t"
 
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  Using a global variable
    is too complicated here since we have no PC-relative addressing mode.  */
index e84f5308344cd0716afb210e5b7650041dd49763..fe4a90e7bbdcf4979a93ad710691d4bd8f58ecbb 100644 (file)
@@ -52,7 +52,7 @@
 #define LLL_SHARED     FUTEX_PRIVATE_FLAG
 
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private) \
index f919a49f51f664e453c76ebf26daa94818e0afc9..42d9453136f1690676300843afb958ad7f715cfb 100644 (file)
@@ -178,7 +178,7 @@ ENTRY(__sigsetjmp)
        ;;
        st8.nta [r2]=r25                // ar.unat
        st8.nta [r3]=in0                // &__jmp_buf
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        /* In ld.so we never save the signal mask.  */
        ;;
 #else
index 47fd577348aabee5e0c2c026c3ad0c328536640c..094385256a19711b55e1b8a8153a92a3aa9211b2 100644 (file)
 #endif /* not __ASSEMBLER__ */
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 #else
index 343afd6ddd6965b1183f0ec7ae746bd9765a6423..11150b33baaa2f49ac385e478db9b3bd72e15b3f 100644 (file)
@@ -49,7 +49,7 @@
 #define LLL_SHARED     FUTEX_PRIVATE_FLAG
 
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private) \
index f967524e2e9b4c5bc322acd38bdf64c7d3e95ee9..b75bf1754918ecfc90d700bdf7c9d3703e79a696 100644 (file)
@@ -23,7 +23,7 @@
 
 #ifdef SHARED
 
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 # define M68K_VDSO_SYMBOL(name) __rtld_##name
 # define STR_M68K_VDSO_SYMBOL(name) "__rtld_" #name
 # else
@@ -35,7 +35,7 @@
 
 /* We define __rtld_* copies for rtld.
    We need them visible in libc to initialize.  */
-#  if defined IS_IN_rtld || !defined NOT_IN_libc
+#  if IS_IN (rtld) || !defined NOT_IN_libc
 extern void *__rtld___vdso_read_tp;
 extern void *__rtld___vdso_atomic_cmpxchg_32;
 extern void *__rtld___vdso_atomic_barrier;
@@ -44,14 +44,14 @@ extern void *__rtld___vdso_atomic_barrier;
 extern void __vdso_read_tp_stub (void);
 extern void __vdso_atomic_cmpxchg_32_stub (void);
 extern void __vdso_atomic_barrier_stub (void);
-#  endif /* IS_IN_rtld || !NOT_IN_libc */
+#  endif /* IS_IN (rtld) || !NOT_IN_libc */
 
 /* RTLD should only use its own copies.  */
-#  ifndef IS_IN_rtld
+#  if !IS_IN (rtld)
 extern void *__vdso_read_tp;
 extern void *__vdso_atomic_cmpxchg_32;
 extern void *__vdso_atomic_barrier;
-#  endif /* !IS_IN_rtld */
+#  endif /* !IS_IN (rtld) */
 
 # endif /* !__ASSEMBLER__ */
 
index 032b1f29827edf0508dbc4ccb6a0449b118d372b..c220e781c8f34f634ebe1b238151178f3ccc5d0c 100644 (file)
@@ -51,7 +51,7 @@ END (__vdso_read_tp_stub)
    equivalent helper function (which clobbers fewer registers than
    a normal function call) in a vdso; tail call to the
    helper.  */
-# ifdef IS_IN_rtld
+# if IS_IN (rtld)
 /* rtld gets a hidden copy of __m68k_read_tp.  */
        .hidden __m68k_read_tp
 # endif
index 0ba63a1e87d724fba76c926941230db98c429525..9c21eeb96c7134382600a6615ed1fe6c5675c935 100644 (file)
@@ -52,7 +52,7 @@
 #define LLL_SHARED  FUTEX_PRIVATE_FLAG
 
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private)                                      \
index 1a5e37a1d99266e762684a20a88ea6596f5cf227..b69175979193f9a1035a76a54ed9173f1f1b8e71 100644 (file)
 
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 #else
index 93e454e9021b003c40761a746507304e0e4eb2c2..1cca63db5a75b896f318a71ec3c46f193d1d2d7c 100644 (file)
 
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 #else
index eaf2d58ee9d3133bef34c3dab8e82d34c6079bb9..2c17b2cab542665cf43e7e400ea0fcc304a9c9e3 100644 (file)
@@ -51,7 +51,7 @@
 #define LLL_SHARED     FUTEX_PRIVATE_FLAG
 
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private) \
index 00919e362ef11002cfb806018411af935a7b95f5..e6fd96a33415226336a90500ab3f072174cab906 100644 (file)
     _ret; })
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 #else
index d3bafcae1976616cbffc779dc3725299926c79ff..917a636ee2a5e2a182e87ddf7e72823b79c93a91 100644 (file)
     _ret; })
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 #else
index 10a2c252459ab95039be854ac8d41813ff244711..328446c094da5f6809b0d2da53ba4b49e264dd5c 100644 (file)
@@ -49,7 +49,7 @@
 #define LLL_SHARED     FUTEX_PRIVATE_FLAG
 
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private) \
index 3f689383357cdaf9f148621ca5211f65d0222850..4fc5dd77751df16409861673bc425853e14037d1 100644 (file)
 #endif /* __ASSEMBLER__ */
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  Using a global variable
    is too complicated here since we have no PC-relative addressing mode.  */
index d764075fdb424476f93f088f273d2cd331bb6746..eebf406eae97254c21bc697885e4abcd1416a456 100644 (file)
@@ -57,7 +57,7 @@ extern void __cpu_relax (void);
 #define BUSY_WAIT_NOP  __cpu_relax ()
 #endif
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private) \
index 09ef2c9ec337ea615ec81311bbbf78144b499f8c..e5bb3b55012b61720953ab9311b980ba623edf69 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <sysdeps/unix/sysv/linux/sparc/sysdep.h>
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # include <dl-sysdep.h>                /* Defines RTLD_PRIVATE_ERRNO.  */
 #endif
 #include <tls.h>
@@ -125,7 +125,7 @@ ENTRY(name);                                        \
 #endif /* __ASSEMBLER__ */
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 #else
index a0f230540a8f44cc8268ec258bdbae5e7c947a83..e9aedcee0fc1dcb91f146dd3d20ab6f41c0085f8 100644 (file)
@@ -21,7 +21,7 @@
 
 #include <sysdeps/unix/sysv/linux/sparc/sysdep.h>
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # include <dl-sysdep.h>                /* Defines RTLD_PRIVATE_ERRNO.  */
 #endif
 #include <tls.h>
@@ -140,7 +140,7 @@ ENTRY(name);                                        \
 #define STACK_BIAS     2047
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 #else
index d03a74bd9e5f77f595da26a0c5f1337aa31e9645..b5213518877cda932675b982d1fc459295c8b555 100644 (file)
 #endif /* not __ASSEMBLER__ */
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 #else
index 55b4e16144bd16fb203d5a6569f1ffbe7a0e0be8..37c0faf25a2c22b8a4b84990964dbadcf3a4b487 100644 (file)
@@ -72,7 +72,7 @@
 
 #ifndef __ASSEMBLER__
 
-#if !defined NOT_IN_libc || defined IS_IN_rtld
+#if !defined NOT_IN_libc || IS_IN (rtld)
 /* In libc.so or ld.so all futexes are private.  */
 # ifdef __ASSUME_PRIVATE_FUTEX
 #  define __lll_private_flag(fl, private) \
index 4a619dafebd180426bf32ab6b6cb0e5e560b718a..6377183d546a886facf6b8523b1c221439171808 100644 (file)
@@ -22,7 +22,7 @@
 #include <sysdeps/unix/x86_64/sysdep.h>
 #include <tls.h>
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # include <dl-sysdep.h>                /* Defines RTLD_PRIVATE_ERRNO.  */
 #endif
 
 
 
 /* Pointer mangling support.  */
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 /* We cannot use the thread descriptor because in ld.so we use setjmp
    earlier than the descriptor is initialized.  */
 # ifdef __ASSEMBLER__
index 9f5eb3849cec0cd7b8f09aab38d5dd0655b78423..90ece2a212caf1733a3eeb5cb61d78da7e1c2c61 100644 (file)
@@ -20,7 +20,7 @@
 #include <bits/errno.h>
 #include <tls.h>
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
 # include <dl-sysdep.h>                /* Defines RTLD_PRIVATE_ERRNO.  */
 #endif
 
index 4459212a8bfc1452e496e8e078a90710690c1e58..7a4800f5722799f4641c6ff9432a8d0a709908cc 100644 (file)
@@ -54,7 +54,7 @@ ENTRY (__sigsetjmp)
 #endif
        movq %rax, (JB_PC*8)(%rdi)
 
-#ifdef IS_IN_rtld
+#if IS_IN (rtld)
        /* In ld.so we never save the signal mask.  */
        xorl %eax, %eax
        retq