Skip to content

Commit 5618357

Browse files
sasdfjwnrt
authored andcommitted
[rom_ext] Mark static critical version as used
The previous PR missed updating this file. Marking it as used prevents optimizations such as LTO from stripping the value. Change-Id: I60bac0f10d35e59f17bde24b6d60c5f8130b5cb4 Signed-off-by: Yi-Hsuan Deng <yhdeng@google.com>
1 parent 7628d3d commit 5618357

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sw/device/silicon_creator/lib/base/static_critical_version.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
* populated by the ROM before the jump to ROM_EXT.
1515
*/
1616
OT_SET_BSS_SECTION(".static_critical.version",
17-
uint32_t static_critical_version;)
17+
OT_USED uint32_t static_critical_version;)

0 commit comments

Comments
 (0)