Skip to content

Commit bda0d25

Browse files
armclang: Fix map file generation (#111)
Using `--map` linker option only will output the map file contents on the terminal without creating a new file, adding the `--list` option which outputs these information to a file. Signed-off-by: Ahmed Ismail <[email protected]>
1 parent 199db15 commit bda0d25

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

bsp/cmake/SetLinkerOptions.cmake

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ macro(set_linker_script executable_target)
3232
$<$<STREQUAL:${ARM_CORSTONE_BSP_TARGET_PLATFORM},corstone315>:--scatter=${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/bsp/corstone315/corstone_315_ns.sct>
3333
$<$<STREQUAL:${ARM_CORSTONE_BSP_TARGET_PLATFORM},corstone320>:--scatter=${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/bsp/corstone320/corstone_320_ns.sct>
3434
--map
35+
--list=${executable_target}.map
3536
--strict
3637
)
3738
endif()
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
armclang: Fix map file generation.

0 commit comments

Comments
 (0)