summaryrefslogtreecommitdiff
path: root/core/cortex-m
diff options
context:
space:
mode:
authorVadim Bendebury <vbendeb@chromium.org>2018-01-05 10:26:02 -0800
committerchrome-bot <chrome-bot@chromium.org>2018-01-05 14:28:47 -0800
commit57bb4ddf4163dbe3da48ba56464adbabfa596344 (patch)
treee5b0c9c1c3dc68ab7d69dd45fdc5cc12f305e3bb /core/cortex-m
parent0b9a0688946c76451d0770be9b1fe4de148a4691 (diff)
downloadchrome-ec-57bb4ddf4163dbe3da48ba56464adbabfa596344.tar.gz
cr50: fix annoying LD warnings
The compiler marks data put into the TPM2_common.bss section as PROGBITS, which the linker does not like. Changing the section name prevents the marking and keeps linker happy. BRANCH=cr50 BUG=chromium:799385 TEST=verified that local_state is still in where it belongs: $ egrep '(local_state|__bss_libtpm2)' build/cr50/RW/ec.RW.smap 00010400 B __bss_libtpm2_start 00015d0c b local_state 00015d18 B __bss_libtpm2_end Change-Id: I48f7d2cb08c7ccb2ef3b3159eaf4d66e2b8720b4 Signed-off-by: Vadim Bendebury <vbendeb@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/852793 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'core/cortex-m')
-rw-r--r--core/cortex-m/ec.lds.S2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index 62f3b6f992..64fb132462 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -257,7 +257,7 @@ SECTIONS
Tpm2_*(.bss)
/* TPM registers should be cleared at the same time */
STRINGIFY(OUTDIR/common/tpm_registers.o*)(.bss)
- *(Tpm2_common.bss)
+ *(.bss.Tpm2_common)
__bss_libtpm2_end = .;
*(.bss)