summaryrefslogtreecommitdiffstats
path: root/include/hw/timer
diff options
context:
space:
mode:
authorLaurent Vivier2022-01-15 21:37:24 +0100
committerLaurent Vivier2022-01-20 09:09:37 +0100
commitb4c4c1f1129a5d9dcbcbff46b58998f6fb1410bb (patch)
treeb1caf619960637bcd625e0550a9981f4b652bdd6 /include/hw/timer
parentexec/memory: Extract address_space_set() from dma_memory_set() (diff)
downloadqemu-b4c4c1f1129a5d9dcbcbff46b58998f6fb1410bb.tar.gz
qemu-b4c4c1f1129a5d9dcbcbff46b58998f6fb1410bb.tar.xz
qemu-b4c4c1f1129a5d9dcbcbff46b58998f6fb1410bb.zip
hw/elf_ops: clear uninitialized segment space
When the mem_size of the segment is bigger than the file_size, and if this space doesn't overlap another segment, it needs to be cleared. This bug is very similar to the one we had for linux-user, 22d113b52f41 ("linux-user: Fix loading of BSS segments"), where .bss section is encoded as an extension of the the data one by setting the segment p_memsz > p_filesz. Signed-off-by: Laurent Vivier <laurent@vivier.eu> [PMD: Use recently added address_space_set()] Signed-off-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Stefano Garzarella <sgarzare@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20220115203725.3834712-3-laurent@vivier.eu>
Diffstat (limited to 'include/hw/timer')
0 files changed, 0 insertions, 0 deletions