Commit eceaf38f authored by David Brazdil's avatar David Brazdil Committed by Marc Zyngier
Browse files

KVM: arm64: Rename .idmap.text in hyp linker script



So far hyp-init.S created a .hyp.idmap.text section directly, without
relying on the hyp linker script to prefix its name. Change it to create
.idmap.text and add a HYP_SECTION entry to hyp.lds.S. This way all .hyp*
sections go through the linker script and can be instrumented there.

Signed-off-by: default avatarDavid Brazdil <dbrazdil@google.com>
Signed-off-by: default avatarMarc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210105180541.65031-2-dbrazdil@google.com
parent 19c329f6
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -18,7 +18,7 @@
#include <asm/virt.h>
#include <asm/virt.h>


	.text
	.text
	.pushsection	.hyp.idmap.text, "ax"
	.pushsection	.idmap.text, "ax"


	.align	11
	.align	11


+1 −0
Original line number Original line Diff line number Diff line
@@ -12,6 +12,7 @@
#include <asm/memory.h>
#include <asm/memory.h>


SECTIONS {
SECTIONS {
	HYP_SECTION(.idmap.text)
	HYP_SECTION(.text)
	HYP_SECTION(.text)
	/*
	/*
	 * .hyp..data..percpu needs to be page aligned to maintain the same
	 * .hyp..data..percpu needs to be page aligned to maintain the same