On 06/01/2020 09:30, Riccaro Mottola wrote:
There is a bug in BFD LD.  Things that use ld -r in some situations (I have not been able to find a minimal test case, but base additions is one) have things stripped too early and so all of the Objective-C classes are removed.

On my working setup on OpenBSD I explictely set bfd and this "fixed" for me the c++ abi issues.

I used:
LDFLAGS=-fuse-ld=bfd

Interesting. Is LLD the default linker on OpenBSD? There are a couple of things on FreeBSD that I need to mark as LLD_UNSAFE and have them fall back to gold. BFD may work for them.

At some point, I need to find reduced test cases for the LLD bugs: it works on almost everything and seems to fail on only some of the more complex cases (SOGo, for example), but I've not seen run-time failures, only link-time errors.

David

Reply via email to