Skip to content

Commit

Permalink
build: Generate map file for Arm GNU Toolchain
Browse files Browse the repository at this point in the history
Just as is already the case for the Arm Compiler
for Embedded (ARMClang), generate a map file
when building applications with the Arm GNU Toolchain.

Signed-off-by: Ahmed Ismail <[email protected]>
  • Loading branch information
AhmedIsmail02 committed Jan 12, 2024
1 parent 4862547 commit 27200dc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion bsp/cmake/SetLinkerOptions.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ macro(set_linker_script executable_target)
PRIVATE
$<$<STREQUAL:${ARM_CORSTONE_BSP_TARGET_PLATFORM},corstone300>:-T ${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/bsp/corstone300/an552_ns.ld>
$<$<STREQUAL:${ARM_CORSTONE_BSP_TARGET_PLATFORM},corstone310>:-T ${IOT_REFERENCE_ARM_CORSTONE3XX_SOURCE_DIR}/bsp/corstone310/an555_ns.ld>
-Wl,--gc-sections
-Wl,--gc-sections,-Map=${executable_target}.map
--specs=nosys.specs
)
else()
Expand Down
1 change: 1 addition & 0 deletions release_changes/202401101603.change
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
gnu-compiler: Generate map file

0 comments on commit 27200dc

Please sign in to comment.