summaryrefslogtreecommitdiff
path: root/zephyr/linker
diff options
context:
space:
mode:
Diffstat (limited to 'zephyr/linker')
-rw-r--r--zephyr/linker/CMakeLists.txt4
-rw-r--r--zephyr/linker/end-of-ram.ld29
2 files changed, 0 insertions, 33 deletions
diff --git a/zephyr/linker/CMakeLists.txt b/zephyr/linker/CMakeLists.txt
index adffc2246f..94544d454b 100644
--- a/zephyr/linker/CMakeLists.txt
+++ b/zephyr/linker/CMakeLists.txt
@@ -21,7 +21,3 @@ zephyr_linker_sources_ifdef(CONFIG_SOC_FAMILY_MEC ROM_START SORT_KEY 1
zephyr_linker_sources(DATA_SECTIONS iterables-ram.ld)
zephyr_linker_sources(SECTIONS iterables-rom.ld)
-
-# Ensure there's space for panic and jump data at the end of ram
-# Must be added to "SECTIONS" because this is applied last
-zephyr_linker_sources(SECTIONS end-of-ram.ld)
diff --git a/zephyr/linker/end-of-ram.ld b/zephyr/linker/end-of-ram.ld
deleted file mode 100644
index e03de7481d..0000000000
--- a/zephyr/linker/end-of-ram.ld
+++ /dev/null
@@ -1,29 +0,0 @@
-/* Copyright 2022 The Chromium OS Authors.
- * Use of this source code is governed by a BSD-style license that can be
- * found in the LICENSE file.
- */
-
-/* This section simply ensures there's enough unused space at the end of ram to
- * hold panic and jump data. This space isn't directly allocated because it
- * would result in the SRAM utilization always being reported as 100%.
- */
-#if !defined(CONFIG_BOARD_NATIVE_POSIX)
-SECTION_PROLOGUE(.end_of_ram_info, 0, )
-{
- ASSERT(DEFINED(_image_ram_end) && _image_ram_end > 0, "Error: _image_ram_end is not defined");
-
-#if defined(RAM_ADDR) && defined(RAM_SIZE)
- PROVIDE(__unused_ram_start = _image_ram_end);
- PROVIDE(__unused_ram_end = RAM_ADDR + RAM_SIZE);
- PROVIDE(__unused_ram_size = __unused_ram_end - __unused_ram_start);
- ASSERT(__unused_ram_size >= CONFIG_PLATFORM_EC_PRESERVED_END_OF_RAM_SIZE,
- "ERROR: Not enough space for preserved end of ram data (see PLATFORM_EC_PRESERVED_END_OF_RAM_SIZE)");
-#endif
-
-#if defined(CONFIG_SHAREDMEM_MINIMUM_SIZE)
- ASSERT(CONFIG_SHAREDMEM_MINIMUM_SIZE >= CONFIG_PLATFORM_EC_PRESERVED_END_OF_RAM_SIZE,
- "ERROR: Sharedmem must be at least large enough for preserved end of ram data");
-#endif
-
-}
-#endif