[all-commits] [llvm/llvm-project] c5f619: [lld-macho]Fix bug in finding "chained" re-exporte...
Vy Nguyen via All-commits
all-commits at lists.llvm.org
Mon Apr 28 10:16:28 PDT 2025
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: c5f61908a75142491143c68fb09caacba8502ae2
https://github.com/llvm/llvm-project/commit/c5f61908a75142491143c68fb09caacba8502ae2
Author: Vy Nguyen <vyng at google.com>
Date: 2025-04-28 (Mon, 28 Apr 2025)
Changed paths:
M lld/MachO/InputFiles.cpp
A lld/test/MachO/reexport-with-rpath.s
Log Message:
-----------
[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)
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list