diff --git a/.gitignore b/.gitignore index 099dd79..c560c62 100644 --- a/.gitignore +++ b/.gitignore @@ -5,3 +5,4 @@ bin/ generated.*.ld compile_commands.json tags +*.map diff --git a/Makefile b/Makefile index 9ca48ad..b6634b2 100644 --- a/Makefile +++ b/Makefile @@ -8,6 +8,7 @@ else endif CFLAGS += -I$(NEWLIB) +LDFLAGS += -Wl,-Map=main.map # CFILES := main.c system.c CFILES += $(wildcard *.c)