From: Jisheng Zhang <jszhang@kernel.org>
Date: Thu, 27 Jul 2023 01:36:19 +0800
Subject: arm64: vdso: remove two .altinstructions related symbols
Git-commit: a96a7a7ddf9559eb20e608c0de30d1867d755a33
Patch-mainline: v6.6-rc1
References: jsc#PED-4729
The two symbols __alt_instructions and __alt_instructions_end are not
used, since the vDSO patching code looks for the '.altinstructions' ELF
section directly.
Remove the unused linker symbols.
Fixes: 4e3bca8f7cdd ("arm64: alternative: patch alternatives in the vDSO")
Signed-off-by: Jisheng Zhang <jszhang@kernel.org>
Link: https://lore.kernel.org/r/20230726173619.3732-1-jszhang@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
Acked-by: Ivan T. Ivanov <iivanov@suse.de>
---
arch/arm64/kernel/vdso/vdso.lds.S | 2 --
1 file changed, 2 deletions(-)
--- a/arch/arm64/kernel/vdso/vdso.lds.S
+++ b/arch/arm64/kernel/vdso/vdso.lds.S
@@ -49,9 +49,7 @@ SECTIONS
. = ALIGN(4);
.altinstructions : {
- __alt_instructions = .;
*(.altinstructions)
- __alt_instructions_end = .;
}
.dynamic : { *(.dynamic) } :text :dynamic