Hi all,<br>As I have read, whenever we execute a program, the memory is allocated in different sections viz stack, text and data segment. But, since we have used loader and linker the three allocations will happen for them too.<br>
But when I ran a program and did pmap pid, I saw several other fields which I have no idea of. What is the [anon] and what is it doing here ? Why the memory is being implemented for it and there are so many of them ? <br>
And also the stack ( 3rd last element), is it the process stack?? Can somebody please explain.<br>Thanking you all in advance.<br><br>5448:   ./a.out<br>0000000000400000      4K r-x--  /home/n.pokhrel/Personal/mywork/a.out<br>
0000000000600000      4K r----  /home/n.pokhrel/Personal/mywork/a.out<br>0000000000601000      4K rw---  /home/n.pokhrel/Personal/mywork/a.out<br>00007f57f5e18000   1512K r-x--  /lib/<a href="http://libc-2.11.1.so">libc-2.11.1.so</a><br>
00007f57f5f92000   2044K -----  /lib/<a href="http://libc-2.11.1.so">libc-2.11.1.so</a><br>00007f57f6191000     16K r----  /lib/<a href="http://libc-2.11.1.so">libc-2.11.1.so</a><br>00007f57f6195000      4K rw---  /lib/<a href="http://libc-2.11.1.so">libc-2.11.1.so</a><br>
00007f57f6196000     20K rw---    [ anon ]<br>00007f57f619b000    128K r-x--  /lib/<a href="http://ld-2.11.1.so">ld-2.11.1.so</a><br>00007f57f6396000     12K rw---    [ anon ]<br>00007f57f63b8000      8K rw---    [ anon ]<br>
00007f57f63ba000      4K r----  /lib/<a href="http://ld-2.11.1.so">ld-2.11.1.so</a><br>00007f57f63bb000      4K rw---  /lib/<a href="http://ld-2.11.1.so">ld-2.11.1.so</a><br>00007f57f63bc000      4K rw---    [ anon ]<br>00007fffa2f37000     84K rw---    [ stack ]<br>
00007fffa2fa0000      4K r-x--    [ anon ]<br>ffffffffff600000      4K r-x--    [ anon ]<br> total    <br>