diff options
author | Tim Newsome <tim@sifive.com> | 2018-09-13 16:02:22 -0700 |
---|---|---|
committer | Tim Newsome <tim@sifive.com> | 2018-09-13 16:02:22 -0700 |
commit | f94342b7d6e06e35e521d184b7b3570dfe512409 (patch) | |
tree | 185d6d4be062d66fad6dc3f3090ada90ec084b6d /debug/targets/SiFive | |
parent | a96f32d19d65123a5cf4e43aa25e503530f910b9 (diff) | |
download | riscv-tests-f94342b7d6e06e35e521d184b7b3570dfe512409.zip riscv-tests-f94342b7d6e06e35e521d184b7b3570dfe512409.tar.gz riscv-tests-f94342b7d6e06e35e521d184b7b3570dfe512409.tar.bz2 |
Assert if HiFive1 program is too large.
Diffstat (limited to 'debug/targets/SiFive')
-rw-r--r-- | debug/targets/SiFive/HiFive1.lds | 2 |
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") |