From 3ebbefd916cc4d0d609accf086bebf4b380e00bc Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Wed, 30 Jan 2019 20:07:08 +0100 Subject: [PATCH] LibC: Oops, setjmp() and longjmp() were not exported. --- LibC/setjmp.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/LibC/setjmp.cpp b/LibC/setjmp.cpp index fca2a81a0b..57b864f79c 100644 --- a/LibC/setjmp.cpp +++ b/LibC/setjmp.cpp @@ -3,7 +3,8 @@ #include asm( -"setjmp:\n\ +".globl setjmp\n\ +setjmp:\n\ movl %ebx, 0(%eax)\n\ movl %esi, 4(%eax)\n\ movl %edi, 8(%eax)\n\ @@ -16,7 +17,8 @@ asm( "); asm( -"longjmp:\n\ +".globl longjmp\n\ +longjmp:\n\ xchgl %edx, %eax\n\ test %eax, %eax\n\ jnz 1f\n\