riscv: alternative: remove alternative boundary symbols in vdso
PATCH 1/1 riscv: alternative: remove alternative boundary symbols in vdso
Instruction patching for vdso is based on elf header parsing to get the beginning and ending of .alternative section, the __alt_start and __alt_end symbols defined in vdso linker script are not used, so this patch removes them.
--- arch/riscv/kernel/vdso/vdso.lds.S | 2 -- 1 file changed, 2 deletions(-)
arch/riscv/kernel/vdso/vdso.lds.S +0 -2
@@ -42,9 +42,7 @@ SECTIONS . = ALIGN(4); .alternative : { - __alt_start = .; *(.alternative) - __alt_end = .; } .data : {
Signature · 1 line
2.25.1
Quoted 4 lines · Xiao Wang
Instruction patching for vdso is based on elf header parsing to get the beginning and ending of .alternative section, the
__alt_startand__alt_endsymbols defined in vdso linker script are not used, so this patch removes them.
The same patch has been in mailist since July:
https://lore.kernel.org/linux-riscv/[email protected]/
Thanks
Quoted 23 lines
Signed-off-by Xiao Wang <[email protected]>--- arch/riscv/kernel/vdso/vdso.lds.S | 2 -- 1 file changed, 2 deletions(-)arch/riscv/kernel/vdso/vdso.lds.S +0
-2@@ -42,9 +42,7 @@ SECTIONS . = ALIGN(4); .alternative : { - __alt_start = .; *(.alternative) - __alt_end = .; } .data : {Signature · 1 line
2.25.1
Quoted 18 lines
-----Original Message-----
From: Jisheng Zhang <[email protected]>
Sent: Monday, September 4, 2023 10:35 PM
To: Wang, Xiao W <[email protected]>
Cc: [email protected]; [email protected]; [email protected]; [email protected]; linux- [email protected]
Subject: Re: [PATCH] riscv: alternative: remove alternative boundary symbols in vdsoQuoted 4 lines · Xiao Wang
Instruction patching for vdso is based on elf header parsing to get the beginning and ending of .alternative section, the
__alt_startand__alt_endsymbols defined in vdso linker script are not used, so this patch removes them.
Quoted 6 lines
The same patch has been in mailist since July:
https://lore.kernel.org/linux-riscv/20230726173024.3684-2-
[email protected]/Thanks
OK, then please go ahead with that patch review and ignore this one.
BRs,
Xiao
Quoted 20 lines
Review
Quoted 7 lines
Signed-off-by Xiao Wang <[email protected]>--- arch/riscv/kernel/vdso/vdso.lds.S | 2 -- 1 file changed, 2 deletions(-)(quoted diff) +0
-0
b/arch/riscv/kernel/vdso/vdso.lds.SQuoted 12 lines
index
82ce64900f3d..d43fd7c7dd11100644arch/riscv/kernel/vdso/vdso.lds.S +0
-2@@ -42,9 +42,7 @@ SECTIONS . = ALIGN(4); .alternative : { - __alt_start = .; *(.alternative) - __alt_end = .; }
Quoted 4 lines
Quoted 4 lines
arch/riscv/kernel/vdso/vdso.lds.S +0
-1.data : { --2.25.1
_______________________________________________
linux-riscv mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-riscv