Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Johnston <jjohnstn@redhat.com>2006-10-02 23:57:46 +0400
committerJeff Johnston <jjohnstn@redhat.com>2006-10-02 23:57:46 +0400
commit04a8b4ee184b29123106c45adb03aa111319c94f (patch)
tree8f14dc572f382675cebb8dde363d3a9c31278f76 /libgloss/arm
parent2a441538f983918c3fc0530c04435e0fb41770da (diff)
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 f58d5ed77..7b1e82a52 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)