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] Fix v850 target for RTEMS
Date: Thu, 08 Nov 2018 13:07:00 -0000	[thread overview]
Message-ID: <20181108130724.81419.qmail@sourceware.org> (raw)

https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=2ab57ad59bc35dafffa69cd4da5e228971de069f

commit 2ab57ad59bc35dafffa69cd4da5e228971de069f
Author: Sebastian Huber <sebastian.huber@embedded-brains.de>
Date:   Wed Nov 7 14:59:19 2018 +0100

    Fix v850 target for RTEMS
    
    Do not define __ATTRIBUTE_IMPURE_PTR__ for RTMES on the v850 target.
    The previous definition lead to the following linker error in
    combination with -fdata-sections:
    
    relocation truncated to fit: R_V810_GPWLO_1 against symbol
    `_global_impure_ptr' defined in .rodata._global_impure_ptr section in
    libc.a(lib_a-impure.o)
    
    relocation truncated to fit: R_V810_GPWLO_1 against symbol `_impure_ptr'
    defined in .data._impure_ptr section in libc.a(lib_a-impure.o)
    
    Signed-off-by: Sebastian Huber <sebastian.huber@embedded-brains.de>

Diff:
---
 newlib/libc/include/sys/config.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h
index 2082dfd..49b62eb 100644
--- a/newlib/libc/include/sys/config.h
+++ b/newlib/libc/include/sys/config.h
@@ -108,7 +108,7 @@
 #define _POINTER_INT short
 #endif
 
-#ifdef __v850
+#if defined(__v850) && !defined(__rtems__)
 #define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__sda__))
 #endif


                 reply	other threads:[~2018-11-08 13:07 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=20181108130724.81419.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: link
Be 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).