]> Joshua Wise's Git repositories - netwatch.git/blobdiff - elfload/loader.c
Add a little bit more functionality to grubload
[netwatch.git] / elfload / loader.c
index 80f0990e297332c00a472b16004decfaa56eeaaa..a231c85f3ac501900c28e5dd0368483e6ddeb3dc 100644 (file)
@@ -73,7 +73,7 @@ int load_elf (char * buf) {
 
                char * section_name = string_table + elf_sec_hdrs[i].sh_name;
 
 
                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;
                }
                        printf("Skipping %s...\n", section_name);
                        continue;
                }
This page took 0.021295 seconds and 4 git commands to generate.