cmake: linker: arm: utilize zephyr_linker_group(... SYMBOL SECTION)
The root cause of #38591 was region symbols being placed before the section description for data region. To support both schemes with the linker generator, a new `SYMBOL SECTION` argument has been added to the zephyr_linker_group() function. This commit updates the arm/linker.cmake CMake linker file to use the new `SYMBOL SECTION` argument for the data region group and text region group so that those two groups now behave identical to the behavior when using the cortex_m linker.ld template. Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
This commit is contained in:
parent
57ab0342d3
commit
734e52899a
1 changed files with 2 additions and 2 deletions
|
@ -59,9 +59,9 @@ else()
|
|||
endif()
|
||||
|
||||
zephyr_linker_group(NAME RAM_REGION VMA RAM LMA ROM_REGION)
|
||||
zephyr_linker_group(NAME TEXT_REGION GROUP ROM_REGION)
|
||||
zephyr_linker_group(NAME TEXT_REGION GROUP ROM_REGION SYMBOL SECTION)
|
||||
zephyr_linker_group(NAME RODATA_REGION GROUP ROM_REGION)
|
||||
zephyr_linker_group(NAME DATA_REGION GROUP RAM_REGION)
|
||||
zephyr_linker_group(NAME DATA_REGION GROUP RAM_REGION SYMBOL SECTION)
|
||||
|
||||
# should go to a relocation.cmake - from include/linker/rel-sections.ld - start
|
||||
zephyr_linker_section(NAME .rel.plt HIDDEN)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue