From patchwork Thu Mar 12 17:38:11 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 45745 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-wg0-f69.google.com (mail-wg0-f69.google.com [74.125.82.69]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 4E03A214BF for ; Thu, 12 Mar 2015 17:42:19 +0000 (UTC) Received: by wghl18 with SMTP id l18sf12768622wgh.1 for ; Thu, 12 Mar 2015 10:42:18 -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=ZF2cqECEbhqApE6mYsvhWkA3BitEs8vXCQ4C5gy9ONE=; b=b49TtQNT7pd0ZcKlwVRGfNlBSHtZ87G4+mFL1wpBWDgGyIIBhLgJLlmVub/X+S7MUx lQGW+3k86r9GRndcWhntWeTqWUgwnyOxEy43qrdI7Fz1wBPOoNFWQLxomvgnwglpXBQ1 nAsQNxCxrlu2L0Ixe2kDdZX9Wl2QsVXW74HRP6tIVI/hcJH1BJGViZxuApWT1//Ah2SL OCEqxliuj5Y2jMCqQy8v00SRibh/c5iwhIBsBsir3D9NSBi6+umBS/zZKCG8XEUJarIJ hw0xlOrq+2me/6I5got+1zkMXcVK6HIFFnSqgmGWj8wTf8UfaqLIO8GBYBYxSLLuzr1R Ix3w== X-Gm-Message-State: ALoCoQmToxmVpmRGDR/re7xxMPkT7a9CHyn3l6wc8sS8eFS0vhJlYhoV3QqouO81wx0mlK+QdRON X-Received: by 10.180.109.34 with SMTP id hp2mr5330840wib.4.1426182138605; Thu, 12 Mar 2015 10:42:18 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.29.225 with SMTP id n1ls321772lah.52.gmail; Thu, 12 Mar 2015 10:42:18 -0700 (PDT) X-Received: by 10.112.110.231 with SMTP id id7mr40184889lbb.28.1426182138414; Thu, 12 Mar 2015 10:42:18 -0700 (PDT) Received: from mail-la0-f53.google.com (mail-la0-f53.google.com. [209.85.215.53]) by mx.google.com with ESMTPS id rc5si4920380lac.46.2015.03.12.10.42.18 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2015 10:42:18 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.53 as permitted sender) client-ip=209.85.215.53; Received: by labgm9 with SMTP id gm9so17464295lab.13 for ; Thu, 12 Mar 2015 10:42:18 -0700 (PDT) X-Received: by 10.152.30.103 with SMTP id r7mr36774273lah.76.1426182138297; Thu, 12 Mar 2015 10:42:18 -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 h5csp383075lbj; Thu, 12 Mar 2015 10:42:17 -0700 (PDT) X-Received: by 10.50.171.170 with SMTP id av10mr102601130igc.28.1426182136952; Thu, 12 Mar 2015 10:42:16 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id qp10si1348410pdb.125.2015.03.12.10.42.16 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 12 Mar 2015 10:42:16 -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 1YW76C-0006Jx-HN; Thu, 12 Mar 2015 17:40:44 +0000 Received: from mail-wi0-f173.google.com ([209.85.212.173]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YW74f-0004J8-IN for linux-arm-kernel@lists.infradead.org; Thu, 12 Mar 2015 17:39:10 +0000 Received: by wiwl15 with SMTP id l15so49712040wiw.4 for ; Thu, 12 Mar 2015 10:38:47 -0700 (PDT) X-Received: by 10.180.85.70 with SMTP id f6mr77488076wiz.22.1426181927324; Thu, 12 Mar 2015 10:38:47 -0700 (PDT) Received: from ards-macbook-pro.local (45.Red-83-50-109.dynamicIP.rima-tde.net. [83.50.109.45]) by mx.google.com with ESMTPSA id m9sm14081659wiz.24.2015.03.12.10.38.44 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 12 Mar 2015 10:38:46 -0700 (PDT) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux@arm.linux.org.uk, nico@linaro.org Subject: [RFT/RFC PATCH 5/6] ARM: move the .idmap.text section closer to .head.text Date: Thu, 12 Mar 2015 18:38:11 +0100 Message-Id: <1426181892-15440-6-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 1.8.3.2 In-Reply-To: <1426181892-15440-1-git-send-email-ard.biesheuvel@linaro.org> References: <1426181892-15440-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20150312_103909_795253_0B359229 X-CRM114-Status: UNSURE ( 9.17 ) 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 [209.85.212.173 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.173 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.53 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. Signed-off-by: Ard Biesheuvel Acked-by: Nicolas Pitre --- 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