diff options
-rw-r--r-- | crt/nt32/crti.s | 29 | ||||
-rw-r--r-- | crt/nt32/crtn.s | 19 |
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 |