Skip to content

Commit

Permalink
zephyr: link the .unstable_id data in ROM
Browse files Browse the repository at this point in the history
The data in this section is constant:

const char _chreVersionString[]...

So it can be linked in ROM, which also solves a build issue with few
platforms upstream as this linker section is not supposed to use RAM
data in the first place.

Signed-off-by: Fabio Baltieri <fabiobaltieri@google.com>
  • Loading branch information
fabiobaltieri authored and yperess committed Oct 17, 2023
1 parent b7955c2 commit 3b32c76
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions platform/zephyr/linker_chre.ld
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,4 @@
SECTION_DATA_PROLOGUE(_CHRE_SECTION,,)
{
KEEP(*(".unstable_id"));
} GROUP_DATA_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)

} GROUP_ROM_LINK_IN(RAMABLE_REGION, ROMABLE_REGION)

0 comments on commit 3b32c76

Please sign in to comment.