Skip to content
Permalink
Browse files

cmake: Remove check_link_map.py

This script is looking for a hyperspecific error (mismatched padding
when linking into two simultaneous output sections) that bit us once,
in an era where the linker scripts were less unified.  We haven't seen
it crop up since, and multiple platforms have changed the way they do
this anyway.

It's needless complexity.  Junk it.

Signed-off-by: Andy Ross <andrew.j.ross@intel.com>
  • Loading branch information...
andyross authored and nashif committed Jul 12, 2019
1 parent 12c0bc4 commit 50b78f08eadae3e4ca373c0c5dc839c5449b6a1f
Showing with 0 additions and 93 deletions.
  1. +0 −12 CMakeLists.txt
  2. +0 −7 Kconfig.zephyr
  3. +0 −74 scripts/check_link_map.py
@@ -1216,18 +1216,6 @@ if(NOT CONFIG_BUILD_NO_GAP_FILL)
set(GAP_FILL "--gap-fill;0xff")
endif()

if(CONFIG_CHECK_LINK_MAP)
list(APPEND
post_build_commands
COMMAND
${PYTHON_EXECUTABLE} ${ZEPHYR_BASE}/scripts/check_link_map.py ${KERNEL_MAP_NAME}
)
list(APPEND
post_build_byproducts
${KERNEL_MAP_NAME}
)
endif()

if(CONFIG_BUILD_OUTPUT_HEX)
list(APPEND
post_build_commands
@@ -188,13 +188,6 @@ config KERNEL_ENTRY
help
Code entry symbol, to be set at linking phase.

config CHECK_LINK_MAP
bool "Check linker map"
default y
help
Run a linker address generation validity checker at the end of the
build.

config LINKER_SORT_BY_ALIGNMENT
bool "Sort input sections by alignment"
default y

This file was deleted.

0 comments on commit 50b78f0

Please sign in to comment.
You can’t perform that action at this time.