Use assembler directives rather than ALTENTRY() so that longjmp() and

siglongjmp() are weak symbols.  This is necessary to allow static linking
with the linuxthreads library port.
This commit is contained in:
jasone 2000-05-04 04:36:26 +00:00
parent 404ae65205
commit 5a12c18356
4 changed files with 16 additions and 20 deletions

View File

@ -80,12 +80,11 @@ ENTRY(setjmp)
xorl %eax,%eax
ret
#ifdef _THREAD_SAFE
ENTRY(__longjmp)
#else
ALTENTRY(__longjmp)
ENTRY(longjmp)
#ifndef _THREAD_SAFE
.weak CNAME(longjmp);
.set CNAME(longjmp),CNAME(__longjmp);
#endif
ENTRY(__longjmp)
movl 4(%esp),%edx
PIC_PROLOGUE
pushl $0 /* (sigset_t*)oset */

View File

@ -89,12 +89,11 @@ ENTRY(sigsetjmp)
xorl %eax,%eax
ret
#ifdef _THREAD_SAFE
ENTRY(__siglongjmp)
#else
ALTENTRY(__siglongjmp)
ENTRY(siglongjmp)
#ifndef _THREAD_SAFE
.weak CNAME(siglongjmp);
.set CNAME(siglongjmp),CNAME(__siglongjmp);
#endif
ENTRY(__siglongjmp);
movl 4(%esp),%edx
cmpl $0,44(%edx)
jz 2f

View File

@ -80,12 +80,11 @@ ENTRY(setjmp)
xorl %eax,%eax
ret
#ifdef _THREAD_SAFE
ENTRY(__longjmp)
#else
ALTENTRY(__longjmp)
ENTRY(longjmp)
#ifndef _THREAD_SAFE
.weak CNAME(longjmp);
.set CNAME(longjmp),CNAME(__longjmp);
#endif
ENTRY(__longjmp)
movl 4(%esp),%edx
PIC_PROLOGUE
pushl $0 /* (sigset_t*)oset */

View File

@ -89,12 +89,11 @@ ENTRY(sigsetjmp)
xorl %eax,%eax
ret
#ifdef _THREAD_SAFE
ENTRY(__siglongjmp)
#else
ALTENTRY(__siglongjmp)
ENTRY(siglongjmp)
#ifndef _THREAD_SAFE
.weak CNAME(siglongjmp);
.set CNAME(siglongjmp),CNAME(__siglongjmp);
#endif
ENTRY(__siglongjmp);
movl 4(%esp),%edx
cmpl $0,44(%edx)
jz 2f