diff options
author | Nico Weber <thakis@chromium.org> | 2021-06-09 16:09:44 -0400 |
---|---|---|
committer | Nico Weber <thakis@chromium.org> | 2021-06-09 20:36:07 -0400 |
commit | 0e399eb5273b13d37a70acaa7ad7291ee6273fb8 (patch) | |
tree | b536589fcfb50149071605d40c41442ca623dd29 /llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp | |
parent | cf11d9585afd5c43031aaaaa9fb622c8c31b4bef (diff) | |
download | llvm-0e399eb5273b13d37a70acaa7ad7291ee6273fb8.zip llvm-0e399eb5273b13d37a70acaa7ad7291ee6273fb8.tar.gz llvm-0e399eb5273b13d37a70acaa7ad7291ee6273fb8.tar.bz2 |
[lld/mac] When handling @loader_path, use realpath() of symlinks
This is important for Frameworks, which are usually symlinks.
ld64 gets this right for @rpath that's replaced with @loader_path, but not for
bare @loader_path -- ld64's code calls realpath() in that case too, but ignores
the result.
ld64 somehow manages to find libbar1.dylib in the test without the
explicit `-rpath` in Foo1. I don't understand why or how. But this
change is a step forward and fixes an immediate problem I'm having,
so let's start with this :)
Differential Revision: https://reviews.llvm.org/D103990
Diffstat (limited to 'llvm/lib/CodeGen/TargetLoweringObjectFileImpl.cpp')
0 files changed, 0 insertions, 0 deletions