If an executable is run through a symlink, dladdr will return the
authorChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2009 05:34:35 +0000 (05:34 +0000)
committerChris Lattner <sabre@nondot.org>
Thu, 19 Feb 2009 05:34:35 +0000 (05:34 +0000)
commitd18a2c1eaefba1ccea7bfa7bb2b94c571cec5547
tree47b970c69b1ebaaf72115e431c63c16fd263b42c
parent07ab52b6459f65b3e1c94d52321165688a6096aa
If an executable is run through a symlink, dladdr will return the
symlink.  We really want the ultimate executable being run, not
the symlink.  This lets clang find its headers when invoked through
a symlink. rdar://6602012

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@65017 91177308-0d34-0410-b5e6-96231b3b80d8
lib/System/Unix/Path.inc