Prevent using LOAD blocks outide code sections

This commit is contained in:
ISSOtm
2020-03-20 16:37:10 +01:00
parent ecf44c784c
commit fb5e768142

View File

@@ -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");