]> Joshua Wise's Git repositories - netwatch.git/blobdiff - elfload/loader.c
remove log from vga overlay
[netwatch.git] / elfload / loader.c
index f5be3a479b9da5ded4d66943bcd4b14f15ab3d1e..c70571d9aa38866d89f880fcf1301e859657997f 100644 (file)
@@ -1,6 +1,6 @@
 #include <string.h>
 #include <stdio.h>
-#include "elf.h"
+#include "../include/elf.h"
 #include <stdlib.h>
 #include <unistd.h>
 #include <errno.h>
@@ -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) || !(elf_sec_hdrs[i].sh_flags & SHF_ALLOC)) {
                        printf("Skipping %s...\n", section_name);
                        continue;
                }
This page took 0.026454 seconds and 4 git commands to generate.