diff options
author | Vadim Bendebury <vbendeb@chromium.org> | 2021-10-06 15:04:51 -0700 |
---|---|---|
committer | Commit Bot <commit-bot@chromium.org> | 2021-10-11 19:58:40 +0000 |
commit | 289dfac48450fe2707b0ca381c399ecaabc9b949 (patch) | |
tree | 3415f6dfeb4511bc798c9e4705e7c2f95079b1d6 /include/rwsig.h | |
parent | d1244d6f05b833db439901f7af4d691344f0c214 (diff) | |
download | chrome-ec-289dfac48450fe2707b0ca381c399ecaabc9b949.tar.gz |
cr50: use LTO module for TPM2
In order to reduce code footprint, do not link TPM2 library modules,
instead build TPM2 as a single relocatable object module, a collection
of library sources compiled and linked with LTO enabled.
BUG=b:65253310
TEST=observed code space reduced by 1428 bytes, the bss_libtpm2
section remained practically unchanged:
before:
*** 5548 bytes in flash and 5652 bytes in RAM still ...
000104d0 B __bss_libtpm2_start
000155d7 B __bss_libtpm2_end
after:
*** 6976 bytes in flash and 5652 bytes in RAM still ...
000104d0 B __bss_libtpm2_start
000155d4 B __bss_libtpm2_end
Verified that the new Cr50 image allows a Chrome OS to successfully
boot and restart.
Cq-Depend: chromium:3210050
Signed-off-by: Vadim Bendebury <vbendeb@chromium.org>
Change-Id: I32335df29a332da115d8af56c157d5ad4189e9b0
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3210510
Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Reviewed-by: Mary Ruthven <mruthven@chromium.org>
Diffstat (limited to 'include/rwsig.h')
0 files changed, 0 insertions, 0 deletions