aarch64: add BTI flag to ELF notes (#822)
authorBill Roberts <152999275+billatarm@users.noreply.github.com>
Thu, 15 Feb 2024 12:50:40 +0000 (06:50 -0600)
committerGitHub <noreply@github.com>
Thu, 15 Feb 2024 12:50:40 +0000 (07:50 -0500)
commit98881ecb8eec6d5f2beaaced96d9f625b0dee499
treede1681852bda32069108081bd04b016d2857441e
parentf9da12e944c947e797e5f3a98f3860c2a0ed055e
aarch64: add BTI flag to ELF notes (#822)

When a program is loaded and linked, the first ELF file that doesn't
declare that BTI is supported in the GNU NOTES section disables BTI
support.

Example:
readelf -n ./aarch64-unknown-linux-gnu/.libs/libffi.so
Displaying notes found in: .note.gnu.property
  Owner                Data size  Description
  GNU                  0x00000010 NT_GNU_PROPERTY_TYPE_0
      Properties: AArch64 feature: BTI

Fixes: #823
Signed-off-by: Bill Roberts <bill.roberts@arm.com>
src/aarch64/sysv.S