From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=54480 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PhgRG-00027P-4X for qemu-devel@nongnu.org; Tue, 25 Jan 2011 05:48:37 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PhgQy-0006fP-E3 for qemu-devel@nongnu.org; Tue, 25 Jan 2011 05:47:53 -0500 Received: from mail-ew0-f45.google.com ([209.85.215.45]:56531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PhgQy-0006eS-7a for qemu-devel@nongnu.org; Tue, 25 Jan 2011 05:47:36 -0500 Received: by ewy10 with SMTP id 10so2617638ewy.4 for ; Tue, 25 Jan 2011 02:47:35 -0800 (PST) Message-ID: <4D3EAA40.30300@gmail.com> Date: Tue, 25 Jan 2011 11:47:28 +0100 From: Stefano Bonifazi MIME-Version: 1.0 Subject: Re: [Qemu-devel] qemu-user: relocating target code weakness References: <4D3D63B3.1030402@gmail.com> <4D3DD713.10405@twiddle.net> <4D3DF2A9.3080609@gmail.com> <4D3E292E.9090001@twiddle.net> <4D3E8E22.7070208@gmail.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Mike Frysinger Cc: QEMU Developers , Richard Henderson On 01/25/2011 09:53 AM, Mike Frysinger wrote: > On Tue, Jan 25, 2011 at 03:47, Stefano Bonifazi wrote: >> On 01/25/2011 02:36 AM, Richard Henderson wrote: >>> On 01/24/2011 01:44 PM, Stefano Bonifazi wrote: >>>> Wow wonderful! So you fixed the code for PIC (ET_DYN) support? >>> Yes. >>> >>>> how can I get your sources? >>> I was mistaken -- a later version of the patch set was in fact merged. >>> I simply forgot to delete my working branch afterward. >> Sorry.. merged with qemu? What version? I have qemu.0.13.0 and there are no >> your fixes.. >> How can I get the fixed qemu sources? > you probably want to use the latest git tree > http://git.qemu.org/qemu.git/ > -mike Hi! I think there is still a "bug" I corrected: You keep getting the name of the dynamic linker from the PT_INTERP program segment, but that gives you the absolute position of the dynamic linker inside the machine the target binary was created in. Here qemu-user is an emultaor used for running that binary into another machine.. Qemu default to usr/gnemul/ the path where the libs for the target machines are stored... So we need to patch the absolute dynamic linker name with the proper path.. I dunno maybe this can be my first little contribute to qemu family ;) Regards, Stefano B.