From ff4dc66d05141fdf63ad1c9c4e8f6a4aa5397119 Mon Sep 17 00:00:00 2001 From: Joshua Wise Date: Fri, 5 Sep 2008 19:58:01 -0400 Subject: [PATCH] SHT_PROGBITS, not SHT_ALLOC --- elfload/loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } -- 2.43.0