summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorSimon Atanasyan <simon@atanasyan.com>2013-10-30 20:41:45 +0000
committerSimon Atanasyan <simon@atanasyan.com>2013-10-30 20:41:45 +0000
commitf132bf39b95815ed899c78f0ff33d743a286b1ac (patch)
tree9d856872b73c7c8b816ba08880b8bc2dcdd33be3 /include
parentb7b1abef251fb0ec2716ca7837cb2ffc3d6ae961 (diff)
downloadllvm-f132bf39b95815ed899c78f0ff33d743a286b1ac.tar.gz
llvm-f132bf39b95815ed899c78f0ff33d743a286b1ac.tar.bz2
llvm-f132bf39b95815ed899c78f0ff33d743a286b1ac.tar.xz
[Mips] Add more SHF_MIPS_xxx ELF section flags.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@193713 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/llvm/Support/ELF.h26
1 files changed, 24 insertions, 2 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h
index ae3b1d307f..5034f8bd7b 100644
--- a/include/llvm/Support/ELF.h
+++ b/include/llvm/Support/ELF.h
@@ -1242,8 +1242,30 @@ enum LLVM_ENUM_INT_TYPE(unsigned) {
// for faster accesses
SHF_HEX_GPREL = 0x10000000,
- // Do not strip this section. FIXME: We need target specific SHF_ enums.
- SHF_MIPS_NOSTRIP = 0x8000000
+ // Section contains text/data which may be replicated in other sections.
+ // Linker must retain only one copy.
+ SHF_MIPS_NODUPES = 0x01000000,
+
+ // Linker must generate implicit hidden weak names.
+ SHF_MIPS_NAMES = 0x02000000,
+
+ // Section data local to process.
+ SHF_MIPS_LOCAL = 0x04000000,
+
+ // Do not strip this section.
+ SHF_MIPS_NOSTRIP = 0x08000000,
+
+ // Section must be part of global data area.
+ SHF_MIPS_GPREL = 0x10000000,
+
+ // This section should be merged.
+ SHF_MIPS_MERGE = 0x20000000,
+
+ // Address size to be inferred from section entry size.
+ SHF_MIPS_ADDR = 0x40000000,
+
+ // Section data is string data by default.
+ SHF_MIPS_STRING = 0x80000000
};
// Section Group Flags