about summary refs log tree commit diff stats
path: root/subx
diff options
context:
space:
mode:
authorKartik Agaram <vc@akkartik.com>2018-07-24 11:54:25 -0700
committerKartik Agaram <vc@akkartik.com>2018-07-24 11:54:25 -0700
commit4ac15a8a0e1d9254f919ddc2ce48412944ad82b1 (patch)
tree9077986cf88bb45bf86d21b9d72d4940af87f8ef /subx
parent7a5106c4f8c6825dc1b42ee05e5859e62b6d2a10 (diff)
downloadmu-4ac15a8a0e1d9254f919ddc2ce48412944ad82b1.tar.gz
4393 - undo 4362
Why did I have this?
Diffstat (limited to 'subx')
-rw-r--r--subx/020elf.cc1
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]);