Line 157: |
Line 157: |
| | 0xC | | | 0xC |
| | u32 | | | u32 |
− | | Zero | + | | Padding (zero) |
| |} | | |} |
| | | |
Line 183: |
Line 183: |
| | 0x18 | | | 0x18 |
| | u32 | | | u32 |
− | | | + | | KProcess+0x280 |
| |- | | |- |
| | 0x1C | | | 0x1C |
− | | u32 | + | | u8 |
− | | Flags / etc. Byte3 bit0-2: compression-enable for each section, when set. | + | | Main thread priority |
| + | |- |
| + | | 0x1D |
| + | | u8 |
| + | | Default CPU core |
| + | |- |
| + | | 0x1E |
| + | | u8 |
| + | | Reserved (unused) |
| + | |- |
| + | | 0x1F |
| + | | u8 |
| + | | Flags: bit0-2: compression-enable for each section, when set. Bit3: Is64Bit. Bit4: IsAddrSpace36Bit. Bit5-7: reserved (unused) |
| |- | | |- |
| | 0x20 | | | 0x20 |
− | | [[#SectionHeader]][3] | + | | [[#SectionHeader]][6] |
− | | Sections | + | | Sections: .text, .rodata, .data, .bss and three reserved (ignored) sections. |
| |- | | |- |
− | | 0x50 | + | | 0x80 |
− | | char[0x20]
| |
− | | Padding
| |
− | |-
| |
− | | 0x70
| |
| | u64[0x20] | | | u64[0x20] |
| | KernelCaps | | | KernelCaps |
Line 223: |
Line 231: |
| | 0xC | | | 0xC |
| | u32 | | | u32 |
− | | | + | | Attribute: the size of the main thread's stack for .rodata, reserved otherwise. |
| |} | | |} |
| + | |
| + | Compressed size can be 0 or lower than exepected, this is the case for BSS for example. |
| | | |
| ===== Compression ===== | | ===== Compression ===== |