aboutsummaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
authorTom Burdick <thomas.burdick@gmail.com>2023-09-30 08:18:19 -0500
committerGitHub <noreply@github.com>2023-09-30 08:18:19 -0500
commitd0a33f85348b6c397bc31bc364c0c74391dd5fba (patch)
treeb658ec62fa2303fd840984a4437b8858d9b494e8 /src/host
parent6a16c13573c78e86a247565b9cbb98e5d0f04787 (diff)
parent567d3c5853b47ef4e7ca3938fb4976db7dbc9d79 (diff)
Merge pull request #12 from imxrt-rs/gnu-linker
Test with GNU's linker
Diffstat (limited to 'src/host')
-rw-r--r--src/host/imxrt-boot-header.x2
-rw-r--r--src/host/imxrt-link.x1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/host/imxrt-boot-header.x b/src/host/imxrt-boot-header.x
index ed9d789..615fc65 100644
--- a/src/host/imxrt-boot-header.x
+++ b/src/host/imxrt-boot-header.x
@@ -71,7 +71,7 @@ SECTIONS
__dcd_start = .;
KEEP(*(.dcd)); /* Device Configuration Data */
__dcd_end = .;
- __dcd = ((__dcd_end - __dcd_start) > 0) ? __dcd_start : 0;
+ __dcd = ((__dcd_end - __dcd_start) > 0) ? __dcd_start : ABSOLUTE(0);
*(.Reset); /* Jam the imxrt-rt reset handler into flash. */
*(.__pre_init); /* Also jam the pre-init function, since we need it to run before instructions are placed. */
. = ORIGIN(FLASH) + 0x2000; /* Reserve the remaining 8K as a convenience for a non-XIP boot. */
diff --git a/src/host/imxrt-link.x b/src/host/imxrt-link.x
index 71b697e..6c28f99 100644
--- a/src/host/imxrt-link.x
+++ b/src/host/imxrt-link.x
@@ -15,6 +15,7 @@ ENTRY(Reset);
EXTERN(__EXCEPTIONS); /* depends on all the these PROVIDED symbols */
EXTERN(DefaultHandler);
+EXTERN(__pre_init);
PROVIDE(NonMaskableInt = DefaultHandler);
EXTERN(HardFaultTrampoline);