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

linux-user: Use zero_bss for PT_LOAD with no file contents too


If p_filesz == 0, then vaddr_ef == vaddr.  We can reuse the
code in zero_bss rather than incompletely duplicating it in
load_elf_image.

Tested-by: default avatarHelge Deller <deller@gmx.de>
Reviewed-by: default avatarHelge Deller <deller@gmx.de>
Reviewed-by: default avatarAkihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: default avatarAlex Bennée <alex.bennee@linaro.org>
Signed-off-by: default avatarRichard Henderson <richard.henderson@linaro.org>
parent 2d385be6
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