[PATCH] ARM-EABI: added a return for empty functions

Enrico Scholz <[email protected]> Sun, 9 Jan 2011 14:13:55 +0100
Newsgroups gmane.linux.lib.dietlibc
Message-ID <1294578835-14395-1-git-send-email-enrico.scholz@informatik.tu-chemnitz.de>
Previously, functions like __nop() or __flockfile() did not had any code
so that a call to them would execute the function which was placed by
the linker after them.

Signed-off-by: Enrico Scholz <[email protected]>
---
 arm/unified.S |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/arm/unified.S b/arm/unified.S
index 3023032..1d5233b 100644
--- a/arm/unified.S
+++ b/arm/unified.S
@@ -28,6 +28,7 @@ __unified_syscall:
 	
 /* here we go and "reuse" the return for weak-void functions */
 #include "dietuglyweaks.h"
+	mov	pc, lr			@ return
 
 #else	
 	
-- 
1.7.3.4