From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752118AbcBWJ1S (ORCPT ); Tue, 23 Feb 2016 04:27:18 -0500 Received: from terminus.zytor.com ([198.137.202.10]:57962 "EHLO terminus.zytor.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754529AbcBWJJj (ORCPT ); Tue, 23 Feb 2016 04:09:39 -0500 Date: Mon, 22 Feb 2016 04:14:31 -0800 From: =?UTF-8?B?dGlwLWJvdCBmb3IgQXJkIEJpZXNoZXV2ZWwgPHRpcGJvdEB6eXRvci5jb20+?=@zytor.com Message-ID: Cc: hpa@zytor.com, mark.rutland@arm.com, will.deacon@arm.com, ard.biesheuvel@linaro.org, torvalds@linux-foundation.org, peterz@infradead.org, matt@codeblueprint.co.uk, mingo@kernel.org, tglx@linutronix.de, linux-kernel@vger.kernel.org Reply-To: ard.biesheuvel@linaro.org, will.deacon@arm.com, mark.rutland@arm.com, hpa@zytor.com, matt@codeblueprint.co.uk, torvalds@linux-foundation.org, peterz@infradead.org, tglx@linutronix.de, mingo@kernel.org, linux-kernel@vger.kernel.org In-Reply-To: <1455712566-16727-6-git-send-email-matt@codeblueprint.co.uk> References: <1455712566-16727-6-git-send-email-matt@codeblueprint.co.uk> To: =?UTF-8?B?bGludXgtdGlwLWNvbW1pdHNAdmdlci5rZXJuZWwub3Jn?=@zytor.com Subject: =?UTF-8?B?W3RpcDplZmkvY29yZV0gYXJtNjQvdm1saW51eC5sZHMuUzogSGFuZGxlIC5pbmk=?= =?UTF-8?B?dC5yb2RhdGEueHh4IGFuZCAuaW5pdC5ic3Mgc2VjdGlvbnM=?= Git-Commit-ID: =?UTF-8?B?MWNlOTliZjQ1MzA2YmE4ODlmYWFkY2VkNmJhYWJlYmY3NzcwYzU0Ng==?= X-Mailer: =?UTF-8?B?dGlwLWdpdC1sb2ctZGFlbW9u?= Robot-ID: =?UTF-8?B?PHRpcC1ib3QuZ2l0Lmtlcm5lbC5vcmc+?= Robot-Unsubscribe: =?UTF-8?B?Q29udGFjdCA8bWFpbHRvOmhwYUBrZXJuZWwub3JnPiB0byBnZXQgYmxhY2tsaXM=?= =?UTF-8?B?dGVkIGZyb20gdGhlc2UgZW1haWxz?= MIME-Version: =?UTF-8?B?MS4w?= Content-Transfer-Encoding: =?UTF-8?B?OGJpdA==?= Content-Type: =?UTF-8?B?dGV4dC9wbGFpbjsgY2hhcnNldD1VVEYtOA==?= Content-Disposition: =?UTF-8?B?aW5saW5l?= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Commit-ID: 1ce99bf45306ba889faadced6baabebf7770c546 Gitweb: http://git.kernel.org/tip/1ce99bf45306ba889faadced6baabebf7770c546 Author: Ard Biesheuvel AuthorDate: Wed, 17 Feb 2016 12:35:58 +0000 Committer: Ingo Molnar CommitDate: Mon, 22 Feb 2016 08:26:26 +0100 arm64/vmlinux.lds.S: Handle .init.rodata.xxx and .init.bss sections 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. Tested-by: Mark Rutland Signed-off-by: Ard Biesheuvel Signed-off-by: Matt Fleming Acked-by: Will Deacon Acked-by: Mark Rutland Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: linux-efi@vger.kernel.org Link: http://lkml.kernel.org/r/1455712566-16727-6-git-send-email-matt@codeblueprint.co.uk Signed-off-by: Ingo Molnar --- arch/arm64/kernel/vmlinux.lds.S | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S index e3928f5..cbf4db4 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)