aboutsummaryrefslogtreecommitdiff
path: root/gold/testsuite/tls_test.cc
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@google.com>2008-03-19 21:41:38 +0000
committerIan Lance Taylor <iant@google.com>2008-03-19 21:41:38 +0000
commit96a2b4e4bf67a7430e7ddd06a1d0730a49e6b07e (patch)
tree071317d44af235c3687bd900897968735303ebf2 /gold/testsuite/tls_test.cc
parent49a834f99faef9fd60532e6601c33bbeac27142b (diff)
downloadgdb-96a2b4e4bf67a7430e7ddd06a1d0730a49e6b07e.zip
gdb-96a2b4e4bf67a7430e7ddd06a1d0730a49e6b07e.tar.gz
gdb-96a2b4e4bf67a7430e7ddd06a1d0730a49e6b07e.tar.bz2
Make sure the start and size of the TLS segment are aligned.
Diffstat (limited to 'gold/testsuite/tls_test.cc')
-rw-r--r--gold/testsuite/tls_test.cc7
1 files changed, 7 insertions, 0 deletions
diff --git a/gold/testsuite/tls_test.cc b/gold/testsuite/tls_test.cc
index 4a701da..418d0ea 100644
--- a/gold/testsuite/tls_test.cc
+++ b/gold/testsuite/tls_test.cc
@@ -60,6 +60,13 @@
__thread int v1;
static __thread int v2;
+
+// We don't use these pointers, but putting them in tests alignment on
+// a 64-bit target.
+__thread char* p1;
+char dummy;
+__thread char* p2 = &dummy;
+
__thread int v3 = 3;
static __thread int v4 = 4;
__thread int v5;