hermit-os/uhyve

Incorrect offsets for non-relocatable binaries

Open

#980 opened on May 19, 2025

 (6 comments) (0 reactions) (0 assignees)Rust (35 forks)auto 404
buggood first issue

Repository metrics

Stars
 (293 stars)
PR merge metrics
 (Avg merge 15h 22m) (29 merged PRs in 30d)

Description

Something is broken when debugging non-relocatable binaries. Hermit loads these correct, but reporting the kernel_address as offset (https://github.com/hermit-os/uhyve/blob/08f042ff9e82a1c3bab6143b71bbabb11cc539bb/src/linux/gdb/section_offsets.rs#L7) results in incorrect addresses.

Contributor guide