]> Shamusworld >> Repos - rmac/blobdiff - mark.c
Initial commit for 68020/30/40/60/68881/68882/68851 support.
[rmac] / mark.c
diff --git a/mark.c b/mark.c
index 6c065b52e83928cfdd9589d970a2f79a5958c138..f5eb2af7042e31148009284ea692c578927f223a 100644 (file)
--- a/mark.c
+++ b/mark.c
@@ -95,8 +95,8 @@ if (symbol)
        //
        if (prg_flag)
        {
-               if ((flags & MLONG) == 0)
-                       error("illegal word relocatable (in .PRG mode)");
+               //if ((flags & MLONG) == 0)
+               //      error("illegal word relocatable (in .PRG mode)");
 
                if (symbol != NULL)
                        errors("illegal external reference (in .PRG mode) to '%s'",
@@ -527,21 +527,7 @@ uint32_t CreateELFRelocationRecord(uint8_t * buf, uint8_t * secBuf, uint16_t sec
                                else
                                        r_type = 1;  // R_68K_32
 
-#ifdef DEBUG_IMAGE_MARKING
-if (symbol)
-{
-       printf("CreateELFReloc: symbol-svalue = $%08X\n", symbol->svalue);
-}
-
-printf("CreateELFReloc: deposited value = $%08X\n", GETBE32(secBuf + r_offset, 0));
-
-#endif
-//Turns out this is pretty much bollocks. So now we punt all the time :-)
-//N.B.: Once this is proved out, this will go for good.
-//                             if (symbol != NULL)
-//                                     r_addend = symbol->svalue;    // Mark offset into section
-//                             else
-                                       r_addend = GETBE32(secBuf + r_offset, 0);
+                               r_addend = GETBE32(secBuf + r_offset, 0);
 
                                // Deposit the relocation record
                                D_long(r_offset);