Skip to content

Commit

Permalink
elf-loader: warn about invalid endianness
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
philmd authored and Michael Tokarev committed Jul 11, 2017
1 parent e189091 commit c8e1158
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hw/core/loader.c
Expand Up @@ -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;
}
Expand Down

0 comments on commit c8e1158

Please sign in to comment.