linux-yocto/tools/testing/selftests/powerpc/benchmarks
Madhavan Srinivasan 8c9c01ce69 selftests/powerpc: Allow building without static libc
Currently exec-target.c is linked statically with libc, which on Fedora
at least requires installing an additional package (glibc-static).

If that package is not installed the build fails with:

    CC       exec_target
  /usr/bin/ld: cannot find -lc: No such file or directory
  collect2: error: ld returned 1 exit status

All exec_target.c does is call sys_exit, which can be done easily enough
using inline assembly, and removes the requirement for a static libc to
be installed.

Suggested-by: Michael Ellerman <mpe@ellerman.id.au>
Signed-off-by: Madhavan Srinivasan <maddy@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240812094152.418586-1-maddy@linux.ibm.com
2024-09-09 16:35:04 +10:00
..
.gitignore
context_switch.c selftests/powerpc: Don't touch VMX/VSX on older CPUs 2020-09-08 22:24:10 +10:00
exec_target.c selftests/powerpc: Allow building without static libc 2024-09-09 16:35:04 +10:00
fork.c
futex_bench.c
gettimeofday.c powerpc/selftests: Use timersub() for gettimeofday() 2022-08-22 13:36:59 +10:00
Makefile selftests/powerpc: Allow building without static libc 2024-09-09 16:35:04 +10:00
mmap_bench.c
null_syscall.c powerpc/selftests: Use gettid() instead of getppid() for null_syscall 2021-06-17 00:09:10 +10:00
settings