From f121119283e746a087cc4e2d347abe7c0fb5664d Mon Sep 17 00:00:00 2001 From: ISSOtm Date: Sun, 9 Feb 2020 16:13:20 +0100 Subject: [PATCH] Use section's offset instead of general one That's more future-proof and makes more sense --- src/asm/output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/asm/output.c b/src/asm/output.c index 67400a9c..af8f687b 100644 --- a/src/asm/output.c +++ b/src/asm/output.c @@ -346,7 +346,7 @@ void out_CreatePatch(uint32_t type, struct Expression *expr) 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) {