linker: Port usage of custom-sections to use Cmake
Mark custom-sections as deprecated Signed-off-by: Øyvind Rønningstad <oyvind.ronningstad@nordicsemi.no>
This commit is contained in:
parent
6d0039444c
commit
901c0a1cfd
5 changed files with 13 additions and 12 deletions
|
@ -18,3 +18,5 @@ zephyr_code_relocate(src/test_file3.c SRAM_DATA)
|
|||
zephyr_code_relocate(src/test_file3.c SRAM2_BSS)
|
||||
|
||||
zephyr_code_relocate(../../../kernel/sem.c SRAM)
|
||||
|
||||
zephyr_linker_sources(SECTIONS custom-sections.ld)
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
/* SPDX-License-Identifier: Apache-2.0 */
|
||||
|
||||
SECTION_DATA_PROLOGUE(_CUSTOM_SECTION_NAME2,,)
|
||||
{
|
||||
KEEP(*(".custom_section.*"));
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
SECTION_DATA_PROLOGUE(_CUSTOM_SECTION_NAME2,,)
|
||||
{
|
||||
KEEP(*(".custom_section.*"));
|
||||
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)
|
||||
|
|
|
@ -1,5 +1,4 @@
|
|||
CONFIG_CODE_DATA_RELOCATION=y
|
||||
CONFIG_HAVE_CUSTOM_LINKER_SCRIPT=y
|
||||
CONFIG_CUSTOM_LINKER_SCRIPT="linker_arm_sram2.ld"
|
||||
CONFIG_CUSTOM_SECTIONS_LD=y
|
||||
CONFIG_COVERAGE=n
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue