]> granicus.if.org Git - llvm/commit
[AARCH64][ELF][llvm-readobj] Support for AArch64 .note.gnu.property
authorPeter Smith <peter.smith@linaro.org>
Tue, 4 Jun 2019 11:28:22 +0000 (11:28 +0000)
committerPeter Smith <peter.smith@linaro.org>
Tue, 4 Jun 2019 11:28:22 +0000 (11:28 +0000)
commitd312eb0f521f294135c018c9fff49be30434b307
tree2c216e93b63f8a0c835b603ad97f79d00c314b19
parent4c668f9d5bb6ebbd6fa443c5a1c484be35e1e439
[AARCH64][ELF][llvm-readobj] Support for AArch64 .note.gnu.property

ELF for the 64-bit Arm Architecture defines a processor specific property
type GNU_PROPERTY_AARCH64_FEATURE_1_AND as GNU_PROPERTY_LOPROC. This
property works in a similar way to the existing X86 processor specific
property GNU_PROPERTY_GNU_X86_FEATURE_1_AND.

Two feature bits are defined for GNU_PROPERTY_AARCH64_FEATURE_1_AND:
- GNU_PROPERTY_AARCH64_FEATURE_1_BTI 0x1
- GNU_PROPERTY_AARCH64_FEATURE_1_PAC 0x2

This patch defines the property, feature bits and implements support for
printing in llvm-readobj.

Differential Revision: https://reviews.llvm.org/D62595

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@362490 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/BinaryFormat/ELF.h
test/tools/llvm-readobj/AArch64/aarch64-note-gnu-property.s [new file with mode: 0644]
tools/llvm-readobj/ELFDumper.cpp