nuttx:generate nuttx.map file when enable debug link map.

Signed-off-by: cuiziwei <cuiziwei@xiaomi.com>
This commit is contained in:
cuiziwei 2023-10-18 17:01:14 +08:00 committed by Alan Carvalho de Assis
parent 5033966d8c
commit 71c9f4e094

View File

@ -292,6 +292,12 @@ endif
SHCCFLAGS = -fPIC -fPIE -fvisibility=default
SHLDFLAGS = -shared -Bsymbolic -Bdynamic -G
ifeq ($(CONFIG_DEBUG_LINK_MAP),y)
ifeq ($(CONFIG_HOST_MACOS),)
LDFLAGS += -Wl,-Map=$(TOPDIR)/nuttx.map
endif
endif
ifeq ($(CONFIG_SIM_M32),y)
LDLINKFLAGS += -melf_i386
LDFLAGS += -m32