arm64: vdso: remove two .altinstructions related symbols
authorJisheng Zhang <jszhang@kernel.org>
Wed, 26 Jul 2023 17:36:19 +0000 (01:36 +0800)
committerWill Deacon <will@kernel.org>
Thu, 27 Jul 2023 11:32:43 +0000 (12:32 +0100)
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>
arch/arm64/kernel/vdso/vdso.lds.S

index 6028f1fe2d1cbf593af2e3b0973aff64c940a83d..45354f2ddf70697e0146d72f768363301479c66f 100644 (file)
@@ -50,9 +50,7 @@ SECTIONS
 
        . = ALIGN(4);
        .altinstructions : {
-               __alt_instructions = .;
                *(.altinstructions)
-               __alt_instructions_end = .;
        }
 
        .dynamic        : { *(.dynamic) }               :text   :dynamic