diff --git a/soc/st/stm32/stm32mp2x/m33/CMakeLists.txt b/soc/st/stm32/stm32mp2x/m33/CMakeLists.txt index 2ef552ce5ac..1b3edbb5221 100644 --- a/soc/st/stm32/stm32mp2x/m33/CMakeLists.txt +++ b/soc/st/stm32/stm32mp2x/m33/CMakeLists.txt @@ -5,3 +5,5 @@ zephyr_include_directories(${ZEPHYR_BASE}/drivers) zephyr_include_directories(.) + +set(SOC_LINKER_SCRIPT ${CMAKE_CURRENT_SOURCE_DIR}/linker.ld CACHE INTERNAL "") diff --git a/soc/st/stm32/stm32mp2x/m33/linker.ld b/soc/st/stm32/stm32mp2x/m33/linker.ld new file mode 100644 index 00000000000..6b963d31e93 --- /dev/null +++ b/soc/st/stm32/stm32mp2x/m33/linker.ld @@ -0,0 +1,21 @@ +/* linker.ld - Linker command/script file */ + +/* + * Copyright (C) 2025 Savoir-faire Linux, Inc. + * + * SPDX-License-Identifier: Apache-2.0 + */ + +#define rom_start .isr_vectors + +#include + +SECTIONS +{ + /* Standard Zephyr relocation section */ +#include + +#ifdef CONFIG_LLEXT +#include +#endif +}