From a121349405f9daf1464042cb50995d8d0e7a7818 Mon Sep 17 00:00:00 2001 From: Jeff Johnston Date: Tue, 1 Aug 2006 15:54:04 +0000 Subject: [PATCH] 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/ChangeLog | 6 ++++++ newlib/libc/include/sys/config.h | 4 ++++ 2 files changed, 10 insertions(+) diff --git a/newlib/ChangeLog b/newlib/ChangeLog index 892190cba..859497893 100644 --- a/newlib/ChangeLog +++ b/newlib/ChangeLog @@ -1,3 +1,9 @@ +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. + 2006-07-31 Jeff Johnston * acinclude.m4: Check for readelf tool. 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