2008-08-14 Cary Coutant <ccoutant@google.com>

* x86_64.cc (Target_x86_64::Relocate::relocat_tls):
	Use addend for DTPOFF32, DTPOFF64, and TPOFF32 relocs.
	* testsuite/tls_test.cc (struct int128): 128-bit struct
	for testing TLS relocs with non-zero addend.
	(v12): New TLS variable.
	(t12): New test.
	(t_last): Add check for v12.
	* testsuite/tls_test.h (t12): New function.
	* testsuite/tls_test_main.cc (thread_routine): Call new test.
This commit is contained in:
Cary Coutant
2008-08-15 04:57:46 +00:00
parent 56c2003cde
commit d85c80a353
5 changed files with 38 additions and 3 deletions

View File

@ -100,6 +100,7 @@ thread_routine(void* arg)
f10b(f10a());
check("t10", t10());
check("t11", t11() != 0);
check("t12", t12());
check("t_last", t_last());
// Unlock the second mutex.