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: 857 Return-Path: X-Original-To: siddhesh@wilcox.dreamhost.com Delivered-To: siddhesh@wilcox.dreamhost.com Received: from homiemail-mx22.g.dreamhost.com (mx2.sub5.homie.mail.dreamhost.com [208.113.200.128]) by wilcox.dreamhost.com (Postfix) with ESMTP id 24467360073 for ; Fri, 9 May 2014 06:40:49 -0700 (PDT) Received: by homiemail-mx22.g.dreamhost.com (Postfix, from userid 14307373) id B957855A239E; Fri, 9 May 2014 06:40:48 -0700 (PDT) X-Original-To: glibc@patchwork.siddhesh.in Delivered-To: x14307373@homiemail-mx22.g.dreamhost.com 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 homiemail-mx22.g.dreamhost.com (Postfix) with ESMTPS id 8ED5F52C800C for ; Fri, 9 May 2014 06:40:48 -0700 (PDT) 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=Y1I9pcY61YhHj9/2VqLNOeOjFBGJDYDKiqo8UQe1XDOYdyYi2W+wi 03Y1lbYnWPg4+LoxDbk234Of2rU3a/RBVjv2hSlaPMcuUhjiBP8jJoH9BDPjipKc Q8oX5GQn/iaYt6pFnPlYcttlk81w7Cxasoo9ImfVSt9R8RoHmVxjbk= 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=cTOrL7n2yEEo4zDQ4AxhxYfUFrE+ ZemjWwfDiND29PTxQQmldu0+C/rBspBS0WkOle/AffYAdzNRGcoDdaTttcRK35Nv FnwurPUd2j2qhtAp59mpZ6Wb+QGRp/nWs/GIysRot27TlfW5d5zhUxM4+u3stCTP AUD6uR4sVOmz5ZY= 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> X-DH-Original-To: glibc@patchwork.siddhesh.in 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