about summary refs log tree commit diff
path: root/elf/tst-tlsalign-lib.c
diff options
context:
space:
mode:
authorRoland McGrath <roland@hack.frob.com>2015-05-06 13:32:18 -0700
committerRoland McGrath <roland@hack.frob.com>2015-05-06 13:32:18 -0700
commitb5fe8ec8b68589680cc1eeb7442f08afa3c32058 (patch)
tree7206c7ec22cd1d98d4062f27dd2f5d516041e52c /elf/tst-tlsalign-lib.c
parent48276b67db5357bab9feaab4f8cc9af5c35ced75 (diff)
downloadglibc-b5fe8ec8b68589680cc1eeb7442f08afa3c32058.tar.gz
glibc-b5fe8ec8b68589680cc1eeb7442f08afa3c32058.tar.xz
glibc-b5fe8ec8b68589680cc1eeb7442f08afa3c32058.zip
BZ#18383: Add test case for large alignment in TLS blocks.
Diffstat (limited to 'elf/tst-tlsalign-lib.c')
-rw-r--r--elf/tst-tlsalign-lib.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/elf/tst-tlsalign-lib.c b/elf/tst-tlsalign-lib.c
new file mode 100644
index 0000000000..4371e581a6
--- /dev/null
+++ b/elf/tst-tlsalign-lib.c
@@ -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)));