From a121349405f9daf1464042cb50995d8d0e7a7818 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 1 Aug 2006 15:54:04 +0000 Subject: 2006-08-01 Thiemo Seufer Nigel Stephens * libc/include/sys/config.h (__ATTRIBUTE_IMPURE_PTR__): For MIPS define this to force _impure_ptr to live in the .sdata section. --- newlib/libc/include/sys/config.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'newlib/libc/include/sys') diff --git a/newlib/libc/include/sys/config.h b/newlib/libc/include/sys/config.h index c4e4dba9a..f436c780d 100644 --- a/newlib/libc/include/sys/config.h +++ b/newlib/libc/include/sys/config.h @@ -94,6 +94,10 @@ #endif #endif +#ifdef __mips__ +#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata"))) +#endif + #ifdef __xstormy16__ #define __SMALL_BITFIELDS #undef INT_MAX -- cgit v1.2.3