]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
PowerPC: Guard CALL_ELF check for ppc64 only in link.h
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 24 Jun 2014 11:41:46 +0000 (06:41 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Mon, 7 Jul 2014 19:46:22 +0000 (14:46 -0500)
This patch fixes powerpc32 undef compiler warnings for _CALL_ELF,
since it is defined only for powerpc64.

ChangeLog
sysdeps/powerpc/bits/link.h

index 5b31532e4b8795ccd8066e83b267fd0c118e502f..a326f546e9dd7a7e1f10c67156f9af35c8b0fb07 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-07  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       * sysdeps/powerpc/bits/link.h [_CALL_ELF]: Guard check for
+       __ELF_NATIVE_CLASS equal to 64.
+
 2014-07-07  Roland McGrath  <roland@hack.frob.com>
 
        * sysdeps/nptl/lowlevellock.h: File removed.
index c8f876b510dc778f33338a8a1047bafa63940737..373b6d5bfc32a9d017936dfa20870ae33c364484 100644 (file)
@@ -63,7 +63,8 @@ extern unsigned int la_ppc32_gnu_pltexit (Elf32_Sym *__sym,
 
 __END_DECLS
 
-#elif _CALL_ELF != 2
+#elif __ELF_NATIVE_CLASS == 64
+# if _CALL_ELF != 2
 
 /* Registers for entry into PLT on PPC64.  */
 typedef struct La_ppc64_regs
@@ -107,7 +108,7 @@ extern unsigned int la_ppc64_gnu_pltexit (Elf64_Sym *__sym,
 
 __END_DECLS
 
-#else
+# else
 
 /* Registers for entry into PLT on PPC64 in the ELFv2 ABI.  */
 typedef struct La_ppc64v2_regs
@@ -151,4 +152,5 @@ extern unsigned int la_ppc64v2_gnu_pltexit (Elf64_Sym *__sym,
 
 __END_DECLS
 
+# endif
 #endif