From patchwork Thu Jan 28 11:07:33 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ard Biesheuvel X-Patchwork-Id: 60712 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp403176lbb; Thu, 28 Jan 2016 03:10:15 -0800 (PST) X-Received: by 10.66.156.195 with SMTP id wg3mr3602389pab.54.1453979415398; Thu, 28 Jan 2016 03:10:15 -0800 (PST) Return-Path: Received: from bombadil.infradead.org (bombadil.infradead.org. [2001:1868:205::9]) by mx.google.com with ESMTPS id f65si16340097pff.29.2016.01.28.03.10.15 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 28 Jan 2016 03:10:15 -0800 (PST) Received-SPF: pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) client-ip=2001:1868:205::9; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org designates 2001:1868:205::9 as permitted sender) smtp.mailfrom=linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org; dkim=neutral (body hash did not verify) header.i=@linaro.org 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 1aOkRc-0007wt-5y; Thu, 28 Jan 2016 11:08:56 +0000 Received: from mail-wm0-x232.google.com ([2a00:1450:400c:c09::232]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1aOkQo-00070B-3O for linux-arm-kernel@lists.infradead.org; Thu, 28 Jan 2016 11:08:07 +0000 Received: by mail-wm0-x232.google.com with SMTP id p63so19375334wmp.1 for ; Thu, 28 Jan 2016 03:07:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=/bdlImSjY743iFegCh3vvsCF4iKy2tPSY2rxMJxzZBg=; b=B/5rcKrxDv9IlyxQYhen+nNoPv3OkL0v49PxJ4lgxRtPirGYrbJpJtLXXfV4VLhywg 2TmLAilmzz8LU7n2uOjjY1sitgWwMKwFsGarn2Q5Lo/0jAKoXmDblreX5UhGfYtcfp+v AY8aRZKxV5zC0bpaetjoyG75t0Nfw8REBnp64= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=/bdlImSjY743iFegCh3vvsCF4iKy2tPSY2rxMJxzZBg=; b=Kw6hf/2okvhcNIXeJ8+vZmFrUkkrbnB6SUlNQ8BbuIki0/ipGeguTeT3Ka1Bd0PAwk wviHH4QWK2/BGhVYsOJQpsoXW1W5Q3VW3iimwqVsiUQb3jqOxzVn8N+hkuo8lEgLzK2Q u/OF0TC/tVTuUZuD4XF1v8YYg96d7jsxs+QMHuvh2OCeB9oV3HvQRz6fth6fNTaOcJoK slL8ohfRL8wdKfVnMSAl+Zfd+GWzHoZ3Ns/JCuUFf/EyWioAzJi9Vi4PckqCfSdbW92v WxenjjUnCSlve+nTMit2w5wCgT45Vxpt2nP3/flOv3UIllu24VYFv0hjyB3S2yakBKN5 qWQg== X-Gm-Message-State: AG10YOQcmAIvOqGht62+x0pVXq/FdVYglVZPmvOS95WviYxCtuAl3LbFO54qUI6mIE+zrPUK X-Received: by 10.28.113.220 with SMTP id d89mr2591633wmi.56.1453979264345; Thu, 28 Jan 2016 03:07:44 -0800 (PST) Received: from localhost.localdomain ([195.55.142.58]) by smtp.gmail.com with ESMTPSA id c203sm2360854wmd.5.2016.01.28.03.07.42 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Jan 2016 03:07:43 -0800 (PST) From: Ard Biesheuvel To: linux-arm-kernel@lists.infradead.org, leif.lindholm@linaro.org, matt@codeblueprint.co.uk Subject: [PATCH 2/3] arm64: vmlinux.lds.S: handle .init.rodata.xxx and .init.bss sections Date: Thu, 28 Jan 2016 12:07:33 +0100 Message-Id: <1453979254-25374-3-git-send-email-ard.biesheuvel@linaro.org> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1453979254-25374-1-git-send-email-ard.biesheuvel@linaro.org> References: <1453979254-25374-1-git-send-email-ard.biesheuvel@linaro.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160128_030806_437315_2121C7B2 X-CRM114-Status: GOOD ( 11.39 ) X-Spam-Score: -2.7 (--) X-Spam-Report: SpamAssassin version 3.4.0 on bombadil.infradead.org summary: Content analysis details: (-2.7 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.7 RCVD_IN_DNSWL_LOW RBL: Sender listed at http://www.dnswl.org/, low trust [2a00:1450:400c:c09:0:0:0:232 listed in] [list.dnswl.org] -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mark.rutland@arm.com, catalin.marinas@arm.com, will.deacon@arm.com, Ard Biesheuvel MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patch=linaro.org@lists.infradead.org The EFI stub is typically built into the decompressor (x86, ARM) so none of its symbols are annotated as __init. However, on arm64, the stub is linked into the kernel proper, and the code is __init annotated at the section level by prepending all names of SHF_ALLOC sections with '.init'. This results in section names like .init.rodata.str1.8 (for string literals) and .init.bss (which is tiny), both of which can be moved into the .init.data output section. Signed-off-by: Ard Biesheuvel --- arch/arm64/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) -- 2.5.0 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel Acked-by: Will Deacon diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index e3928f578891..cbf4db440e9c 100644 --- a/arch/arm64/kernel/vmlinux.lds.S +++ b/arch/arm64/kernel/vmlinux.lds.S @@ -134,6 +134,7 @@ SECTIONS CON_INITCALL SECURITY_INITCALL INIT_RAM_FS + *(.init.rodata.* .init.bss) /* from the EFI stub */ } .exit.data : { ARM_EXIT_KEEP(EXIT_DATA)