From: ggn Date: Mon, 21 Aug 2017 17:48:32 +0000 (+0300) Subject: On some occasions elf output would misplace symbols due to the fact that it D_word... X-Git-Tag: v2.1.0~107 X-Git-Url: http://shamusworld.gotdns.org/cgi-bin/gitweb.cgi?p=rmac;a=commitdiff_plain;h=3c7505f2f4929a549ab3c51de73ebe7c4fcf1d72;ds=sidebyside On some occasions elf output would misplace symbols due to the fact that it D_word thought that it would write outside current chunk. --- diff --git a/object.c b/object.c index 522a4d9..7fd8fcc 100644 --- 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