diff --git a/elf/src/lib.rs b/elf/src/lib.rs index 352ca54..ad19bce 100644 --- a/elf/src/lib.rs +++ b/elf/src/lib.rs @@ -39,7 +39,8 @@ pub fn load_elf_object_file(file: Vec) -> Program { && section_header.sh_flags == (abi::SHF_ALLOC | abi::SHF_WRITE).into(); let is_rodata: bool = section_header.sh_type == abi::SHT_PROGBITS && (section_header.sh_flags == abi::SHF_ALLOC.into() - || section_header.sh_flags == 0x32); // TODO: what is 0x32? + || section_header.sh_flags == 0x32 // TODO: what is 0x32? + || section_header.sh_flags == 0x12); // TODO: what is 0x12? let is_bss: bool = section_header.sh_type == abi::SHT_NOBITS && section_header.sh_flags == (abi::SHF_ALLOC | abi::SHF_WRITE).into(); let is_text: bool = section_header.sh_type == abi::SHT_PROGBITS