ref: f121119283e746a087cc4e2d347abe7c0fb5664d
parent: d9c1b669314842eab152392263db8ab77c1b257f
author: ISSOtm <[email protected]>
date: Sun Feb 9 11:13:20 EST 2020
Use section's offset instead of general one That's more future-proof and makes more sense
--- a/src/asm/output.c
+++ b/src/asm/output.c
@@ -346,7 +346,7 @@
pPatch->nType = type;
fstk_DumpToStr(pPatch->tzFilename, sizeof(pPatch->tzFilename));
pPatch->nLine = nLineNo;
- pPatch->nOffset = nPC;
+ pPatch->nOffset = pCurrentSection->nPC;
while ((rpndata = rpn_PopByte(expr)) != 0xDEAD) {
switch (rpndata) {