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