musl/arch/m68k/crt_arch.h
Rich Felker f81e44a0d9 add m68k port
three ABIs are supported: the default with 68881 80-bit fpu format and
results returned in floating point registers, softfloat-only with the
same format, and coldfire fpu with IEEE single/double only. only the
first is tested at all, and only under qemu which has fpu emulation
bugs.

basic functionality smoke tests have been performed for the most
common arch-specific breakage via libc-test and qemu user-level
emulation. some sysvipc failures remain, but are shared with other big
endian archs and will be fixed separately.
2018-06-19 13:24:05 -04:00

15 lines
254 B
C

__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"
);