Skip to content

Commit

Permalink
cmake: Remove check_link_map.py
Browse files Browse the repository at this point in the history
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 <[email protected]>
  • Loading branch information
Andy Ross authored and nashif committed Jul 14, 2019
1 parent 12c0bc4 commit 50b78f0
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 93 deletions.
12 changes: 0 additions & 12 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions Kconfig.zephyr
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
74 changes: 0 additions & 74 deletions scripts/check_link_map.py

This file was deleted.

0 comments on commit 50b78f0

Please sign in to comment.