LibC: Define function sizes for setjmp and longjmp
dynamic linking was complaining about these not existing
This commit is contained in:
parent
64a3893f6f
commit
a07cbabcb3
|
@ -13,6 +13,8 @@ setjmp:
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
|
||||||
|
.size setjmp, . - setjmp
|
||||||
|
|
||||||
// void longjmp(jmp_buf env, int val)
|
// void longjmp(jmp_buf env, int val)
|
||||||
.global longjmp
|
.global longjmp
|
||||||
longjmp:
|
longjmp:
|
||||||
|
@ -26,3 +28,5 @@ longjmp:
|
||||||
movl 0(%edx), %esp
|
movl 0(%edx), %esp
|
||||||
movl 4(%edx), %ecx
|
movl 4(%edx), %ecx
|
||||||
jmp *%ecx
|
jmp *%ecx
|
||||||
|
|
||||||
|
.size longjmp, . - longjmp
|
||||||
|
|
|
@ -10,6 +10,7 @@ setjmp:
|
||||||
xorq %rax, %rax
|
xorq %rax, %rax
|
||||||
|
|
||||||
ret
|
ret
|
||||||
|
.size setjmp, . - setjmp
|
||||||
|
|
||||||
// void longjmp(jmp_buf env, int val)
|
// void longjmp(jmp_buf env, int val)
|
||||||
.global longjmp
|
.global longjmp
|
||||||
|
@ -21,3 +22,4 @@ longjmp:
|
||||||
movq 0(%rdi), %rsp
|
movq 0(%rdi), %rsp
|
||||||
movq 8(%rdi), %rcx
|
movq 8(%rdi), %rcx
|
||||||
jmp *%rcx
|
jmp *%rcx
|
||||||
|
.size longjmp, . - longjmp
|
||||||
|
|
Loading…
Reference in New Issue