From 4cf11ae1e4bcdb40b857052a92956a3bfd9eadb3 Mon Sep 17 00:00:00 2001 From: Konstantin Nazarov Date: Sun, 8 Dec 2024 23:41:29 +0000 Subject: [PATCH] Keep symbols in the example app to allow debugging with gdb --- example/Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/example/Makefile b/example/Makefile index 73b7468..653a20e 100644 --- a/example/Makefile +++ b/example/Makefile @@ -1,9 +1,9 @@ example: example.c Makefile boot.s linker.ld riscv32-none-elf-as -march=rv32i -mabi=ilp32 boot.s -o boot.o - riscv32-none-elf-gcc -fno-builtin -fvisibility=hidden -nostdlib -nostartfiles -march=rv32im -mabi=ilp32 -c example.c -o example.o - riscv32-none-elf-ld boot.o example.o -T linker.ld -o example - riscv32-none-elf-strip -R .riscv.attributes example - riscv32-none-elf-strip -R .comment example + riscv32-none-elf-gcc -fno-builtin -fvisibility=hidden -nostdlib -nostartfiles -march=rv32im -mabi=ilp32 -c example.c -o example.o -g + riscv32-none-elf-ld boot.o example.o -T linker.ld -o example -g + #riscv32-none-elf-strip -R .riscv.attributes example + #riscv32-none-elf-strip -R .comment example riscv32-none-elf-objcopy -O binary example example.raw #riscv32-none-elf-objcopy -O binary -j .text example example.text #riscv32-none-elf-objcopy -O binary -j .sdata example example.data