From d79936c151c0fcb1e3931188acac419251ee27f8 Mon Sep 17 00:00:00 2001 From: Miguel Date: Sat, 18 Aug 2018 20:38:58 +0200 Subject: crt0 workaround --- userspace/Makefile | 13 ++++++------- userspace/crt0.s | 1 + 2 files changed, 7 insertions(+), 7 deletions(-) create mode 120000 userspace/crt0.s (limited to 'userspace') diff --git a/userspace/Makefile b/userspace/Makefile index e1e5484..a1d0945 100644 --- a/userspace/Makefile +++ b/userspace/Makefile @@ -7,23 +7,23 @@ CC=i686-elf-gcc CFLAGS= CFLAGS=-w +CFLAGS=-ffreestanding CFLAGS+=-I.. -CFLAGS+=-I/home/miguel/foolos/usr/i686-foolos/include +CFLAGS+=-I/home/miguel/temp/foolos/usr/i686-foolos/include CFLAGS+=-O0 CFLAGS+=-g -LDFLAGS=-L/home/miguel/foolos/usr/i686-foolos/lib/ -LDLIBS=-lc -lm -lg -lnosys +LDFLAGS=-L/home/miguel/temp/foolos/usr/i686-foolos/lib/ +LDLIBS=-lc -lm -lg -lnosys PROGS_C=$(wildcard *.c) PROGS=$(patsubst %.c,%,$(PROGS_C)) - include ../Makefile.common -all: ext2.img +all: crt0.o ext2.img -ext2.img: crt0.o $(PROGS) ../mp/mp.bin +ext2.img: $(PROGS) ../mp/mp.bin dd if=/dev/zero of=ext2.img bs=1024 count=$(IMAGESIZE) sudo mkfs.ext2 -O none ext2.img -F @@ -58,4 +58,3 @@ clean: -rm -f *.o $(PROGS) ext2.img *.d new: clean all - diff --git a/userspace/crt0.s b/userspace/crt0.s new file mode 120000 index 0000000..8d17c13 --- /dev/null +++ b/userspace/crt0.s @@ -0,0 +1 @@ +../newlib/crt0.s \ No newline at end of file -- cgit v1.2.3