From patchwork Sun Apr 4 19:35:33 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Richard Henderson X-Patchwork-Id: 51237 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 3FC61B7D41 for ; Thu, 29 Apr 2010 06:21:13 +1000 (EST) Received: from localhost ([127.0.0.1]:40709 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7DkG-0006eG-3j for incoming@patchwork.ozlabs.org; Wed, 28 Apr 2010 16:20:32 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1O7D6t-0005nF-Fk for qemu-devel@nongnu.org; Wed, 28 Apr 2010 15:39:51 -0400 Received: from [140.186.70.92] (port=51726 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1O7D6n-0005hb-An for qemu-devel@nongnu.org; Wed, 28 Apr 2010 15:39:48 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1O7D6k-0007WR-Oa for qemu-devel@nongnu.org; Wed, 28 Apr 2010 15:39:45 -0400 Received: from are.twiddle.net ([75.149.56.221]:55985) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1O7D6k-0007VL-IQ for qemu-devel@nongnu.org; Wed, 28 Apr 2010 15:39:42 -0400 Received: by are.twiddle.net (Postfix, from userid 5000) id 062B6DD3; Wed, 28 Apr 2010 12:39:41 -0700 (PDT) Message-Id: <7be905fc17c84129ec4eae560e3effc9a6ad61c7.1272483393.git.rth@twiddle.net> In-Reply-To: References: From: Richard Henderson Date: Sun, 4 Apr 2010 12:35:33 -0700 To: qemu-devel@nongnu.org X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Subject: [Qemu-devel] [PATCH 05/14] linux-user: Fix ELF_DATA for Alpha. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Alpha is little-endian on Linux. Signed-off-by: Richard Henderson --- linux-user/elfload.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/linux-user/elfload.c b/linux-user/elfload.c index 962f9ba..5814702 100644 --- a/linux-user/elfload.c +++ b/linux-user/elfload.c @@ -778,7 +778,7 @@ static void elf_core_copy_regs(target_elf_gregset_t *regs, const CPUState *env) #define elf_check_arch(x) ( (x) == ELF_ARCH ) #define ELF_CLASS ELFCLASS64 -#define ELF_DATA ELFDATA2MSB +#define ELF_DATA ELFDATA2LSB #define ELF_ARCH EM_ALPHA static inline void init_thread(struct target_pt_regs *regs,