summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPhilippe Mathieu-Daudé2017-06-23 18:45:55 +0200
committerMichael Tokarev2017-07-11 10:18:37 +0200
commitc8e1158cf611000eca67761eb19847c8e156e180 (patch)
tree1421a690dfef81c34470574511365742961253d4
parentconfigure: Handle having no c++ compiler in FORTIFY_SOURCE check (diff)
downloadqemu-c8e1158cf611000eca67761eb19847c8e156e180.tar.gz
qemu-c8e1158cf611000eca67761eb19847c8e156e180.tar.xz
qemu-c8e1158cf611000eca67761eb19847c8e156e180.zip
elf-loader: warn about invalid endianness
fprintf(stderr) is how errors are reported in this file. Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Michael Tokarev <mjt@tls.msk.ru>
-rw-r--r--hw/core/loader.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/hw/core/loader.c b/hw/core/loader.c
index f72930ca4a..3409cc6d1d 100644
--- a/hw/core/loader.c
+++ b/hw/core/loader.c
@@ -478,6 +478,7 @@ 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;
}