Issue 117113
Summary [lld][MachO] Implement support for `-allowable_client`
Labels lld
Assignees
Reporter carlocab
    This is a follow-up to #114638 and #114146.

In #114638, we implemented support for linking against libraries that were linked with `-allowable_client`, but it is currently only possible to produce these libraries using Apple `ld64`.

We should teach `ld64.lld` to do the same. This will allow us to get rid of the [`liballowable_client.dylib`](https://github.com/llvm/llvm-project/blob/32913724acf9e02beed46999fee1424086b8c884/lld/test/MachO/Inputs/liballowable_client.dylib) binary test fixture (used in [`allowable-client.s`](https://github.com/llvm/llvm-project/blob/32913724acf9e02beed46999fee1424086b8c884/lld/test/MachO/allowable-client.s)).

It suffices to populate the `LC_SUB_CLIENT` field(s) in the MachO header with the name(s) passed to `-allowable_client`.

I plan to work on this myself, but I've opened this to make sure this is being tracked somewhere (in case I don't get to it).
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to