aboutsummaryrefslogtreecommitdiff
path: root/benchmarks/common/test.ld
diff options
context:
space:
mode:
authorJames Clarke <jrtc27@jrtc27.com>2019-12-11 00:10:41 +0000
committerAndrew Waterman <andrew@sifive.com>2019-12-10 16:10:41 -0800
commite3327dd12411678eadcb961718cb4feccce082b2 (patch)
tree8ee6ef103eb91ad000fb031834f3243bd3925fcc /benchmarks/common/test.ld
parent9e3decb78644b7fce690acb217b295a40b86ef12 (diff)
downloadriscv-tests-e3327dd12411678eadcb961718cb4feccce082b2.zip
riscv-tests-e3327dd12411678eadcb961718cb4feccce082b2.tar.gz
riscv-tests-e3327dd12411678eadcb961718cb4feccce082b2.tar.bz2
benchmarks: Simplify TLS initialisation (#224)
The symbols used to query the size of .tdata and .tbss need not be thread-local themselves; instead, make them linker script-provided non-thread-local symbols.
Diffstat (limited to 'benchmarks/common/test.ld')
-rw-r--r--benchmarks/common/test.ld7
1 files changed, 3 insertions, 4 deletions
diff --git a/benchmarks/common/test.ld b/benchmarks/common/test.ld
index 4f8892e..679c4ba 100644
--- a/benchmarks/common/test.ld
+++ b/benchmarks/common/test.ld
@@ -49,15 +49,14 @@ SECTIONS
/* thread-local data segment */
.tdata :
{
- _tls_data = .;
- *(.tdata.begin)
+ _tdata_begin = .;
*(.tdata)
- *(.tdata.end)
+ _tdata_end = .;
}
.tbss :
{
*(.tbss)
- *(.tbss.end)
+ _tbss_end = .;
}
/* End of uninitalized data segement */