From 216ff00422dbc66b8f019dba71d26c0a502d66a8 Mon Sep 17 00:00:00 2001 From: Robin Kastberg Date: Fri, 28 Feb 2025 09:37:45 +0000 Subject: [PATCH] cmake: linker: dont place device tree memories at absolute addresses Avoid placing the device tree memories at an absolute address. This avoids placing both .rom_start AND SSRAM1 at the same address on mps2/an521/cpu0. This seems fine according to ld (since one placement is empty) but causes a currently non-suppressable diag_warning Signed-off-by: Robin Kastberg --- cmake/modules/extensions.cmake | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmake/modules/extensions.cmake b/cmake/modules/extensions.cmake index c88f37cc0fc..ca91c8cbc3e 100644 --- a/cmake/modules/extensions.cmake +++ b/cmake/modules/extensions.cmake @@ -4809,7 +4809,7 @@ function(zephyr_linker_dts_section) dt_reg_addr(addr PATH ${DTS_SECTION_PATH}) - zephyr_linker_section(NAME ${name} ADDRESS ${addr} VMA ${name} TYPE NOLOAD) + zephyr_linker_section(NAME ${name} VMA ${name} TYPE NOLOAD) endfunction()