This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[gold patch] Fix test case that fails with static libc
- From: Cary Coutant <ccoutant at google dot com>
- To: Ian Lance Taylor <iant at google dot com>, Binutils <binutils at sourceware dot org>
- Date: Wed, 2 Mar 2011 10:49:27 -0800
- Subject: [gold patch] Fix test case that fails with static libc
Here's another script test case that fails when linked with a static
libc that contains TLS data.
-cary
* testsuite/script_test_9.t: Add TLS segment.
Index: testsuite/script_test_9.t
===================================================================
RCS file: /cvs/src/src/gold/testsuite/script_test_9.t,v
retrieving revision 1.1
diff -u -p -r1.1 script_test_9.t
--- testsuite/script_test_9.t 19 May 2010 17:49:19 -0000 1.1
+++ testsuite/script_test_9.t 2 Mar 2011 18:46:53 -0000
@@ -2,6 +2,7 @@ PHDRS
{
text PT_LOAD FLAGS(5);
data PT_LOAD FLAGS(6);
+ tls PT_TLS;
}
SECTIONS
@@ -15,4 +16,12 @@ SECTIONS
.data :
{
} :data
+ .tdata :
+ {
+ *(.tdata*)
+ } :data :tls
+ .tbss :
+ {
+ *(.tbss*)
+ } :data :tls
}