Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support BTI & PAC properties in aarch64 GNU note details #975

Closed
fanquake opened this issue Oct 2, 2023 · 1 comment
Closed

Support BTI & PAC properties in aarch64 GNU note details #975

fanquake opened this issue Oct 2, 2023 · 1 comment

Comments

@fanquake
Copy link
Contributor

fanquake commented Oct 2, 2023

It'd be nice if this was supported (i.e in the details output) similar to the Linux ABI/Version.

For example, a binary compiled with -mbranch-protection=standard (can also be just =bti):

int main() {
	return 0;
}
# readelf -n a.out

Displaying notes found in: .note.gnu.property
  Owner                Data size 	Description
  GNU                  0x00000010	NT_GNU_PROPERTY_TYPE_0
      Properties: AArch64 feature: BTI, PAC
@romainthomas
Copy link
Member

In progress

fanquake added a commit to bitcoin/bitcoin that referenced this issue Jan 16, 2024
5335e45 contrib: add macho branch protection check (fanquake)

Pull request description:

  Followup to #28459. Add a sanity check that `bti` instructions are present in the arm macho binary, similar to our x86_64 check for control flow.

  Could do something similar for aarch64 linux in future, and maybe could use lief-project/LIEF#975.

ACKs for top commit:
  TheCharlatan:
    ACK 5335e45

Tree-SHA512: 6cc8721209fe07fe07f0524ef6f114004e2b98844f73d31ff16547f7055c7cb4a5609480058c45ede21b457b2dea5357f1475eaa5063ea1f9772aa260f49039b
fanquake added a commit to fanquake/bitcoin that referenced this issue Mar 22, 2024
This includes lief-project/LIEF#975, which I'd
like to use in bitcoin#24123.
fanquake added a commit to fanquake/bitcoin that referenced this issue Mar 22, 2024
This includes lief-project/LIEF#975, which I'd
like to use in bitcoin#24123.
fanquake added a commit to fanquake/bitcoin that referenced this issue Mar 26, 2024
This includes lief-project/LIEF#975, which I'd
like to use in bitcoin#24123.
fanquake added a commit to fanquake/bitcoin that referenced this issue Mar 26, 2024
This includes lief-project/LIEF#975, which I'd
like to use in bitcoin#24123.
fanquake added a commit to fanquake/bitcoin that referenced this issue Mar 26, 2024
This includes lief-project/LIEF#975, which I'd
like to use in bitcoin#24123.
fanquake added a commit to fanquake/bitcoin that referenced this issue Mar 26, 2024
This includes lief-project/LIEF#975, which I'd
like to use in bitcoin#24123.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants