Skip to content

Commit 77d61af

Browse files
committed
chainload/vmbuild: don't expect single loadable segment
1 parent 02fb8ef commit 77d61af

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/chainload/service.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,8 @@ void Service::start()
7878
}
7979

8080
auto init_seg = phdrs[0];
81-
Expects(loadable == 1);
81+
// Expects(loadable == 1);
82+
// TODO: Handle multiple loadable segments properly
8283
Expects(init_seg.p_type == PT_LOAD);
8384

8485
// Move hotswap function away from binary

vmbuild/vmbuild.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,8 @@ int main(int argc, char** argv)
221221
INFO("Found 64-bit ELF with entry at 0x%x", srv_entry);
222222

223223
auto loadable = binary.loadable_segments();
224-
Expects(loadable.size() == 1);
224+
// Expects(loadable.size() == 1);
225+
// TODO: Handle multiple loadable segments properly
225226
srv_load_addr = loadable[0]->p_paddr;
226227
binary_load_offs = loadable[0]->p_offset;
227228

0 commit comments

Comments
 (0)