mirror of
https://github.com/apache/nuttx.git
synced 2026-09-21 13:25:12 +08:00
caros_x86_64: add support for generating linker map
Build Documentation / build-html (push) Has been cancelled
Build Documentation / build-html (push) Has been cancelled
This patch introduces support for generating a linker map file during the build process for the x86_64 configuration. Signed-off-by: xucheng5 <xucheng5@xiaomi.com>
This commit is contained in:
@@ -253,6 +253,16 @@ AFLAGS := $(CFLAGS) -D__ASSEMBLY__ -Wa,--divide
|
||||
CMODULEFLAGS = $(CFLAGS) -fvisibility=hidden
|
||||
LDMODULEFLAGS = -r -T $(call CONVERT_PATH,$(TOPDIR)/libs/libc/elf/gnu-elf.ld)
|
||||
|
||||
# Debug link map
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_LINK_MAP),y)
|
||||
LDFLAGS += --cref -Map=$(call CONVERT_PATH,$(TOPDIR)$(DELIM)nuttx.map)
|
||||
endif
|
||||
|
||||
ifeq ($(CONFIG_DEBUG_SYMBOLS),y)
|
||||
ARCHOPTIMIZATION += $(CONFIG_DEBUG_SYMBOLS_LEVEL)
|
||||
endif
|
||||
|
||||
# ELF module definitions
|
||||
|
||||
CELFFLAGS = $(CFLAGS) -fvisibility=hidden
|
||||
|
||||
Reference in New Issue
Block a user