elf
10 items · generated by scribe fromstdlib/elf.fd· synced 2026-11-15
Contents
- elf_u16 (function)
- elf_u32 (function)
- Elf64Ehdr (struct)
- elf_ehdr (function)
- Elf64Phdr (struct)
- elf_phdr (function)
- Elf64Shdr (struct)
- elf_shdr (function)
- elf_str_at (function)
- elf_shdr_name (function)
elf_u16
pub fn elf_u16(b: Vec<i64>, o: i64) -> i64 {Parameters:
b:Vec<i64>o:i64
Returns: i64
Defined at line 8
elf_u32
pub fn elf_u32(b: Vec<i64>, o: i64) -> i64 {Parameters:
b:Vec<i64>o:i64
Returns: i64
Defined at line 12
Elf64Ehdr
pub struct Elf64Ehdr {Fields:
| Name | Type |
|---|---|
valid | bool |
osabi | i64 |
etype | i64 |
machine | i64 |
entry | i64 |
phoff | i64 |
shoff | i64 |
flags | i64 |
phentsize | i64 |
phnum | i64 |
shentsize | i64 |
shnum | i64 |
shstrndx | i64 |
Defined at line 22
elf_ehdr
Parse and validate the 64-byte ELF64 header at offset 0.
pub fn elf_ehdr(b: Vec<i64>) -> Elf64Ehdr {Parameters:
b:Vec<i64>
Returns: Elf64Ehdr
Defined at line 39
Elf64Phdr
pub struct Elf64Phdr {Fields:
| Name | Type |
|---|---|
ptype | i64 |
flags | i64 |
offset | i64 |
vaddr | i64 |
paddr | i64 |
filesz | i64 |
memsz | i64 |
align | i64 |
Defined at line 75
elf_phdr
Program header i (i < ehdr.phnum).
pub fn elf_phdr(b: Vec<i64>, h: Elf64Ehdr, i: i64) -> Elf64Phdr {Parameters:
b:Vec<i64>h:Elf64Ehdri:i64
Returns: Elf64Phdr
Defined at line 87
Elf64Shdr
pub struct Elf64Shdr {Fields:
| Name | Type |
|---|---|
name_off | i64 |
shtype | i64 |
flags | i64 |
addr | i64 |
offset | i64 |
size | i64 |
link | i64 |
info | i64 |
addralign | i64 |
entsize | i64 |
Defined at line 96
elf_shdr
Section header i (i < ehdr.shnum).
pub fn elf_shdr(b: Vec<i64>, h: Elf64Ehdr, i: i64) -> Elf64Shdr {Parameters:
b:Vec<i64>h:Elf64Ehdri:i64
Returns: Elf64Shdr
Defined at line 110
elf_str_at
Read a NUL-terminated string at offset o within the byte range [start, start+size) — used on the shstrtab and strtab sections.
pub fn elf_str_at(b: Vec<i64>, o: i64) -> str {Parameters:
b:Vec<i64>o:i64
Returns: str
Defined at line 119
elf_shdr_name
Section i’s name (via the shstrndx string table).
pub fn elf_shdr_name(b: Vec<i64>, h: Elf64Ehdr, i: i64) -> str {Parameters:
b:Vec<i64>h:Elf64Ehdri:i64
Returns: str
Defined at line 134
Generated by scribe, the Fides documentation generator