From: norly Date: Thu, 20 Jun 2013 23:43:55 +0000 (+0100) Subject: Minor cleanup in reladd, 2nd pass X-Git-Url: https://git.enpas.org/?p=centaur.git;a=commitdiff_plain;h=ff8351f948193207a835ccb9b826bebd06897bdd Minor cleanup in reladd, 2nd pass --- 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 */