On 30/5/26 23:12, Richard Henderson wrote:
Pass a PGBRange structure instead of separate guest_loaddr
and guest_hiaddr parameters.  This allows NULL to indicate
that the image is relocatable, so that image_range->lo == 0
is a valid fixed setting.

Resolves: https://gitlab.com/qemu-project/qemu/-/work_items/1890

Elegant fix.
Reviewed-by: Philippe Mathieu-Daudé <[email protected]>

Signed-off-by: Richard Henderson <[email protected]>
---
  linux-user/user-internals.h | 13 ++++-------
  linux-user/elfload.c        | 46 +++++++++++++++++--------------------
  linux-user/flatload.c       |  2 +-
  3 files changed, 27 insertions(+), 34 deletions(-)

Reply via email to