Re: ld-linux.so.2

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

 



kernel rakshakudu wrote:
> 
> hi,
> untill now i was thinking ld-linux.so.2 is a
> interpreter(linker) which is required at runtime when
> any command like "ls" is executed on command line.
> then this linker will search for various libraries and
> prepares the executable for running(execution)
> 
> but /lib/ld-linux.so.2 can be executed at the command
> line with any executable as the argument. like
> [root@kahan]# /lib/ld-linux.so.2  /bin/ls

You'll note this is very much like how a bash script works as well. As
far as I can tell, the linker (ld-linux.so.2) is very much an
interpreter in this sense. If you use objdump to examine the headers
(-all), you'll note the ld-linux.so.2 will show up as a dependency. The
kernel attempts to read the file format and load/run the appropriately
interpreter if necessary. As the executable of ls is an elf file, it
will load up the listed interpreter.

Ryan
--
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