Message ID | 1426248452-4773-7-git-send-email-ard.biesheuvel@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDYNJBOFRECBB35HROUAKGQESSZ2V7Q@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id ED772214BF for <linaro@patches.linaro.org>; Fri, 13 Mar 2015 12:11:28 +0000 (UTC) Received: by lams18 with SMTP id s18sf16355321lam.2 for <linaro@patches.linaro.org>; Fri, 13 Mar 2015 05:11:27 -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=6VWN/znxX9f/FdnhekrOxQvmVzUbQuKFxEz+LxXVZnU=; b=IJ/3w3aOo9XFHKz4bhSNQf3mNSgBbv5AsTOrM86hvztAhyeRiaCP6LhWYeXwp7cuJs GGeX7AprrRh4LxCJqb7LOJlf56QvErd4HKT8xcUZ66V+BLckP0QXBnVA/PiJoPUFrK3a JEQB1qClNsHNcu6fEUaebgwM0edGAlP15vONaTt8ntgpQmuzCZq2wlphvOddm+tL1Rwq JXPlttbZYcE++Ca2iwoQdeUMy+z6f5OK6hFWsADdMtjZ6lilhaOizbI2C7jM3GPpj1HF u+zzsPEvGjIQuTHtXqBPKKcH0DfaYkbJ6YTDqTrAsez0SC+oyvSmhQfIHzzmZrDkDNXZ BENw== X-Gm-Message-State: ALoCoQneV2VtoCd0DM3BW6VZ1zgnh8/q9Pzbl68fh7otorVs+XJVJ2AIl+4vF0hqca4ZJASHPw+e X-Received: by 10.152.6.41 with SMTP id x9mr7177727lax.10.1426248687984; Fri, 13 Mar 2015 05:11:27 -0700 (PDT) X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.23.195 with SMTP id o3ls406054laf.82.gmail; Fri, 13 Mar 2015 05:11:27 -0700 (PDT) X-Received: by 10.152.36.37 with SMTP id n5mr43485110laj.40.1426248687584; Fri, 13 Mar 2015 05:11:27 -0700 (PDT) Received: from mail-la0-f50.google.com (mail-la0-f50.google.com. [209.85.215.50]) by mx.google.com with ESMTPS id f2si1242075laa.111.2015.03.13.05.11.27 for <patchwork-forward@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 05:11:27 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.50 as permitted sender) client-ip=209.85.215.50; Received: by lams18 with SMTP id s18so22114859lam.9 for <patchwork-forward@linaro.org>; Fri, 13 Mar 2015 05:11:27 -0700 (PDT) X-Received: by 10.152.206.70 with SMTP id lm6mr43874663lac.35.1426248687287; Fri, 13 Mar 2015 05:11:27 -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 h5csp863472lbj; Fri, 13 Mar 2015 05:11:26 -0700 (PDT) X-Received: by 10.67.3.196 with SMTP id by4mr101952107pad.74.1426248684864; Fri, 13 Mar 2015 05:11:24 -0700 (PDT) Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id gy2si3706255pac.24.2015.03.13.05.11.24 for <patch@linaro.org> (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 13 Mar 2015 05:11:24 -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 1YWOPQ-0000lP-2R; Fri, 13 Mar 2015 12:09:44 +0000 Received: from mail-wi0-f171.google.com ([209.85.212.171]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1YWOO3-0008KP-Fk for linux-arm-kernel@lists.infradead.org; Fri, 13 Mar 2015 12:08:20 +0000 Received: by widex7 with SMTP id ex7so5407752wid.1 for <linux-arm-kernel@lists.infradead.org>; Fri, 13 Mar 2015 05:08:00 -0700 (PDT) X-Received: by 10.180.78.202 with SMTP id d10mr139428061wix.25.1426248479852; Fri, 13 Mar 2015 05:07:59 -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.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Fri, 13 Mar 2015 05:07:59 -0700 (PDT) From: Ard Biesheuvel <ard.biesheuvel@linaro.org> To: linux-arm-kernel@lists.infradead.org, arnd@arndb.de, linux@arm.linux.org.uk, nico@linaro.org Subject: [PATCH v2 6/8] asm-generic: introduce .text.fixup input section Date: Fri, 13 Mar 2015 13:07:30 +0100 Message-Id: <1426248452-4773-7-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_735649_5B237ADC X-CRM114-Status: UNSURE ( 9.78 ) 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.171 listed in list.dnswl.org] -0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [209.85.212.171 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 <ard.biesheuvel@linaro.org> X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: <patchwork-forward.linaro.org> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Subscribe: <http://lists.infradead.org/mailman/listinfo/linux-arm-kernel>, <mailto:linux-arm-kernel-request@lists.infradead.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" <linux-arm-kernel-bounces@lists.infradead.org> 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.50 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 |
diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinux.lds.h index ac78910d7416..463231d5bfc7 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -401,7 +401,7 @@ #define TEXT_TEXT \ ALIGN_FUNCTION(); \ *(.text.hot) \ - *(.text) \ + *(.text .text.fixup) \ *(.ref.text) \ MEM_KEEP(init.text) \ MEM_KEEP(exit.text) \
This introduces a new .text.fixup input section that gets emitted together with the .text section for each input object file. Note that *(.text) *(.text.fixup) is not the same as *(.text .text.fixup) and we are looking for the latter, to ensure that fixup snippets that are assembled into a separate section in the object file do not end up out of range for the relative branch instructions it contains if the .text section itself grows very large. This helps prevent linker failures on large ARM kernels. Signed-off-by: Ard Biesheuvel <ard.biesheuvel@linaro.org> --- include/asm-generic/vmlinux.lds.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)