From f661dd3e9708687574ad193b24a5d3d37b825bd7 Mon Sep 17 00:00:00 2001 From: norly Date: Mon, 3 Jun 2013 02:43:18 +0100 Subject: [PATCH] Do not insert STRTAB sections explicitly --- src/model/reladd.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/model/reladd.c b/src/model/reladd.c index 482804c..2fdfb48 100644 --- a/src/model/reladd.c +++ b/src/model/reladd.c @@ -173,6 +173,7 @@ 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_STRTAB: /* 3 */ case SHT_NOBITS: /* 8 */ break; @@ -189,10 +190,6 @@ static void* subScnAdd2(ElfuElf *mrel, ElfuScn *ms, void *aux1, void *aux2) case SHT_SYMTAB: /* 2 */ /* Merge with the existing table. Take care of string tables also. */ - case SHT_STRTAB: /* 3 */ - /* May have to be merged with the existing string table for - * the symbol table. */ - /* 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