Skip to content
Snippets Groups Projects
Commit aec338d6 authored by Richard Henderson's avatar Richard Henderson
Browse files

linux-user: Adjust brk for load_bias


PIE executables are usually linked at offset 0 and are
relocated somewhere during load.  The hiaddr needs to
be adjusted to keep the brk next to the executable.

Cc: qemu-stable@nongnu.org
Fixes: 1f356e8c ("linux-user: Adjust initial brk when interpreter is close to executable")
Tested-by: default avatarHelge Deller <deller@gmx.de>
Reviewed-by: default avatarIlya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: default avatarPhilippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 7b7a3366
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment