Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Nu7Jf-00026g-1d for qemu-devel@nongnu.org; Tue, 23 Mar 2010 12:50:55 -0400 Received: from [140.186.70.92] (port=32811 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Nu7Jd-000264-L7 for qemu-devel@nongnu.org; Tue, 23 Mar 2010 12:50:54 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Nu7Jc-0007A9-Df for qemu-devel@nongnu.org; Tue, 23 Mar 2010 12:50:53 -0400 Received: from mail-gx0-f209.google.com ([209.85.217.209]:51869) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nu7Jc-00079s-9n for qemu-devel@nongnu.org; Tue, 23 Mar 2010 12:50:52 -0400 Received: by gxk1 with SMTP id 1so2609852gxk.16 for ; Tue, 23 Mar 2010 09:50:50 -0700 (PDT) MIME-Version: 1.0 Date: Tue, 23 Mar 2010 18:50:50 +0200 Message-ID: <37a0fa861003230950q4f875079xc681b77349359cbc@mail.gmail.com> From: John Vele Content-Type: multipart/alternative; boundary=0016e6470e06b6b5c504827a9d61 Subject: [Qemu-devel] Execute a char buffer without loading ELF List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0016e6470e06b6b5c504827a9d61 Content-Type: text/plain; charset=ISO-8859-1 Hello, I am involved in a project that we use Qemu user mode for i386 (./i386-linux-user/qemu-i386). I want to modify the source code in such a way to make qemu execute a buffer of bytes (given from the comman line for example) rather than loading an ELF file and executing. I started looking at linux-user/linuxload.c loader_exec() function and linux-user/elfload.c load_elf_binary() function. Is there a way to bypass the loading of an ELF file and load a single buffer of bytes (that is i386 code) into memory and make Qemu start execution on it? Any help or comment is very very appreciated. Thanx in advance --0016e6470e06b6b5c504827a9d61 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Hello,

I am involved in a project that we use Qemu user mode for i38= 6 (./i386-linux-user/qemu-i386). I want to modify the source code
in suc= h a way to make qemu execute a buffer of bytes (given from the comman line = for example) rather than loading
an ELF file and executing. I started looking at linux-user/linuxload.c load= er_exec() function=A0 and linux-user/elfload.c load_elf_binary()
functi= on. Is there a way to bypass the loading of an ELF file and load a single b= uffer of bytes (that is i386 code) into memory
and make Qemu start execution on it?

Any help or comment is very ver= y appreciated.

Thanx in advance
--0016e6470e06b6b5c504827a9d61--