From patchwork Mon Jun 9 14:28:12 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ian Campbell X-Patchwork-Id: 31567 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-pd0-f198.google.com (mail-pd0-f198.google.com [209.85.192.198]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 7AE8C203AB for ; Mon, 9 Jun 2014 14:30:14 +0000 (UTC) Received: by mail-pd0-f198.google.com with SMTP id w10sf7996053pde.1 for ; Mon, 09 Jun 2014 07:30:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:delivered-to:from:to:date:message-id :mime-version:cc:subject:precedence:list-id:list-unsubscribe :list-post:list-help:list-subscribe:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list :list-archive:content-type:content-transfer-encoding; bh=0/W6/8PmThBNgG0dwKwD6XGKuEp2Wx0pKv65NGusLGE=; b=Bg9DAzIoZH6WSg3NKpVQuiLj0oj75EOqFzsaLoF3SlODfVvyUjdNuQ3SGMZG4VWd47 KWiqcgk6UXT9THdInMH0HKdgwt/u+mMHJuL3urSc/+EuKXYh3RDFojTZLCkzxS9c5dX7 DPNK8wXjU7rOoov5j6YbS4bKyguKgMXj4r7th8EzWIAhfGI6uca9S4bxWhoFMj/7r7CR /RdYDoaoKQ3ZlN/d42j7FJm6iatjym3zUqe9z+8Bke/8zhWlAWJPLQfDj34rgkJrsOiW EHxka8NZo70dzePcLocNVYfo2BhRawawwVP76jyxE70iEiJSSZOB1LKz3b6ieGTGqGqu ipyQ== X-Gm-Message-State: ALoCoQmHSqXBIq2b6b+HnpMaE8hLyoZAI7vd3VRXYiKia2pu5ltBCrHX07Znk6evxYIuiVTYFvop X-Received: by 10.66.235.170 with SMTP id un10mr2411130pac.37.1402324213765; Mon, 09 Jun 2014 07:30:13 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.140.87.141 with SMTP id r13ls1662649qgd.98.gmail; Mon, 09 Jun 2014 07:30:13 -0700 (PDT) X-Received: by 10.220.99.73 with SMTP id t9mr667315vcn.76.1402324213561; Mon, 09 Jun 2014 07:30:13 -0700 (PDT) Received: from mail-vc0-f171.google.com (mail-vc0-f171.google.com [209.85.220.171]) by mx.google.com with ESMTPS id d3si10677269vck.42.2014.06.09.07.30.13 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 09 Jun 2014 07:30:13 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) client-ip=209.85.220.171; Received: by mail-vc0-f171.google.com with SMTP id id10so4639239vcb.30 for ; Mon, 09 Jun 2014 07:30:13 -0700 (PDT) X-Received: by 10.53.8.162 with SMTP id dl2mr21741081vdd.24.1402324212796; Mon, 09 Jun 2014 07:30:12 -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.221.54.6 with SMTP id vs6csp150251vcb; Mon, 9 Jun 2014 07:30:11 -0700 (PDT) X-Received: by 10.58.123.71 with SMTP id ly7mr26415334veb.11.1402324211421; Mon, 09 Jun 2014 07:30:11 -0700 (PDT) Received: from lists.xen.org (lists.xen.org. [50.57.142.19]) by mx.google.com with ESMTPS id kt17si2658659veb.84.2014.06.09.07.30.11 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Mon, 09 Jun 2014 07:30:11 -0700 (PDT) Received-SPF: none (google.com: xen-devel-bounces@lists.xen.org does not designate permitted sender hosts) client-ip=50.57.142.19; Received: from localhost ([127.0.0.1] helo=lists.xen.org) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wu0Yc-0007G3-GT; Mon, 09 Jun 2014 14:28:18 +0000 Received: from mail6.bemta14.messagelabs.com ([193.109.254.103]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Wu0Ya-0007Fo-Qt for xen-devel@lists.xen.org; Mon, 09 Jun 2014 14:28:16 +0000 Received: from [193.109.254.147:7899] by server-8.bemta-14.messagelabs.com id 5F/49-01877-084C5935; Mon, 09 Jun 2014 14:28:16 +0000 X-Env-Sender: Ian.Campbell@citrix.com X-Msg-Ref: server-15.tower-27.messagelabs.com!1402324094!10066389!1 X-Originating-IP: [66.165.176.89] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogNjYuMTY1LjE3Ni44OSA9PiAyMDMwMDc=\n X-StarScan-Received: X-StarScan-Version: 6.11.3; banners=-,-,- X-VirusChecked: Checked Received: (qmail 29577 invoked from network); 9 Jun 2014 14:28:15 -0000 Received: from smtp.citrix.com (HELO SMTP.CITRIX.COM) (66.165.176.89) by server-15.tower-27.messagelabs.com with RC4-SHA encrypted SMTP; 9 Jun 2014 14:28:15 -0000 X-IronPort-AV: E=Sophos; i="4.98,1002,1392163200"; d="scan'208"; a="141491040" Received: from accessns.citrite.net (HELO FTLPEX01CL02.citrite.net) ([10.9.154.239]) by FTLPIPO01.CITRIX.COM with ESMTP; 09 Jun 2014 14:28:15 +0000 Received: from norwich.cam.xci-test.com (10.80.248.129) by smtprelay.citrix.com (10.13.107.79) with Microsoft SMTP Server id 14.3.181.6; Mon, 9 Jun 2014 10:28:13 -0400 Received: from marilith-n13-p0.uk.xensource.com ([10.80.229.115] helo=marilith-n13.uk.xensource.com.) by norwich.cam.xci-test.com with esmtp (Exim 4.72) (envelope-from ) id 1Wu0YX-000314-2w; Mon, 09 Jun 2014 14:28:13 +0000 From: Ian Campbell To: Date: Mon, 9 Jun 2014 15:28:12 +0100 Message-ID: <1402324092-28707-1-git-send-email-ian.campbell@citrix.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-DLP: MIA1 Cc: Ian Campbell , Jan Beulich Subject: [Xen-devel] [PATCH] xen: arm: include .text.cold and .text.unlikely in text area X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: List-Unsubscribe: , List-Post: , List-Help: , List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ian.campbell@citrix.com X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.220.171 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Archive: Otherwise functions in these sections can end up between .text and .rodata which is after _etext and therefore gets made non-executable. This matches x86 (although it was done there for different reasons). Signed-off-by: Ian Campbell Cc: Jan Beulich Acked-by: Julien Grall --- Jan, any reason why x86 doesn't just use .text.*? --- xen/arch/arm/xen.lds.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S index e8b4f47..be55dad 100644 --- a/xen/arch/arm/xen.lds.S +++ b/xen/arch/arm/xen.lds.S @@ -30,6 +30,8 @@ SECTIONS .text : /* XXX should be AT ( XEN_PHYS_START ) */ { _stext = .; /* Text section */ *(.text) + *(.text.cold) + *(.text.unlikely) *(.fixup) *(.gnu.warning) _etext = .; /* End of text section */