summaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authorMary Ruthven <mruthven@chromium.org>2021-11-09 16:01:34 -0600
committerCommit Bot <commit-bot@chromium.org>2021-11-18 04:49:21 +0000
commit4a18e729662d00de37e6c2d08f08af68e3224236 (patch)
tree5d48ea50642bdc87384963c04d00fd65aa645ec0 /core
parentdc4cc17a81f4a483ffde65fa73575c0f2225b584 (diff)
downloadchrome-ec-4a18e729662d00de37e6c2d08f08af68e3224236.tar.gz
Revert "core/cortex-m: Support prevent chip memory region from GC."
This reverts commit 216ab1e1d8d74bc722d3e322b2460802e93a5df9. BUG=b:200823466 TEST=make buildall -j Change-Id: I172f980a255ec824b263ffa836359b4cbe947892 Signed-off-by: Mary Ruthven <mruthven@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3273402 Reviewed-by: Vadim Sukhomlinov <sukhomlinov@chromium.org>
Diffstat (limited to 'core')
-rw-r--r--core/cortex-m/ec.lds.S10
1 files changed, 0 insertions, 10 deletions
diff --git a/core/cortex-m/ec.lds.S b/core/cortex-m/ec.lds.S
index b4dd439b9e..ad3a637714 100644
--- a/core/cortex-m/ec.lds.S
+++ b/core/cortex-m/ec.lds.S
@@ -61,10 +61,8 @@ MEMORY
#ifdef CONFIG_CHIP_MEMORY_REGIONS
#define REGION(name, attr, start, size) \
name(attr) : ORIGIN = (start), LENGTH = (size)
-#define REGION_LOAD REGION
#include "memory_regions.inc"
#undef REGION
-#undef REGION_LOAD
#endif /* CONFIG_MEMORY_REGIONS */
}
@@ -468,18 +466,10 @@ SECTIONS
#define REGION(name, attr, start, size) \
.name(NOLOAD) : { \
__##name##_start = .; \
- KEEP(*(SORT(.name.keep.*))) \
- *(SORT(.name.*)) \
- } > name
-#define REGION_LOAD(name, attr, start, size) \
- .name : { \
- __##name##_start = .; \
- KEEP(*(SORT(.name.keep.*))) \
*(SORT(.name.*)) \
} > name
#include "memory_regions.inc"
#undef REGION
-#undef REGION_LOAD
#endif /* CONFIG_CHIP_MEMORY_REGIONS */
#if !(defined(SECTION_IS_RO) && defined(CONFIG_FLASH))