diff options
author | Joey Gouly <joey.gouly@arm.com> | 2022-08-30 11:48:32 +0100 |
---|---|---|
committer | Catalin Marinas <catalin.marinas@arm.com> | 2022-09-09 12:27:25 +0100 |
commit | 4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441 (patch) | |
tree | 60bf7fbce949f8037afa55f3e0081a316cdd31b1 /arch/arm64/kernel/vdso/vdso.lds.S | |
parent | b3adc3844e1dedd05fa8d09633eaa8ddc5ddcece (diff) | |
download | linux-4e3bca8f7cdd3b658ee7ad700fdce95b5e13a441.tar.bz2 |
arm64: alternative: patch alternatives in the vDSO
Make it possible to use alternatives in the vDSO, so that better
implementations can be used if possible.
Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Vincenzo Frascino <vincenzo.frascino@arm.com>
Cc: Mark Rutland <mark.rutland@arm.com>
Acked-by: Mark Rutland <mark.rutland@arm.com>
Link: https://lore.kernel.org/r/20220830104833.34636-3-joey.gouly@arm.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
Diffstat (limited to 'arch/arm64/kernel/vdso/vdso.lds.S')
-rw-r--r-- | arch/arm64/kernel/vdso/vdso.lds.S | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/arch/arm64/kernel/vdso/vdso.lds.S b/arch/arm64/kernel/vdso/vdso.lds.S index e69fb4aaaf3e..6028f1fe2d1c 100644 --- a/arch/arm64/kernel/vdso/vdso.lds.S +++ b/arch/arm64/kernel/vdso/vdso.lds.S @@ -48,6 +48,13 @@ SECTIONS PROVIDE (_etext = .); PROVIDE (etext = .); + . = ALIGN(4); + .altinstructions : { + __alt_instructions = .; + *(.altinstructions) + __alt_instructions_end = .; + } + .dynamic : { *(.dynamic) } :text :dynamic .rela.dyn : ALIGN(8) { *(.rela .rela*) } |