uClibc: fix sparc build breakage
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Fri, 11 Nov 2011 21:12:46 +0000 (18:12 -0300)
committerPeter Korsgaard <jacmet@sunsite.dk>
Thu, 17 Nov 2011 05:57:19 +0000 (06:57 +0100)
Closes #4021

Fix build breakage for sparc as reported in bug #4021
Patches from Konrad Eisele <konrad@gaisler.com>
Submitted in the uclibc mailing list.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <jacmet@sunsite.dk>
CHANGES
toolchain/uClibc/uClibc-0.9.31.1-sparc-errno-fix.patch [new file with mode: 0644]
toolchain/uClibc/uClibc-0.9.32-sparc-errno-fix.patch [new file with mode: 0644]

diff --git a/CHANGES b/CHANGES
index 8219cfa904e3eea0a54cec33b27253429b0a2898..6435f99018826748e6ddeedcf663c385fe64d1f7 100644 (file)
--- a/CHANGES
+++ b/CHANGES
        Updated/fixed packages: distcc, file, gst-plugins-bad, libxcb,
        mplayer, rpm, rrdtool, tar, tftpd
 
+       Issues resolved (http://bugs.uclibc.org):
+
+       #4021: uClibc: undefined reference to `__GI___errno_location'
+
 2011.11-rc1, Released November 11th, 2011:
 
        Fixes all over the tree and new features.
diff --git a/toolchain/uClibc/uClibc-0.9.31.1-sparc-errno-fix.patch b/toolchain/uClibc/uClibc-0.9.31.1-sparc-errno-fix.patch
new file mode 100644 (file)
index 0000000..44d06cb
--- /dev/null
@@ -0,0 +1,11 @@
+--- uClibc-0.9.32.ori/libc/sysdeps/linux/sparc/pipe.S  2011-06-08 21:35:20.000000000 +0200
++++ uClibc-0.9.32/libc/sysdeps/linux/sparc/pipe.S      2011-11-11 15:57:25.000000000 +0100
+@@ -52,7 +52,7 @@
+        restore %g0,%g0,%o0
+ .Lerror:
+-      call    HIDDEN_JUMPTARGET(__errno_location)
++      call    __errno_location
+        or     %g0,EINVAL,%i0
+       st      %i0,[%o0]
+       ret
diff --git a/toolchain/uClibc/uClibc-0.9.32-sparc-errno-fix.patch b/toolchain/uClibc/uClibc-0.9.32-sparc-errno-fix.patch
new file mode 100644 (file)
index 0000000..44d06cb
--- /dev/null
@@ -0,0 +1,11 @@
+--- uClibc-0.9.32.ori/libc/sysdeps/linux/sparc/pipe.S  2011-06-08 21:35:20.000000000 +0200
++++ uClibc-0.9.32/libc/sysdeps/linux/sparc/pipe.S      2011-11-11 15:57:25.000000000 +0100
+@@ -52,7 +52,7 @@
+        restore %g0,%g0,%o0
+ .Lerror:
+-      call    HIDDEN_JUMPTARGET(__errno_location)
++      call    __errno_location
+        or     %g0,EINVAL,%i0
+       st      %i0,[%o0]
+       ret