From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=48695 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Phgj8-0001uN-Rq for qemu-devel@nongnu.org; Tue, 25 Jan 2011 06:06:24 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Phgj7-0005Ri-G6 for qemu-devel@nongnu.org; Tue, 25 Jan 2011 06:06:22 -0500 Received: from mail-ew0-f45.google.com ([209.85.215.45]:41782) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Phgj7-0005RL-4c for qemu-devel@nongnu.org; Tue, 25 Jan 2011 06:06:21 -0500 Received: by ewy10 with SMTP id 10so2628627ewy.4 for ; Tue, 25 Jan 2011 03:06:20 -0800 (PST) Message-ID: <4D3EAEA9.5050302@gmail.com> Date: Tue, 25 Jan 2011 12:06:17 +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 again! :) debugging a test pie code using qemu-ppc with your (and my little one) fixes I got this: > start_brk 0x00000000 > end_code 0x400102e0 > start_code 0x40000000 > start_data 0x4001024c > end_data 0x400102e0 > start_stack 0x40811438 > brk 0x400102e4 > entry 0x40828c24 that is start_brk is 0 As far as I understood brk is the .bss section, that is unitialized data area, am I right? If not pls could you be so kind to explain me what it is, or pointing me to some document where it is explained.. among all material I am studying about linkers, relocations, I never found brk other than in qemu.. Once i am sure what it is I'll try to fix (if needed.. for me it is too strange it is zero) it.. Thank you again! Stefano B.