]> Shamusworld >> Repos - rmac/blobdiff - object.c
On some occasions elf output would misplace symbols due to the fact that it D_word...
[rmac] / object.c
index 522a4d918ce6bacc5d5b0bd0c3805a1867a3dd2c..7fd8fcce06ed190924fd0c175ff970f5322764e2 100644 (file)
--- a/object.c
+++ b/object.c
@@ -178,6 +178,7 @@ uint8_t * AddBSDSymEntry(uint8_t * buf, SYM * sym, int globflag)
 uint8_t * AddELFSymEntry(uint8_t * buf, SYM * sym, int globflag)
 {
        chptr = buf;
+       ch_size = 0;
        D_long(strindx);                // st_name
        D_long(sym->svalue);    // st_value
        D_long(0);                              // st_size