X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=blobdiff_plain;f=object.c;h=395526e0ff1259c18753d2268255ab941571634d;hp=29fd8f3ce0d672e42757eed92131ccfd47b6461d;hb=c59f7a33730dacf753e066a4002e2f749051a137;hpb=29fa5dcf504b966803063a1c2891f58f97126d04 diff --git a/object.c b/object.c index 29fd8f3..395526e 100644 --- a/object.c +++ b/object.c @@ -314,14 +314,13 @@ uint32_t DepositELFSymbol(uint8_t * ptr, uint32_t name, uint32_t addr, uint32_t // int WriteObject(int fd) { - LONG t; // Scratch long LONG tds; // TEXT & DATA segment size int i; // Temporary int CHUNK * cp; // Chunk (for gather) uint8_t * buf; // Scratch area uint8_t * p; // Temporary ptr LONG trsize, drsize; // Size of relocations - long unused; // For supressing 'write' warnings + uint32_t unused; // For supressing 'write' warnings if (verb_flag) { @@ -484,6 +483,9 @@ int WriteObject(int fd) sy_assign(buf + HDRSIZE + tds, AddSymEntry); chptr = buf + 0x0E; // Point to symbol table size entry D_long(symsize); + + if (verb_flag) + printf("Symbol table: %d bytes\n", symsize); } // Write out the header + text & data + symbol table (if any) @@ -810,7 +812,7 @@ for(int j=0; j