Skip to content

Commit 5dfbd22

Browse files
tejlmandnashif
authored andcommitted
armclang: specify armlink link executable signature
The default armlink signature uses `--list=<TARGET_BASE>.map`, but in Zephyr we uses a different name for the map file, therefore we need to specify a custom link executable signature. This is done in the linker specific flags file: cmake/linker/armlink/linker_flags.cmake Signed-off-by: Torsten Rasmussen <[email protected]>
1 parent 93f0d0d commit 5dfbd22

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# The ARMClang linker, armlink, requires a dedicated linking signature in
2+
# order for Zephyr to control the map file.
3+
4+
set(CMAKE_C_LINK_EXECUTABLE "<CMAKE_LINKER> <CMAKE_C_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES> <OBJECTS> -o <TARGET>")
5+
set(CMAKE_CXX_LINK_EXECUTABLE "<CMAKE_LINKER> <CMAKE_CXX_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES> <OBJECTS> -o <TARGET>")
6+
set(CMAKE_ASM_LINK_EXECUTABLE "<CMAKE_LINKER> <CMAKE_ASM_LINK_FLAGS> <LINK_FLAGS> <LINK_LIBRARIES> <OBJECTS> -o <TARGET>")

0 commit comments

Comments
 (0)