svn commit: r363263 - in head/lib/csu: . common

John Baldwin jhb at FreeBSD.org
Fri Feb 26 16:45:25 UTC 2021


On 2/26/21 6:02 AM, Kyle Evans wrote:
> On Thu, Jul 16, 2020 at 4:58 PM John Baldwin <jhb at freebsd.org> wrote:
>>
>> Author: jhb
>> Date: Thu Jul 16 21:58:43 2020
>> New Revision: 363263
>> URL: https://svnweb.freebsd.org/changeset/base/363263
>>
>> Log:
>>    Include ABI note tag in shared libraries.
>>
>>    Split the ELF feature note into a separate file that is linked into
>>    *crt1.o the same as crtbrand.S was before.  crtbrand.o is now linked
>>    into crti.o on all platforms in addition to *crt1.o.
>>
> 
> This is pretty handy; any chance we can backport this series for 12.3?

So there is an issue I need to resolve in that the notes can get lost if you
use --gc-sections which LLVM does when building the cross toolchain (so the
trick of using .comdat for notes doesn't end up working out).  Right now it
only fully breaks RISC-V since all the other arches still have FreeBSD set
as the ELF OSABI in the ELF header.

-- 
John Baldwin


More information about the svn-src-all mailing list