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 | 2613d98f2a120b359497e59cdc405584b0115ce2 (patch) | |
| tree | de2925a1da6d4721ffcc2d5858e24b5a9be6b824 /llvm | |
| parent | 613c0752371ef11bdd2e92fa51399a31a9859247 (diff) | |
| download | bcm5719-llvm-2613d98f2a120b359497e59cdc405584b0115ce2.tar.gz bcm5719-llvm-2613d98f2a120b359497e59cdc405584b0115ce2.zip | |
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.
llvm-svn: 280130
Diffstat (limited to 'llvm')
| -rw-r--r-- | llvm/include/llvm/Support/ELF.h | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/llvm/include/llvm/Support/ELF.h b/llvm/include/llvm/Support/ELF.h index 70b9daab836..826c0deace9 100644 --- a/llvm/include/llvm/Support/ELF.h +++ b/llvm/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. |

