]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
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>
Thu, 28 Aug 2014 13:33:24 +0000 (09:33 -0400)
This patch fixes the ELFv2 gprof entry point since the ABI
does not define function descriptors.  It fixes BZ#17213.

This is a backport of a53fbd8e6cd2f69bdfa3431d616a5f332aea6664.

ChangeLog
NEWS
sysdeps/powerpc/powerpc64/entry.h

index 63e2be7779ed38af0fca12f9e95a84bcb0339d37..914fca97a7bd6058bb1ecbda69a267188df1d530 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-14  Alan Modra  <amodra@gmail.com>
 
        [BZ #17153]
diff --git a/NEWS b/NEWS
index d83058367f215d1b0e9d803b7f1cf3944b1a668b..a00782990784fbb953e288c1fca1e06e470bcdc6 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -10,7 +10,7 @@ Version 2.19.1
 * The following bugs are resolved with this release:
 
   16545, 16683, 16689, 16701, 16706, 16707, 16739, 16815, 16619, 16740,
-  17031, 17153.
+  17031, 17153, 17213.
 \f
 Version 2.19
 
index 76ead1dd3bdd89655681aae0cf20874163dd451d..30553c168ad8f1cf3ccb39864656b15a4bb52f0b 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