diff --git a/src/asm/section.c b/src/asm/section.c index ce3b66b0..4f0a1257 100644 --- a/src/asm/section.c +++ b/src/asm/section.c @@ -562,6 +562,9 @@ void out_PopSection(void) 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;