qemu-e2k/linux-user
Peter Maydell 885c1d10b8 linux-user: If loading fails, print error as string, not number
If the attempt to load the guest executable fails, print the
error message as a string, not a number. This requires us to
fix a couple of places in loader_exec() where we were returning
-1 instead of a valid negative errno.

The change allows us to drop the "Unknown binary format" message
because the strerror-enhanced message is now a more self-explanatory
"Error while loading $guest-binary: Exec format error".

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Riku Voipio <riku.voipio@linaro.org>
2012-10-12 14:25:56 +03:00
..
alpha alpha-linux-user: Fix sigaltstack structure definition 2012-10-12 14:01:04 +03:00
arm
cris
i386
m68k
microblaze
mips
mips64
mipsn32
openrisc target-or32: Add linux syscall, signal and termbits 2012-07-27 21:13:05 +00:00
ppc
s390x
sh4
sparc
sparc64
unicore32
x86_64
cpu-uname.c target-arm: Remove ARM_CPUID_* macros 2012-06-20 12:13:28 +00:00
cpu-uname.h
elfload.c linux-user: remove two unchecked uses of strdup 2012-10-05 07:58:37 -05:00
errno_defs.h
flat.h
flatload.c flatload: fix bss clearing 2012-08-14 20:26:55 +01:00
ioctls.h linux-user: Fix SNDCTL_DSP_MAP{IN, OUT}BUF ioctl definitions 2012-08-13 12:45:46 +01:00
linux_loop.h
linuxload.c linux-user: If loading fails, print error as string, not number 2012-10-12 14:25:56 +03:00
m68k-sim.c
main.c linux-user: If loading fails, print error as string, not number 2012-10-12 14:25:56 +03:00
Makefile.objs
mmap.c linux-user: Allocate the right amount of space for non-fixed file maps 2012-08-04 09:37:49 -07:00
qemu-types.h
qemu.h linux-user: Fix siginfo handling 2012-10-12 14:01:49 +03:00
signal.c linux-user: Fix siginfo handling 2012-10-12 14:01:49 +03:00
socket.h
strace.c linux-user: Handle O_SYNC, O_NOATIME, O_CLOEXEC, O_PATH 2012-08-04 09:37:49 -07:00
strace.list linux-user: Translate pipe2 flags; add to strace 2012-08-04 09:37:49 -07:00
syscall_defs.h linux-user: fix emulation of getdents 2012-08-27 10:17:30 +03:00
syscall_types.h linux-user: Fix SNDCTL_DSP_MAP{IN, OUT}BUF ioctl definitions 2012-08-13 12:45:46 +01:00
syscall.c linux-user: Fix siginfo handling 2012-10-12 14:01:49 +03:00
target_flat.h
uaccess.c
vm86.c