Re: /proc/1/maps

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

 



hi tom,
the difference is as follows:
the content of the /proc/1/maps
08048000-0804f000 r-xp 00000000 03:01 29220     
/sbin/init
0804f000-08051000 rw-p 00006000 03:01 29220     
/sbin/init
08051000-08055000 rwxp 00000000 00:00 0
40000000-40015000 r-xp 00000000 03:01 215881    
/lib/ld-2.2.4.so
40015000-40016000 rw-p 00014000 03:01 215881    
/lib/ld-2.2.4.so
40016000-40017000 rw-p 00000000 00:00 0
4002c000-40161000 r-xp 00000000 03:01 217078    
/lib/libc-2.2.4.so
40161000-40166000 rw-p 00134000 03:01 217078    
/lib/libc-2.2.4.so
40166000-4016a000 rw-p 00000000 00:00 0
bfffe000-c0000000 rwxp fffff000 00:00 0

and the "ldd /sbin/init" gives
[root@Kahan 1]# ldd /sbin/init
        libc.so.6 => /lib/libc.so.6 (0x4002c000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2
(0x40000000)


thank you,

KR



--- Tom Bradley <tojabr@tojabr.com> wrote:
> Can you tell us what the differences are? I don't
> know of any reason for
> them to be different.
> 
> Tom
> 
> 
> 
> On Mon, 24 Jun 2002, kernel rakshakudu wrote:
> 
> >
> > hi,
> > the /proc/1/maps file contains the list of
> libraries,
> > executables etc that form the text image of the
> init
> > process.
> >
> > also command "ldd /sbin/init" will show the list
> of
> > shared libraries of the init.
> >
> > but both are not same.i.e the libraries in
> > /proc/1/maps file and the libaries shown when "ldd
> > /sbin/init" command is executed are not same.
> >
> > why is that so.?? if anybody know the reason tell
> me.
> >
> > thank you,
> > KR
> >
> > =====
> >
> > "Conquering Myselves to Conquer The World"
> >
> > "Securing Kernel to Secure Whole System"
> >
> >
> > __________________________________________________
> > Do You Yahoo!?
> > Yahoo! - Official partner of 2002 FIFA World Cup
> > http://fifaworldcup.yahoo.com
> > --
> > Kernelnewbies: Help each other learn about the
> Linux kernel.
> > Archive:      
> http://mail.nl.linux.org/kernelnewbies/
> > FAQ:           http://kernelnewbies.org/faq/
> >
> 


=====

"Conquering Myselves to Conquer The World"

"Securing Kernel to Secure Whole System"


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux