]> git.proxmox.com Git - qemu.git/commit
elfload: fix size of ABI-dependent fields in core dumps
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 17 Apr 2013 14:26:36 +0000 (16:26 +0200)
committerEdgar E. Iglesias <edgar.iglesias@gmail.com>
Thu, 18 Apr 2013 12:12:31 +0000 (14:12 +0200)
commitca98ac830f4e3a7d7729ec1ff22d54d97c86dcbd
treea4d81cda399e3dc00115fecd5661daf3c9525769
parent5b5e30370147ce3495b7509238e88ef9a6d873ec
elfload: fix size of ABI-dependent fields in core dumps

Some fields in core dumps are 32-bit in 32-or-64 environments (ppc64abi32,
sparc32plus).  Use abi_long/ulong for those.

Also, the fields of target_elf_siginfo are ints.  Use tswap32 to convert them.

Reviewed-by: Peter Maydell <peter.maydell@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
linux-user/elfload.c