zephyr/soc/riscv/openisa_rv32m1
Torsten Rasmussen 15e834a687 linker: __data_region_start equal to __data_start
Fixes: #38591, #38207, #37861

The commit 65a2de84a9 aligned the data
linker symbol for sections and regions.

The data region symbol start has been placed outside the sections thus
being defined as the address of the region before alignment of the first
section in the data region, usually the `datas` section.

The symbol defining the start address of the data section is after
section alignment.
In most cases the address of the data region start and datas section
start will be identical, but not always.
The data region symbol is a new linker symbol and existing code has
been depending on the old data section start symbol.
Thus, the update to the use of the data region start symbol instead of
data ram start symbol thus results in a different address when the
section is aligned to a different address.

To ensure the original behavior in all cases, the data region start
address is now moved inside the data section.

Signed-off-by: Torsten Rasmussen <Torsten.Rasmussen@nordicsemi.no>
2021-09-24 15:13:13 -04:00
..
CMakeLists.txt
Kconfig
Kconfig.defconfig
Kconfig.soc
linker.ld linker: __data_region_start equal to __data_start 2021-09-24 15:13:13 -04:00
soc.c
soc.h
soc_context.h
soc_irq.S
soc_offsets.h
soc_ri5cy.h
soc_zero_riscy.h
vector.S
vector_table.ld
wdog.S