]> Shamusworld >> Repos - rmac/blobdiff - object.c
Code cleanup from last patch, also, version bump for same. :-)
[rmac] / object.c
index cbedaab6b0b2cdf5907af53d377a42cb4dc5b8ab..c20e714672ae71bbec86b1d5ead44e2a7e547ae9 100644 (file)
--- a/object.c
+++ b/object.c
@@ -7,13 +7,13 @@
 //
 
 #include "object.h"
+#include "6502.h"
 #include "error.h"
 #include "mark.h"
 #include "riscasm.h"
 #include "sect.h"
 #include "symbol.h"
 
-
 //#define DEBUG_ELF
 
 uint32_t symsize = 0;                  // Size of BSD/ELF symbol table
@@ -57,7 +57,7 @@ See left.             4 & 5   If these bits are set to 0 (PF_PRIVATE), the processes'
 
 
 //
-// Add entry to symbol table
+// Add entry to symbol table (in ALCYON mode)
 // If 'globflag' is 1, make the symbol global
 // If in .PRG mode, adjust symbol values for fake link
 //
@@ -752,6 +752,11 @@ for(int j=0; j<i; j++)
                        free(strtable);
                }
        }
+       else if (obj_format == XEX)
+       {
+               // Just write the object file
+               m6502obj(fd);
+       }
 
        return 0;
 }