f57669
commit a53fbd8e6cd2f69bdfa3431d616a5f332aea6664
f57669
Author: Adhemerval Zanella <azanella@linux.vnet.ibm.com>
f57669
Date:   Tue Jul 29 13:56:44 2014 -0500
f57669
f57669
    PowerPC: Fix gprof entry point for LE
f57669
    
f57669
    This patch fixes the ELFv2 gprof entry point since the ABI
f57669
    does not define function descriptors.  It fixes BZ#17213.
f57669
diff --git a/sysdeps/powerpc/powerpc64/entry.h b/sysdeps/powerpc/powerpc64/entry.h
f57669
index 76ead1d..30553c1 100644
f57669
--- a/sysdeps/powerpc/powerpc64/entry.h
f57669
+++ b/sysdeps/powerpc/powerpc64/entry.h
f57669
@@ -23,6 +23,7 @@ extern void _start (void);
f57669
 
f57669
 #define ENTRY_POINT _start
f57669
 
f57669
+#if _CALL_ELF != 2
f57669
 /* We have to provide a special declaration.  */
f57669
 #define ENTRY_POINT_DECL(class) class void _start (void);
f57669
 
f57669
@@ -33,3 +34,4 @@ extern void _start (void);
f57669
 #define TEXT_START \
f57669
   ({ extern unsigned long int _start_as_data[] asm ("_start");  \
f57669
      _start_as_data[0]; })
f57669
+#endif
f57669