Skip to contentSkip to conversation

source code of dynamic liner

DISCUSSION ranjith kumar 3 participants 3 messages Nov 30, 2009

lore
Share & tools
lore
#0 lore raw

Hi,

Please tell me where can I find the 'source code of dynamic linker on linux for x86 processors'?

Thanks in advance.

#1 lore raw

The dynamic loader is part of userspace, so it is not an appropriate topic for the linux-kernel mailing list.

Your Linux distribution probably includes tools for obtaining the source package for any installed file. For instance, on Debian-derived systems including Ubuntu, you can use dpkg-query and apt-get for these tasks:

# Determine what binary package provides the file /lib/ld-linux.so.2

$ dpkg-query -S /lib/ld-linux.so.2
libc6: /lib/ld-linux.so.2

# Download and untar the related source package

$ apt-get source libc6
... (downloaded 14.5MB of files) ...
dpkg-source: extracting glibc in glibc-2.3.6
dpkg-source: unpacking glibc_2.3.6.orig.tar.gz
dpkg-source: applying ./glibc_2.3.6-0ubuntu20.5.diff.gz

Jeff

#2 lore raw
In reply to ranjith kumar
Quoted 4 lines · ranjith kumar

Hi,

Please tell me where can I find the 'source code of dynamic linker on linux for x86 processors'?

it's shipped with glibc (or any other dynamic C library).

Willy