Hi, Willy
On Wed, Aug 30, 2023 at 05:07:11PM +0200, Thomas Wei�schuh wrote:
This was prompted by the discussion about output directory support with O=. It seems sometimes we were pulling in system headers making testing annoying and unreliable.
Willy:
I did not implement the '#ifdef va_start` guard that we discussed before. In my understanding the latest agreement does not need it anymore. Please let me know if this is incorrect.
No that's fine given your goal of including just "nolibc.h" and no other regular include file, I agree. I've just merged it and pushed it to the -next branch.
Thank you Thomas! Willy
Subject: [PATCH v2 1/2] tools/nolibc: add stdarg.h header
This allows nolic to work with `-nostdinc` avoiding any reliance on system headers.
A little typo in above commit message: nolic -> nolibc.
Thanks, Zhangjin
The implementation has been lifted from musl libc 1.2.4. There is already an implementation of stdarg.h in include/linux/stdarg.h but that is GPL licensed and therefore not suitable for nolibc.
The used compiler builtins have been validated to be at least available since GCC 4.1.2 and clang 3.0.0.