From ff8351f948193207a835ccb9b826bebd06897bdd Mon Sep 17 00:00:00 2001 From: norly Date: Fri, 21 Jun 2013 00:43:55 +0100 Subject: [PATCH] Minor cleanup in reladd, 2nd pass --- src/libelfu/modelops/reladd.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/libelfu/modelops/reladd.c b/src/libelfu/modelops/reladd.c index 6ab54e0..82b562b 100644 --- a/src/libelfu/modelops/reladd.c +++ b/src/libelfu/modelops/reladd.c @@ -201,23 +201,17 @@ static void* subScnAdd2(ElfuElf *mrel, ElfuScn *ms, void *aux1, void *aux2) switch(ms->shdr.sh_type) { case SHT_NULL: /* 0 */ case SHT_PROGBITS: /* 1 */ + case SHT_SYMTAB: /* 2 */ case SHT_STRTAB: /* 3 */ case SHT_NOBITS: /* 8 */ break; - + case SHT_RELA: /* 4 */ case SHT_REL: /* 9 */ /* Relocate. */ elfu_mRelocate(me, elfu_mScnByOldscn(me, ms->infoptr), ms); break; - case SHT_RELA: /* 4 */ - // TODO: Needs a parser - //elfu_mRelocate(elfu_mScnByOldscn(me, ms->infoptr), ms); - - case SHT_SYMTAB: /* 2 */ - /* Merge with the existing table. Take care of string tables also. */ - /* The next section types either do not occur in .o files, or are * not strictly necessary to process here. */ case SHT_NOTE: /* 7 */ -- 2.30.2