]> 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>
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 1c263b3dd59de1b367c98944223db48c2416a845..7cb9a066b0b778139a54e2af9d377f0030e4c192 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 d19591348a97ecc7ea07286aee8d5effb1249bcd..36ed072b425002df3e33ca794d5ec6c2967b316f 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 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