samples: nrf53_sync_rtc: Move shared memory buffer next to .data

To avoid possible linker warnings, when the linker may end up placing
this section in a segment with text and therefore with execute
permissions, with let's move it next to the .data section.

Signed-off-by: Alberto Escolar Piedras <alberto.escolar.piedras@nordicsemi.no>
This commit is contained in:
Alberto Escolar Piedras 2024-09-10 09:44:16 +02:00 committed by Carles Cufí
parent ecb23433c7
commit 0bec7a2da2
1 changed files with 1 additions and 1 deletions

View File

@ -17,7 +17,7 @@ LOG_MODULE_REGISTER(main);
/* For simulation, we can define shared memory variables linkable from
* other MCUs just by using NATIVE_SIMULATOR_IF
*/
NATIVE_SIMULATOR_IF uint32_t shared_cell_buffer;
NATIVE_SIMULATOR_IF_DATA uint32_t shared_cell_buffer;
static uint32_t shared_cell = (uintptr_t)&shared_cell_buffer;
#else
static uint32_t shared_cell = 0x20070000;