about summary refs log tree commit diff
path: root/sysdeps/powerpc/bits
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-06-24 06:41:46 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-07-07 14:46:22 -0500
commit3f17b03b0947fbe2482e2776f654056d1d5ba093 (patch)
tree426438df3d8b1c25f7b8613012e494256886fe3d /sysdeps/powerpc/bits
parentf4c4021bc0fc5c3aaff8418ecfe0c1c8bbb49859 (diff)
downloadglibc-3f17b03b0947fbe2482e2776f654056d1d5ba093.tar.gz
glibc-3f17b03b0947fbe2482e2776f654056d1d5ba093.tar.xz
glibc-3f17b03b0947fbe2482e2776f654056d1d5ba093.zip
PowerPC: Guard CALL_ELF check for ppc64 only in link.h
This patch fixes powerpc32 undef compiler warnings for _CALL_ELF,
since it is defined only for powerpc64.
Diffstat (limited to 'sysdeps/powerpc/bits')
-rw-r--r--sysdeps/powerpc/bits/link.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/sysdeps/powerpc/bits/link.h b/sysdeps/powerpc/bits/link.h
index c8f876b510..373b6d5bfc 100644
--- a/sysdeps/powerpc/bits/link.h
+++ b/sysdeps/powerpc/bits/link.h
@@ -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