aboutsummaryrefslogtreecommitdiff
path: root/libgloss/arm
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-10-02 19:57:46 +0000
committerJeff Johnston <jjohnstn@redhat.com>2006-10-02 19:57:46 +0000
commit04a8b4ee184b29123106c45adb03aa111319c94f (patch)
tree8f14dc572f382675cebb8dde363d3a9c31278f76 /libgloss/arm
parent2a441538f983918c3fc0530c04435e0fb41770da (diff)
downloadnewlib-04a8b4ee184b29123106c45adb03aa111319c94f.zip
newlib-04a8b4ee184b29123106c45adb03aa111319c94f.tar.gz
newlib-04a8b4ee184b29123106c45adb03aa111319c94f.tar.bz2
2006-10-02 Nick Clifton <nickc@redhat.com>
* arm/linux-syscalls0.c: Add arm architecture flag checks around bx insn.
Diffstat (limited to 'libgloss/arm')
-rw-r--r--libgloss/arm/linux-syscalls0.S4
1 files changed, 4 insertions, 0 deletions
diff --git a/libgloss/arm/linux-syscalls0.S b/libgloss/arm/linux-syscalls0.S
index f58d5ed..7b1e82a 100644
--- a/libgloss/arm/linux-syscalls0.S
+++ b/libgloss/arm/linux-syscalls0.S
@@ -203,7 +203,11 @@ FUNC(_socketcall_tail)
bl _socketcall
pop { r3 }
add sp, #16
+#if (__ARM_ARCH__ > 4) || defined(__ARM_ARCH_4T__)
bx r3
+#else
+ mov pc, r3
+#endif
SIZE(_socketcall_tail)
#define SOCKETCALL2(name, NAME) SOCKETCALL(name, NAME)