All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/3] riscv: alternative: Statically compute alternative section boundaries and patch compat vDSO
@ 2026-06-30  7:41 ` Thomas Weißschuh
  0 siblings, 0 replies; 10+ messages in thread
From: Thomas Weißschuh @ 2026-06-30  7:41 UTC (permalink / raw)
  To: Paul Walmsley, Palmer Dabbelt, Albert Ou, Alexandre Ghiti
  Cc: linux-riscv, linux-kernel, Nam Cao,
	Thomas Weißschuh (Schneider Electric)

Currently the alternative sections are extracted from the vDSO
binaries at runtime. This has runtime overhead and also doesn't
work for the compat vDSO.

Extract the offsets of the alternative section during the build with the
existing symbol extraction machinery and use those.

Also add support for the compat vDSO.

Link: https://lore.kernel.org/lkml/cover.1781876501.git.namcao@linutronix.de/
Signed-off-by: Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>
---
Thomas Weißschuh (3):
      riscv: vdso: Add symbols for the alternative section boundaries
      riscv: alternative: Use the statically extracted vDSO section offsets
      riscv: alternative: Also patch the compat vDSO

 arch/riscv/include/asm/vdso.h     |  6 ++++++
 arch/riscv/kernel/alternative.c   | 33 ++++++++++++++++-----------------
 arch/riscv/kernel/vdso/vdso.lds.S |  2 ++
 3 files changed, 24 insertions(+), 17 deletions(-)
---
base-commit: 10cd4cf20d3d92532485e3f0384e61abc90d6c54
change-id: 20260626-riscv-vdso32-alternative-9d39250c984a

Best regards,
--  
Thomas Weißschuh (Schneider Electric) <thomas.weissschuh@linutronix.de>


_______________________________________________
linux-riscv mailing list
linux-riscv@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-riscv

^ permalink raw reply	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2026-07-02  8:13 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-30  7:41 [PATCH 0/3] riscv: alternative: Statically compute alternative section boundaries and patch compat vDSO Thomas Weißschuh
2026-06-30  7:41 ` Thomas Weißschuh
2026-06-30  7:41 ` [PATCH 1/3] riscv: vdso: Add symbols for the alternative section boundaries Thomas Weißschuh
2026-06-30  7:41   ` Thomas Weißschuh
2026-06-30  7:41 ` [PATCH 2/3] riscv: alternative: Use the statically extracted vDSO section offsets Thomas Weißschuh
2026-06-30  7:41   ` Thomas Weißschuh
2026-06-30  7:41 ` [PATCH 3/3] riscv: alternative: Also patch the compat vDSO Thomas Weißschuh
2026-06-30  7:41   ` Thomas Weißschuh
2026-07-02  8:12 ` [PATCH 0/3] riscv: alternative: Statically compute alternative section boundaries and patch " Nam Cao
2026-07-02  8:12   ` Nam Cao

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.