Page MenuHomeFreeBSD

Teach the readelf about arm64 gnu properties
ClosedPublic

Authored by andrew on Oct 5 2021, 12:57 PM.
Tags
None
Referenced Files
F165911290: D32315.id96348.diff
Mon, Aug 10, 12:07 PM
Unknown Object (File)
Sat, Aug 8, 8:01 PM
Unknown Object (File)
Fri, Aug 7, 4:00 PM
Unknown Object (File)
Fri, Aug 7, 3:36 PM
Unknown Object (File)
Fri, Aug 7, 1:58 AM
Unknown Object (File)
Thu, Aug 6, 2:46 PM
Unknown Object (File)
Thu, Aug 6, 9:09 AM
Unknown Object (File)
Wed, Aug 5, 6:30 AM
Subscribers

Details

Summary

On arm64 binaries can be tagged as using BTI or PAC. Add support to
decode these to the elftoolchain readelf.

To simplify the code use a table based method to find the flag
description table.

Diff Detail

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

Event Timeline

contrib/elftoolchain/readelf/readelf.c
3550

PAV?

3633

We probably need to handle the NULL case?

contrib/elftoolchain/readelf/readelf.c
3633

The NULL case here is the same as the missing default case in the old version.

emaste added inline comments.
contrib/elftoolchain/readelf/readelf.c
3633

Ok, fair point. We ought to add it, I don't care if it's a later commit (or if I have to do it)

This revision is now accepted and ready to land.Oct 6 2021, 4:50 PM
This revision was automatically updated to reflect the committed changes.