llvm / llvm/llvm-project

ld64.lld: Add support for ObjC class selector stubs (objc_msgSendClass$)

Open
#203,385 3 comments 1 reaction 0 assignees View on GitHub
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.