aboutsummaryrefslogtreecommitdiff
path: root/debug
diff options
context:
space:
mode:
authorTim Newsome <tim@sifive.com>2018-09-13 16:02:22 -0700
committerTim Newsome <tim@sifive.com>2018-09-13 16:02:22 -0700
commitf94342b7d6e06e35e521d184b7b3570dfe512409 (patch)
tree185d6d4be062d66fad6dc3f3090ada90ec084b6d /debug
parenta96f32d19d65123a5cf4e43aa25e503530f910b9 (diff)
downloadriscv-tests-f94342b7d6e06e35e521d184b7b3570dfe512409.zip
riscv-tests-f94342b7d6e06e35e521d184b7b3570dfe512409.tar.gz
riscv-tests-f94342b7d6e06e35e521d184b7b3570dfe512409.tar.bz2
Assert if HiFive1 program is too large.
Diffstat (limited to 'debug')
-rw-r--r--debug/targets/SiFive/HiFive1.lds2
1 files changed, 2 insertions, 0 deletions
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")