You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Make ELF loading respect program header virtual addresses
For non-PIE binaries (ET_EXEC), the page table now maps the code
region at the ELF's declared virtual address rather than identity
mapping at the GPA. The entrypoint is computed correctly as a GVA.
PIE binaries (base_va == 0) continue to use identity mapping,
preserving existing behavior.
Also adds build infrastructure and integration test for non-PIE guests:
- Justfile: build-rust-guests-non-pie target builds simpleguest with
static relocation model and --image-base=0x200000
- hyperlight_testing: add simple_guest_non_pie_as_string() path helper
- integration_test: non_pie_guest_hello_world exercises full guest
lifecycle (init, COW, function call) with absolute addresses
Contributes to: #1408
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Signed-off-by: cshung <3410332+cshung@users.noreply.github.com>
0 commit comments