summaryrefslogtreecommitdiffstats
path: root/hw/core/loader.c
diff options
context:
space:
mode:
authorAlexey Kardashevskiy2017-07-27 01:56:14 +0200
committerYongbok Kim2017-07-28 14:32:32 +0200
commit665df9010aa40d1e028d6ad5d3bdb4d9b0a3294c (patch)
treecff7d40af58a3c518970a6970a8431b671d2007b /hw/core/loader.c
parenthw/mips: load_elf_strerror to report kernel loading failure (diff)
downloadqemu-665df9010aa40d1e028d6ad5d3bdb4d9b0a3294c.tar.gz
qemu-665df9010aa40d1e028d6ad5d3bdb4d9b0a3294c.tar.xz
qemu-665df9010aa40d1e028d6ad5d3bdb4d9b0a3294c.zip
Revert "elf-loader: warn about invalid endianness"
This reverts c8e1158cf611 "elf-loader: warn about invalid endianness" as it produces a useless message every time an LE kernel image is passed via -kernel on a ppc64-pseries machine. The pseries machine already checks for ELF_LOAD_WRONG_ENDIAN and tries with big_endian=0. Signed-off-by: Alexey Kardashevskiy <aik@ozlabs.ru> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Yongbok Kim <yongbok.kim@imgtec.com>
Diffstat (limited to 'hw/core/loader.c')
-rw-r--r--hw/core/loader.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/hw/core/loader.c b/hw/core/loader.c
index c17ace0a2e..e5e8cbb638 100644
--- a/hw/core/loader.c
+++ b/hw/core/loader.c
@@ -480,7 +480,6 @@ int load_elf_ram(const char *filename,
}
if (target_data_order != e_ident[EI_DATA]) {
- fprintf(stderr, "%s: wrong endianness\n", filename);
ret = ELF_LOAD_WRONG_ENDIAN;
goto fail;
}