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
This commit is contained in:
Sebastian Huber 2018-08-20 13:20:06 +02:00
parent 71b4e3b336
commit 3bc64b88c3
1 changed files with 2 additions and 1 deletions

View File

@ -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__)