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.