summaryrefslogtreecommitdiff
path: root/devel/psptoolchain-newlib/files/patch-newlib-libc-include-sys-config.h
diff options
context:
space:
mode:
authorMarcelo Araujo <araujo@FreeBSD.org>2009-08-21 00:54:33 +0000
committerMarcelo Araujo <araujo@FreeBSD.org>2009-08-21 00:54:33 +0000
commit8cbd3957fb9309b77590faad70c31ada2caee71f (patch)
tree6e6dc53459a6b9a79b032994edb9301bd33d61c2 /devel/psptoolchain-newlib/files/patch-newlib-libc-include-sys-config.h
parentUpdate to the 20090818 snapshot of GCC 4.4.2. (diff)
The PlayStation Portable Toolchain is a collection of tools and utilities
for homebrew PSP development. WWW: http://www.ps2dev.org PR: ports/132323, ports/132324, ports/132325, ports/132326 ports/132327, ports/132328, ports/132329, ports/132330 Submitted by: Tassilo Philipp <tphilipp@potion-studios.com>
Notes
Notes: svn path=/head/; revision=240002
Diffstat (limited to 'devel/psptoolchain-newlib/files/patch-newlib-libc-include-sys-config.h')
-rw-r--r--devel/psptoolchain-newlib/files/patch-newlib-libc-include-sys-config.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/devel/psptoolchain-newlib/files/patch-newlib-libc-include-sys-config.h b/devel/psptoolchain-newlib/files/patch-newlib-libc-include-sys-config.h
new file mode 100644
index 000000000000..029d9e8373f2
--- /dev/null
+++ b/devel/psptoolchain-newlib/files/patch-newlib-libc-include-sys-config.h
@@ -0,0 +1,15 @@
+--- newlib/libc/include/sys/config.h.orig 2006-08-30 00:00:59.000000000 +0300
++++ newlib/libc/include/sys/config.h 2007-06-01 12:22:26.000000000 +0300
+@@ -98,6 +98,12 @@
+ #define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata")))
+ #endif
+
++/* We compile newlib with -G0 for PSP, but if we're compiling an app with $gp enabled,
++ then _impure_ptr is expected to live in .sdata. */
++#if defined(__psp__)
++#define __ATTRIBUTE_IMPURE_PTR__ __attribute__((__section__(".sdata")))
++#endif
++
+ #ifdef __xstormy16__
+ #define __SMALL_BITFIELDS
+ #undef INT_MAX