ld64.lld: Add support for ObjC class selector stubs (objc_msgSendClass$)
Open
lld:MachO
objective-c
- Dominant language
- LLVM
- Stars
- 40.5k
- Forks
- 18.7k
- PR merge metrics
- PR metrics pending
Description
Clang recently gained support for emitting class msgSend stubs in https://github.com/llvm/llvm-project/commit/186dd22e5acc011fde83d41484d12c925ea874c4
Currently, since LLD MachO does not support synthesizing these stubs, it would fail with the error `ld64.lld: error: undefined symbol: objc_msgSendClass$class$_OBJC_CLASS_$_NSNumber` when lld is the active linker
Similar effort for supporting instance stub was done in https://github.com/llvm/llvm-project/issues/56034
Contributor guide
Assessment
This issue has not been assessed yet.