diff options
Diffstat (limited to 'subx/020elf.cc')
-rw-r--r-- | subx/020elf.cc | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/subx/020elf.cc b/subx/020elf.cc index 85bda201..2c162ddf 100644 --- a/subx/020elf.cc +++ b/subx/020elf.cc @@ -76,7 +76,6 @@ void load_segment_from_program_header(uint8_t* elf_contents, size_t size, uint32 uint32_t p_offset = u32_in(&elf_contents[offset + 4]); uint32_t p_vaddr = u32_in(&elf_contents[offset + 8]); if (e_ehsize > p_vaddr) raise << "Invalid binary; program header overlaps ELF header\n" << die(); - if ((p_vaddr & 0xfffff000) != 0x08048000) raise << "Currently only supporting binaries starting in the default page 0x08048000, but code segment starts at 0x" << HEXWORD << p_vaddr << '\n' << die(); // unused: p_paddr uint32_t p_filesz = u32_in(&elf_contents[offset + 16]); uint32_t p_memsz = u32_in(&elf_contents[offset + 20]); |