[git commit ldso-future] arm/dl-startup.h: guard a bx instruction with __USE_BX__

Peter S. Mazinger ps.m at gmx.net
Mon Apr 11 11:27:03 UTC 2011


commit: http://git.uclibc.org/uClibc/commit/?id=fc103eef1a09e54b6fc4ec9c09078c4e7fde8d66
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/ldso-future

Signed-off-by: Peter S. Mazinger <ps.m at gmx.net>
---
 ldso/ldso/arm/dl-startup.h |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/ldso/ldso/arm/dl-startup.h b/ldso/ldso/arm/dl-startup.h
index f170dbd..f89f70c 100644
--- a/ldso/ldso/arm/dl-startup.h
+++ b/ldso/ldso/arm/dl-startup.h
@@ -73,7 +73,11 @@ __asm__(
 	"	@ odd, so use an arm function and change to thumb (_dl_start\n"
 	"	@ is thumb)\n"
 	"	adr	r0, __dl_thumb_start+1\n"
+#if defined(__USE_BX__)
 	"	bx	r0\n"
+#else
+	"	mov	pc, r0\n"
+#endif
 	"\n\n"
     "	.thumb\n"
     "	.globl	__dl_thumb_start\n"
-- 
1.7.3.4



More information about the uClibc-cvs mailing list