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

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