Skip to content
Snippets Groups Projects
Commit 8a045188 authored by Timothy Baldwin's avatar Timothy Baldwin Committed by Laurent Vivier
Browse files

linux-user: Correctly start brk after executable


info->brk was erroneously set to the end of highest addressed
writable segment which could result it in overlapping the executable.

As per load_elf_binary in fs/binfmt_elf.c in Linux, it should be
set to end of highest addressed segment.

Signed-off-by: default avatarTimothy E Baldwin <T.E.Baldwin99@members.leeds.ac.uk>
Reviewed-by: default avatarRichard Henderson <richard.henderson@linaro.org>
Message-Id: <20200728224615.326675-1-T.E.Baldwin99@members.leeds.ac.uk>
Signed-off-by: default avatarLaurent Vivier <laurent@vivier.eu>
parent e5ce9688
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