diff options
-rw-r--r-- | crt/nt64/crtn.s | 6 | ||||
-rw-r--r-- | src/internal/nt64/syscall.s | 6 | ||||
-rw-r--r-- | src/setjmp/nt64/longjmp.s | 6 | ||||
-rw-r--r-- | src/setjmp/nt64/setjmp.s | 6 | ||||
-rw-r--r-- | src/thread/nt64/syscall_cp.s | 17 |
5 files changed, 41 insertions, 0 deletions
diff --git a/crt/nt64/crtn.s b/crt/nt64/crtn.s index b2c7790..6e28aac 100644 --- a/crt/nt64/crtn.s +++ b/crt/nt64/crtn.s @@ -11,3 +11,9 @@ pop %r10 or %r10,%rax ret + + .section .got$_pei386_runtime_relocator,"r" + .global __imp__pei386_runtime_relocator +__imp__pei386_runtime_relocator: + .quad _pei386_runtime_relocator + .linkonce discard diff --git a/src/internal/nt64/syscall.s b/src/internal/nt64/syscall.s index 66fd96d..46de74b 100644 --- a/src/internal/nt64/syscall.s +++ b/src/internal/nt64/syscall.s @@ -4,3 +4,9 @@ __syscall: jmp __syscall_disp + + .section .got$__syscall,"r" + .global __imp___syscall +__imp___syscall: + .quad __syscall + .linkonce discard 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 diff --git a/src/thread/nt64/syscall_cp.s b/src/thread/nt64/syscall_cp.s index b8b7039..0488e19 100644 --- a/src/thread/nt64/syscall_cp.s +++ b/src/thread/nt64/syscall_cp.s @@ -27,3 +27,20 @@ __cp_begin: __cp_end: ret + + + .section .got$__syscall_cp_asm + .global __imp___syscall_cp_asm +__imp___syscall_cp_asm: + .quad __syscall_cp_asm + + + .section .got$__cp_begin + .global __imp___cp_begin +__imp___cp_begin: + .quad __cp_begin + + .section .got$__cp_end + .global __imp___cp_end +__imp___cp_end: + .quad __cp_end |