From: Shamus Hammons Date: Sat, 24 Nov 2012 20:00:29 +0000 (-0600) Subject: Small fix for FU_JR fixups. X-Git-Tag: 1.3.0~32 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=commitdiff_plain;h=233e5e908f5a865233f775520dc35917f13d2d26;hp=d16b8ea0ee65b2ad901ca6b0624c07e6e4930cc4 Small fix for FU_JR fixups. --- diff --git a/debug.c b/debug.c index 6ce0065..2245267 100644 --- a/debug.c +++ b/debug.c @@ -118,6 +118,9 @@ int fudump(CHUNK * ch) printf("`%s' ;\n", (*p.sy)->sname); p.sy++; } + + if ((attr & 0x0F00) == FU_JR) + p.lp++; } ch = ch->chnext; diff --git a/sect.c b/sect.c index 53ba02b..3fd627a 100644 --- a/sect.c +++ b/sect.c @@ -279,7 +279,8 @@ int fixup(WORD attr, LONG loc, TOKEN * fexpr) if ((attr & 0x0F00) == FU_JR) { // i = 18; - i = FIXUP_BASE_SIZE + (sizeof(LONG) * 2); +// i = FIXUP_BASE_SIZE + (sizeof(LONG) * 2); + i = FIXUP_BASE_SIZE + sizeof(SYM *) + sizeof(LONG); } else {