summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorPatrick Georgi <pgeorgi@google.com>2019-01-15 17:04:48 +0100
committerchrome-bot <chrome-bot@chromium.org>2019-02-07 03:02:05 -0800
commit10dc115665f8b1f3e7a61ba24505d782564712f8 (patch)
tree8789f07f83bc1deab88fe5f57536919906da31c9 /core
parent4dfbfc9f0092312613aaa5d932b5e74d21a74069 (diff)
downloadchrome-ec-10dc115665f8b1f3e7a61ba24505d782564712f8.tar.gz
core/cortex-m: mark gcc helper function "used"
gcc injects calls to that function without notifying LTO. BRANCH=cr50, cr50-mp BUG=b:65253310 TEST=after the entire stack was applied Cr50 builds successfully with CONFIG_LTO enabled, and passes TCG test suite. Change-Id: Ie116423a2e8a394dae9d6c7c373786615d9fba4c Signed-off-by: Patrick Georgi <pgeorgi@google.com> Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1411540
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/llsr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m/llsr.c b/core/cortex-m/llsr.c
index 5a43dc1f08..0827121e97 100644
--- a/core/cortex-m/llsr.c
+++ b/core/cortex-m/llsr.c
@@ -14,7 +14,7 @@ union words {
uint32_t w[2];
};
-uint64_t __aeabi_llsr(uint64_t v, uint32_t shift)
+uint64_t __attribute__((used)) __aeabi_llsr(uint64_t v, uint32_t shift)
{
union words val;
union words res;