Skip to content

Commit 0bec7a2

Browse files
aescolarcarlescufi
authored andcommitted
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 <[email protected]>
1 parent ecb2343 commit 0bec7a2

File tree

1 file changed

+1
-1
lines changed
  • samples/boards/nrf/nrf53_sync_rtc/src

1 file changed

+1
-1
lines changed

samples/boards/nrf/nrf53_sync_rtc/src/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ LOG_MODULE_REGISTER(main);
1717
/* For simulation, we can define shared memory variables linkable from
1818
* other MCUs just by using NATIVE_SIMULATOR_IF
1919
*/
20-
NATIVE_SIMULATOR_IF uint32_t shared_cell_buffer;
20+
NATIVE_SIMULATOR_IF_DATA uint32_t shared_cell_buffer;
2121
static uint32_t shared_cell = (uintptr_t)&shared_cell_buffer;
2222
#else
2323
static uint32_t shared_cell = 0x20070000;

0 commit comments

Comments
 (0)