kernel_samsung_a53x/arch/riscv/kernel/vdso
Alexandre Ghiti 849124865a riscv: vdso: Prevent the compiler from inserting calls to memset()
[ Upstream commit bf40167d54d55d4b54d0103713d86a8638fb9290 ]

The compiler is smart enough to insert a call to memset() in
riscv_vdso_get_cpus(), which generates a dynamic relocation.

So prevent this by using -fno-builtin option.

Fixes: e2c0cdfba7f6 ("RISC-V: User-facing API")
Cc: stable@vger.kernel.org
Signed-off-by: Alexandre Ghiti <alexghiti@rivosinc.com>
Reviewed-by: Guo Ren <guoren@kernel.org>
Link: https://lore.kernel.org/r/20241016083625.136311-2-alexghiti@rivosinc.com
Signed-off-by: Palmer Dabbelt <palmer@rivosinc.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-11-23 23:22:05 +01:00
..
flush_icache.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
getcpu.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile riscv: vdso: Prevent the compiler from inserting calls to memset() 2024-11-23 23:22:05 +01:00
note.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
rt_sigreturn.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
so2s.sh Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdso.lds.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vdso.S Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vgettimeofday.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00