On 7/28/24 04:09, Thomas Weißschuh wrote:
The current support for LLVM and clang in nolibc and its testsuite is very limited.
- Various architectures plain do not compile
- The user *has* to specify "-Os" otherwise the program crashes
- Cross-compilation of the tests does not work
- Using clang is not wired up in run-tests.sh
This series extends this support.
Signed-off-by: Thomas Weißschuh linux@weissschuh.net
Thomas Weißschuh (12): tools/nolibc: use clang-compatible asm syntax in arch-arm.h tools/nolibc: limit powerpc stack-protector workaround to GCC tools/nolibc: move entrypoint specifics to compiler.h tools/nolibc: use attribute((naked)) if available selftests/nolibc: report failure if no testcase passed selftests/nolibc: avoid passing NULL to printf("%s") selftests/nolibc: determine $(srctree) first selftests/nolibc: setup objtree without Makefile.include selftests/nolibc: add support for LLVM= parameter selftests/nolibc: add cc-option compatible with clang cross builds selftests/nolibc: run-tests.sh: avoid overwriting CFLAGS_EXTRA selftests/nolibc: run-tests.sh: allow building through LLVM
Reviewed-by: Shuah Khan skhan@linuxfoundation.org
thanks, -- Shuah