diff options
author | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-08-30 18:51:59 +0000 |
---|---|---|
committer | Saleem Abdulrasool <compnerd@compnerd.org> | 2016-08-30 18:51:59 +0000 |
commit | a2a31ca57fd5159dfb55264e446d85c9c9e8d1f7 (patch) | |
tree | 3ea64f7a8312cd315ee5de7dbae58097783e2396 /include | |
parent | e046d5ce1849f46b61c189e74a8f730ca60219d2 (diff) |
Support: add some more ELF constants
Add constants for additional GNU note types and the GNU Notes OS type id. This
is needed to support printing the notes in ELF binaries.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@280130 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/llvm/Support/ELF.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h index 70b9daab836..826c0deace9 100644 --- a/include/llvm/Support/ELF.h +++ b/include/llvm/Support/ELF.h @@ -1323,7 +1323,20 @@ enum { // SHT_NOTE section types enum { - NT_GNU_BUILD_ID = 3 + NT_GNU_ABI_TAG = 1, + NT_GNU_HWCAP = 2, + NT_GNU_BUILD_ID = 3, + NT_GNU_GOLD_VERSION = 4, +}; + +enum { + GNU_ABI_TAG_LINUX = 0, + GNU_ABI_TAG_HURD = 1, + GNU_ABI_TAG_SOLARIS = 2, + GNU_ABI_TAG_FREEBSD = 3, + GNU_ABI_TAG_NETBSD = 4, + GNU_ABI_TAG_SYLLABLE = 5, + GNU_ABI_TAG_NACL = 6, }; // Compressed section header for ELF32. |