From f94342b7d6e06e35e521d184b7b3570dfe512409 Mon Sep 17 00:00:00 2001 From: Tim Newsome Date: Thu, 13 Sep 2018 16:02:22 -0700 Subject: [PATCH] Assert if HiFive1 program is too large. --- debug/targets/SiFive/HiFive1.lds | 2 ++ 1 file changed, 2 insertions(+) diff --git a/debug/targets/SiFive/HiFive1.lds b/debug/targets/SiFive/HiFive1.lds index 9354d3f..a37ca0c 100644 --- a/debug/targets/SiFive/HiFive1.lds +++ b/debug/targets/SiFive/HiFive1.lds @@ -34,3 +34,5 @@ SECTIONS /* End of uninitalized data segement */ _end = .; } + +ASSERT(_end < 0x80004000, "program is too large") -- 2.30.2