From 1f96f890fa7e605f3e806c39ff5723dc122c737f Mon Sep 17 00:00:00 2001 From: Dominic Clifton Date: Mon, 16 Mar 2026 11:31:16 +0100 Subject: [PATCH] Always generate .map files. (#25961) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * Always generate .map files. Useful when NOT compiling with debugging C/CXX/AS flags too! e.g. to find which source file was used to compile-in a weak reference. * Shorten comment phrase --------- Co-authored-by: フィルターペーパー <76888457+filterpaper@users.noreply.github.com> --- builddefs/common_rules.mk | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/builddefs/common_rules.mk b/builddefs/common_rules.mk index d6f91b10e4f..6ba42f3b5bc 100644 --- a/builddefs/common_rules.mk +++ b/builddefs/common_rules.mk @@ -50,10 +50,10 @@ ifeq ($(strip $(DEBUG_ENABLE)),yes) CFLAGS += -ggdb3 CXXFLAGS += -ggdb3 ASFLAGS += -ggdb3 -# Create a map file when debugging - LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref endif +# Always create a map file to see what was compiled and where. +LDFLAGS += -Wl,-Map=$(BUILD_DIR)/$(TARGET).map,--cref #---------------- C Compiler Options ----------------