Skip to content

stdlib/elfView source ↗

elf

10 items · generated by scribe fromstdlib/elf.fd· synced 2026-11-15

stdlib/elf10 items

Contents

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:

NameType
validbool
osabii64
etypei64
machinei64
entryi64
phoffi64
shoffi64
flagsi64
phentsizei64
phnumi64
shentsizei64
shnumi64
shstrndxi64

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:

NameType
ptypei64
flagsi64
offseti64
vaddri64
paddri64
fileszi64
memszi64
aligni64

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: Elf64Ehdr
  • i: i64

Returns: Elf64Phdr

Defined at line 87


Elf64Shdr

pub struct Elf64Shdr {

Fields:

NameType
name_offi64
shtypei64
flagsi64
addri64
offseti64
sizei64
linki64
infoi64
addraligni64
entsizei64

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: Elf64Ehdr
  • i: 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: Elf64Ehdr
  • i: i64

Returns: str

Defined at line 134


Generated by scribe, the Fides documentation generator