NSO: Difference between revisions

m Keep consistency of .ro = .rodata.
surprised the page didn't already mention that compression is LZ4
(One intermediate revision by one other user not shown)
Line 2: Line 2:
NSO is the main executable format.
NSO is the main executable format.


It starts with the "NSO" header and mainly describes .text, .rodata, and .data segments (like a short-form of ELF program headers):
It starts with the "NSO" header and mainly describes .text, .rodata, and .data segments (like a short-form of ELF program headers). If the segments are compressed, they are compressed using LZ4.


= NSO Header =
= NSO Header =
Line 56: Line 56:
|-
|-
| 0x60
| 0x60
| 0x4 * 3
| 0x4
| CompressedSize[3]
| .text compressed size
|-
| 0x64
| 0x4
| .rodata compressed size
|-
| 0x68
| 0x4
| .data compressed size
|-
|-
| 0x6C
| 0x6C