diff options
author | James Clarke <jrtc27@jrtc27.com> | 2019-12-11 00:10:41 +0000 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2019-12-10 16:10:41 -0800 |
commit | e3327dd12411678eadcb961718cb4feccce082b2 (patch) | |
tree | 8ee6ef103eb91ad000fb031834f3243bd3925fcc /benchmarks/common/test.ld | |
parent | 9e3decb78644b7fce690acb217b295a40b86ef12 (diff) | |
download | riscv-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.ld | 7 |
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 */ |