summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--board/cr50/tpm2/NVMem.c2
-rw-r--r--core/cortex-m/ec.lds.S2
2 files changed, 2 insertions, 2 deletions
diff --git a/board/cr50/tpm2/NVMem.c b/board/cr50/tpm2/NVMem.c
index 7921270fb2..33ce13a336 100644
--- a/board/cr50/tpm2/NVMem.c
+++ b/board/cr50/tpm2/NVMem.c
@@ -25,7 +25,7 @@ static struct {
BOOL s_NvIsAvailable;
BOOL s_NV_unrecoverable;
BOOL s_NV_recoverable;
-} local_state __attribute__((section("Tpm2_common.bss")));
+} local_state __attribute__((section(".bss.Tpm2_common")));
/*
* This function is used by the simulator to set the error flags in the NV
* subsystem to simulate an error in the NV loading process.
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)