From: Adhemerval Zanella Date: Tue, 29 Jul 2014 18:56:44 +0000 (-0500) Subject: PowerPC: Fix gprof entry point for LE X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fa7cc069f4eb29c00ec3a833d73ec4a473b11c8a;p=thirdparty%2Fglibc.git 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. This is a backport of a53fbd8e6cd2f69bdfa3431d616a5f332aea6664. --- diff --git a/ChangeLog b/ChangeLog index 63e2be7779e..914fca97a7b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2013-07-29 Adhemerval Zanella + + [BZ #17213] + * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for + powerpc64le. + 2014-07-14 Alan Modra [BZ #17153] diff --git a/NEWS b/NEWS index d83058367f2..a0078299078 100644 --- 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. Version 2.19 diff --git a/sysdeps/powerpc/powerpc64/entry.h b/sysdeps/powerpc/powerpc64/entry.h index 76ead1dd3bd..30553c168ad 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