From patchwork Tue Jul 29 19:00:06 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Adhemerval Zanella X-Patchwork-Id: 374558 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49220140132 for ; Wed, 30 Jul 2014 05:00:22 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; q=dns; s=default; b=GVu faWtaQO3AvJEHiiiDau3hBGfCddRe6YwPY38AYIksYGXERnuiG0BWPB/P8xPqT40 Dmo8kIyeC135Ci9XNr69bQLeJqlHMNZpdefBwKFq76Nq7czBNam0dp1S+LZgTCKY nDvmKE6F+5WnPtK25GVWMhDhWnZtOw0THKe5um7Y= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:message-id:date:from:mime-version:to:subject :content-type:content-transfer-encoding; s=default; bh=bEcN1Uezz JbHAFX+Ml04yxx1hYM=; b=lBPdoTobia9xd/38Zc0cXWc0JAd+29QLfciFHgS03 dy3Egh2pdP5Y5AuxIeMcj9KXD7H8N6RqMr8LbhcsG9l5kXY6vU1gss0q1tRbB4I9 CvflKIGc7XJ6fCYSJI99GZUTwTw9aIpwVYnIwmqcxBXCkdMVl+Hq+oUTW4zCO6q+ K4= Received: (qmail 15629 invoked by alias); 29 Jul 2014 19:00:16 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 15615 invoked by uid 89); 29 Jul 2014 19:00:15 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.4 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.2 X-HELO: e24smtp01.br.ibm.com Message-ID: <53D7EF36.2010101@linux.vnet.ibm.com> Date: Tue, 29 Jul 2014 16:00:06 -0300 From: Adhemerval Zanella User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: "GNU C. Library" Subject: [PATCH] PowerPC: Fix gprof starting entry point for LE X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14072919-1524-0000-0000-0000001C095B This patch fixes the ELFv2 gprof entry point since the ABI does not define function descriptors. It fixes BZ#17213. Checked on powerpc64le and it would be good if I can include it on 2.20 as well. --- 2013-07-29 Adhemerval Zanella [BZ #17213] * sysdeps/powerpc/powerpc64/entry.h: Fix TEXT_START definition for powerpc64le. --- diff --git a/sysdeps/powerpc/powerpc64/entry.h b/sysdeps/powerpc/powerpc64/entry.h index 76ead1d..30553c1 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