befca26cda0a93685b3c59fb32b64d5bcbc7087d and 26b46836915bae12ae99d210531cea081eb94b9d introduced lowering constant and code references to llvm.ptrauth globals for MachO subtargets.
In 70efb00e59f5971511232965497edfbf83d848ac we do the following.
Allow ELF subtargets in subtarget-independent code.
For static materialization case, implement ELF auth stubs similar to MachO ones: wrapper symbols like sym$auth_ptr$AUTH(key,discr) holding relocations to be resolved in dynamic link time. These stubs are mostly identical to MachO ones, so most code is shared.
Implement tests for lowering in case of ELF subtargets.
befca26cda0a93685b3c59fb32b64d5bcbc7087d and 26b46836915bae12ae99d210531cea081eb94b9d introduced lowering constant and code references to llvm.ptrauth globals for MachO subtargets.
In 70efb00e59f5971511232965497edfbf83d848ac we do the following.
sym$auth_ptr$AUTH(key,discr)
holding relocations to be resolved in dynamic link time. These stubs are mostly identical to MachO ones, so most code is shared.