Skip to content

Commit

Permalink
Add error check that would otherwise error other error report.
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobly0 committed Dec 25, 2020
1 parent c804db7 commit 63b8049
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions ld.alm
Original file line number Diff line number Diff line change
Expand Up @@ -1362,6 +1362,11 @@ macro ?! $ : $ , \
else if ~definite section.high?
load output.data: section.initialized? from? section.area?: section.base?
store output.data: section.initialized? at? section.base?
else if section.base? > section.high?
repeat 1, more: section.base? - section.high?
err 'section ', section, ' has a maximum end that is ', `more, \
' bytes before it begins'
end repeat
else if section.top? > section.high?
repeat 1, length: section.length?, \
more: section.top? - section.high?, \
Expand Down

0 comments on commit 63b8049

Please sign in to comment.