ref: 5a0fcda4c83b2ee3918655a5f5c393613fea50fe
parent: 29623c41463fb1e1486b763d9d15d6a23c36b77e
author: ISSOtm <eldredhabert0@gmail.com>
date: Fri Mar 20 14:57:37 EDT 2020
Prevent `POPS` within `LOAD` blocks
--- a/src/asm/section.c
+++ b/src/asm/section.c
@@ -562,6 +562,9 @@
if (pSectionStack == NULL)
fatalerror("No entries in the section stack");
+ if (currentLoadSection)
+ fatalerror("Cannot change the section within a `LOAD` block!");
+
struct SectionStackEntry *pSect;
pSect = pSectionStack;