From 4abab5ad6c8465a7528ccdd5f49367da05f78bbd Mon Sep 17 00:00:00 2001 From: Vladimir Azarov Date: Tue, 1 Oct 2024 15:47:05 +0200 Subject: Initial version --- arch/m68k/crt_arch.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 arch/m68k/crt_arch.h (limited to 'arch/m68k/crt_arch.h') diff --git a/arch/m68k/crt_arch.h b/arch/m68k/crt_arch.h new file mode 100644 index 0000000..48a42f2 --- /dev/null +++ b/arch/m68k/crt_arch.h @@ -0,0 +1,14 @@ +__asm__( +".text\n" +".weak _DYNAMIC \n" +".hidden _DYNAMIC \n" +".global " START "\n" +START ":\n" +" suba.l %fp,%fp \n" +" movea.l %sp,%a0 \n" +" lea _DYNAMIC-.-8,%a1 \n" +" pea (%pc,%a1) \n" +" pea (%a0) \n" +" lea " START "_c-.-8,%a1 \n" +" jsr (%pc,%a1) \n" +); -- cgit v1.2.3