Re: [RFC PATCH v2 00/10] nolibc: Add static-pie support

From: Daniel Palmer

Date: Sat Feb 07 2026 - 20:35:34 EST


Hi Willy,

Thank you for taking the time to look at this.

On Sun, 8 Feb 2026 at 00:34, Willy Tarreau <w@xxxxxx> wrote:
> If you absolutely need to forcefully inline, you should add
> __attribute__((always_inline)) in addition to __inline__, as
> it will override the default compiler setting based on the
> optimization level. However the functions are short enough
> that they were always inlined in my tests regardless of the
> attribute.

Noted. Like you said I think the functions always get inlined so the
problem is theoretical.
I think actually just disabling the stack projector for the functions
will be enough if the compiler ever decides not to inline.
I guess I'll try the opposite and force the compiler not to inline and
see if it breaks.

Thanks,

Daniel