Evaluate assertions after placing sections

This commit is contained in:
ISSOtm
2020-03-27 20:00:29 +01:00
parent 6579120d9e
commit 95f347dc6a
3 changed files with 9 additions and 0 deletions

View File

@@ -22,6 +22,11 @@ void obj_ReadFile(char const *fileName);
*/ */
void obj_DoSanityChecks(void); void obj_DoSanityChecks(void);
/**
* Evaluate all assertions
*/
void obj_CheckAssertions(void);
/** /**
* `free`s all object memory that was allocated. * `free`s all object memory that was allocated.
*/ */

View File

@@ -193,6 +193,7 @@ int main(int argc, char *argv[])
/* then process them, */ /* then process them, */
obj_DoSanityChecks(); obj_DoSanityChecks();
assign_AssignSections(); assign_AssignSections();
obj_CheckAssertions();
assign_Cleanup(); assign_Cleanup();
/* and finally output the result. */ /* and finally output the result. */

View File

@@ -512,7 +512,10 @@ void obj_ReadFile(char const *fileName)
void obj_DoSanityChecks(void) void obj_DoSanityChecks(void)
{ {
sect_DoSanityChecks(); sect_DoSanityChecks();
}
void obj_CheckAssertions(void)
{
patch_CheckAssertions(assertions); patch_CheckAssertions(assertions);
} }