Changes

253 bytes added ,  03:17, 10 May 2018
Finalized most of NSO file format.
Line 25: Line 25:  
| 0xC
 
| 0xC
 
| 4
 
| 4
| Flags, bit 0-2: section is compressed, bit 3-5: check section hash when loading
+
| Flags, bit 0-2: (.data, .text, .ro) section is compressed, bit 3-5: check section hash when loading
 
|-
 
|-
 
| 0x10
 
| 0x10
| 0x10 * 3
+
| 0xC
| SegmentHeader[3]
+
| .text SegmentHeader
 +
|-
 +
| 0x1C
 +
| 0x4
 +
| Module offset (calculated by sizeof(header))
 +
|-
 +
| 0x20
 +
| 0xC
 +
| .ro SegmentHeader
 +
|-
 +
| 0x2C
 +
| 0x4
 +
| Module file size
 +
|-
 +
| 0x30
 +
| 0xC
 +
| .data SegmentHeader
 +
|-
 +
| 0x3C
 +
| 0x4
 +
| bssSize
 
|-
 
|-
 
| 0x40
 
| 0x40
Line 39: Line 59:  
| CompressedSize[3]
 
| CompressedSize[3]
 
|-
 
|-
| 0x6c
+
| 0x6C
| 0x24
+
| 0x1C
| Padding
+
| Reserved (Padding)
 +
|-
 +
| 0x88
 +
| 0x8
 +
| .rodata-relative extents of .api_info
 
|-
 
|-
 
| 0x90
 
| 0x90
| 8
+
| 0x8
 
| .rodata-relative extents of .dynstr
 
| .rodata-relative extents of .dynstr
 
|-
 
|-
 
| 0x98
 
| 0x98
| 8
+
| 0x8
 
| .rodata-relative extents of .dynsym
 
| .rodata-relative extents of .dynsym
 
|-
 
|-
Line 71: Line 95:  
|-
 
|-
 
| 0x0
 
| 0x0
| 4
+
| 0x4
 
| FileOffset
 
| FileOffset
 
|-
 
|-
 
| 0x4
 
| 0x4
| 4
+
| 0x4
 
| MemoryOffset
 
| MemoryOffset
 
|-
 
|-
 
| 0x8
 
| 0x8
| 4
+
| 0x4
 
| DecompressedSize
 
| DecompressedSize
|-
  −
| 0xC
  −
| 4
  −
| UnkOffset/UnkSize/BssSize
   
|}
 
|}
  
20

edits