llvm::MachOSection Struct Reference
#include <MachO.h>
List of all members.
|
Public Types |
| enum | {
S_REGULAR = 0,
S_ZEROFILL = 1,
S_CSTRING_LITERALS = 2,
S_4BYTE_LITERALS = 3,
S_8BYTE_LITERALS = 4,
S_LITERAL_POINTERS = 5,
S_NON_LAZY_SYMBOL_POINTERS = 6,
S_LAZY_SYMBOL_POINTERS = 7,
S_SYMBOL_STUBS = 8,
S_MOD_INIT_FUNC_POINTERS = 9,
S_MOD_TERM_FUNC_POINTERS = 10,
S_COALESCED = 11,
S_GB_ZEROFILL = 12,
S_INTERPOSING = 13,
S_16BYTE_LITERALS = 14
} |
| enum | {
S_ATTR_PURE_INSTRUCTIONS = 1 << 31,
S_ATTR_NO_TOC = 1 << 30,
S_ATTR_STRIP_STATIC_SYMS = 1 << 29,
S_ATTR_NO_DEAD_STRIP = 1 << 28,
S_ATTR_LIVE_SUPPORT = 1 << 27,
S_ATTR_SELF_MODIFYING_CODE = 1 << 26,
S_ATTR_DEBUG = 1 << 25,
S_ATTR_SOME_INSTRUCTIONS = 1 << 10,
S_ATTR_EXT_RELOC = 1 << 9,
S_ATTR_LOC_RELOC = 1 << 8
} |
Public Member Functions |
| unsigned | cmdSize (bool is64Bit) const |
| | MachOSection (const std::string &seg, const std::string §) |
Public Attributes |
| std::string | sectname |
| std::string | segname |
| uint64_t | addr |
| uint32_t | offset |
| uint32_t | align |
| uint32_t | reloff |
| uint32_t | nreloc |
| uint32_t | flags |
| uint32_t | reserved1 |
| uint32_t | reserved2 |
| uint32_t | reserved3 |
| uint32_t | Index |
| std::vector< unsigned char > | RelocBuffer |
Detailed Description
MachOSection - This struct contains information about each section in a particular segment that is emitted to the file. This is eventually turned into the SectionCommand in the load command for a particlar segment.
Definition at line 273 of file MachO.h.
Member Enumeration Documentation
- Enumerator:
-
| S_REGULAR |
|
| S_ZEROFILL |
|
| S_CSTRING_LITERALS |
|
| S_4BYTE_LITERALS |
|
| S_8BYTE_LITERALS |
|
| S_LITERAL_POINTERS |
|
| S_NON_LAZY_SYMBOL_POINTERS |
|
| S_LAZY_SYMBOL_POINTERS |
|
| S_SYMBOL_STUBS |
|
| S_MOD_INIT_FUNC_POINTERS |
|
| S_MOD_TERM_FUNC_POINTERS |
|
| S_COALESCED |
|
| S_GB_ZEROFILL |
|
| S_INTERPOSING |
|
| S_16BYTE_LITERALS |
|
Definition at line 296 of file MachO.h.
- Enumerator:
-
| S_ATTR_PURE_INSTRUCTIONS |
|
| S_ATTR_NO_TOC |
|
| S_ATTR_STRIP_STATIC_SYMS |
|
| S_ATTR_NO_DEAD_STRIP |
|
| S_ATTR_LIVE_SUPPORT |
|
| S_ATTR_SELF_MODIFYING_CODE |
|
| S_ATTR_DEBUG |
|
| S_ATTR_SOME_INSTRUCTIONS |
|
| S_ATTR_EXT_RELOC |
|
| S_ATTR_LOC_RELOC |
|
Definition at line 331 of file MachO.h.
Constructor & Destructor Documentation
| llvm::MachOSection::MachOSection |
( |
const std::string & |
seg, |
|
|
const std::string & |
sect | |
|
) |
| | [inline] |
Member Function Documentation
| unsigned llvm::MachOSection::cmdSize |
( |
bool |
is64Bit |
) |
const [inline] |
cmdSize - This routine returns the size of the MachOSection as written to disk, depending on whether the destination is a 64 bit Mach-O file.
Definition at line 357 of file MachO.h.
Member Data Documentation
RelocBuffer - A buffer to hold the mach-o relocations before we write them out at the appropriate location in the file.
Definition at line 292 of file MachO.h.
The documentation for this struct was generated from the following file: