From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28127 invoked by alias); 24 May 2012 19:47:46 -0000 Received: (qmail 28106 invoked by uid 22791); 24 May 2012 19:47:45 -0000 X-SWARE-Spam-Status: No, hits=-3.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,TW_HW X-Spam-Check-By: sourceware.org Received: from shards.monkeyblade.net (HELO shards.monkeyblade.net) (198.137.202.13) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 24 May 2012 19:47:32 +0000 Received: from localhost (cpe-66-108-119-99.nyc.res.rr.com [66.108.119.99]) (authenticated bits=0) by shards.monkeyblade.net (8.14.4/8.14.4) with ESMTP id q4OJlLIn031543 (version=TLSv1/SSLv3 cipher=RC4-SHA bits=128 verify=NO); Thu, 24 May 2012 12:47:24 -0700 Date: Thu, 24 May 2012 19:47:00 -0000 Message-Id: <20120524.154721.603652671775196804.davem@davemloft.net> To: rth@twiddle.net Cc: libc-alpha@sourceware.org, libc-ports@sourceware.org, rsa@linux.vnet.ibm.com, joseph@codesourcery.com Subject: Re: [ppc] Include hwcap as ifunc argument From: David Miller In-Reply-To: <4FBE4843.5030107@twiddle.net> References: <4FBA744A.6000702@twiddle.net> <4FBE4843.5030107@twiddle.net> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Mailing-List: contact libc-ports-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: libc-ports-owner@sourceware.org X-SW-Source: 2012-05/txt/msg00153.txt.bz2 From: Richard Henderson Date: Thu, 24 May 2012 07:40:03 -0700 > On 05/21/2012 09:58 AM, Richard Henderson wrote: >> Aside from the x86 port, there are only two targets that have ifunc >> support in glibc mainline: ppc and arm. It would be awesomely handy >> if we switch these targets to mirror the sparc lead in passing along >> the dl_hwcap contents as an argument to the resolver, *and* to do it >> in the same release as adding getauxval. There are some clever things >> we can do at static link time if we know that getauxval corresponds to >> the availability of the ifunc argument. >> >> Dave, dunno if you wanna change the signature of the arg from int to >> unsigned long for 64-bit? It just seemed prudent to do that here... >> >> I'll present a similar patch for arm shortly... > > Like so. Tested on armv7. And a ping for the ppc patch? You also have to adjust the IFUNC invocations in dl-machine.h, and potentially elsewhere in the port.