Re: [RFC PATCH v2 02/10] tools/nolibc: crt: Split _start_c() into stack-only and normal parts

From: Daniel Palmer

Date: Sat Feb 07 2026 - 20:40:49 EST


Hi Willy,

On Sun, 8 Feb 2026 at 00:45, Willy Tarreau <w@xxxxxx> wrote:
> > +#if __nolibc_has_feature(undefined_behavior_sanitizer)
> > +# define __no_sanitize __attribute__((no_sanitize("function")))
> > +#else
> > +# define __no_sanitize
> > +#endif
>
> I'm starting to feel uncomfortable with the addition of new __no_foo
> stuff, which doesn't have the "nolibc" prefix, risking to conflict with
> userland code. I think we'll have to go through a cleanup patch at some
> point for __no_sanitize and __no_stack_protector.
>
> So probably in order to reduce the technical debt it would be nice to
> to prepend __nolibc in front of this new internal macro. Maybe this part
> of the patch should be a separate cleanup patch by the way, as future
> patches might depend on it.

Since this relocation thing will still take more time I will create a
set of patches just to add the prefix to __no_stack_protector, add
__nolibc_no_sanitize and use it in crt.h to send now instead of as
part of this.

Cheers,

Daniel