X-Git-Url: http://git.joshuawise.com/netwatch.git/blobdiff_plain/015cd976c6ff9a00fded2edbc617daf85b7b3ca1..ff4dc66d05141fdf63ad1c9c4e8f6a4aa5397119:/elfload/loader.c diff --git a/elfload/loader.c b/elfload/loader.c index f5be3a4..80f0990 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_flags & SHF_ALLOC)) { + if (elf_sec_hdrs[i].sh_type != SHT_PROGBITS) { printf("Skipping %s...\n", section_name); continue; }