This is what ld64 does. Deviating in behavior here can result
in some subtle duplicate symbol errors, as detailed in the objc.s test.
Fixes PR51475.
Paths
| Differential D108781
[lld-macho] Have -ObjC load archive members before symbol resolution ClosedPublic Authored by int3 on Aug 26 2021, 12:12 PM.
Details
Summary This is what ld64 does. Deviating in behavior here can result Fixes PR51475.
Diff Detail
Event TimelineThis revision is now accepted and ready to land.Aug 26 2021, 1:20 PM This revision was landed with ongoing or failed builds.Aug 26 2021, 3:57 PM Closed by commit rG9b5148d4262d: [lld-macho] Have -ObjC load archive members before symbol resolution (authored by int3). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 368955 lld/MachO/Driver.cpp
lld/test/MachO/lto-archive.ll
lld/test/MachO/objc.s
|