From 3c7505f2f4929a549ab3c51de73ebe7c4fcf1d72 Mon Sep 17 00:00:00 2001 From: ggn Date: Mon, 21 Aug 2017 20:48:32 +0300 Subject: [PATCH] On some occasions elf output would misplace symbols due to the fact that it D_word thought that it would write outside current chunk. --- object.c | 1 + 1 file changed, 1 insertion(+) 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 -- 2.37.2