]> Joshua Wise's Git repositories - netwatch.git/commitdiff
SHT_PROGBITS, not SHT_ALLOC
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 5 Sep 2008 23:58:01 +0000 (19:58 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 5 Sep 2008 23:58:01 +0000 (19:58 -0400)
elfload/loader.c

index f5be3a479b9da5ded4d66943bcd4b14f15ab3d1e..80f0990e297332c00a472b16004decfaa56eeaaa 100644 (file)
@@ -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;
                }
This page took 0.028219 seconds and 4 git commands to generate.