From: Szabolcs Nagy <nsz@port70.net>
To: musl@lists.openwall.com
Subject: Re: TLS issue on aarch64
Date: Fri, 25 May 2018 23:38:10 +0200 [thread overview]
Message-ID: <20180525213810.GH4418@port70.net> (raw)
In-Reply-To: <20180525145059.GG4418@port70.net>
* Szabolcs Nagy <nsz@port70.net> [2018-05-25 16:50:59 +0200]:
> * Phillip Berndt <phillip.berndt@googlemail.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.
next prev parent reply other threads:[~2018-05-25 21:38 UTC|newest]
Thread overview: 15+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-05-25 12:40 Phillip Berndt
2018-05-25 14:50 ` Szabolcs Nagy
2018-05-25 21:38 ` Szabolcs Nagy [this message]
2018-05-25 22:20 ` Phillip Berndt
2018-05-26 0:54 ` Szabolcs Nagy
2018-05-26 8:24 ` Phillip Berndt
2018-05-27 0:34 ` Rich Felker
2018-05-28 20:47 ` Szabolcs Nagy
2018-05-28 22:15 ` Rich Felker
2018-05-29 6:33 ` Szabolcs Nagy
2018-05-31 15:22 ` Phillip Berndt
2018-06-01 0:11 ` Szabolcs Nagy
2018-06-01 0:52 ` Rich Felker
2018-06-01 9:38 ` Szabolcs Nagy
2018-05-27 0:17 ` Rich Felker
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20180525213810.GH4418@port70.net \
--to=nsz@port70.net \
--cc=musl@lists.openwall.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/musl/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).