summaryrefslogtreecommitdiffhomepage
path: root/crt
diff options
context:
space:
mode:
authormidipix <writeonce@midipix.org>2016-06-02 18:24:06 -0400
committermidipix <writeonce@midipix.org>2016-06-02 19:29:23 -0400
commitc8fc57a19870661f62034a746d36817608683f21 (patch)
tree694894cc463f2702c4734a8079b73aabffbaf65b /crt
parent20300bd616ded0b0f5d2cbac1a61a308cd1b6103 (diff)
downloadmmglue-c8fc57a19870661f62034a746d36817608683f21.tar.bz2
mmglue-c8fc57a19870661f62034a746d36817608683f21.tar.xz
nt32: crt assembly sources: update to match nt64.
Diffstat (limited to 'crt')
-rw-r--r--crt/nt32/crti.s29
-rw-r--r--crt/nt32/crtn.s19
2 files changed, 8 insertions, 40 deletions
diff --git a/crt/nt32/crti.s b/crt/nt32/crti.s
index 09e51e0..b207641 100644
--- a/crt/nt32/crti.s
+++ b/crt/nt32/crti.s
@@ -1,32 +1,3 @@
-.text
-.globl __pei386_runtime_relocator
-__pei386_runtime_relocator:
- ret
-
-.globl __init
-__init:
- jmp .init
-
-.globl __fini
-__fini:
- jmp .fini
-
-.section .init
- xor %eax,%eax
- push %eax
- push %ecx
- push %edx
- nop
- nop
-
-.section .fini
- xor %eax,%eax
- push %eax
- push %ecx
- push %edx
- nop
- nop
-
.section .midipix
.ascii "e35ed272"
.ascii "9e55"
diff --git a/crt/nt32/crtn.s b/crt/nt32/crtn.s
index 2d0295e..8658d23 100644
--- a/crt/nt32/crtn.s
+++ b/crt/nt32/crtn.s
@@ -1,13 +1,10 @@
-.section .init
- pop %edx
- pop %ecx
- pop %ebx
- or %ebx,%eax
+.text
+.globl _pei386_runtime_relocator
+_pei386_runtime_relocator:
ret
-.section .fini
- pop %edx
- pop %ecx
- pop %ebx
- or %ebx,%eax
- ret
+ .section .got$_pei386_runtime_relocator,"r"
+ .global __imp__pei386_runtime_relocator
+__imp__pei386_runtime_relocator:
+ .long _pei386_runtime_relocator
+ .linkonce discard