summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndy Ross <andrew.j.ross@intel.com>2016-09-22 13:25:02 -0700
committerAnas Nashif <nashif@linux.intel.com>2016-10-01 01:41:51 +0000
commit0f227848b90a71de0a407d39b3b00606af612e66 (patch)
tree0d8255ca9771a6e6fe3692baf1feb6e7d6692712 /Makefile
parent6b3c5e8bb2cee171a233638a1b33e0c92121c50c (diff)
link: Add section size validity checker
There are demons hiding in binutils with regard to the size of the data section that needs to be copied in XIP platforms. It's easy to mess up and get a mismatch between the linker data output and the runtime addresses. Add a cheap check to discover this early when it occurs. Jira: ZEP-955 Change-Id: If1c61fe8712221c6450b5b89f5f8af006b41b3fe Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index c63e1e458..1d81a1bb4 100644
--- a/Makefile
+++ b/Makefile
@@ -867,6 +867,7 @@ WARN_ABOUT_ASSERT := $(if $(CONFIG_ASSERT),echo -e -n $(ASSERT_WARNING_STR),true
ifeq ($(ARCH),x86)
$(KERNEL_ELF_NAME): staticIdt.o final-linker.cmd
$(call cmd,lnk_elf)
+ @$(srctree)/scripts/check_link_map.pl $(KERNEL_NAME).map
@$(WARN_ABOUT_ASSERT)
else
$(KERNEL_ELF_NAME): $(TMP_ELF)