Page MenuHomeFreeBSD

Add arm64 ifunc support in static binaries
ClosedPublic

Authored by andrew on Aug 23 2021, 9:16 AM.
Tags
None
Referenced Files
F102799297: D31641.diff
Sun, Nov 17, 8:31 AM
Unknown Object (File)
Fri, Nov 8, 11:13 PM
Unknown Object (File)
Fri, Nov 8, 9:53 PM
Unknown Object (File)
Fri, Nov 8, 8:32 AM
Unknown Object (File)
Wed, Oct 23, 1:39 PM
Unknown Object (File)
Oct 17 2024, 6:46 PM
Unknown Object (File)
Oct 17 2024, 6:46 PM
Unknown Object (File)
Oct 17 2024, 6:46 PM
Subscribers

Details

Summary

Add support for the R_AARCH64_IRELATIVE relocation type in static
binaries on arm64. This is based on the powerpc code, updating it to
use the arm64 resolver ABI, and use the arm64 relocation type.

Tested by: brd

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 41164
Build 38053: arc lint + arc unit

Event Timeline

lib/csu/aarch64/reloc.c
42

What is the point of passing all that zeroes? Don't you want to supply at least AT_HWCAP/AT_HWCAP2 values?

lib/csu/aarch64/reloc.c
42

They are reserved for future use so we don't have to change the ABI. We can add it later, currently the SHA256 resolver in libmd calls elf_aux_info to read it.

This revision is now accepted and ready to land.Aug 23 2021, 12:29 PM
This revision was automatically updated to reflect the committed changes.