2021-01-27 16:16:34 +00:00
|
|
|
.syntax unified
|
|
|
|
|
|
|
|
#include "version.h"
|
|
|
|
|
|
|
|
.section .header, "a"
|
|
|
|
|
|
|
|
.type g_header, %object
|
|
|
|
.size g_header, .-g_header
|
|
|
|
|
|
|
|
g_header:
|
|
|
|
.byte 'T','R','Z','B' // magic
|
|
|
|
.word g_header_end - g_header // hdrlen
|
2022-11-21 13:12:49 +00:00
|
|
|
#ifdef TREZOR_MODEL_T
|
2021-01-27 16:16:34 +00:00
|
|
|
.word 0 // expiry
|
2022-11-21 13:12:49 +00:00
|
|
|
#else
|
|
|
|
.word 1 // expiry
|
|
|
|
#endif
|
2021-01-27 16:16:34 +00:00
|
|
|
.word _codelen // codelen
|
|
|
|
.byte VERSION_MAJOR // vmajor
|
|
|
|
.byte VERSION_MINOR // vminor
|
|
|
|
.byte VERSION_PATCH // vpatch
|
|
|
|
.byte VERSION_BUILD // vbuild
|
|
|
|
.byte FIX_VERSION_MAJOR // fix_vmajor
|
|
|
|
.byte FIX_VERSION_MINOR // fix_vminor
|
|
|
|
.byte FIX_VERSION_PATCH // fix_vpatch
|
|
|
|
.byte FIX_VERSION_BUILD // fix_vbuild
|
2022-11-21 13:12:49 +00:00
|
|
|
.word HW_MODEL // type of the designated hardware
|
|
|
|
.byte HW_REVISION // revision of the designated hardware
|
|
|
|
.byte VERSION_MONOTONIC // monotonic version
|
|
|
|
. = . + 2 // reserved
|
2021-01-27 16:16:34 +00:00
|
|
|
. = . + 512 // hash1 ... hash16
|
|
|
|
. = . + 415 // reserved
|
|
|
|
.byte 0 // sigmask
|
|
|
|
. = . + 64 // sig
|
|
|
|
g_header_end:
|