summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAkira Hatanaka <ahatanaka@mips.com>2012-04-02 19:25:22 +0000
committerAkira Hatanaka <ahatanaka@mips.com>2012-04-02 19:25:22 +0000
commita551a48402385cf3f4b754dc72264b2f0974b1a6 (patch)
tree6040340abe0b9e0c3813216a58e2ff3c5ebd2f07 /include
parent70272aac56830dc4a86de7bf12e591c812ee285b (diff)
downloadllvm-a551a48402385cf3f4b754dc72264b2f0974b1a6.tar.gz
llvm-a551a48402385cf3f4b754dc72264b2f0974b1a6.tar.bz2
llvm-a551a48402385cf3f4b754dc72264b2f0974b1a6.tar.xz
Initial 64 bit direct object support.
This patch allows llvm to recognize that a 64 bit object file is being produced and that the subsequently generated ELF header has the correct information. The test case checks for both big and little endian flavors. Patch by Jack Carter. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@153889 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/ELF.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
index 052fc5135f..04953b6e56 100644
--- a/include/llvm/Support/ELF.h
+++ b/include/llvm/Support/ELF.h
@@ -609,8 +609,10 @@ enum {
EF_MIPS_ARCH_3 = 0x20000000, // MIPS3 instruction set
EF_MIPS_ARCH_4 = 0x30000000, // MIPS4 instruction set
EF_MIPS_ARCH_5 = 0x40000000, // MIPS5 instruction set
- EF_MIPS_ARCH_32 = 0x60000000, // MIPS32 instruction set
+ EF_MIPS_ARCH_32 = 0x50000000, // MIPS32 instruction set per linux not elf.h
+ EF_MIPS_ARCH_64 = 0x60000000, // MIPS64 instruction set per linux not elf.h
EF_MIPS_ARCH_32R2 = 0x70000000, // mips32r2
+ EF_MIPS_ARCH_64R2 = 0x80000000, // mips64r2
EF_MIPS_ARCH = 0xf0000000 // Mask for applying EF_MIPS_ARCH_ variant
};