qemu/include
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
..
block nbd: move socket wrappers to qemu-nbd 2014-02-21 21:02:23 +01:00
disas disas: Implement disassembly output for A64 2014-02-08 14:50:48 +00:00
exec exec: Make cpu_physical_memory_write_rom input an AS 2014-02-11 22:57:44 +10:00
fpu softfloat: Support halving the result of muladd operation 2014-02-20 10:35:50 +00:00
hw elf-loader: add more return codes 2014-03-05 03:06:46 +01:00
migration Fix two XBZRLE corruption issues 2014-02-25 14:30:28 +01:00
monitor quorum: Add quorum mechanism. 2014-02-21 22:29:50 +01:00
net net: remove implicit peer from offload API 2014-02-25 14:31:05 +01:00
qapi trivial patches for 2014-03-04 2014-03-04 18:12:02 +00:00
qemu target-ppc: Add ISA2.06 divde[o] Instructions 2014-03-05 03:06:39 +01:00
qom dump: const-qualify the buf of WriteCoreDumpFunction 2014-02-28 11:49:02 -05:00
sysemu kvm: Add a new machine option kvm-type 2014-03-05 03:06:24 +01:00
ui include: add missing config-host.h include 2013-12-16 10:12:20 +01:00
config.h janitor: move remaining public headers to include/ 2012-12-19 08:32:46 +01:00
elf.h tcg-s390: Use qemu_getauxval in query_facilities 2013-11-30 07:45:30 +13:00
glib-compat.h glib: add a compatibility interface for g_timeout_add_seconds 2013-03-25 13:10:40 -05:00
qemu-common.h Block patches 2014-02-25 10:50:11 +00:00
qemu-io.h qemu-io: add command completion 2014-01-22 12:07:17 +01:00
trace.h build: some simplifications for "trace/Makefile.objs" 2013-01-12 18:42:51 +01:00