[llvm] r280130 - Support: add some more ELF constants
Saleem Abdulrasool via llvm-commits
llvm-commits at lists.llvm.org
Tue Aug 30 11:51:59 PDT 2016
Author: compnerd
Date: Tue Aug 30 13:51:59 2016
New Revision: 280130
URL: http://llvm.org/viewvc/llvm-project?rev=280130&view=rev
Log:
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.
Modified:
llvm/trunk/include/llvm/Support/ELF.h
Modified: llvm/trunk/include/llvm/Support/ELF.h
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/include/llvm/Support/ELF.h?rev=280130&r1=280129&r2=280130&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ELF.h (original)
+++ llvm/trunk/include/llvm/Support/ELF.h Tue Aug 30 13:51:59 2016
@@ -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.
More information about the llvm-commits
mailing list