Implement LOAD/ENDL blocks

Basically implements and closes rednex#274.
This commit is contained in:
ISSOtm
2020-02-09 16:30:25 +01:00
parent f121119283
commit eb0d75711a
5 changed files with 119 additions and 57 deletions

View File

@@ -578,7 +578,7 @@ void sym_AddReloc(char const *tzSym)
nsym->isExported = true;
nsym->pScope = scope;
nsym->pSection = pCurrentSection;
nsym->pSection = sect_GetSymbolSection();
/* Labels need to be assigned a section, except PC */
if (!pCurrentSection && strcmp(tzSym, "@"))
yyerror("Label \"%s\" created outside of a SECTION",