Openwall GNU/*/Linux - a small security-enhanced Linux distro for servers
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Date: Fri, 25 May 2018 23:38:10 +0200
From: Szabolcs Nagy <nsz@...t70.net>
To: musl@...ts.openwall.com
Subject: Re: TLS issue on aarch64

* Szabolcs Nagy <nsz@...t70.net> [2018-05-25 16:50:59 +0200]:
> * Phillip Berndt <phillip.berndt@...glemail.com> [2018-05-25 14:40:14 +0200]:
> > I'm experiencing a TLS-related error with musl on aarch64. This is my
> > test program:
> > 
> > ----8<--------------
> > #include <stdio.h>
> > 
> > __thread int foo = 1234;
> > __thread int bar __attribute__((aligned(0x100))) = 5678;
> > 
> > int main(int argc, char **argv)
> > {
> >     printf("0x%p: %d\n", &foo, foo);
> >     printf("0x%p: %d\n", &bar, bar);
> > 
> >     return 0;
> > }
> > ---->8---------------

verified that this fails on arm and sh4 too,
these targets have non-trivial TP_ADJ, i suspect
we might need some further macro to do arch specific
tls alignment correctly.

Powered by blists - more mailing lists

Your e-mail address:

Confused about mailing lists and their use? Read about mailing lists on Wikipedia and check out these guidelines on proper formatting of your messages.