LibC: Define function sizes for setjmp and longjmp

dynamic linking was complaining about these not existing
This commit is contained in:
2024-09-10 16:21:20 +03:00
parent 64a3893f6f
commit a07cbabcb3
2 changed files with 6 additions and 0 deletions

View File

@@ -10,6 +10,7 @@ setjmp:
xorq %rax, %rax
ret
.size setjmp, . - setjmp
// void longjmp(jmp_buf env, int val)
.global longjmp
@@ -21,3 +22,4 @@ longjmp:
movq 0(%rdi), %rsp
movq 8(%rdi), %rcx
jmp *%rcx
.size longjmp, . - longjmp