This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [hurd,commited]: Fix static initialization with -fstack-protector-strong
- From: Samuel Thibault <samuel dot thibault at ens-lyon dot org>
- To: Nick Alcock <nix at esperi dot org dot uk>
- Cc: libc-alpha at sourceware dot org
- Date: Fri, 15 Sep 2017 23:22:31 +0200
- Subject: Re: [hurd,commited]: Fix static initialization with -fstack-protector-strong
- Authentication-results: sourceware.org; auth=none
- References: <20170827203205.7rymov2jglbcibbz@var.youpi.perso.aquilenet.fr> <871sn7q5m9.fsf@esperi.org.uk>
Nick Alcock, on ven. 15 sept. 2017 17:38:38 +0100, wrote:
> On 27 Aug 2017, Samuel Thibault outgrape:
> > When linked statically, TLS initialization is not achieved before
> > mach_init and alike, so ssp accesses to tcbhead's stack_guard would
> > crash. We can just avoid using ssp in the few functions needed before
> > TLS is set up.
>
> Oh blast I forgot all about Hurd didn't I.
>
> Sorry.
No problem. Determining which functions need it is not trivial anyway :)
Samuel