Re: Order of memory segments

From: Rainer Temme (Rainer.Temme_at_NoSpam.Siemens.Com)
Date: 08/07/03


Date: Thu, 7 Aug 2003 17:36:27 +0200


"qazmlp" <qazmlp1209@rediffmail.com> wrote:

> Is the order of memory segments(text, data, BSS, heap) guaranteed to
> be same in any unix memory model ?

Hi qazmlp,

Neither is this order guaranteed nor is this order used by all systems
today...

Just think about how the dynamic loader works, if you use
   dlopen() dlsym() within a prog... it's quite obvious that
   text-segs and data-segs will appear mixed...

If you have access to a linux-system have a look
   at /proc/some_pid/maps
   ( cat /proc/XXXXX/maps ) ... replace XXX with a legal
     pid )

regards ... rainer



Relevant Pages

  • Re: Order of memory segments
    ... > be same in any unix memory model? ... Hi qazmlp, ... regards ... ...
    (comp.unix.programmer)
  • Re: Order of memory segments
    ... qazmlp1209@rediffmail.com writes: ... > be same in any unix memory model? ... I can't imagine that it would. ... Måns Rullgård ...
    (comp.unix.questions)
  • Re: Order of memory segments
    ... qazmlp1209@rediffmail.com writes: ... > be same in any unix memory model? ... I can't imagine that it would. ... Måns Rullgård ...
    (comp.unix.programmer)
  • Re: Combining wc & grep operations in one command??
    ... qazmlp wrote: ... > Is it possible to combine the above operations together in one command? ... myScript.sh | awk '/something/END' ... Regards, ...
    (comp.unix.shell)
  • Re: Order of memory segments
    ... qazmlp wrote: ... > Is the order of memory segments(text, data, BSS, heap) guaranteed to ... > be same in any unix memory model? ...
    (comp.unix.programmer)