From: Alan Cox Date: Thu, 20 Oct 2016 16:44:35 +0000 (+0100) Subject: libs: 68000 startup files X-Git-Url: https://git.ndcode.org/public/gitweb.cgi?a=commitdiff_plain;h=a95c2f946732e31750a76cd7f457cbc96ca10463;p=FUZIX.git libs: 68000 startup files --- diff --git a/Library/libs/Makefile.68000 b/Library/libs/Makefile.68000 index fd368b5c..1510e0e4 100644 --- a/Library/libs/Makefile.68000 +++ b/Library/libs/Makefile.68000 @@ -3,7 +3,7 @@ ASM = m68k-linux-gnu-as AR = m68k-linux-gnu-ar PLATFORM = 68000 export PLATFORM -CC_OPT = -fno-strict-aliasing -fomit-frame-pointer -fno-builtin -Wall -m68000 -c -Os -I../include -I../include/68000 -I../include/68000/fixed +CC_OPT = -fno-strict-aliasing -fomit-frame-pointer -fno-builtin -Wall -m68000 -c -I../include -I../include/68000 -I../include/68000/fixed ASM_OPT = -o # copied in from kernel tree KRN_HEADERS = userstructs.h drivewire.h @@ -11,7 +11,7 @@ KRN_HEADERS_SRC = $(addprefix ../../Kernel/include/,$(KRN_HEADERS)) KRN_HEADERS_COPY = $(addprefix ../include/sys/,$(KRN_HEADERS)) SRC_CRT0 = crt0_$(PLATFORM).s crt0nostdio_$(PLATFORM).s OBJ_CRT0 = $(SRC_CRT0:.s=.o) -SRC_ASM = setjmp_68000.S signal68000.S +SRC_ASM = setjmp_68000.S OBJ_ASM = $(SRC_ASM:.S=.o) SRC_C = __argv.c abort.c asctime.c assert.c atexit.c SRC_C += bcmp.c bcopy.c bsearch.c bzero.c calloc.c cfree.c clock.c closedir.c diff --git a/Library/libs/crt0_68000.S b/Library/libs/crt0_68000.S new file mode 100644 index 00000000..aba23064 --- /dev/null +++ b/Library/libs/crt0_68000.S @@ -0,0 +1,21 @@ + .globl _start + .globl __argv + .globl environ + + .data + +environ: + .long 0 + + .text + +.mri 1 + +_start: + jsr __stdio_init_vars + lea.l 8(sp),a0 + move.l a0,environ + move.l 4(sp),__argv + jsr main + moveq #0,d0 + jmp _exit diff --git a/Library/libs/crt0nostdio_68000.S b/Library/libs/crt0nostdio_68000.S new file mode 100644 index 00000000..0ab014d1 --- /dev/null +++ b/Library/libs/crt0nostdio_68000.S @@ -0,0 +1,21 @@ + .globl _start + .globl __argv + .globl environ + + .data + +environ: + .long 0 + + .text + +.mri 1 + +_start: + lea.l 8(sp),a0 + move.l a0,environ + move.l 4(sp),__argv + jsr main + moveq #0,d0 + jmp _exit +