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 9354d3fa49f5e3df67cb0c284f0ebb39b160cbfa..a37ca0c54b7cd094874ddfda75474c1e5c6d1a9d 100644 (file)
@@ -34,3 +34,5 @@ SECTIONS
   /* End of uninitalized data segement */
   _end = .;
 }
+
+ASSERT(_end < 0x80004000, "program is too large")