diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 04:43:11 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2011-01-23 04:43:11 +0000 |
commit | 1c13026e8f94bd332c0979baa9c777da99d48736 (patch) | |
tree | f946be856788a5df9d7c6754818ef0452ffa2851 /include/llvm/Support/ELF.h | |
parent | 907b56ce7ab26222fa128d5062f8dddf11c81603 (diff) | |
download | llvm-1c13026e8f94bd332c0979baa9c777da99d48736.tar.gz llvm-1c13026e8f94bd332c0979baa9c777da99d48736.tar.bz2 llvm-1c13026e8f94bd332c0979baa9c777da99d48736.tar.xz |
Remove more duplicated code.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@124056 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/ELF.h')
-rw-r--r-- | include/llvm/Support/ELF.h | 51 |
1 files changed, 45 insertions, 6 deletions
diff --git a/include/llvm/Support/ELF.h b/include/llvm/Support/ELF.h index e2c3524ec3..55f5d58d11 100644 --- a/include/llvm/Support/ELF.h +++ b/include/llvm/Support/ELF.h @@ -508,12 +508,51 @@ enum { // Section flags. enum { - SHF_WRITE = 0x1, // Section data should be writable during execution. - SHF_ALLOC = 0x2, // Section occupies memory during program execution. - SHF_EXECINSTR = 0x4, // Section contains executable machine instructions. - SHF_MERGE = 0x10, // The data in this section may be merged. - SHF_STRINGS = 0x20, // The data in this section is null-terminated strings. - SHF_MASKPROC = 0xf0000000 // Bits indicating processor-specific flags. + // Section data should be writable during execution. + SHF_WRITE = 0x1, + + // Section occupies memory during program execution. + SHF_ALLOC = 0x2, + + // Section contains executable machine instructions. + SHF_EXECINSTR = 0x4, + + // The data in this section may be merged. + SHF_MERGE = 0x10, + + // The data in this section is null-terminated strings. + SHF_STRINGS = 0x20, + + // A field in this section holds a section header table index. + SHF_INFO_LINK = 0x40U, + + // Adds special ordering requirements for link editors. + SHF_LINK_ORDER = 0x80U, + + // This section requires special OS-specific processing to avoid incorrect + // behavior. + SHF_OS_NONCONFORMING = 0x100U, + + // This section is a member of a section group. + SHF_GROUP = 0x200U, + + // This section holds Thread-Local Storage. + SHF_TLS = 0x400U, + + // Start of target-specific flags. + + /// XCORE_SHF_CP_SECTION - All sections with the "c" flag are grouped + /// together by the linker to form the constant pool and the cp register is + /// set to the start of the constant pool by the boot code. + XCORE_SHF_CP_SECTION = 0x800U, + + /// XCORE_SHF_DP_SECTION - All sections with the "d" flag are grouped + /// together by the linker to form the data section and the dp register is + /// set to the start of the section by the boot code. + XCORE_SHF_DP_SECTION = 0x1000U, + + // Bits indicating processor-specific flags. + SHF_MASKPROC = 0xf0000000 }; // Section Group Flags |