diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-08-20 14:20:06 +0300 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2018-08-20 14:54:22 +0300 |
commit | 3bc64b88c391bb9f27fdbf38703fef949828987a (patch) | |
tree | eaf80f32d5d908fd88a513445618a13ae4338b61 /newlib/libc/sys/rtems | |
parent | 71b4e3b3363a520e67f27a26d3a7630698a9fdfe (diff) |
RTEMS: Add __tls_get_addr() to crt0
Add __tls_get_addr() for all targets to crt0. This is not only used on
ARM. In particular, it is used on RISC-V. This helps to adequately
support the GCC libgomp.
Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de
Diffstat (limited to 'newlib/libc/sys/rtems')
-rw-r--r-- | newlib/libc/sys/rtems/crt0.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index 6ab4dcb4b..28db7132a 100644 --- a/newlib/libc/sys/rtems/crt0.c +++ b/newlib/libc/sys/rtems/crt0.c @@ -198,9 +198,10 @@ RTEMS_STUB(void, __assert_func(const char *file, int line, const char *failedexp #if defined(__arm__) RTEMS_STUB(void, __aeabi_read_tp(void), { }) -RTEMS_STUB(void *, __tls_get_addr(const void *ti), { }) #endif +RTEMS_STUB(void *, __tls_get_addr(const void *ti), { }) + /* The PowerPC expects certain symbols to be defined in the linker script. */ #if defined(__PPC__) |