X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/ff4dc66d05141fdf63ad1c9c4e8f6a4aa5397119..035d7af7dd4727735ec57f8195a4842e31ffc997:/elfload/loader.c diff --git a/elfload/loader.c b/elfload/loader.c index 80f0990..a231c85 100644 --- a/elfload/loader.c +++ b/elfload/loader.c @@ -73,7 +73,7 @@ int load_elf (char * buf) { char * section_name = string_table + elf_sec_hdrs[i].sh_name; - if (elf_sec_hdrs[i].sh_type != SHT_PROGBITS) { + if ((elf_sec_hdrs[i].sh_type != SHT_PROGBITS) || !(elf_sec_hdrs[i].sh_flags & SHF_ALLOC)) { printf("Skipping %s...\n", section_name); continue; }