diff mbox series

[RFC,02/19] riscv: LEAF: Use C_LABEL() to construct the asm name for a C symbol

Message ID 20230207001618.458947-3-christoph.muellner@vrull.eu
State New
Headers show
Series riscv: ifunc support with optimized mem*/str*/cpu_relax routines | expand

Commit Message

Christoph Müllner Feb. 7, 2023, 12:16 a.m. UTC
From: Christoph Müllner <christoph.muellner@vrull.eu>

It is common practice in glibc to use C_LABEL() to construct the asm
name for a C symbol. Let's do this for RISC-V as well, even if this
is essentially a non-functional change.

Signed-off-by: Christoph Müllner <christoph.muellner@vrull.eu>
---
 sysdeps/riscv/sys/asm.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/sysdeps/riscv/sys/asm.h b/sysdeps/riscv/sys/asm.h
index 5432f2d5d2..b782cfa2f2 100644
--- a/sysdeps/riscv/sys/asm.h
+++ b/sysdeps/riscv/sys/asm.h
@@ -51,7 +51,7 @@ 
 		.globl	symbol;			\
 		.align	2;			\
 		.type	symbol,@function;	\
-symbol:						\
+		C_LABEL(symbol)			\
 		cfi_startproc;
 
 /* Mark end of function.  */