[PATCH 04/14 v7] Mark all machinery needed in early static-link init as -fno-stack-protector.

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


On 06/07/2016 01:06 PM, Nix wrote:
> The startup code in csu/, brk() and sbrk(), and the
> __pthread_initialize_tcb_internal() function we just introduced are
> needed very early in initialization of a statically-linked program,
> before the stack guard is initialized.  Mark all of these as
> -fno-stack-protector.

I think the problem is that the TCB is not initialized, which contains 
the stack guard on some architectures, as explained in other commits.

The change itself looks good to me.

Florian



More information about the Libc-alpha mailing list