aboutsummaryrefslogtreecommitdiff
path: root/src/host/imxrt-boot-header.x
diff options
context:
space:
mode:
authorIan McIntyre <ianpmcintyre@gmail.com>2023-02-11 16:35:32 -0500
committerIan McIntyre <ianpmcintyre@gmail.com>2023-03-25 14:51:08 -0400
commite1fddd5b3b678c43ee59835d7b57bbc063a22d28 (patch)
tree405cbe80197d44234fbdced32698c3f849a9408f /src/host/imxrt-boot-header.x
parent83a3ff31a0c7078fb090f9e767e0a3b050f74542 (diff)
Generate one linker script; add unit tests
We can still maintain individual linker script components, then write them into one, larger linker script. We're effectively implementing the same behavior as INCLUDE while disallowing overrides of the linker search path to find the INCLUDEd files. Once we have one linker script, we can refactor for easier unit testing. This commit adds simple unit tests for the default builder, and some of the expected errors.
Diffstat (limited to 'src/host/imxrt-boot-header.x')
-rw-r--r--src/host/imxrt-boot-header.x5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/host/imxrt-boot-header.x b/src/host/imxrt-boot-header.x
index 67355a2..296eff5 100644
--- a/src/host/imxrt-boot-header.x
+++ b/src/host/imxrt-boot-header.x
@@ -1,4 +1,5 @@
-/* This extra file is injected into imxrt-memory.x depending on the
+/* ===--- Begin imxrt-boot-header.x ---===
+ * This extra content is injected into the linker script depending on the
* runtime configuration.
*/
@@ -71,3 +72,5 @@ SECTIONS
. = ORIGIN(FLASH) + 0x2000; /* Reserve the remaining 8K as a convenience for a non-XIP boot. */
} > FLASH
}
+
+/* ===--- End imxrt-boot-header.x ---=== */