diff options
author | Vy Nguyen <vyng@google.com> | 2025-04-28 13:16:07 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-28 13:16:07 -0400 |
commit | c5f61908a75142491143c68fb09caacba8502ae2 (patch) | |
tree | a1fdaecf818f1212f10814c89fb01dc731568881 /clang/lib/Frontend/CompilerInvocation.cpp | |
parent | e44f7760fa6f9f2d70831a6e9bf9f8472d285f4d (diff) | |
download | llvm-c5f61908a75142491143c68fb09caacba8502ae2.zip llvm-c5f61908a75142491143c68fb09caacba8502ae2.tar.gz llvm-c5f61908a75142491143c68fb09caacba8502ae2.tar.bz2 |
[lld-macho]Fix bug in finding "chained" re-exported libs. (#135241)
Details:
When we have the following scenario:
- lib_a re-exports lib_b
- lib_b re-exports @rpath/lib_c
+ lib_b contains LC_RPATH
Previously, lld-macho cannot find lib_c because it was attempting to
resolve the '@rpath' from lib_b (which had no LC_RPATH defined). The
change here is to also consider all the LC_RPATH rom lib_b when trying
to find lib_c.
Inspired by real-life example when linking with
libXCTestSwiftSupport.dylib (which re-exports XCTest, which re-exports
XCTestCore)
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions