[PATCH 02/14 v6] Initialize the stack guard earlier when linking statically.

Florian Weimer fweimer@redhat.com
Fri Jun 24 14:18:00 GMT 2016


On 06/07/2016 01:06 PM, Nix wrote:
> +  /* Perform IREL{,A} relocations.  */
> +  apply_irel ();
> +
> +  /* The stack guard goes into the TCB.  */
> +  __pthread_initialize_tcb_internal ();

I think this order of initialization is wrong.  IFUNC resolvers need the 
TCB.

What's the alternative here?  De-protect everything that is called from 
__pthread_initialize_tcb_internal?

Thanks,
Florian



More information about the Libc-alpha mailing list