From c8fc57a19870661f62034a746d36817608683f21 Mon Sep 17 00:00:00 2001 From: midipix Date: Thu, 2 Jun 2016 18:24:06 -0400 Subject: nt32: crt assembly sources: update to match nt64. --- crt/nt32/crti.s | 29 ----------------------------- crt/nt32/crtn.s | 19 ++++++++----------- 2 files changed, 8 insertions(+), 40 deletions(-) (limited to 'crt/nt32') 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 -- cgit v1.2.3