From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=35675 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OdohR-0001j3-RU for qemu-devel@nongnu.org; Tue, 27 Jul 2010 14:16:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OdohQ-0003Tt-Kw for qemu-devel@nongnu.org; Tue, 27 Jul 2010 14:16:21 -0400 Received: from a.mail.sonic.net ([64.142.16.245]:55592) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OdohQ-0003TX-Cv for qemu-devel@nongnu.org; Tue, 27 Jul 2010 14:16:20 -0400 Received: from are.twiddle.net (are.twiddle.net [75.101.38.216]) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id o6RHPdEM006275 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 27 Jul 2010 10:25:40 -0700 Received: from are.twiddle.net (localhost [127.0.0.1]) by are.twiddle.net (8.14.4/8.14.4) with ESMTP id o6RHPdu4006907 for ; Tue, 27 Jul 2010 10:25:39 -0700 Received: (from rth@localhost) by are.twiddle.net (8.14.4/8.14.4/Submit) id o6RHPcHT006906 for qemu-devel@nongnu.org; Tue, 27 Jul 2010 10:25:38 -0700 From: Richard Henderson Date: Tue, 27 Jul 2010 10:25:26 -0700 Message-Id: <1280251538-6860-1-git-send-email-rth@twiddle.net> Subject: [Qemu-devel] [PATCH 00/12 v4] Clean up linux-user/elfload.c List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org A re-based and re-tested version of a patch series I posted back in April and May. These cleanups prepare elfload.c for loading the VDSO for x86_64. r~ Richard Henderson (12): linux-user: Handle filesz < memsz for any PT_LOAD segment. Add more DT_* and AT_* constants to qemu's copy of elf.h. linux-user: Reindent elfload.c. linux-user: Reduce lseek+reads while loading elf files. linux-user: Define ELF_DATA generically. linux-user: Clean up byte-swapping in elfload.c. linux-user: Load symbols from the interpreter. linux-user: Improve consistency checking in elf headers. linux-user: Put the stack guard page at the top. linux-user: Remove partial support for a.out interpreters. linux-user: Extract load_elf_image from load_elf_interp. linux-user: Re-use load_elf_image for the main binary. elf.h | 44 ++ linux-user/elfload.c | 1791 ++++++++++++++++++++---------------------------- linux-user/linuxload.c | 17 +- linux-user/qemu.h | 7 +- 4 files changed, 794 insertions(+), 1065 deletions(-)