From nobody Fri Apr 10 00:56:45 2026 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id CDEC327E1C5; Thu, 5 Mar 2026 03:31:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772681508; cv=none; b=P1htqUlXqZG483OI0VnMDCpyiLPPNxZS1pLuMZdijEjRq4/7k1AsEYOj7g+OfPzO7C60k7rZhy3R9E5ojm11afm/0hm8qMsN+XCwk0FMY4jp/X9qY/cQf9P5Nxp2eJmxEQ09L2aHczrq8YpnBPsK9yGp9K1bNuaTwjyOKo6pQ9A= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1772681508; c=relaxed/simple; bh=ZlgKzEodeo2h7xrj6+yOcZaTPgylpV+16ZQbZgUDqcg=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=RgCfLF6NSzHXLTQlMJ5Ir4ul7snVf+5szdXfk2mylATx/j2euOrok8JhFbYVtCYqQPXVV8nj417+tXKK8/mwabTggy3LLg0GStGnOq+/zrK7qm5xp5bdomqz7a7Cytptj7lyX8kd7sqXpkkC0hu+GwZAkW7F+u55my7OOiTqdqI= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b=Mf1Z2e4t; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.b="Mf1Z2e4t" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8AF69C2BCB0; Thu, 5 Mar 2026 03:31:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1772681508; bh=ZlgKzEodeo2h7xrj6+yOcZaTPgylpV+16ZQbZgUDqcg=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mf1Z2e4tuic6+UzuCaVI+uWZg38Ul6M59lDO7FSFfzX7kdZdGwNm7SDFVjxF+roSe qXH+rL5lueLltX36zmxf2bbqFxYrjDDPg2fyx7xXtjtq99NSMhP+1BizHKTpe3aFvf EgkW+EDCmDNY/Sz94H639/MruYVzjqWVGUb2dKRYgK7ZcypU9vMXGuAUHWxQzwEUJJ lyLXjkNlM2O9AR2ppkUwb+KNSmBxDpAVPcoqvJyYo/RD6gieLRWNS54aV17A6eb5oq OpnGvKyDzMJMkhvYX+J8G/Dg9GMAUJXu0PcV+AtUw8h98nYswEY8r97EKMRW+KDpDQ IVcFZYAfVaYQQ== From: Josh Poimboeuf To: x86@kernel.org Cc: linux-kernel@vger.kernel.org, live-patching@vger.kernel.org, Peter Zijlstra , Joe Lawrence , Song Liu , Catalin Marinas , Will Deacon , linux-arm-kernel@lists.infradead.org, Mark Rutland , Nathan Chancellor , Nicolas Schier , Herbert Xu Subject: [PATCH 04/14] arm64: head: Move boot header to .head.data Date: Wed, 4 Mar 2026 19:31:23 -0800 Message-ID: X-Mailer: git-send-email 2.53.0 In-Reply-To: References: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" The arm64 boot header is mostly data. Move it to a data section to prevent objtool and other tools from trying to disassemble it. The final linked result is the same. Signed-off-by: Josh Poimboeuf Acked-by: Song Liu --- arch/arm64/kernel/head.S | 2 +- include/asm-generic/vmlinux.lds.h | 2 +- include/linux/init.h | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/arch/arm64/kernel/head.S b/arch/arm64/kernel/head.S index 87a822e5c4ca..0681c6e50859 100644 --- a/arch/arm64/kernel/head.S +++ b/arch/arm64/kernel/head.S @@ -54,7 +54,7 @@ * that are useful before the MMU is enabled. The allocations are described * in the entry routines. */ - __HEAD + __HEADDATA /* * DO NOT MODIFY. Image header expected by Linux boot-loaders. */ diff --git a/include/asm-generic/vmlinux.lds.h b/include/asm-generic/vmlinu= x.lds.h index eeb070f330bd..51a0e5974f41 100644 --- a/include/asm-generic/vmlinux.lds.h +++ b/include/asm-generic/vmlinux.lds.h @@ -663,7 +663,7 @@ __static_call_text_end =3D .; =20 /* Section used for early init (in .S files) */ -#define HEAD_TEXT KEEP(*(.head.text)) +#define HEAD_TEXT KEEP(*(.head.data .head.text)) =20 #define HEAD_TEXT_SECTION \ .head.text : AT(ADDR(.head.text) - LOAD_OFFSET) { \ diff --git a/include/linux/init.h b/include/linux/init.h index 40331923b9f4..91e16f3205e2 100644 --- a/include/linux/init.h +++ b/include/linux/init.h @@ -90,6 +90,7 @@ =20 /* For assembly routines */ #define __HEAD .section ".head.text","ax" +#define __HEADDATA .section ".head.data","aw" #define __INIT .section ".init.text","ax" #define __FINIT .previous =20 --=20 2.53.0