summaryrefslogtreecommitdiff
path: root/patches
diff options
context:
space:
mode:
authorBryan Hundven <bryanhundven@gmail.com>2016-05-13 03:34:42 (GMT)
committerBryan Hundven <bryanhundven@gmail.com>2016-05-13 03:34:42 (GMT)
commitcd39285ff8247ad4b69e3143bfd16a47c0743fb0 (patch)
tree3ae728d11287459f4ddeb22251853279c8925f53 /patches
parentcd6274dcadaf721cc7122d1f3a42f7c745d5474d (diff)
parent2162cbbdb7a425505e66f8b65f134c33302324f4 (diff)
Merge pull request #373 from stilor/unbreak-ppc-uclibc
Unbreak samples
Diffstat (limited to 'patches')
-rw-r--r--patches/dmalloc/5.5.2/170-ppc-bogus-assembly.patch13
-rw-r--r--patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch12
2 files changed, 25 insertions, 0 deletions
diff --git a/patches/dmalloc/5.5.2/170-ppc-bogus-assembly.patch b/patches/dmalloc/5.5.2/170-ppc-bogus-assembly.patch
new file mode 100644
index 0000000..d92bd8a
--- /dev/null
+++ b/patches/dmalloc/5.5.2/170-ppc-bogus-assembly.patch
@@ -0,0 +1,13 @@
+diff -ur dmalloc-5.5.2.orig/return.h dmalloc-5.5.2/return.h
+--- dmalloc-5.5.2.orig/return.h 2016-03-13 13:11:48.090431764 -0700
++++ dmalloc-5.5.2/return.h 2016-03-13 13:12:11.246642618 -0700
+@@ -251,8 +251,7 @@
+
+ #define GET_RET_ADDR(file) \
+ do { \
+- asm("mflr 0"); \
+- asm("stw 0,%0" : "=g" (file)); \
++ asm("mflr %0" : "=r"(file)); \
+ } while(0)
+
+ #endif /* __powerpc__ && __GNUC__ && !__OPTIMIZE__ */
diff --git a/patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch b/patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch
new file mode 100644
index 0000000..9fd4bc3
--- /dev/null
+++ b/patches/uClibc-ng/1.0.12/100-provide-_obstack_free.patch
@@ -0,0 +1,12 @@
+diff -ur uClibc-ng-1.0.12.orig/libc/misc/gnu/obstack.c uClibc-ng-1.0.12/libc/misc/gnu/obstack.c
+--- uClibc-ng-1.0.12.orig/libc/misc/gnu/obstack.c 2016-03-13 15:08:44.408962824 -0700
++++ uClibc-ng-1.0.12/libc/misc/gnu/obstack.c 2016-03-13 15:13:30.129322998 -0700
+@@ -385,7 +385,7 @@
+ abort ();
+ }
+
+-# if 0
++# if 1
+ /* Older versions of libc used a function _obstack_free intended to be
+ called by non-GCC compilers. */
+ strong_alias (obstack_free, _obstack_free)