From f4e129cd4abd366f18995e992e89a13623e964ab Mon Sep 17 00:00:00 2001 From: Paul Fertser Date: Mon, 18 Dec 2017 11:33:33 +0300 Subject: [PATCH] rules.mk: Add cross-reference to the map file This adds a section to the bottom of the .map file containing the symbol->object file mapping. (the logical inverse of the existing section at the start of the .map file that lists objects, and the symbols that pulled them in) Reviewed-by: Karl Palsson --- examples/rules.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/rules.mk b/examples/rules.mk index 282f4aa..efef7cd 100644 --- a/examples/rules.mk +++ b/examples/rules.mk @@ -126,7 +126,7 @@ TGT_CPPFLAGS += $(DEFS) TGT_LDFLAGS += --static -nostartfiles TGT_LDFLAGS += -T$(LDSCRIPT) TGT_LDFLAGS += $(ARCH_FLAGS) $(DEBUG) -TGT_LDFLAGS += -Wl,-Map=$(*).map +TGT_LDFLAGS += -Wl,-Map=$(*).map -Wl,--cref TGT_LDFLAGS += -Wl,--gc-sections ifeq ($(V),99) TGT_LDFLAGS += -Wl,--print-gc-sections