]> Shamusworld >> Repos - rmac/blobdiff - mark.c
(c) message in header files and doc mini adjustments.
[rmac] / mark.c
diff --git a/mark.c b/mark.c
index 6c065b52e83928cfdd9589d970a2f79a5958c138..088263b2c0271d795f33b043046fda331f01bd97 100644 (file)
--- a/mark.c
+++ b/mark.c
@@ -1,7 +1,7 @@
 //
-// RMAC - Reboot's Macro Assembler for the Atari Jaguar Console System
+// RMAC - Reboot's Macro Assembler for all Atari computers
 // MARK.C - A record of things that are defined relative to any of the sections
-// Copyright (C) 199x Landon Dyer, 2011-2012 Reboot and Friends
+// Copyright (C) 199x Landon Dyer, 2011-2017 Reboot and Friends
 // RMAC derived from MADMAC v1.07 Written by Landon Dyer, 1986
 // Source utilised with the kind permission of Landon Dyer
 //
@@ -95,8 +95,10 @@ if (symbol)
        //
        if (prg_flag)
        {
+#if 0
                if ((flags & MLONG) == 0)
                        error("illegal word relocatable (in .PRG mode)");
+#endif
 
                if (symbol != NULL)
                        errors("illegal external reference (in .PRG mode) to '%s'",
@@ -527,21 +529,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);