summaryrefslogtreecommitdiff
path: root/qemu-img.c
diff options
context:
space:
mode:
authorRichard Henderson <rth@twiddle.net>2012-06-01 16:07:52 -0700
committerRichard Henderson <rth@twiddle.net>2012-08-04 09:37:49 -0700
commita5e7ee467c6b8cdfc0fc0f1958d5b0f479d76aaf (patch)
treef82b83c947077eb47c401ddb62f5658e3a5faaa7 /qemu-img.c
parentafc8763f9db442abdbeb73a6458e27a0031c73b3 (diff)
downloadqemu-a5e7ee467c6b8cdfc0fc0f1958d5b0f479d76aaf.tar.gz
linux-user: Allocate the right amount of space for non-fixed file maps
If we let the kernel handle the implementation of mmap_find_vma, via an anon mmap, we must use the size as indicated by the user and not the size truncated to the filesize. This happens often in ld.so, where we initially mmap the file to the size of the text+data+bss to reserve an area, then mmap+fixed over the top to properly handle data and bss. Signed-off-by: Richard Henderson <rth@twiddle.net>
Diffstat (limited to 'qemu-img.c')
0 files changed, 0 insertions, 0 deletions