diff options
author | David Brazdil <dbrazdil@google.com> | 2021-01-05 18:05:36 +0000 |
---|---|---|
committer | Marc Zyngier <maz@kernel.org> | 2021-01-23 14:00:57 +0000 |
commit | f7a4825d9569593b9a81f0768313b86175691ef1 (patch) | |
tree | 647829cea26b049d455582c771e07a4ada12fb05 /arch/arm64/kvm | |
parent | 16174eea2e4fe8247e04c17da682f2034fec0369 (diff) | |
download | linux-stable-f7a4825d9569593b9a81f0768313b86175691ef1.tar.gz linux-stable-f7a4825d9569593b9a81f0768313b86175691ef1.tar.bz2 linux-stable-f7a4825d9569593b9a81f0768313b86175691ef1.zip |
KVM: arm64: Add symbol at the beginning of each hyp section
Generating hyp relocations will require referencing positions at a given
offset from the beginning of hyp sections. Since the final layout will
not be determined until the linking of `vmlinux`, modify the hyp linker
script to insert a symbol at the first byte of each hyp section to use
as an anchor. The linker of `vmlinux` will place the symbols together
with the sections.
Signed-off-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210105180541.65031-4-dbrazdil@google.com
Diffstat (limited to 'arch/arm64/kvm')
-rw-r--r-- | arch/arm64/kvm/hyp/nvhe/hyp.lds.S | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm64/kvm/hyp/nvhe/hyp.lds.S b/arch/arm64/kvm/hyp/nvhe/hyp.lds.S index cfdc59b4329b..cd119d82d8e3 100644 --- a/arch/arm64/kvm/hyp/nvhe/hyp.lds.S +++ b/arch/arm64/kvm/hyp/nvhe/hyp.lds.S @@ -22,7 +22,7 @@ SECTIONS { * alignment for when linking into vmlinux. */ . = ALIGN(PAGE_SIZE); - HYP_SECTION_NAME(.data..percpu) : { + BEGIN_HYP_SECTION(.data..percpu) PERCPU_INPUT(L1_CACHE_BYTES) - } + END_HYP_SECTION } |