From: Joshua Wise Date: Fri, 5 Sep 2008 23:58:01 +0000 (-0400) Subject: SHT_PROGBITS, not SHT_ALLOC X-Git-Url: http://git.joshuawise.com/netwatch.git/commitdiff_plain/ff4dc66d05141fdf63ad1c9c4e8f6a4aa5397119 SHT_PROGBITS, not SHT_ALLOC --- 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; }