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