char * section_name = string_table + elf_sec_hdrs[i].sh_name;
- if (!(elf_sec_hdrs[i].sh_flags & SHF_ALLOC)) {
+ if ((elf_sec_hdrs[i].sh_type != SHT_PROGBITS) || !(elf_sec_hdrs[i].sh_flags & SHF_ALLOC)) {
printf("Skipping %s...\n", section_name);
continue;
}