Assert if HiFive1 program is too large.
authorTim Newsome <tim@sifive.com>
Thu, 13 Sep 2018 23:02:22 +0000 (16:02 -0700)
committerTim Newsome <tim@sifive.com>
Thu, 13 Sep 2018 23:02:22 +0000 (16:02 -0700)
debug/targets/SiFive/HiFive1.lds

index 9354d3f..a37ca0c 100644 (file)
@@ -34,3 +34,5 @@ SECTIONS
   /* End of uninitalized data segement */
   _end = .;
 }
+
+ASSERT(_end < 0x80004000, "program is too large")