qemu-e2k/hw/s390x
Alexey Kardashevskiy 18674b2678 elf-loader: add more return codes
The existing load_elf() just returns -1 if it fails to load ELF. However
it could be smarter than this and tell more about the failure such as
wrong endianness or incompatible platform.

This adds additional return codes for wrong architecture, wrong
endianness and if the image is not ELF at all.

This adds a load_elf_strerror() helper to convert return codes into
string messages.

This fixes handling of what load_elf() returns for s390x, other
callers just check the return value for <0 and this remains unchanged.

Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru>
Signed-off-by: Alexander Graf <agraf@suse.de>
2014-03-05 03:06:46 +01:00
..
css.c exec: Make stw_*_phys input an AddressSpace 2014-02-11 22:57:32 +10:00
css.h
event-facility.c s390x/event-facility: exploit realize/unrealize 2014-02-27 09:51:25 +01:00
ipl.c elf-loader: add more return codes 2014-03-05 03:06:46 +01:00
Makefile.objs s390-sclp: SCLP Event integration 2014-01-21 16:48:39 +01:00
s390-virtio-bus.c exec: Make stb_phys input an AddressSpace 2014-02-11 22:57:38 +10:00
s390-virtio-bus.h
s390-virtio-ccw.c s390x/kvm: implement floating-interrupt controller device 2014-02-27 09:51:25 +01:00
s390-virtio-hcall.c s390x/virtio-hcall: Specification exception for illegal subcodes 2014-02-27 09:51:25 +01:00
s390-virtio.c s390x/kvm: implement floating-interrupt controller device 2014-02-27 09:51:25 +01:00
s390-virtio.h
sclp.c s390x/event-facility: code restructure 2014-02-27 09:51:25 +01:00
sclpcpu.c s390-sclp: SCLP Event integration 2014-01-21 16:48:39 +01:00
sclpquiesce.c
virtio-ccw.c exec: Make stw_*_phys input an AddressSpace 2014-02-11 22:57:32 +10:00
virtio-ccw.h virtio-ccw: remove vdev field 2013-12-09 21:46:48 +01:00