diff options
author | Ed Maste <emaste@FreeBSD.org> | 2018-08-10 10:37:25 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2018-08-10 10:37:25 +0000 |
commit | ce0c6340eceff8667d13375de6a139cab6593158 (patch) | |
tree | f7a9be72a648513976f66787ce3fdd13527a56be /contrib/elftoolchain/readelf | |
parent | 16bbf600d98274a6c91e6f848b820fb2931789f1 (diff) | |
download | src-ce0c6340eceff8667d13375de6a139cab6593158.tar.gz src-ce0c6340eceff8667d13375de6a139cab6593158.zip |
readelf: display NT_GNU_PROPERTY_TYPE_0 note name
NT_GNU_PROPERTY_TYPE_0 in a .note.gnu.property section "contains a
program property note which describes special handling requirements
for linker and run-time loader." (from the System V Application Binary
Interface - Linux Extensions")
Intel CET uses two processor-specific program properties in
NT_GNU_PROPERTY_TYPE_0: GNU_PROPERTY_X86_FEATURE_1_IBT to indicate that
all executable sections are compatible with Indirect Branch Tracking,
and GNU_PROPERTY_X86_FEATURE_1_SHSTK to indicate that sections are
compatible with shadow stack.
A later change should add decoding of the individual properties.
MFC after: 1 week
Sponsored by: The FreeBSD Foundation
Notes
Notes:
svn path=/head/; revision=337569
Diffstat (limited to 'contrib/elftoolchain/readelf')
-rw-r--r-- | contrib/elftoolchain/readelf/readelf.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/contrib/elftoolchain/readelf/readelf.c b/contrib/elftoolchain/readelf/readelf.c index 3d6692822d97..6db564a32366 100644 --- a/contrib/elftoolchain/readelf/readelf.c +++ b/contrib/elftoolchain/readelf/readelf.c @@ -1189,6 +1189,7 @@ note_type_gnu(unsigned int nt) case 2: return "NT_GNU_HWCAP (Hardware capabilities)"; case 3: return "NT_GNU_BUILD_ID (Build id set by ld(1))"; case 4: return "NT_GNU_GOLD_VERSION (GNU gold version)"; + case 5: return "NT_GNU_PROPERTY_TYPE_0"; default: return (note_type_unknown(nt)); } } |