From 3d30025d3b1323008711da209fa422882567a08c Mon Sep 17 00:00:00 2001 From: Josh Holtrop Date: Sun, 25 Oct 2020 16:48:42 -0400 Subject: [PATCH] write a map file when linking --- Rsconscript | 1 + 1 file changed, 1 insertion(+) diff --git a/Rsconscript b/Rsconscript index 60de735..44dd840 100644 --- a/Rsconscript +++ b/Rsconscript @@ -122,6 +122,7 @@ EOF env.add_builder(FontGen) env["CCFLAGS"] += %w[-ffreestanding -Wall -O2] env["LDFLAGS"] += %w[-ffreestanding -nostdlib -T src/link.ld] + env["LDFLAGS"] += %W[-Wl,-Map,${_TARGET}.map] env["LIBS"] += %w[gcc] env["OBJDUMP"] = "i686-elf-objdump" env.FontGen("^/kfont/kfont.c", "font/Hack-Regular.ttf")