diff options
author | midipix <writeonce@midipix.org> | 2015-06-08 01:06:59 -0400 |
---|---|---|
committer | midipix <writeonce@midipix.org> | 2015-07-18 20:11:03 -0400 |
commit | c00c94a763b256f7ff8c0e6ae568119cb11995e6 (patch) | |
tree | fedad971fefa3962e29f78e6267df5a987a9cbfe /src | |
parent | 51d2a078cef514252bd12a1dd16dcfa456b1f296 (diff) | |
download | mmglue-c00c94a763b256f7ff8c0e6ae568119cb11995e6.tar.bz2 mmglue-c00c94a763b256f7ff8c0e6ae568119cb11995e6.tar.xz |
add manual .got entries to assembly files.
signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information.
Diffstat (limited to 'src')
-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 |
4 files changed, 35 insertions, 0 deletions
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 |