diff --git a/src/asm/section.c b/src/asm/section.c index a498256e..3be3eb8f 100644 --- a/src/asm/section.c +++ b/src/asm/section.c @@ -206,6 +206,8 @@ void out_NewSection(char const *pzName, uint32_t type, int32_t org, void out_SetLoadSection(char const *name, uint32_t type, int32_t org, struct SectionSpec const *attributes) { + checkcodesection(); + if (currentLoadSection) fatalerror("`LOAD` blocks cannot be nested");