X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=sect.c;fp=sect.c;h=0ea53a843f1c4568dec445fcab7c7f3a179ed014;hp=4dc7032c4c34a7834626589daf4f9eefa6c0df82;hb=8f287ee72236774216a11a3062f9a26dc8dc66b6;hpb=e1087cbdea2503c3462546d52919f4012d1ab115 diff --git a/sect.c b/sect.c index 4dc7032..0ea53a8 100644 --- a/sect.c +++ b/sect.c @@ -450,9 +450,6 @@ int ResolveFixups(int sno) // from the location (that will happen in the linker when the external // reference is resolved). // - // MWC expects PC-relative things to have the LOC subtracted from the - // value, if the value is external (that is, undefined at this point). - // // PC-relative fixups must be DEFINED and either in the same section // (whereupon the subtraction takes place) or ABS (with no subtract). if ((dw & FU_PCREL) || (dw & FU_PCRELX)) @@ -470,7 +467,7 @@ int ResolveFixups(int sno) else if (tdb) { // Allow cross-section PCREL fixups in Alcyon mode - if (prg_flag) + if (prg_flag || (obj_format == RAW)) { switch (tdb) { @@ -504,14 +501,6 @@ int ResolveFixups(int sno) if (sbra_flag && (dw & FU_LBRA) && (eval + 0x80 < 0x100)) warn("unoptimized short branch"); } - else if (obj_format == MWC) - { - eval -= loc; - - // In this instruction the PC is located a DWORD away - if (dw & FU_PCRELX) - eval += 2; - } // Be sure to clear any TDB flags, since we handled it just now tdb = 0;