Roland Mainz wrote:
 > Ali Bahrami wrote:
 >> ld.so can encounter the same file under more than one name, via symlinks
 >> in the path or file, and via relative paths vs. fully qualified ones.
 >> Since it only wants to map each such object once, and because it needs
 >> to refer to it using a single fully qualified path, resolvepath() is
 >> used to canonify the path and compare it to what's already loaded before
 >> opening it.
 >
 > Ah... Ok... but wouldn't it be simpler to use only the inode information
 > from the |stat()|-call ?
 >

Maybe, but we need (or strongly want, anyway) the canonical name
for each object we map. It makes diagnostics and debugging
consistent. We use the inode/dev information too.

- Ali


Reply via email to