summaryrefslogtreecommitdiffhomepage
path: root/src/setjmp
diff options
context:
space:
mode:
Diffstat (limited to 'src/setjmp')
-rw-r--r--src/setjmp/nt64/longjmp.s6
-rw-r--r--src/setjmp/nt64/setjmp.s6
2 files changed, 12 insertions, 0 deletions
diff --git a/src/setjmp/nt64/longjmp.s b/src/setjmp/nt64/longjmp.s
index f0b8253..21e879b 100644
--- a/src/setjmp/nt64/longjmp.s
+++ b/src/setjmp/nt64/longjmp.s
@@ -30,3 +30,9 @@ longjmp:
mov 0x08(%rcx), %rsp # saved stack pointer
mov (%rcx), %rdx # return address
jmp *%rdx # return
+
+ .section .got$longjmp
+ .global __imp_longjmp
+__imp_longjmp:
+ .quad longjmp
+ .linkonce discard
diff --git a/src/setjmp/nt64/setjmp.s b/src/setjmp/nt64/setjmp.s
index 3369331..a3988bb 100644
--- a/src/setjmp/nt64/setjmp.s
+++ b/src/setjmp/nt64/setjmp.s
@@ -25,3 +25,9 @@ setjmp:
xor %eax, %eax
ret
+
+ .section .got$setjmp,"r"
+ .global __imp_setjmp
+__imp_setjmp:
+ .quad setjmp
+ .linkonce discard