Re: git: ee73475119ff - main - llvm: Link private LLVM libraries against compiler_rt for aarch64

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Mon, 09 Feb 2026 16:47:31 UTC
On 2/9/26 11:40, Jessica Clarke wrote:
> On 9 Feb 2026, at 16:28, John Baldwin <jhb@FreeBSD.org> wrote:
>>
>> The branch main has been updated by jhb:
>>
>> URL: https://cgit.FreeBSD.org/src/commit/?id=ee73475119ff7aa98bd11828625d524f6ab87f06
>>
>> commit ee73475119ff7aa98bd11828625d524f6ab87f06
>> Author:     John Baldwin <jhb@FreeBSD.org>
>> AuthorDate: 2026-02-09 16:26:52 +0000
>> Commit:     John Baldwin <jhb@FreeBSD.org>
>> CommitDate: 2026-02-09 16:26:52 +0000
>>
>>     llvm: Link private LLVM libraries against compiler_rt for aarch64
>>
>>     This is required for GCC which uses libcalls for outlined atomics.
> 
> This doesn’t seem right, they’re provided by libgcc.a, so why aren’t
> they being pulled in? libcompiler_rt.a doesn’t even have the symbols.

My guess is that we don't link libraries against libgcc by default, only
binaries (maybe this is a GCC feature/bug vs clang)?  I have another review
open for a couple of google test libraries which similarly fail to link.

-- 
John Baldwin