]> git.proxmox.com Git - mirror_qemu.git/commit
linux-user: don't adjust base of found hole
authorAlex Bennée <alex.bennee@linaro.org>
Wed, 5 Jan 2022 13:50:01 +0000 (13:50 +0000)
committerAlex Bennée <alex.bennee@linaro.org>
Tue, 18 Jan 2022 16:44:16 +0000 (16:44 +0000)
commit190674f3719d7a26387715952312f6397cddfaaf
tree8d098db4736c706970675e120d052ea69f8f7d4f
parente7588237ce8f8115b5ad9a3ecdd46f60d95a461a
linux-user: don't adjust base of found hole

The pgb_find_hole function goes to the trouble of taking account of
both mmap_min_addr and any offset we've applied to decide the starting
address of a potential hole. This is especially important for
emulating 32bit ARM in a 32bit build as we have applied the offset to
ensure there will be space to map the ARM_COMMPAGE bellow the main
guest map (using wrapped arithmetic).

Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Resolves: https://gitlab.com/qemu-project/qemu/-/issues/690
Message-Id: <20220105135009.1584676-27-alex.bennee@linaro.org>
linux-user/elfload.c