Pretty straightforward; just emits LC_RPATH for dyld to consume.
Note that lld itself does not yet support dylib lookup via @rpath.
Paths
| Differential D85701
[lld-macho] Support -rpath ClosedPublic Authored by int3 on Aug 10 2020, 6:43 PM.
Details
Summary Pretty straightforward; just emits LC_RPATH for dyld to consume. Note that lld itself does not yet support dylib lookup via @rpath.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 11 2020, 8:32 PM This revision was landed with ongoing or failed builds.Aug 12 2020, 7:51 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 284548 lld/MachO/Config.h
lld/MachO/Driver.cpp
lld/MachO/Options.td
lld/MachO/Writer.cpp
lld/test/MachO/rpath.s
|
I don't think that rPaths is correct ... rpaths would be correct here, or runtimePaths.