diff options
| author | Miguel <m.i@gmx.at> | 2018-08-18 20:38:58 +0200 |
|---|---|---|
| committer | Miguel <m.i@gmx.at> | 2018-08-18 20:38:58 +0200 |
| commit | d79936c151c0fcb1e3931188acac419251ee27f8 (patch) | |
| tree | 807337e3435bac94f60c5fbebed22b7df56faa36 /userspace | |
| parent | 857d82d45c2bbcaf5234b756736596b1e6a9d28a (diff) | |
crt0 workaround
Diffstat (limited to 'userspace')
| -rw-r--r-- | userspace/Makefile | 13 | ||||
| l--------- | userspace/crt0.s | 1 |
2 files changed, 7 insertions, 7 deletions
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 |
