Skip to contentSkip to conversation

riscv: alternative: remove alternative boundary symbols in vdso

PATCH In review Xiao Wang 2 participants 3 messages Sep 2, 2023 – Sep 5, 2023 RISC-V

lore
Share & tools
lore

Xiao Wang

author
#0 lore raw

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
index 82ce64900f3d..d43fd7c7dd11 100644
@@ -42,9 +42,7 @@ SECTIONS
 
 	. = ALIGN(4);
 	.alternative : {
-		__alt_start = .;
 		*(.alternative)
-		__alt_end = .;
 	}
 
 	.data		: {
Signature · 1 line
2.25.1
#1 lore raw
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_start and __alt_end symbols 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
---
 arch/riscv/kernel/vdso/vdso.lds.S | 2 --
 1 file changed, 2 deletions(-)
arch/riscv/kernel/vdso/vdso.lds.S +0 -2
index 82ce64900f3d..d43fd7c7dd11 100644
@@ -42,9 +42,7 @@ SECTIONS
 
 	. = ALIGN(4);
 	.alternative : {
-		__alt_start = .;
 		*(.alternative)
-		__alt_end = .;
 	}
 
 	.data		: {
Signature · 1 line
2.25.1
#2 lore raw
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 vdso

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_start and __alt_end symbols 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
---
 arch/riscv/kernel/vdso/vdso.lds.S | 2 --
 1 file changed, 2 deletions(-)
(quoted diff) +0 -0

b/arch/riscv/kernel/vdso/vdso.lds.S

Quoted 12 lines

index 82ce64900f3d..d43fd7c7dd11 100644

arch/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