mirror of
https://github.com/torvalds/linux.git
synced 2026-10-16 21:00:02 +02:00
After a recent change in LLVM [1], builds with the random vDSO implementation, such as PowerPC and RISC-V, fail when checking the vDSO: arch/powerpc/kernel/vdso/vdso32.so.dbg: dynamic relocations are not supported arch/riscv/kernel/vdso/vdso.so.dbg: dynamic relocations are not supported memset() is now generated when zeroing params->reserved for some builds because LLVM has an optimization (now run in more instances) that can recognize at compile time when it is assigning a static value to a contiguous area of memory and turn that into a call to memset(). Both clang and GCC assume memset() is always available [2]. Clang has an internal fiddly hook, -max-store-memset, which we can set to a high number, to disable generating out of line memset calls [3]. Similarly, GCC has -finline-stringops=memset to do the same [4], should this issue ever hit future version of GCC. While these options wouldn't make sense for normal kernel code, it is fine for the extremely limited and intentionally compact vDSO code. Link: |
||
|---|---|---|
| .. | ||
| .gitignore | ||
| flush_icache.S | ||
| gen_vdso_offsets.sh | ||
| getcpu.S | ||
| getrandom.c | ||
| hwprobe.c | ||
| Makefile | ||
| note.S | ||
| rt_sigreturn.S | ||
| sys_hwprobe.S | ||
| vdso.lds.S | ||
| vdso.S | ||
| vgetrandom-chacha.S | ||
| vgettimeofday.c | ||