X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=object.c;h=4614c38d66ed373eed028d7f0ed9a849f1282017;hp=590f2631fe6fabb71b1fd132b834fa2f91e588aa;hb=66be644c3e5fbd7446d86c79e9e51b75c0442b49;hpb=171a457e86f686cf2adddc91baa9d9e703264259 diff --git a/object.c b/object.c index 590f263..4614c38 100644 --- a/object.c +++ b/object.c @@ -228,12 +228,16 @@ int WriteObject(int fd) } // Write requested object file... - if (obj_format==BSD || (obj_format==ALCYON && prg_flag==0)) + if ((obj_format == BSD) || ((obj_format == ALCYON) && (prg_flag == 0))) { + // Force BSD format from here onwards + obj_format = BSD; + if (verb_flag) { printf("Total : %d bytes\n", sect[TEXT].sloc + sect[DATA].sloc + sect[BSS].sloc); } + ssize = ((LONG)sy_assign(NULL, NULL)); // Assign index numbers to the symbols tds = sect[TEXT].sloc + sect[DATA].sloc; // Get size of TEXT and DATA segment buf = malloc(0x600000); // Allocate 6mb object file image memory