From patchwork Fri May 9 13:40:35 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Will Newton X-Patchwork-Id: 29906 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-oa0-f72.google.com (mail-oa0-f72.google.com [209.85.219.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 3866A202FE for ; Fri, 9 May 2014 13:40:56 +0000 (UTC) Received: by mail-oa0-f72.google.com with SMTP id l6sf20065690oag.11 for ; Fri, 09 May 2014 06:40:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:mailing-list :precedence:list-id:list-unsubscribe:list-subscribe:list-archive :list-post:list-help:sender:delivered-to:from:to:subject:date :message-id:x-original-sender:x-original-authentication-results; bh=7jj9xB0p/pei4A708S4o0MHPkohudWjXEK7IdwXzUog=; b=InGB6TeMhGtraGx7iWv6QC5ptxY/11dZF1AQ8j4rDI2LdAfZT9JRwnCLsC/AfYTdOV KJPi8/V9fYEqjV9Drxdho67RVEW3usshocczZghvz1BVfkThPtOdf5lAjKYNMa9fNewp 0trllgQVGkQFSl2DQ6GGM3RrYaY1rpWhiho3TA++O3KNUB8pdaHioGPMFYr662BypVls j3Gcak90ICpYWuOD+JUEdhPRXbptxW61zHcjjTVyIDU7v65HQRypSeeHiqPU5It0Xr1/ qkrUirOPOGP+M2ojWq8tjxFnippENgI9oBwEiRtBsNz93uiLge0NhYKvhHsHksyEicJ0 N6fQ== X-Gm-Message-State: ALoCoQl0a07ISyUoyqkDQsF/wLZ8VnAZV8MyTmcGMzkVKtJn1/kXftiuq6PwLuKmPAgCplHRAL/8 X-Received: by 10.182.95.68 with SMTP id di4mr5327938obb.4.1399642855747; Fri, 09 May 2014 06:40:55 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.80.145 with SMTP id c17ls344154qgd.60.gmail; Fri, 09 May 2014 06:40:55 -0700 (PDT) X-Received: by 10.52.72.4 with SMTP id z4mr435023vdu.71.1399642855533; Fri, 09 May 2014 06:40:55 -0700 (PDT) Received: from mail-vc0-x22a.google.com (mail-vc0-x22a.google.com [2607:f8b0:400c:c03::22a]) by mx.google.com with ESMTPS id yq2si733168vcb.91.2014.05.09.06.40.55 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 09 May 2014 06:40:55 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22a as permitted sender) client-ip=2607:f8b0:400c:c03::22a; Received: by mail-vc0-f170.google.com with SMTP id lf12so5313143vcb.1 for ; Fri, 09 May 2014 06:40:55 -0700 (PDT) X-Received: by 10.220.105.130 with SMTP id t2mr8497264vco.18.1399642855450; Fri, 09 May 2014 06:40:55 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.220.221.72 with SMTP id ib8csp80863vcb; Fri, 9 May 2014 06:40:55 -0700 (PDT) X-Received: by 10.58.107.65 with SMTP id ha1mr8503444veb.1.1399642855084; Fri, 09 May 2014 06:40:55 -0700 (PDT) Received: from sourceware.org (server1.sourceware.org. [209.132.180.131]) by mx.google.com with ESMTPS id iv2si2271143pbd.469.2014.05.09.06.40.54 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 09 May 2014 06:40:55 -0700 (PDT) Received-SPF: pass (google.com: domain of libc-alpha-return-49699-patch=linaro.org@sourceware.org designates 209.132.180.131 as permitted sender) client-ip=209.132.180.131; Received: (qmail 17856 invoked by alias); 9 May 2014 13:40:45 -0000 Mailing-List: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org Precedence: list 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 17844 invoked by uid 89); 9 May 2014 13:40:44 -0000 X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL, BAYES_00, RCVD_IN_DNSWL_LOW, SPF_PASS autolearn=ham version=3.3.2 X-HELO: mail-wg0-f50.google.com X-Received: by 10.181.13.137 with SMTP id ey9mr3432531wid.54.1399642840495; Fri, 09 May 2014 06:40:40 -0700 (PDT) From: Will Newton To: libc-alpha@sourceware.org Subject: [PATCH] ARM: Allow auto-detection of linker relro feature Date: Fri, 9 May 2014 14:40:35 +0100 Message-Id: <1399642835-31210-1-git-send-email-will.newton@linaro.org> X-Original-Sender: will.newton@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 2607:f8b0:400c:c03::22a as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org; dkim=pass header.i=@sourceware.org X-Google-Group-Id: 836684582541 Set values for libc_commonpagesize and libc_relro_required for the ARM port to enable relro by default and suppress a warning at configure time. ChangeLog: 2014-05-09 Will Newton * sysdeps/arm/preconfigure.ac: Set libc_commonpagesize and libc_relro_required for ARM. * sysdeps/arm/preconfigure: Regenerate. --- sysdeps/arm/preconfigure | 8 ++++++++ sysdeps/arm/preconfigure.ac | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/sysdeps/arm/preconfigure b/sysdeps/arm/preconfigure index b3124ed..74869b1 100644 --- a/sysdeps/arm/preconfigure +++ b/sysdeps/arm/preconfigure @@ -61,3 +61,11 @@ $as_echo "$as_me: WARNING: arm/preconfigure: Did not find ARM architecture type; machine=arm/$machine esac + +case "$machine" in +arm*) + # Parameters to allow auto-detection of -z relro. + libc_commonpagesize=0x1000 + libc_relro_required=yes + ;; +esac diff --git a/sysdeps/arm/preconfigure.ac b/sysdeps/arm/preconfigure.ac index 39c8621..29a260c 100644 --- a/sysdeps/arm/preconfigure.ac +++ b/sysdeps/arm/preconfigure.ac @@ -56,3 +56,11 @@ arm*) machine=arm/$machine esac + +case "$machine" in +arm*) + # Parameters to allow auto-detection of -z relro. + libc_commonpagesize=0x1000 + libc_relro_required=yes + ;; +esac