diff options
author | Kartik Agaram <vc@akkartik.com> | 2018-07-24 11:54:25 -0700 |
---|---|---|
committer | Kartik Agaram <vc@akkartik.com> | 2018-07-24 11:54:25 -0700 |
commit | 4ac15a8a0e1d9254f919ddc2ce48412944ad82b1 (patch) | |
tree | 9077986cf88bb45bf86d21b9d72d4940af87f8ef /subx | |
parent | 7a5106c4f8c6825dc1b42ee05e5859e62b6d2a10 (diff) | |
download | mu-4ac15a8a0e1d9254f919ddc2ce48412944ad82b1.tar.gz |
4393 - undo 4362
Why did I have this?
Diffstat (limited to 'subx')
-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]); |