diff --git a/include/zephyr/app_memory/app_memdomain.h b/include/zephyr/app_memory/app_memdomain.h index 08e28982ad6..d53a3d2266a 100644 --- a/include/zephyr/app_memory/app_memdomain.h +++ b/include/zephyr/app_memory/app_memdomain.h @@ -128,16 +128,16 @@ struct z_app_region { extern char Z_APP_START(name)[]; \ extern char Z_APP_SIZE(name)[]; \ struct k_mem_partition name = { \ - .start = (uintptr_t) &Z_APP_START(name), \ - .size = (size_t) &Z_APP_SIZE(name), \ + .start = (uintptr_t) &Z_APP_START(name)[0], \ + .size = (size_t) &Z_APP_SIZE(name)[0], \ .attr = K_MEM_PARTITION_P_RW_U_RW \ }; \ extern char Z_APP_BSS_START(name)[]; \ extern char Z_APP_BSS_SIZE(name)[]; \ Z_GENERIC_SECTION(.app_regions.name) \ const struct z_app_region name##_region = { \ - .bss_start = &Z_APP_BSS_START(name), \ - .bss_size = (size_t) &Z_APP_BSS_SIZE(name) \ + .bss_start = &Z_APP_BSS_START(name)[0], \ + .bss_size = (size_t) &Z_APP_BSS_SIZE(name)[0] \ }; \ Z_APPMEM_PLACEHOLDER(name) #else