From 4bf522056c56b54149e69065cd2627fdd61472c3 Mon Sep 17 00:00:00 2001 From: midipix Date: Tue, 12 Mar 2019 21:47:51 +0000 Subject: nt64 toolchain: added assembly sources for the crtbegin & crtend objects. --- crt/nt64/crtbegin.s | 0 crt/nt64/crtend.s | 78 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 78 insertions(+) create mode 100644 crt/nt64/crtbegin.s create mode 100644 crt/nt64/crtend.s diff --git a/crt/nt64/crtbegin.s b/crt/nt64/crtbegin.s new file mode 100644 index 0000000..e69de29 diff --git a/crt/nt64/crtend.s b/crt/nt64/crtend.s new file mode 100644 index 0000000..147781a --- /dev/null +++ b/crt/nt64/crtend.s @@ -0,0 +1,78 @@ + .file "crtend.s" + + .cfi_sections .debug_frame + + # C + .section .dsosyms$__gcc_personality_seh0 + .linkonce discard + .balign 8 + + .weak __imp___gcc_personality_seh0 + .quad 0 + .long 0 + .long 0 + + .text + .def .__gcc_personality_seh0; .scl 2; .type 32; .endef + .global .__gcc_personality_seh0 + + .cfi_startproc +.__gcc_personality_seh0: + movq __imp___gcc_personality_seh0(%rip), %rax + rex.W jmp *%rax + .cfi_endproc + + + + # C++ + .section .dsosyms$__gxx_personality_seh0 + .linkonce discard + .balign 8 + + .weak __imp___gxx_personality_seh0 + .quad 0 + .long 0 + .long 0 + + .text + .def .__gxx_personality_seh0; .scl 2; .type 32; .endef + .global .__gxx_personality_seh0 + + .cfi_startproc +.__gxx_personality_seh0: + movq __imp___gxx_personality_seh0(%rip), %rax + rex.W jmp *%rax + .cfi_endproc + + + + # OBJC + .section .dsosyms$__gnu_objc_personality_seh0 + .linkonce discard + .balign 8 + + .weak __imp___gnu_objc_personality_seh0 + .quad 0 + .long 0 + .long 0 + + .text + .def .__gnu_objc_personality_seh0; .scl 2; .type 32; .endef + .global .__gnu_objc_personality_seh0 + + .cfi_startproc +.__gnu_objc_personality_seh0: + movq __imp___gnu_objc_personality_seh0(%rip), %rax + rex.W jmp *%rax + .cfi_endproc + + # DSO REFERENCE COUNTING + .data + .global __dso_handle +__dso_handle: + .long 0 + + .section .midipix + .global __imp___dso_handle +__imp___dso_handle: + .quad __dso_handle -- cgit v1.2.3