Re: [PATCH] Fix v850 target for RTEMS

Corinna Vinschen <[email protected]>
Newsgroups gmane.comp.lib.newlib
Message-ID <[email protected]>
On Nov  8 06:56, Sebastian Huber wrote:
> 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 <[email protected]>
> ---
>  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 2082dfdb1..49b62ebf6 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
>  
> -- 
> 2.16.4

PLease push.


Thanks,
Corinna

-- 
Corinna Vinschen
Cygwin Maintainer
Red Hat
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoVYPmneWZnwT6kwF9TYGna5ET6AFAlvj/UoACgkQ9TYGna5E
T6A+wxAAkV0tCcPJVMeAbyX6dd8hq0csPFq1dKwp3G91hHeBA1MxEzePC5xZ6Vch
oA5mm8AMD0H8SZn+M1cVrioVJ47pXaiGx3cq2PEdomDkPNAusLYSl1s3cpxg6qPx
vGCmbLCOtxRdd7qjNxMXdFZrgJXw8OI8crikq6Y3xGSeNSvHuFwD4WSv1DFvA54O
8q6tn0ozo8MJyhMzC/oJ7vJdax5FiCpjZTAiaaXWs+0OSrTrhZ/6wNDRBk1r7R0O
C89sCVIYFsNIj5rTeb4YN215z/MxeMIUujctPHfgEMQh5LqcR3wEsFdtvaikRu3V
EKM8LuB7FaEEqLsOQgJwcXUCLG93H5DboV5yBhhc+/jKCRQrWAcvMZtTtpgDKVJ+
afqjvnzAk4p3mDQs61d9ZA9Se0AO04c9lVCgqL/qM6ZO0tvx4muUDxoR8ZGdK1Nx
mGoaY0AETaB2rviVX5u1/Io5UY2c0QjAFBT8O7jBHgFyHOAYHudNRdPxU7OKxUSq
Ix+UEqWjt36/g+D2lfmZFo4VWmqEyR4Ft7XYnQSkV6y1sjXC3puwcGTqix263mnm
EI6mofA7bq/ROo4XFM4bdmtUmHmiTBqUlnmOdNWBQE3y+LxHUXWkbp5DpyIGbF8K
wzXFj7+02Vja3b5RsMjJk3lJTJSxnrC/BgRCPsz2eSm/LORAS/M=
=jOhd
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.