From 960fd8546fb0130058e6a588fbc62d696d01df0e Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 28 Jan 2014 11:52:17 +0100 Subject: bsps: Thread-local storage (TLS) for linkcmds --- c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'c/src/lib/libbsp/powerpc/virtex4') diff --git a/c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds b/c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds index 74a10aa079..ed8ef750f5 100644 --- a/c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds +++ b/c/src/lib/libbsp/powerpc/virtex4/startup/linkcmds @@ -94,6 +94,23 @@ SECTIONS .rodata : { *(.rodata.* .gnu.linkonce.r*) } > RAM .rodata1 : { *(.rodata1) } > RAM + .tdata : { + _TLS_Data_begin = .; + *(.tdata .tdata.* .gnu.linkonce.td.*) + _TLS_Data_end = .; + } >RAM + + .tbss : { + _TLS_BSS_begin = .; + *(.tbss .tbss.* .gnu.linkonce.tb.*) *(.tcommon) + _TLS_BSS_end = .; + } >RAM + + _TLS_Data_size = _TLS_Data_end - _TLS_Data_begin; + _TLS_BSS_size = _TLS_BSS_end - _TLS_BSS_begin; + _TLS_Size = _TLS_BSS_end - _TLS_Data_begin; + _TLS_Alignment = ALIGNOF (.tdata); + /* Initialised small data addressed as offsets from r2 */ _SDA2_BASE_ = __SDATA2_START__ + 0x8000; .sdata2 : { *(.sdata2 .sdata2.* .gnu.linkonce.s2.*) } > RAM -- cgit v1.2.3