FIXED: (patch) [uClibc]setjmp() issue with ARM shared libs

Shane Nay shane at minirl.com
Thu Jun 21 19:45:55 UTC 2001


Okay, found problem, little assembler problem with not declaring the symbol 
as a function.  Put this in, and ash works fine with the shared lib system.

Thanks,
Shane Nay.

Index: longjmp.S
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/arm/longjmp.S,v
retrieving revision 1.2
diff -u -r1.2 longjmp.S
--- longjmp.S   2001/04/19 15:31:06     1.2
+++ longjmp.S   2001/06/21 19:43:39
@@ -24,6 +24,7 @@
 /* __longjmp(jmpbuf, val) */

 .globl longjmp;
+.type longjmp,#function
 .align 4;                                                               \
 longjmp:
        mov     ip, r0
Index: setjmp.S
===================================================================
RCS file: /var/cvs/uClibc/libc/sysdeps/linux/arm/setjmp.S,v
retrieving revision 1.2
diff -u -r1.2 setjmp.S
--- setjmp.S    2001/01/15 13:25:30     1.2
+++ setjmp.S    2001/06/21 19:43:39
@@ -23,12 +23,14 @@

        /* Binary compatibility entry point.  */
 .globl setjmp;
+.type setjmp,#function
 .align 4;                                                               \
 setjmp:
        mov     r1, #0


 .globl __sigsetjmp;
+.type __sigsetjmp,#function
 .align 4;                                                               \
 __sigsetjmp:
        /* Save registers */





More information about the uClibc mailing list