From patchwork Fri Mar 13 12:07:29 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 45770 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f71.google.com (mail-wg0-f71.google.com [74.125.82.71]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id A6B76214BF for ; Fri, 13 Mar 2015 12:12:33 +0000 (UTC) Received: by wggy19 with SMTP id y19sf16091929wgg.2 for ; Fri, 13 Mar 2015 05:12:32 -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:subject:date:message-id :in-reply-to:references:cc:precedence:list-id:list-unsubscribe :list-archive:list-post:list-help:list-subscribe:mime-version :content-type:content-transfer-encoding:sender:errors-to :x-original-sender:x-original-authentication-results:mailing-list; bh=WY/80AutqLT2eDWIZu+uX8uaTx9P92XMdAD9P9p5Gxc=; b=bQsMtLnezj8CfZ4n71Dg2rtIC0BYx9eLIvgZR0mmpdWpNI6Ilk4OgW9sRym6kLP8rl wEZgcei7a1KVDY26v1DwBGEOFXFbEkYZulcQHfSrSu2RUjXHUq4bDkfHvJxXA8boIW39 CSA8H+M16ihljFs47p3Iq/0uJCHfO9K3AgfyTqR+cT13VUURNRUpEfiqsfRHWt2tKzE9 VBhr6VR7uPOc7WaXiDmRUd3hoEbnDhZVUAgxWwWUIjF/6n14NyYek8Vnp8YO7NuM3XOY oy0G7gwzwSpXlZantSl4Qkwx30CUrJw7L9rpfowUxAZSvvSqpCC3M6/oCzcJH5qv74fr gVPA== X-Gm-Message-State: ALoCoQlWGB2dHI463tGZ8FLPZsZYZMyy1CkYOSFxBc8yzHuDV7uyJR4lz3WIFYwkdoHguK1Oy8S0 X-Received: by 10.194.95.67 with SMTP id di3mr7203442wjb.0.1426248751935; Fri, 13 Mar 2015 05:12:31 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.36.199 with SMTP id s7ls341826laj.57.gmail; Fri, 13 Mar 2015 05:12:31 -0700 (PDT) X-Received: by 10.112.67.107 with SMTP id m11mr18305091lbt.43.1426248751499; Fri, 13 Mar 2015 05:12:31 -0700 (PDT) Received: from mail-la0-f51.google.com (mail-la0-f51.google.com. [209.85.215.51]) by mx.google.com with ESMTPS id v5si1244818laj.98.2015.03.13.05.12.31 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 05:12:31 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 as permitted sender) client-ip=209.85.215.51; Received: by labgm9 with SMTP id gm9so22139651lab.11 for ; Fri, 13 Mar 2015 05:12:31 -0700 (PDT) X-Received: by 10.112.172.229 with SMTP id bf5mr42455205lbc.72.1426248751257; Fri, 13 Mar 2015 05:12:31 -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.112.35.133 with SMTP id h5csp864195lbj; Fri, 13 Mar 2015 05:12:30 -0700 (PDT) X-Received: by 10.70.88.105 with SMTP id bf9mr102419329pdb.77.1426248749537; Fri, 13 Mar 2015 05:12:29 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id s5si3681826pdc.152.2015.03.13.05.12.28 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 05:12:29 -0700 (PDT) Received-SPF: none (google.com: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org does not designate permitted sender hosts) client-ip=2001:1868:205::9; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.80.1 #2 (Red Hat Linux)) id 1YWOQ6-0001cF-6f; Fri, 13 Mar 2015 12:10:26 +0000 Received: from mail-wg0-f42.google.com ([74.125.82.42]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YWOO3-0008Jg-Ok for linux-arm-kernel@lists.infradead.org; Fri, 13 Mar 2015 12:08:21 +0000 Received: by wggx12 with SMTP id x12so22731843wgg.13 for ; Fri, 13 Mar 2015 05:07:57 -0700 (PDT) X-Received: by 10.194.94.164 with SMTP id dd4mr98544213wjb.56.1426248477817; Fri, 13 Mar 2015 05:07:57 -0700 (PDT) Received: from ards-macbook-pro.local (53.Red-79-151-58.dynamicIP.rima-tde.net. [79.151.58.53]) by mx.google.com with ESMTPSA id w4sm2507612wib.19.2015.03.13.05.07.55 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Mar 2015 05:07:56 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux@arm.linux.org.uk, nico@linaro.org Subject: [PATCH v2 5/8] ARM: move the .idmap.text section closer to .head.text Date: Fri, 13 Mar 2015 13:07:29 +0100 Message-Id: <1426248452-4773-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1426248452-4773-1-git-send-email-ard.biesheuvel@linaro.org> References: <1426248452-4773-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150313_050819_982352_2BC45923 X-CRM114-Status: UNSURE ( 8.97 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.7 (/) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-0.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [74.125.82.42 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [74.125.82.42 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record -0.0 RCVD_IN_MSPIKE_WL Mailspike good senders Cc: Ard Biesheuvel X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: , List-Help: , List-Subscribe: , MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ard.biesheuvel@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.51 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 This moves the .idmap.text section closer to .head.text, so that relative branches are less likely to go out of range if the kernel text gets bigger. Acked-by: Nicolas Pitre Signed-off-by: Ard Biesheuvel --- arch/arm/kernel/vmlinux.lds.S | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/kernel/vmlinux.lds.S b/arch/arm/kernel/vmlinux.lds.S index e3b9403bd2d6..2e7b2220ef5f 100644 --- a/arch/arm/kernel/vmlinux.lds.S +++ b/arch/arm/kernel/vmlinux.lds.S @@ -103,6 +103,7 @@ SECTIONS .text : { /* Real text segment */ _stext = .; /* Text and read-only data */ + IDMAP_TEXT __exception_text_start = .; *(.exception.text) __exception_text_end = .; @@ -111,7 +112,6 @@ SECTIONS SCHED_TEXT LOCK_TEXT KPROBES_TEXT - IDMAP_TEXT #ifdef CONFIG_MMU *(.fixup) #endif