From 1687ed720f4160586df7900006be34d78d212564 Mon Sep 17 00:00:00 2001 From: Ahmed Ismail Date: Thu, 3 Apr 2025 14:26:53 +0100 Subject: [PATCH] armclang: Fix map file generation 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 --- bsp/cmake/SetLinkerOptions.cmake | 1 + release_changes/202504031422.change.md | 1 + 2 files changed, 2 insertions(+) create mode 100644 release_changes/202504031422.change.md diff --git a/bsp/cmake/SetLinkerOptions.cmake b/bsp/cmake/SetLinkerOptions.cmake index 2b9ee758..dcac8aab 100644 --- a/bsp/cmake/SetLinkerOptions.cmake +++ b/bsp/cmake/SetLinkerOptions.cmake @@ -32,6 +32,7 @@ macro(set_linker_script executable_target) $<$:--scatter=${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/bsp/corstone315/corstone_315_ns.sct> $<$:--scatter=${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/bsp/corstone320/corstone_320_ns.sct> --map + --list=${executable_target}.map --strict ) endif() diff --git a/release_changes/202504031422.change.md b/release_changes/202504031422.change.md new file mode 100644 index 00000000..1711b584 --- /dev/null +++ b/release_changes/202504031422.change.md @@ -0,0 +1 @@ +armclang: Fix map file generation.