public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Finding the start and end of memory areas
@ 2004-12-23  0:22 Shaun Jackman
  2004-12-23 11:15 ` Nick Clifton
  0 siblings, 1 reply; 3+ messages in thread
From: Shaun Jackman @ 2004-12-23  0:22 UTC (permalink / raw)
  To: binutils

First off, this posting is somewhat off-topic. My apologies in
advance. If anyone knows of a better forum for this topic, I'd
appreciate being pointed in the right direction. Now, on to my
question...

I'd like to find the start and end of the following memory areas
during run-time...

text
data
bss - &__bss_start to &__bss_end
heap - &__bss_end to sbrk(0)
(gap)
stack - stack pointer to ?

Presumably, they appear in that order in memory, so then end of one
should be the start of the next. Note that I'm doing this at run-time
by the program itself (introspection, as it were) and not with tools
like readelf and objdump. I've filled in the few values I know. If you
can provide any others I'd appreciate it.

If it affects the results, the target architectures are
i686-pc-linux-gnu and arm-elf.

Many thanks!
Shaun

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-12-23 19:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-12-23  0:22 Finding the start and end of memory areas Shaun Jackman
2004-12-23 11:15 ` Nick Clifton
2004-12-23 19:39   ` Shaun Jackman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).