enum SectionKind::Kind
Declared at: llvm/include/llvm/MC/SectionKind.h:23
Enumerators
Name | Value | Comment |
---|---|---|
Metadata | 0 | Metadata - Debug info sections or other metadata. |
Text | 1 | Text - Text section, used for functions and other executable code. |
ExecuteOnly | 2 | ExecuteOnly, Text section that is not readable. |
ReadOnly | 3 | ReadOnly - Data that is never written to at program runtime by the program or the dynamic linker. Things in the top-level readonly SectionKind are not mergeable. |
Mergeable1ByteCString | 4 | Mergeable1ByteCString - 1 byte mergable, null terminated, string. |
Mergeable2ByteCString | 5 | Mergeable2ByteCString - 2 byte mergable, null terminated, string. |
Mergeable4ByteCString | 6 | Mergeable4ByteCString - 4 byte mergable, null terminated, string. |
MergeableConst4 | 7 | MergeableConst4 - This is a section used by 4-byte constants, for example, floats. |
MergeableConst8 | 8 | MergeableConst8 - This is a section used by 8-byte constants, for example, doubles. |
MergeableConst16 | 9 | MergeableConst16 - This is a section used by 16-byte constants, for example, vectors. |
MergeableConst32 | 10 | MergeableConst32 - This is a section used by 32-byte constants, for example, vectors. |
ThreadBSS | 11 | ThreadBSS - Zero-initialized TLS data objects. |
ThreadData | 12 | ThreadData - Initialized TLS data objects. |
BSS | 13 | BSS - Zero initialized writeable data. |
BSSLocal | 14 | BSSLocal - This is BSS (zero initialized and writable) data which has local linkage. |
BSSExtern | 15 | BSSExtern - This is BSS data with normal external linkage. |
Common | 16 | Common - Data with common linkage. These represent tentative definitions, which always have a zero initializer and are never marked 'constant'. |
Data | 17 | This is writeable data that has a non-zero initializer. |
ReadOnlyWithRel | 18 | ReadOnlyWithRel - These are global variables that are never written to by the program, but that have relocations, so they must be stuck in a writeable section so that the dynamic linker can write to them. If it chooses to, the dynamic linker can mark the pages these globals end up on as read-only after it is done with its relocation phase. |