summaryrefslogtreecommitdiff
path: root/libc/sysdeps
diff options
context:
space:
mode:
authorWaldemar Brodkorb <wbx@openadk.org>2014-08-28 12:31:19 +0200
committerBernhard Reutner-Fischer <rep.dot.nop@gmail.com>2014-08-28 12:38:34 +0200
commitc09e41ef92e48356e62c795384864ee792ac7fe6 (patch)
tree9ed2876d228a7eaff92059bb9fe05331b6e631df /libc/sysdeps
parentc6e8f34a358f846aa15cb9f53251da3d6668abd1 (diff)
Revert "sparc: use HIDDEN_JUMPTARGET for errno"
This reverts commit f51fb26dbcceee9e48d10facc830bd4a549f6cc2. This fixes linking error for sparc build. While building a sparc system you get following linking error: libc/sysdeps/linux/sparc/pipe.S:54: undefined reference to `__GI___errno_location' Removing the HIDDEN_JUMPTARGET fixes the issue, while using gcc 4.8.3/binutils 2.24. The definition of __errno_location was changed recently here: http://git.uclibc.org/uClibc/commit/?id=8f550715c2b211036fc273add3cb5219397ed312 Signed-off-by: Waldemar Brodkorb <wbx@openadk.org> Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com>
Diffstat (limited to 'libc/sysdeps')
-rw-r--r--libc/sysdeps/linux/sparc/fork.S2
-rw-r--r--libc/sysdeps/linux/sparc/pipe.S2
-rw-r--r--libc/sysdeps/linux/sparc/vfork.S2
3 files changed, 3 insertions, 3 deletions
diff --git a/libc/sysdeps/linux/sparc/fork.S b/libc/sysdeps/linux/sparc/fork.S
index 8e4bc2265..171591123 100644
--- a/libc/sysdeps/linux/sparc/fork.S
+++ b/libc/sysdeps/linux/sparc/fork.S
@@ -35,7 +35,7 @@ fork:
bcc,a 9000f
nop
save %sp,-96,%sp
- call HIDDEN_JUMPTARGET(__errno_location)
+ call __errno_location
nop
st %i0,[%o0]
jmpl %i7+8,%g0
diff --git a/libc/sysdeps/linux/sparc/pipe.S b/libc/sysdeps/linux/sparc/pipe.S
index b085fafec..fa77f4d23 100644
--- a/libc/sysdeps/linux/sparc/pipe.S
+++ b/libc/sysdeps/linux/sparc/pipe.S
@@ -49,7 +49,7 @@ pipe:
restore %g0,%g0,%o0
.Lerror:
- call HIDDEN_JUMPTARGET(__errno_location)
+ call __errno_location
or %g0,EINVAL,%i0
st %i0,[%o0]
ret
diff --git a/libc/sysdeps/linux/sparc/vfork.S b/libc/sysdeps/linux/sparc/vfork.S
index 4b701f7ff..e5a3c303d 100644
--- a/libc/sysdeps/linux/sparc/vfork.S
+++ b/libc/sysdeps/linux/sparc/vfork.S
@@ -37,7 +37,7 @@ __vfork:
bcc,a 9000f
nop
save %sp,-96,%sp
- call HIDDEN_JUMPTARGET(__errno_location)
+ call __errno_location
nop
st %i0,[%o0]
jmpl %i7+8,%g0