public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 00/12] tools/nolibc: improve LLVM/clang support
@ 2024-07-28 10:09 Thomas Weißschuh
  2024-07-28 10:09 ` [PATCH 01/12] tools/nolibc: use clang-compatible asm syntax in arch-arm.h Thomas Weißschuh
                   ` (13 more replies)
  0 siblings, 14 replies; 30+ messages in thread
From: Thomas Weißschuh @ 2024-07-28 10:09 UTC (permalink / raw)
  To: Willy Tarreau, Shuah Khan
  Cc: linux-kernel, linux-kselftest, Thomas Weißschuh

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

 tools/include/nolibc/arch-aarch64.h          |  4 ++--
 tools/include/nolibc/arch-arm.h              |  8 ++++----
 tools/include/nolibc/arch-i386.h             |  4 ++--
 tools/include/nolibc/arch-loongarch.h        |  4 ++--
 tools/include/nolibc/arch-mips.h             |  4 ++--
 tools/include/nolibc/arch-powerpc.h          |  6 +++---
 tools/include/nolibc/arch-riscv.h            |  4 ++--
 tools/include/nolibc/arch-s390.h             |  4 ++--
 tools/include/nolibc/arch-x86_64.h           |  4 ++--
 tools/include/nolibc/compiler.h              | 12 ++++++++++++
 tools/testing/selftests/nolibc/Makefile      | 27 ++++++++++++++++-----------
 tools/testing/selftests/nolibc/nolibc-test.c |  4 ++--
 tools/testing/selftests/nolibc/run-tests.sh  | 20 ++++++++++++++++----
 13 files changed, 67 insertions(+), 38 deletions(-)
---
base-commit: 0db287736bc586fcd5a2925518ef09eec6924803
change-id: 20240727-nolibc-llvm-3fad68590d4c

Best regards,
-- 
Thomas Weißschuh <linux@weissschuh.net>


^ permalink raw reply	[flat|nested] 30+ messages in thread

end of thread, other threads:[~2024-08-04 15:59 UTC | newest]

Thread overview: 30+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-28 10:09 [PATCH 00/12] tools/nolibc: improve LLVM/clang support Thomas Weißschuh
2024-07-28 10:09 ` [PATCH 01/12] tools/nolibc: use clang-compatible asm syntax in arch-arm.h Thomas Weißschuh
2024-07-28 10:09 ` [PATCH 02/12] tools/nolibc: limit powerpc stack-protector workaround to GCC Thomas Weißschuh
2024-07-28 10:09 ` [PATCH 03/12] tools/nolibc: move entrypoint specifics to compiler.h Thomas Weißschuh
2024-08-03  9:22   ` Willy Tarreau
2024-08-03 18:26     ` Thomas Weißschuh 
2024-07-28 10:09 ` [PATCH 04/12] tools/nolibc: use attribute((naked)) if available Thomas Weißschuh
2024-08-03  9:25   ` Willy Tarreau
2024-08-03 18:28     ` Thomas Weißschuh 
2024-08-03 18:32       ` Willy Tarreau
2024-08-03 20:55         ` Thomas Weißschuh 
2024-08-04  3:47           ` Willy Tarreau
2024-07-28 10:09 ` [PATCH 05/12] selftests/nolibc: report failure if no testcase passed Thomas Weißschuh
2024-07-28 10:10 ` [PATCH 06/12] selftests/nolibc: avoid passing NULL to printf("%s") Thomas Weißschuh
2024-08-03  9:33   ` Willy Tarreau
2024-08-03 18:29     ` Thomas Weißschuh 
2024-08-03 18:33       ` Willy Tarreau
2024-07-28 10:10 ` [PATCH 07/12] selftests/nolibc: determine $(srctree) first Thomas Weißschuh
2024-08-03  9:40   ` Willy Tarreau
2024-08-04 15:55     ` Thomas Weißschuh
2024-07-28 10:10 ` [PATCH 08/12] selftests/nolibc: setup objtree without Makefile.include Thomas Weißschuh
2024-07-28 10:10 ` [PATCH 09/12] selftests/nolibc: add support for LLVM= parameter Thomas Weißschuh
2024-08-03  9:45   ` Willy Tarreau
2024-08-04 15:59     ` Thomas Weißschuh
2024-07-28 10:10 ` [PATCH 10/12] selftests/nolibc: add cc-option compatible with clang cross builds Thomas Weißschuh
2024-07-28 10:10 ` [PATCH 11/12] selftests/nolibc: run-tests.sh: avoid overwriting CFLAGS_EXTRA Thomas Weißschuh
2024-07-28 10:10 ` [PATCH 12/12] selftests/nolibc: run-tests.sh: allow building through LLVM Thomas Weißschuh
2024-07-29 19:26 ` [PATCH 00/12] tools/nolibc: improve LLVM/clang support Shuah Khan
2024-07-29 19:27   ` Shuah Khan
2024-08-03  9:50 ` Willy Tarreau

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox