PowerPC: Fix gprof entry point for LE
authorAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Tue, 29 Jul 2014 18:56:44 +0000 (13:56 -0500)
committerAdhemerval Zanella <azanella@linux.vnet.ibm.com>
Wed, 30 Jul 2014 12:01:25 +0000 (09:01 -0300)
This patch fixes the ELFv2 gprof entry point since the ABI
does not define function descriptors.  It fixes BZ#17213.

ChangeLog
NEWS
sysdeps/powerpc/powerpc64/entry.h

index 1c263b3..7cb9a06 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2013-07-29  Adhemerval Zanella  <azanella@linux.vnet.ibm.com>
+
+       [BZ #17213]
+       * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for
+       powerpc64le.
+
 2014-07-29  Jeff Layton  <jlayton@poochiereds.net>
 
        [BZ #16839]
diff --git a/NEWS b/NEWS
index d195913..36ed072 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -22,7 +22,7 @@ Version 2.20
   16918, 16922, 16927, 16928, 16932, 16943, 16958, 16965, 16966, 16967,
   16977, 16978, 16984, 16990, 16996, 17009, 17022, 17031, 17042, 17048,
   17050, 17058, 17061, 17062, 17069, 17075, 17078, 17079, 17084, 17086,
-  17088, 17092, 17097, 17125, 17135, 17137, 17150, 17153.
+  17088, 17092, 17097, 17125, 17135, 17137, 17150, 17153, 17213.
 
 * Support for file description locks is added to systems running the
   Linux kernel. The standard file locking interfaces are extended to
index 76ead1d..30553c1 100644 (file)
@@ -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