aboutsummaryrefslogtreecommitdiff
path: root/src/host
diff options
context:
space:
mode:
Diffstat (limited to 'src/host')
-rw-r--r--src/host/imxrt-boot-header-1180.x3
-rw-r--r--src/host/imxrt-boot-header.x3
-rw-r--r--src/host/imxrt-link.x2
3 files changed, 6 insertions, 2 deletions
diff --git a/src/host/imxrt-boot-header-1180.x b/src/host/imxrt-boot-header-1180.x
index 101725a..cf93e7c 100644
--- a/src/host/imxrt-boot-header-1180.x
+++ b/src/host/imxrt-boot-header-1180.x
@@ -101,4 +101,7 @@ SECTIONS
} > FLASH
}
+ASSERT((__dcd_end - __dcd_start) % 4 == 0, "
+ERROR(imxrt-rt): .dcd (Device Configuration Data) size must be a multiple of 4 bytes.");
+
/* ===--- End imxrt-boot-header-1180.x ---=== */
diff --git a/src/host/imxrt-boot-header.x b/src/host/imxrt-boot-header.x
index 3f33603..165e858 100644
--- a/src/host/imxrt-boot-header.x
+++ b/src/host/imxrt-boot-header.x
@@ -78,4 +78,7 @@ SECTIONS
} > FLASH
}
+ASSERT((__dcd_end - __dcd_start) % 4 == 0, "
+ERROR(imxrt-rt): .dcd (Device Configuration Data) size must be a multiple of 4 bytes.");
+
/* ===--- End imxrt-boot-header.x ---=== */
diff --git a/src/host/imxrt-link.x b/src/host/imxrt-link.x
index dfe7355..7fcd76c 100644
--- a/src/host/imxrt-link.x
+++ b/src/host/imxrt-link.x
@@ -203,8 +203,6 @@ Dynamic relocations are not supported. If you are linking to C code compiled usi
the 'cc' crate then modify your build script to compile the C code _without_
the -fPIC flag. See the documentation of the `cc::Build.pic` method for details.");
-ASSERT((__dcd_end - __dcd_start) % 4 == 0, "
-ERROR(imxrt-rt): .dcd (Device Configuration Data) size must be a multiple of 4 bytes.");
/* Do not exceed this mark in the error messages above | */
/* ===--- End imxrt-link.x ---=== */