diff options
author | jasone <jasone@FreeBSD.org> | 1999-12-14 20:17:52 +0000 |
---|---|---|
committer | jasone <jasone@FreeBSD.org> | 1999-12-14 20:17:52 +0000 |
commit | 2edcbc2e0b115cf2b9357f0b246717209c7b6cbf (patch) | |
tree | 80c5c2d91cc7d04964aa286ee3cc765f1a031017 /lib/libc/i386/gen/setjmp.S | |
parent | 3968ced3f8a2f899bd9f39b2b067f2236d485ce5 (diff) | |
download | FreeBSD-src-2edcbc2e0b115cf2b9357f0b246717209c7b6cbf.zip FreeBSD-src-2edcbc2e0b115cf2b9357f0b246717209c7b6cbf.tar.gz |
Make setjmp, longjmp, sigsetjmp, and siglongjmp weak aliases for
__setjmp, __longjmp, __sigsetjmp, and __siglongjmp, respectively.
This supports cancellation in the linuxthreads port. In the long run,
a much more comprehensive solution will necessitate more dramatic changes
to libc symbol naming, and these aliases will probably need modification
at that time.
Diffstat (limited to 'lib/libc/i386/gen/setjmp.S')
-rw-r--r-- | lib/libc/i386/gen/setjmp.S | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/lib/libc/i386/gen/setjmp.S b/lib/libc/i386/gen/setjmp.S index 4a85658..c82b7f0 100644 --- a/lib/libc/i386/gen/setjmp.S +++ b/lib/libc/i386/gen/setjmp.S @@ -54,7 +54,9 @@ #include "DEFS.h" #include "SYS.h" -ENTRY(setjmp) +ENTRY(__setjmp) +.weak setjmp; +.set setjmp, __setjmp; movl 4(%esp),%ecx PIC_PROLOGUE leal 28(%ecx), %eax @@ -80,7 +82,9 @@ ENTRY(setjmp) xorl %eax,%eax ret -ENTRY(longjmp) +ENTRY(__longjmp) +.weak longjmp; +.set longjmp, __longjmp; movl 4(%esp),%edx PIC_PROLOGUE pushl $0 /* (sigset_t*)oset */ |