diff options
| author | Richard Henderson <richard.henderson@linaro.org> | 2023-08-16 10:32:18 -0700 |
|---|---|---|
| committer | Richard Henderson <richard.henderson@linaro.org> | 2023-09-01 13:34:18 -0700 |
| commit | aec338d63bc28f1f13d5e64c561d7f1dd0e4b07e (patch) | |
| tree | 0482b4bdf32065cd44ed25aa1e4a2dc102bb387f /linux-user/linuxload.c | |
| parent | 7b7a3366e142d3baeb3fd1d3660a50e7956c19eb (diff) | |
| download | focaccia-qemu-aec338d63bc28f1f13d5e64c561d7f1dd0e4b07e.tar.gz focaccia-qemu-aec338d63bc28f1f13d5e64c561d7f1dd0e4b07e.zip | |
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: 1f356e8c013 ("linux-user: Adjust initial brk when interpreter is close to executable")
Tested-by: Helge Deller <deller@gmx.de>
Reviewed-by: Ilya Leoshkevich <iii@linux.ibm.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'linux-user/linuxload.c')
0 files changed, 0 insertions, 0 deletions