public inbox for newlib-cvs@sourceware.org help / color / mirror / Atom feed
From: Sebastian Huber <sh@sourceware.org> To: newlib-cvs@sourceware.org Subject: [newlib-cygwin] RTEMS: Add __tls_get_addr() to crt0 Date: Mon, 20 Aug 2018 12:05:00 -0000 [thread overview] Message-ID: <20180820120515.11070.qmail@sourceware.org> (raw) https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=3bc64b88c391bb9f27fdbf38703fef949828987a commit 3bc64b88c391bb9f27fdbf38703fef949828987a Author: Sebastian Huber <sebastian.huber@embedded-brains.de> Date: Mon Aug 20 13:20:06 2018 +0200 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 Diff: --- newlib/libc/sys/rtems/crt0.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c index 6ab4dcb..28db713 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__)
reply other threads:[~2018-08-20 12:05 UTC|newest] Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180820120515.11070.qmail@sourceware.org \ --to=sh@sourceware.org \ --cc=newlib-cvs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).