qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] qemu-user: relocating target code weakness


From: Stefano Bonifazi
Subject: Re: [Qemu-devel] qemu-user: relocating target code weakness
Date: Tue, 25 Jan 2011 20:49:53 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.2.13) Gecko/20101208 Thunderbird/3.1.7

On 01/25/2011 05:26 PM, Richard Henderson wrote:
On 01/25/2011 03:06 AM, Stefano Bonifazi wrote:
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?
Not quite.  It's normally the beginning of the heap, after the bss section.

That said, it looks like start_brk is a dead variable.  It's written only by the
FLAT loader, and nothing at all reads it, except for this debugging dump.

The "real" value is the "brk" variable, which is indeed set to a plausible 
looking value.


r~
Thank you!! I really missed that.. I've always wondered where the heap was!
So brk and start_brk are the same .. the latter just being used previously and now forgotten there? Is there a heap end address? Is it possible to set it someway? It would be really very helpful for me!!
Thank you again!
Best regards!
Stefano B.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]