From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:45266) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAXFZ-0003EN-Kr for qemu-devel@nongnu.org; Mon, 03 Feb 2014 23:04:51 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WAXFQ-0006dx-EP for qemu-devel@nongnu.org; Mon, 03 Feb 2014 23:04:41 -0500 Received: from e23smtp04.au.ibm.com ([202.81.31.146]:55182) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WAXFP-0006cU-MS for qemu-devel@nongnu.org; Mon, 03 Feb 2014 23:04:32 -0500 Received: from /spool/local by e23smtp04.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 4 Feb 2014 14:04:25 +1000 From: Alexey Kardashevskiy Date: Tue, 4 Feb 2014 15:04:15 +1100 Message-Id: <1391486659-6584-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v3 0/4] elf loader: exit if incompatible architecture is detected List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , qemu-ppc@nongnu.org, Alexander Graf The aim of this set is to print reasonable error if ELF cannot be loaded. While we are here, also fix some other bits. Changes: v3: * added a helper to convert error codes to strings Alexey Kardashevskiy (4): spapr: support only ELF kernel images moxie: fix load_elf() usage elf-loader: add more return codes spapr: print more detailed error message on failed load_elf() hw/core/loader.c | 30 ++++++++++++++++++++++++------ hw/moxie/moxiesim.c | 2 +- hw/ppc/spapr.c | 11 +++-------- hw/s390x/ipl.c | 4 ++-- include/hw/elf_ops.h | 19 ++++++++++++++----- include/hw/loader.h | 6 ++++++ 6 files changed, 50 insertions(+), 22 deletions(-) -- 1.8.4.rc4