diff options
author | midipix <writeonce@midipix.org> | 2015-09-09 22:47:52 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-09-13 22:04:38 -0400 |
commit | fa55cc4bd37a06c67231368a7bbc6d2fa45616bd (patch) | |
tree | 9fcfed5e3168e50c6ba1a3f4a3b3156515473dbb /src/setjmp/nt32 | |
parent | 3621ff77f635085921ba0181399600ed50be302b (diff) | |
download | mmglue-fa55cc4bd37a06c67231368a7bbc6d2fa45616bd.tar.bz2 mmglue-fa55cc4bd37a06c67231368a7bbc6d2fa45616bd.tar.xz |
nt32: add GOT support to assembly files.
Diffstat (limited to 'src/setjmp/nt32')
-rw-r--r-- | src/setjmp/nt32/longjmp.s | 6 | ||||
-rw-r--r-- | src/setjmp/nt32/setjmp.s | 11 |
2 files changed, 12 insertions, 5 deletions
diff --git a/src/setjmp/nt32/longjmp.s b/src/setjmp/nt32/longjmp.s index 46713f2..73b2e61 100644 --- a/src/setjmp/nt32/longjmp.s +++ b/src/setjmp/nt32/longjmp.s @@ -11,3 +11,9 @@ ___longjmp: __longjmp: _longjmp: test %edx, %edx # is val zero? + + .section .got$longjmp + .global __imp__longjmp +__imp__longjmp: + .long _longjmp + .linkonce discard diff --git a/src/setjmp/nt32/setjmp.s b/src/setjmp/nt32/setjmp.s index d4e8db3..7ef6485 100644 --- a/src/setjmp/nt32/setjmp.s +++ b/src/setjmp/nt32/setjmp.s @@ -10,9 +10,10 @@ ___setjmp: __setjmp: _setjmp: - pop (%ecx) # return address - mov %esp, 0x04(%ecx) # caller's stack pointer - push (%ecx) # restore own stack pointer - - xor %eax, %eax ret + + .section .got$setjmp,"r" + .global __imp__setjmp +__imp__setjmp: + .long _setjmp + .linkonce discard |