This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 }


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]