Blame SOURCES/glibc-rh1505492-undef-38.patch

00db10
commit 82374e65d745c3c94258ad81c38f8af34b9f9113
00db10
Author: Will Newton <will.newton@linaro.org>
00db10
Date:   Mon Jul 7 15:14:26 2014 +0100
00db10
00db10
    Fix -Wundef warnings for SHARED
00db10
    
00db10
    The definition of SHARED is tested with #ifdef pretty much everywhere
00db10
    apart from these few places. The tlsdesc.c code seems to be copy and
00db10
    pasted to a few architectures and there is one instance in the hppa
00db10
    startup code.
00db10
    
00db10
    ChangeLog:
00db10
    
00db10
    2014-07-09  Will Newton  <will.newton@linaro.org>
00db10
    
00db10
            * sysdeps/aarch64/tlsdesc.c (_dl_unmap): Test SHARED with #ifdef.
00db10
            * sysdeps/arm/tlsdesc.c (_dl_unmap): Likewise.
00db10
            * sysdeps/i386/tlsdesc.c (_dl_unmap): Likewise.
00db10
            * sysdeps/x86_64/tlsdesc.c (_dl_unmap): Likewise.
00db10
            * sysdeps/hppa/start.S (_start): Likewise.
00db10
00db10
diff --git a/sysdeps/aarch64/tlsdesc.c b/sysdeps/aarch64/tlsdesc.c
00db10
index 606ce797c66ce84d..1543064999964dd9 100644
00db10
--- a/sysdeps/aarch64/tlsdesc.c
00db10
+++ b/sysdeps/aarch64/tlsdesc.c
00db10
@@ -147,7 +147,7 @@ _dl_unmap (struct link_map *map)
00db10
   __munmap ((void *) (map)->l_map_start,
00db10
 	    (map)->l_map_end - (map)->l_map_start);
00db10
 
00db10
-#if SHARED
00db10
+#ifdef SHARED
00db10
   if (map->l_mach.tlsdesc_table)
00db10
     htab_delete (map->l_mach.tlsdesc_table);
00db10
 #endif
00db10
diff --git a/sysdeps/arm/tlsdesc.c b/sysdeps/arm/tlsdesc.c
00db10
index c5e69a8755147361..dd8d340d740876d9 100644
00db10
--- a/sysdeps/arm/tlsdesc.c
00db10
+++ b/sysdeps/arm/tlsdesc.c
00db10
@@ -149,7 +149,7 @@ _dl_unmap (struct link_map *map)
00db10
   __munmap ((void *) (map)->l_map_start,
00db10
 	    (map)->l_map_end - (map)->l_map_start);
00db10
 
00db10
-#if SHARED
00db10
+#ifdef SHARED
00db10
   /* _dl_unmap is only called for dlopen()ed libraries, for which
00db10
      calling free() is safe, or before we've completed the initial
00db10
      relocation, in which case calling free() is probably pointless,
00db10
diff --git a/sysdeps/hppa/start.S b/sysdeps/hppa/start.S
00db10
index 97196bd52df23391..08b13ee4f4a0937c 100644
00db10
--- a/sysdeps/hppa/start.S
00db10
+++ b/sysdeps/hppa/start.S
00db10
@@ -93,7 +93,7 @@ _start:
00db10
 	stw	%r23, -56(%sp)
00db10
 	/* Need to setup 1, 4, 5, and 7th arguments */
00db10
 
00db10
-#if SHARED
00db10
+#ifdef SHARED
00db10
 	/* load main (1st argument) */
00db10
 	addil	LT'.Lpmain, %r19
00db10
 	ldw	RT'.Lpmain(%r1), %r26
00db10
diff --git a/sysdeps/i386/tlsdesc.c b/sysdeps/i386/tlsdesc.c
00db10
index 2d55c63cdb976d79..cfde1a684850e04c 100644
00db10
--- a/sysdeps/i386/tlsdesc.c
00db10
+++ b/sysdeps/i386/tlsdesc.c
00db10
@@ -261,7 +261,7 @@ _dl_unmap (struct link_map *map)
00db10
   __munmap ((void *) (map)->l_map_start,
00db10
 	    (map)->l_map_end - (map)->l_map_start);
00db10
 
00db10
-#if SHARED
00db10
+#ifdef SHARED
00db10
   if (map->l_mach.tlsdesc_table)
00db10
     htab_delete (map->l_mach.tlsdesc_table);
00db10
 #endif
00db10
diff --git a/sysdeps/x86_64/tlsdesc.c b/sysdeps/x86_64/tlsdesc.c
00db10
index 19d55a7c91992439..8def142e87c298be 100644
00db10
--- a/sysdeps/x86_64/tlsdesc.c
00db10
+++ b/sysdeps/x86_64/tlsdesc.c
00db10
@@ -139,7 +139,7 @@ _dl_unmap (struct link_map *map)
00db10
   __munmap ((void *) (map)->l_map_start,
00db10
 	    (map)->l_map_end - (map)->l_map_start);
00db10
 
00db10
-#if SHARED
00db10
+#ifdef SHARED
00db10
   /* _dl_unmap is only called for dlopen()ed libraries, for which
00db10
      calling free() is safe, or before we've completed the initial
00db10
      relocation, in which case calling free() is probably pointless,