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. |
Exclude | 1 | Exclude - This section will be excluded from the final executable or shared library. Only valid for ELF / COFF targets. |
Text | 2 | Text - Text section, used for functions and other executable code. |
ExecuteOnly | 3 | ExecuteOnly, Text section that is not readable. |
ReadOnly | 4 | 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 | 5 | Mergeable1ByteCString - 1 byte mergable, null terminated, string. |
Mergeable2ByteCString | 6 | Mergeable2ByteCString - 2 byte mergable, null terminated, string. |
Mergeable4ByteCString | 7 | Mergeable4ByteCString - 4 byte mergable, null terminated, string. |
MergeableConst4 | 8 | MergeableConst4 - This is a section used by 4-byte constants, for example, floats. |
MergeableConst8 | 9 | MergeableConst8 - This is a section used by 8-byte constants, for example, doubles. |
MergeableConst16 | 10 | MergeableConst16 - This is a section used by 16-byte constants, for example, vectors. |
MergeableConst32 | 11 | MergeableConst32 - This is a section used by 32-byte constants, for example, vectors. |
ThreadBSS | 12 | ThreadBSS - Zero-initialized TLS data objects. |
ThreadData | 13 | ThreadData - Initialized TLS data objects. |
ThreadBSSLocal | 14 | ThreadBSSLocal - Zero-initialized TLS data objects with local linkage. |
BSS | 15 | BSS - Zero initialized writeable data. |
BSSLocal | 16 | BSSLocal - This is BSS (zero initialized and writable) data which has local linkage. |
BSSExtern | 17 | BSSExtern - This is BSS data with normal external linkage. |
Common | 18 | Common - Data with common linkage. These represent tentative definitions, which always have a zero initializer and are never marked 'constant'. |
Data | 19 | This is writeable data that has a non-zero initializer. |
ReadOnlyWithRel | 20 | 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. |