summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2015-06-08 01:06:59 -0400
committermidipix <writeonce@midipix.org>2015-07-18 20:11:03 -0400
commitc00c94a763b256f7ff8c0e6ae568119cb11995e6 (patch)
treefedad971fefa3962e29f78e6267df5a987a9cbfe
parent51d2a078cef514252bd12a1dd16dcfa456b1f296 (diff)
downloadmmglue-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.
-rw-r--r--crt/nt64/crtn.s6
-rw-r--r--src/internal/nt64/syscall.s6
-rw-r--r--src/setjmp/nt64/longjmp.s6
-rw-r--r--src/setjmp/nt64/setjmp.s6
-rw-r--r--src/thread/nt64/syscall_cp.s17
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