qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

linux-user/elfload.c: Seeing a segfault in qemu with a binary with no da


From: Stephen Long
Subject: linux-user/elfload.c: Seeing a segfault in qemu with a binary with no data section
Date: Mon, 2 Nov 2020 18:30:02 +0000

Hi, we are seeing a segfault in qemu in the following code snippet in 
zero_bss():

if (host_start < host_map_start) {
  memset((void *)host_start, 0, host_map_start - host_start);
}

The elf doesn't have a data section, so host_start isn't mapped. I'm not sure 
whether this is a qemu issue or the generated elf is no good.

Thanks,
Stephen



reply via email to

[Prev in Thread] Current Thread [Next in Thread]