summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSaleem Abdulrasool <compnerd@compnerd.org>2016-08-30 18:51:59 +0000
committerSaleem Abdulrasool <compnerd@compnerd.org>2016-08-30 18:51:59 +0000
commita2a31ca57fd5159dfb55264e446d85c9c9e8d1f7 (patch)
tree3ea64f7a8312cd315ee5de7dbae58097783e2396 /include
parente046d5ce1849f46b61c189e74a8f730ca60219d2 (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.h15
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.