[PATCH] Add missing crt0 symbols for RTEMS
Corinna Vinschen
vinschen@redhat.com
Mon Dec 5 10:34:00 GMT 2016
Hi Sebastian,
On Dec 5 08:22, Sebastian Huber wrote:
> In order to enable proper detection of thread-local storage availability
> we have to provide some symbols on ARM.
>
> Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>
> ---
> newlib/libc/sys/rtems/crt0.c | 5 +++++
> 1 file changed, 5 insertions(+)
>
> diff --git a/newlib/libc/sys/rtems/crt0.c b/newlib/libc/sys/rtems/crt0.c
> index 1a0a055..769cde7 100644
> --- a/newlib/libc/sys/rtems/crt0.c
> +++ b/newlib/libc/sys/rtems/crt0.c
> @@ -188,6 +188,11 @@ RTEMS_STUB(_VOID, _free_r(struct _reent *r, _PTR *p), { })
> /* stubs for functions required by libc/stdlib */
> RTEMS_STUB(void, __assert_func(const char *file, int line, const char *failedexpr), { })
>
> +#if defined(__arm__)
> +RTEMS_STUB(void, __aeabi_read_tp(void), { })
> +RTEMS_STUB(void *, __tls_get_addr(const void *ti), { })
> +#endif
> +
> /* The PowerPC expects certain symbols to be defined in the linker script. */
>
> #if defined(__PPC__)
> --
> 1.8.4.5
Shall I commit this even without the crt0.o problem fixed?
Corinna
--
Corinna Vinschen
Cygwin Maintainer
Red Hat
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/newlib/attachments/20161205/7d5cb130/attachment.sig>
More information about the Newlib
mailing list