This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
Re: [COMMITTED PATCH] BZ#18383: Add test case for large alignment in TLS blocks.
- From: Szabolcs Nagy <szabolcs dot nagy at arm dot com>
- To: Roland McGrath <roland at hack dot frob dot com>, "GNU C. Library" <libc-alpha at sourceware dot org>
- Date: Fri, 08 May 2015 12:44:45 +0100
- Subject: Re: [COMMITTED PATCH] BZ#18383: Add test case for large alignment in TLS blocks.
- Authentication-results: sourceware.org; auth=none
- References: <20150506203535 dot 48EAF2C3B9D at topped-with-meat dot com>
On 06/05/15 21:35, Roland McGrath wrote:
> I just filed this bug and committed this test case for it. I've marked
> both flavors of the test as XFAIL. On ARM, both flavors fail (wrong
> alignment). On x86-64 the dynamically-linked test works right but the
> statically-linked test crashes in startup. I suspect other machines are
> affected as well and that the bug is not actually machine-dependent.
I ran the new tests on AArch64 and they XPASS.
$ ./testrun.sh elf/tst-tlsalign
tdata1 TLS address 0x7fa5a4f000 % 4 = 0
tdata2 TLS address 0x7fa5a4f010 % 16 = 0
tdata3 TLS address 0x7fa5a50000 % 4096 = 0
tbss1 TLS address 0x7fa5a51000 % 4 = 0
tbss2 TLS address 0x7fa5a51010 % 16 = 0
tbss3 TLS address 0x7fa5a52000 % 4096 = 0
mod_tdata1 TLS address 0x7fa5a53014 % 4 = 0
mod_tdata2 TLS address 0x7fa5a53010 % 16 = 0
mod_tdata3 TLS address 0x7fa5a53000 % 4096 = 0
mod_tbss1 TLS address 0x7fa5a54014 % 4 = 0
mod_tbss2 TLS address 0x7fa5a54010 % 16 = 0
mod_tbss3 TLS address 0x7fa5a54000 % 4096 = 0
$ elf/tst-tlsalign-static
tdata1 TLS address 0x30ad000 % 4 = 0
tdata2 TLS address 0x30ad010 % 16 = 0
tdata3 TLS address 0x30ae000 % 4096 = 0
tbss1 TLS address 0x30af000 % 4 = 0
tbss2 TLS address 0x30af010 % 16 = 0
tbss3 TLS address 0x30b0000 % 4096 = 0