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: 347421 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 D69DB140100 for ; Fri, 9 May 2014 23:40:51 +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:from:to:subject:date:message-id; q=dns; s= default; b=Z3AfJEj+sduugJ0jzBKE7n9eyobCKGLQROEaffF8PKpfgiEkCpQtq jwpKyDs6FwF54gAo6u8RVZJ6ZzdpoNvUbiV7ejYezi5+c88wNW8loCy91PKKHyb5 E8uWNnqH0V4sHV8iTY0vCn8UJpO2KwAQkRz28WKifoftzlcVoD98m4= 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:from:to:subject:date:message-id; s=default; bh=vJO0M92z1DLceD2DEfVEz5ef6IY=; b=ywPcjCMN9iplHVM3PY+wyPllq4SY +3L3wBD6X5t1jghouCDHVU7B60kkxBTHAp1eWv9Tb9phNXyrRVFwpiWL5TuOg5mi 4NblEB2KUn5xjVGuu6z75smUVzopTZqe4cgkgJ2u+1joe71ENCJDxTWNkSSUWdV6 99v3X0fplpoYxOc= Received: (qmail 17856 invoked by alias); 9 May 2014 13:40:45 -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 17844 invoked by uid 89); 9 May 2014 13:40:44 -0000 Authentication-Results: sourceware.org; auth=none 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-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=7jj9xB0p/pei4A708S4o0MHPkohudWjXEK7IdwXzUog=; b=L+l+ubVaH5vW8DupH1Xy62WGyg5xfLvN4VZWjJWPNwM493Ddn/+264WOl9fWtC4iSs k2LlVweOkmYPGIui2joMqamzocbDR7kP52qtUvQgbJhtnaHRWVrYB3g30lYKRxY3l0ov PFcptCmhmyzLwH66ptLAve/Wqf3NohxC/ZE4bWkjkNvAVpjuIcfiXS44YjThy951mpfd qn6SSuRKvdskveFK3oFKzGbojJMbrKMizpLoWh+IwpG1pX5Q8Lkj5qPgNa3G4NuIn74G wItQH9bNeeF5bXHHKKniTCUSBfJaVGVJnug2TP2Y4fd2DB9jjH4MK8mPq8PoRtA186am f9AA== X-Gm-Message-State: ALoCoQmo+Xwj1PjpdX8AwQtxZZbi/pwAYXKFPynILO+admCZ/bTDB1VbWxFcuJB05DjFwqXRmXe4 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> 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