[llvm-commits] [llvm] r107685 - /llvm/trunk/include/llvm/Support/ELF.h
Matt Fleming
matt at console-pimps.org
Tue Jul 6 11:36:57 PDT 2010
Author: mfleming
Date: Tue Jul 6 13:36:57 2010
New Revision: 107685
URL: http://llvm.org/viewvc/llvm-project?rev=107685&view=rev
Log:
Add some more ELF OSABI values as found in the System V Application
Binary Interface specification.
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=107685&r1=107684&r2=107685&view=diff
==============================================================================
--- llvm/trunk/include/llvm/Support/ELF.h (original)
+++ llvm/trunk/include/llvm/Support/ELF.h Tue Jul 6 13:36:57 2010
@@ -135,9 +135,28 @@
ELFDATA2MSB = 2 // Big-endian object file
};
-// OS ABI identification -- unused.
+// OS ABI identification.
enum {
- ELFOSABI_NONE = 0
+ ELFOSABI_NONE = 0, // UNIX System V ABI
+ ELFOSABI_HPUX = 1, // HP-UX operating system
+ ELFOSABI_NETBSD = 2, // NetBSD
+ ELFOSABI_LINUX = 3, // GNU/Linux
+ ELFOSABI_HURD = 4, // GNU/Hurd
+ ELFOSABI_SOLARIS = 6, // Solaris
+ ELFOSABI_AIX = 7, // AIX
+ ELFOSABI_IRIX = 8, // IRIX
+ ELFOSABI_FREEBSD = 9, // FreeBSD
+ ELFOSABI_TRU64 = 10, // TRU64 UNIX
+ ELFOSABI_MODESTO = 11, // Novell Modesto
+ ELFOSABI_OPENBSD = 12, // OpenBSD
+ ELFOSABI_OPENVMS = 13, // OpenVMS
+ ELFOSABI_NSK = 14, // Hewlett-Packard Non-Stop Kernel
+ ELFOSABI_AROS = 15, // AROS
+ ELFOSABI_FENIXOS = 16, // FenixOS
+ ELFOSABI_C6000_ELFABI = 64, // Bare-metal TMS320C6000
+ ELFOSABI_C6000_LINUX = 65, // Linux TMS320C6000
+ ELFOSABI_ARM = 97, // ARM
+ ELFOSABI_STANDALONE = 255 // Standalone (embedded) application
};
// Section header.
More information about the llvm-commits
mailing list