olga / rpms / glibc

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