From 386b9b1346b679f4730480da0b6b92b1e07a45a0 Mon Sep 17 00:00:00 2001 From: u2 <u2@qstack.pl> Date: Thu, 13 Feb 2025 11:27:38 +0000 Subject: [PATCH] add Debug flags --- examples/Make.rules | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/Make.rules b/examples/Make.rules index b02a62e..68f5574 100644 --- a/examples/Make.rules +++ b/examples/Make.rules @@ -17,10 +17,12 @@ RANLIB=$(GNU_BIN)/$(ARCH)-ranlib CFLAGS+=-ffreestanding CFLAGS+=-fno-pic CFLAGS+=-march=rv32i -mabi=ilp32 +CFLAGS+= -O0 -g LDFLAGS+=-nostdlib LDFLAGS+=-Wl,-Ttext=0x80000000 +LDFLAGS+= -g # see: https://github.com/riscv/riscv-gcc/issues/120 #LDFLAGS+=-Wl,--no-relax