summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ldso/ldso/arm/resolve.S6
1 files changed, 6 insertions, 0 deletions
diff --git a/ldso/ldso/arm/resolve.S b/ldso/ldso/arm/resolve.S
index 8b51ed1c7..9bd88419f 100644
--- a/ldso/ldso/arm/resolve.S
+++ b/ldso/ldso/arm/resolve.S
@@ -18,6 +18,8 @@
* -Erik Andersen
*/
+#include <features.h>
+
#define sl r10
#define fp r11
#define ip r12
@@ -39,5 +41,9 @@ _dl_linux_resolve:
mov ip, r0
ldmia sp!, {r0, r1, r2, r3, sl, fp, lr}
+#if defined(__USE_BX__)
+ bx ip
+#else
mov pc,ip
+#endif
.size _dl_linux_resolve, .-_dl_linux_resolve