1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

BZ#18383: Add test case for large alignment in TLS blocks.

This commit is contained in:
Roland McGrath
2015-05-06 13:32:18 -07:00
parent 48276b67db
commit b5fe8ec8b6
5 changed files with 112 additions and 3 deletions

6
elf/tst-tlsalign-lib.c Normal file
View File

@ -0,0 +1,6 @@
__thread int mod_tdata1 = 1;
__thread int mod_tdata2 __attribute__ ((aligned (0x10))) = 2;
__thread int mod_tdata3 __attribute__ ((aligned (0x1000))) = 4;
__thread int mod_tbss1;
__thread int mod_tbss2 __attribute__ ((aligned (0x10)));
__thread int mod_tbss3 __attribute__ ((aligned (0x1000)));