From d2187e6edb017750de5cb1f7d2a161abf839dea2 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 16 Jun 2015 16:24:25 -0400 Subject: adapt crte.s and crti.s to the newly integrated ctors/dtors iteration functions in psxscl. signed-off by Z. Gilboa; see copying.midipix (9cd0746c) for additional information. --- crt/nt32/crte.s | 24 +++++++++++++++++++++--- crt/nt32/crti.s | 40 +++++++++++++++++++++++++++++----------- 2 files changed, 50 insertions(+), 14 deletions(-) (limited to 'crt/nt32') diff --git a/crt/nt32/crte.s b/crt/nt32/crte.s index 8f2573d..0f7ef82 100644 --- a/crt/nt32/crte.s +++ b/crt/nt32/crte.s @@ -14,7 +14,25 @@ ___dso_main_routine: .set _dso_main_routine,___dso_main_routine .section .midipix - .long _dso_main_routine .long __so_entry_point - .long __init - .long __fini + .long _dso_main_routine + .long 0 + .long 0 + + # void *reserved[16]; + .long 0x0 + .long 0x1 + .long 0x2 + .long 0x3 + .long 0x4 + .long 0x5 + .long 0x6 + .long 0x7 + .long 0x8 + .long 0x9 + .long 0xa + .long 0xb + .long 0xc + .long 0xd + .long 0xe + .long 0xf diff --git a/crt/nt32/crti.s b/crt/nt32/crti.s index 1b484b0..09e51e0 100644 --- a/crt/nt32/crti.s +++ b/crt/nt32/crti.s @@ -28,14 +28,32 @@ __fini: nop .section .midipix - .ascii "e35ed272" - .ascii "9e55" - .ascii "46c1" - .ascii "8251" - .ascii "022a59e6c480" - .long 0 - .long 1 - .long 0 - .long 0 - .long __CTOR_LIST__ - .long __DTOR_LIST__ + .ascii "e35ed272" + .ascii "9e55" + .ascii "46c1" + .ascii "8251" + .ascii "022a59e6c480" + .long 0 + .long 1 + .long 0 + .long 0 + .long __CTOR_LIST__ + .long __DTOR_LIST__ + + # void *reserved[16]; + .long 0x0 + .long 0x1 + .long 0x2 + .long 0x3 + .long 0x4 + .long 0x5 + .long 0x6 + .long 0x7 + .long 0x8 + .long 0x9 + .long 0xa + .long 0xb + .long 0xc + .long 0xd + .long 0xe + .long 0xf -- cgit v1.2.3