add Debug flags
This commit is contained in:
parent
838ff60264
commit
386b9b1346
@ -17,10 +17,12 @@ RANLIB=$(GNU_BIN)/$(ARCH)-ranlib
|
|||||||
CFLAGS+=-ffreestanding
|
CFLAGS+=-ffreestanding
|
||||||
CFLAGS+=-fno-pic
|
CFLAGS+=-fno-pic
|
||||||
CFLAGS+=-march=rv32i -mabi=ilp32
|
CFLAGS+=-march=rv32i -mabi=ilp32
|
||||||
|
CFLAGS+= -O0 -g
|
||||||
|
|
||||||
|
|
||||||
LDFLAGS+=-nostdlib
|
LDFLAGS+=-nostdlib
|
||||||
LDFLAGS+=-Wl,-Ttext=0x80000000
|
LDFLAGS+=-Wl,-Ttext=0x80000000
|
||||||
|
LDFLAGS+= -g
|
||||||
|
|
||||||
# see: https://github.com/riscv/riscv-gcc/issues/120
|
# see: https://github.com/riscv/riscv-gcc/issues/120
|
||||||
#LDFLAGS+=-Wl,--no-relax
|
#LDFLAGS+=-Wl,--no-relax
|
||||||
|
Loading…
Reference in New Issue
Block a user