[COMMITTED PATCH] BZ#18383: Add test case for large alignment in TLS blocks.
Szabolcs Nagy
szabolcs.nagy@arm.com
Fri May 8 11:44:00 GMT 2015
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
More information about the Libc-alpha
mailing list