Page MenuHomeFreeBSD

arm64: Support creating a BTI & PAC note
ClosedPublic

Authored by andrew on Oct 16 2023, 4:07 PM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, May 8, 3:11 AM
Unknown Object (File)
Mon, May 6, 6:17 PM
Unknown Object (File)
Tue, Apr 30, 6:09 AM
Unknown Object (File)
Tue, Apr 30, 5:50 AM
Unknown Object (File)
Tue, Apr 30, 5:50 AM
Unknown Object (File)
Tue, Apr 30, 5:07 AM
Unknown Object (File)
Mon, Apr 29, 9:54 PM
Unknown Object (File)
Mar 13 2024, 3:12 AM
Subscribers

Details

Summary

To detect when an object file is build with the Branch Target
Identification (BTI) and Pointer Authentication Code (PAC) extensions
there is an elf note the compiler will insert. It will only do so from
a high level language, e.g. C or C++.

To get the not in assembly add the GNU_PROPERTY_AARCH64_FEATURE_1_NOTE
macro that can be used to create it, and the
GNU_PROPERTY_AARCH64_FEATURE_1_VAL macro to insert the correct value
based on which combination of BTI and PAC are enabled.

Sponsored by: Arm Ltd

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Oct 17 2023, 1:36 PM
sys/arm64/include/asm.h
145

Maybe a comment with more information about the GNU_PROPERTY flags?

This revision now requires review to proceed.Oct 20 2023, 2:47 PM
This revision is now accepted and ready to land.Oct 20 2023, 3:32 PM
This revision was automatically updated to reflect the committed changes.