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

00db10
commit 3f17b03b0947fbe2482e2776f654056d1d5ba093
00db10
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
00db10
Date:   Tue Jun 24 06:41:46 2014 -0500
00db10
00db10
    PowerPC: Guard CALL_ELF check for ppc64 only in link.h
00db10
    
00db10
    This patch fixes powerpc32 undef compiler warnings for _CALL_ELF,
00db10
    since it is defined only for powerpc64.
00db10
00db10
diff --git a/sysdeps/powerpc/bits/link.h b/sysdeps/powerpc/bits/link.h
00db10
index 6c7867e04353a39e..201d3427dac8aece 100644
00db10
--- a/sysdeps/powerpc/bits/link.h
00db10
+++ b/sysdeps/powerpc/bits/link.h
00db10
@@ -63,7 +63,8 @@ extern unsigned int la_ppc32_gnu_pltexit (Elf32_Sym *__sym,
00db10
 
00db10
 __END_DECLS
00db10
 
00db10
-#elif _CALL_ELF != 2
00db10
+#elif __ELF_NATIVE_CLASS == 64
00db10
+# if _CALL_ELF != 2
00db10
 
00db10
 /* Registers for entry into PLT on PPC64.  */
00db10
 typedef struct La_ppc64_regs
00db10
@@ -107,7 +108,7 @@ extern unsigned int la_ppc64_gnu_pltexit (Elf64_Sym *__sym,
00db10
 
00db10
 __END_DECLS
00db10
 
00db10
-#else
00db10
+# else
00db10
 
00db10
 /* Registers for entry into PLT on PPC64 in the ELFv2 ABI.  */
00db10
 typedef struct La_ppc64v2_regs
00db10
@@ -151,4 +152,5 @@ extern unsigned int la_ppc64v2_gnu_pltexit (Elf64_Sym *__sym,
00db10
 
00db10
 __END_DECLS
00db10
 
00db10
+# endif
00db10
 #endif