[PATCH 2/2] elf: Remove inhibit_stack_protector from __ifunc_resolver

H.J. Lu hjl.tools@gmail.com
Tue May 26 21:43:55 GMT 2026


On Tue, May 26, 2026 at 10:03 PM Adhemerval Zanella
<adhemerval.zanella@linaro.org> wrote:
>
> With 01964c3ec8e fix ifunc resolvers can be fully instrumented with
> stack protector.
>
> Checked on aarch64-linux-gnu, x86_64-linux-gnu, and i686-linux-gnu
> built with --enable-stack-protector=all.
> ---
>  include/libc-symbols.h | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/include/libc-symbols.h b/include/libc-symbols.h
> index 6a9f6403ab9..2387954f7fc 100644
> --- a/include/libc-symbols.h
> +++ b/include/libc-symbols.h
> @@ -671,7 +671,7 @@ for linking")
>
>  /* Helper / base  macros for indirect function symbols.  */
>  #define __ifunc_resolver(type_name, name, expr, init, classifier, ...) \
> -  classifier inhibit_stack_protector                                   \
> +  classifier                                                           \
>    __typeof (type_name) *name##_ifunc (__VA_ARGS__)                     \
>    {                                                                    \
>      init ();                                                           \
> --
> 2.43.0
>

LGTM.

Reviewed-by: H.J. Lu <hjl.tools@gmail.com>

Thanks.

-- 
H.J.


More information about the Libc-alpha mailing list