Basically, ld.so calls mmap system call to memory map the shared
library file. Now if one process had already mapped the library, when
another process wants to use the same library, the mmap syscall (which
is called by ld.so for the second process) takes care of determing
that the shared library file had already been mapped earlier and thus
to not load it again.
This is the way mmap works in the first place.
c u
./hareesh