nx_readelf.nx
buildroot/runtime/nx_readelf.nx
about
nx_readelf.nx -- sovereign readelf (one-stop ELF dump).
Combines our existing objdump + nm + dwarf-section enumeration
into a single output that mirrors `readelf -a`. Useful as the
canonical "show me everything in this ELF" tool for sovereign
debugging without binutils.
Sections:
* ELF header
* Program headers (with type / flags / vaddr / filesz / memsz)
* Section headers (idx / name / type / addr / offset / size)
* Symbol table (one entry per symbol)
* (DWARF section sizes, if present)
Pairs with nx_objdump (subset) + nx_nm.
dependencies 5 imports · 1 importers
imports: syscalls.nxnx_elf_read.nxnx_strfmt.nxnx_objdump.nxnx_nm.nx
imported by: nx_toolchain.nx
call flow from main pre-order; caps 40 nodes / depth 6 declared; ↻ = already shown
structs
| 34 | struct NxReElfPhdr |
consts
| 45 | const NX_RE_PHDR_BYTES: i64 = 64 |
functions
| 47 | func nx_readelf_get_phdr(buf: *u8, h: *NxElfHeader, idx: i64) -> *NxReElfPhdr |
| 63 | func nx_readelf_program_headers(buf: *u8, len: i64, fd: i64) -> i64 |
| 112 | func nx_readelf_all(buf: *u8, len: i64, fd: i64) -> i64 |
| 135 | func main() -> i64 |