Permalink
Browse files

No need to force -marm anymore, thumb works too

And we can link in -lgcc and -lc now!
  • Loading branch information...
singpolyma committed Apr 21, 2013
1 parent a8223b3 commit 98c5daa839374c5cc8252ea87861e4ecc0482ebf
Showing with 3 additions and 4 deletions.
  1. +3 −4 Makefile
View
@@ -1,8 +1,7 @@
CC=arm-linux-gnueabi-gcc
LD=arm-linux-gnueabi-ld
CFLAGS=-ansi -pedantic -Wall -Wextra -march=armv6 -msoft-float -fPIC -mapcs-frame -marm -ffreestanding
LDFLAGS=-N -Ttext=0x10000
CFLAGS=-ansi -pedantic -Wall -Wextra -march=armv6 -msoft-float -fPIC -mapcs-frame -ffreestanding
LDFLAGS=-nostdlib -N -Ttext=0x10000
kernel.elf: bootstrap.o kernel.o context_switch.o syscalls.o
@@ -17,4 +16,4 @@ clean:
$(CC) $(CFLAGS) -o $@ -c $^
.o.elf:
$(LD) $(LDFLAGS) -o $@ $^
$(CC) $(LDFLAGS) -o $@ $^ -lgcc -lc

0 comments on commit 98c5daa

Please sign in to comment.