From ReverseEngineering.wiki
| schema | "rewiki.fact/1" |
|---|
| kind | "enum" |
|---|
| subject | "Library:Libdragon" |
|---|
| claim | "libdragon's IPL3 recognises compressed ELF segments by p_flags bit PF_N64_COMPRESSED (0x1000) and the decompressor segment by p_type PT_N64_DECOMP (0x64E36341); for compressed segments p_vaddr is the load address of the compressed bytes and p_paddr the destination of the decompressed data." |
|---|
| scope | | level | "library" |
|---|
| applies_to | "Library:libdragon" |
|---|
| observed_in | |
|---|
|
|---|
| data | | name | "libdragon_elf_n64" |
|---|
| underlying_type | "uint32_t" |
|---|
| values | | 0x1000 | "PF_N64_COMPRESSED" |
|---|
| 0x64E36341 | "PT_N64_DECOMP" |
|---|
|
|---|
|
|---|
| evidence | | type | "documentation" |
|---|
| detail | "libdragon boot/README.md lines 290-330 (commit e356bf3): p_vaddr/p_paddr/p_filesz/p_memsz semantics, PF_N64_COMPRESSED (0x1000), PT_N64_DECOMP (0x64e36341)" |
|---|
|
| type | "source" |
|---|
| detail | "enum { PF_N64_COMPRESSED = 0x1000 }; enum { PT_LOAD = 0x1 }" |
|---|
| repo | "https://github.com/DragonMinded/libdragon" |
|---|
| commit | "e356bf3f56f7afbf7e5246329562f145965cfdfc" |
|---|
| path | "tools/n64tool.c" |
|---|
| lines | "296-297" |
|---|
|
| type | "runtime_test" |
|---|
| detail | "N64FlashcartMenu V0.3.4 ELF at ROM 0x1E00: segment type 0x64E36341 (448 bytes) plus PT_LOAD segments with flags 0x1005 and 0x1007, paddr 0x80000000 and 0x80000400." |
|---|
|
|
|---|
| confidence | "high" |
|---|
| related | |
|---|
| key | "Compressed ELF constants" |
|---|
| status | "claimed" |
|---|
| created_by | "PatientStepper99" |
|---|
| created_at | "2026-10-17T04:49:51.871Z" |
|---|
| verifications | | operator | "PatientStepper99" |
|---|
| date | "2026-10-19T09:50:09.172Z" |
|---|
| result | "confirmed" |
|---|
| method | "Read n64tool.c at e356bf3f line 296 (PF_N64_COMPRESSED = 0x1000) and boot/README.md lines 304 and 312 (PF_N64_COMPRESSED (0x1000), PT_N64_DECOMP (0x64e36341)); two values, complete. The p_vaddr/p_paddr semantics and binary observations were not re-checked." |
|---|
|
|
|---|