elf_shn2type
static int elf_shn2type(Elf_Ehdr *, u_int _shn, const char *_sn);
type = elf_shn2type(eh, sym->st_shndx, sn);
type = elf_shn2type(eh, sym->st_shndx, NULL);