]> Joshua Wise's Git repositories - netwatch.git/commitdiff
OK, I guess both of them.
authorJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 5 Sep 2008 23:59:44 +0000 (19:59 -0400)
committerJoshua Wise <joshua@rebirth.joshuawise.com>
Fri, 5 Sep 2008 23:59:44 +0000 (19:59 -0400)
elfload/Makefile
elfload/loader.c

index b6bb390dd2598376e441dfd8308e6e3e7f4c84a2..be876f82de65a5b59e7b12b810b3a5c921117512 100644 (file)
@@ -1,4 +1,4 @@
-loader:
+loader: loader.c
        gcc loader.c -o loader
 
 clean:
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;
 
-               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;
                }
This page took 0.029658 seconds and 4 git commands to generate.