From patchwork Tue Jul 2 11:01:40 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 18232 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ye0-f199.google.com (mail-ye0-f199.google.com [209.85.213.199]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 113A42391D for ; Tue, 2 Jul 2013 11:01:46 +0000 (UTC) Received: by mail-ye0-f199.google.com with SMTP id l8sf4439667yen.2 for ; Tue, 02 Jul 2013 04:01:45 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-beenthere:x-forwarded-to:x-forwarded-for:delivered-to:message-id :date:from:user-agent:mime-version:to:cc:subject:x-gm-message-state :x-original-sender:x-original-authentication-results:precedence :mailing-list:list-id:x-google-group-id:list-post:list-help :list-archive:list-unsubscribe:content-type :content-transfer-encoding; bh=VRArHEQvWxm+gH2IDZOcf+OJYZSMTyKJnvzz4dke6FY=; b=MzHuxM3EYvIf/Bo/VBZg1IcG4ZhWCaUzDdRZSxbzBtjX4WO5lc9Lc/+Hkiol7PSl+n hihxLYMYPYsZ9L4HMCkbVIPAu/Erz9d620sixW7mBhSySbBQR2M4mjypBgFxK8BXTOqN FAE6FVJQPmJg8PSyxkl+exxQXbrl4r0mFwkjfpfIZHRgDILuEmklj+txQeI+BPkD7xYf Y/c7KUpTXGOsLTYnM4aMSZ5ycj4yfN2ge7nUIyLseyMOm7/QsBBuIbiI3Yzsvd6cPJyg SMCoBlCfw5bJjaTo3HxCCIcfIx0p3D/Uews8eEQORWMksaEyRagNFjCqUWj6+zH/aMo9 WRxA== X-Received: by 10.52.17.135 with SMTP id o7mr2982822vdd.0.1372762905540; Tue, 02 Jul 2013 04:01:45 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.36.40 with SMTP id n8ls2608318qej.79.gmail; Tue, 02 Jul 2013 04:01:45 -0700 (PDT) X-Received: by 10.220.168.141 with SMTP id u13mr39566vcy.23.1372762905369; Tue, 02 Jul 2013 04:01:45 -0700 (PDT) Received: from mail-vc0-f172.google.com (mail-vc0-f172.google.com [209.85.220.172]) by mx.google.com with ESMTPS id pa20si5837314veb.128.2013.07.02.04.01.45 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Jul 2013 04:01:45 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=209.85.220.172; Received: by mail-vc0-f172.google.com with SMTP id ib11so2662133vcb.31 for ; Tue, 02 Jul 2013 04:01:45 -0700 (PDT) X-Received: by 10.58.45.70 with SMTP id k6mr11412513vem.9.1372762905291; Tue, 02 Jul 2013 04:01:45 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.165.8 with SMTP id yu8csp5407veb; Tue, 2 Jul 2013 04:01:44 -0700 (PDT) X-Received: by 10.14.193.199 with SMTP id k47mr25650098een.83.1372762904348; Tue, 02 Jul 2013 04:01:44 -0700 (PDT) Received: from mail-ea0-f177.google.com (mail-ea0-f177.google.com [209.85.215.177]) by mx.google.com with ESMTPS id u9si13944452eeg.291.2013.07.02.04.01.43 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 02 Jul 2013 04:01:44 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.215.177 is neither permitted nor denied by best guess record for domain of will.newton@linaro.org) client-ip=209.85.215.177; Received: by mail-ea0-f177.google.com with SMTP id j14so2638870eak.36 for ; Tue, 02 Jul 2013 04:01:43 -0700 (PDT) X-Received: by 10.15.94.142 with SMTP id bb14mr25745653eeb.112.1372762903448; Tue, 02 Jul 2013 04:01:43 -0700 (PDT) Received: from localhost.localdomain (cpc11-seac20-2-0-cust84.7-2.cable.virginmedia.com. [81.108.156.85]) by mx.google.com with ESMTPSA id p49sm35811356eeu.2.2013.07.02.04.01.41 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 02 Jul 2013 04:01:42 -0700 (PDT) Message-ID: <51D2B314.4040109@linaro.org> Date: Tue, 02 Jul 2013 12:01:40 +0100 From: Will Newton User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130514 Thunderbird/17.0.6 MIME-Version: 1.0 To: libc-ports@sourceware.org CC: patches@linaro.org Subject: [PATCH] ARM: Pass dl_hwcap to IFUNC resolver functions. X-Gm-Message-State: ALoCoQnAKDcW6peuHU22wIpB0EHqSnhc3IUklqLBsjI4w9eTo8wkDcl1O19CmMLLkCxWMd0Ki4Fy X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.172 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , elf_ifunc_invoke passes dl_hwcap to IFUNC resolvers, so we should do the same when fixing up R_ARM_IRELATIVE relocs in elf_machine_rela. ports/ChangeLog.arm: 2013-07-02 Will Newton * sysdeps/arm/dl-machine.h (elf_machine_rela): Pass dl_hwcap to IFUNC resolver functions. --- ports/sysdeps/arm/dl-machine.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ports/sysdeps/arm/dl-machine.h b/ports/sysdeps/arm/dl-machine.h index 4cf87a9..d251527 100644 --- a/ports/sysdeps/arm/dl-machine.h +++ b/ports/sysdeps/arm/dl-machine.h @@ -595,7 +595,7 @@ elf_machine_rela (struct link_map *map, const Elf32_Rela *reloc, break; case R_ARM_IRELATIVE: value = map->l_addr + *reloc_addr; - value = ((Elf32_Addr (*) (void)) value) (); + value = ((Elf32_Addr (*) (int)) value) (GLRO(dl_hwcap)); *reloc_addr = value; break; #endif