about summary refs log tree commit diff
path: root/sysdeps/powerpc/powerpc64
diff options
context:
space:
mode:
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-07-29 13:56:44 -0500
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>2014-07-30 09:01:25 -0300
commita53fbd8e6cd2f69bdfa3431d616a5f332aea6664 (patch)
tree85e438ff914f06a7e3323b463f2cad5e38cef89d /sysdeps/powerpc/powerpc64
parent0961f7e1e300ef633b0c1ad95d0999fb5c169f4e (diff)
downloadglibc-a53fbd8e6cd2f69bdfa3431d616a5f332aea6664.tar.gz
glibc-a53fbd8e6cd2f69bdfa3431d616a5f332aea6664.tar.xz
glibc-a53fbd8e6cd2f69bdfa3431d616a5f332aea6664.zip
PowerPC: Fix gprof entry point for LE
This patch fixes the ELFv2 gprof entry point since the ABI
does not define function descriptors.  It fixes BZ#17213.
Diffstat (limited to 'sysdeps/powerpc/powerpc64')
-rw-r--r--sysdeps/powerpc/powerpc64/entry.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sysdeps/powerpc/powerpc64/entry.h b/sysdeps/powerpc/powerpc64/entry.h
index 76ead1dd3b..30553c168a 100644
--- a/sysdeps/powerpc/powerpc64/entry.h
+++ b/sysdeps/powerpc/powerpc64/entry.h
@@ -23,6 +23,7 @@ extern void _start (void);
 
 #define ENTRY_POINT _start
 
+#if _CALL_ELF != 2
 /* We have to provide a special declaration.  */
 #define ENTRY_POINT_DECL(class) class void _start (void);
 
@@ -33,3 +34,4 @@ extern void _start (void);
 #define TEXT_START \
   ({ extern unsigned long int _start_as_data[] asm ("_start");  \
      _start_as_data[0]; })
+#endif