⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

build_aux_vector

Function build_aux_vector 

Source
pub fn build_aux_vector(
    elf_binary: &ElfBinary,
    phdr_addr: u64,
    interp_base: u64,
    random_addr: u64,
    execfn_addr: u64,
) -> Vec<AuxVecEntry>
Expand description

Build an auxiliary vector for the dynamic linker.

The auxiliary vector is placed on the user stack before the process starts. It provides the dynamic linker with information about the loaded binary.

§Arguments

  • elf_binary - Parsed ELF binary information.
  • phdr_addr - Address where program headers are loaded in memory.
  • interp_base - Base address of the loaded interpreter (0 if none).
  • random_addr - Address of 16 random bytes for AT_RANDOM.
  • execfn_addr - Address of the filename string.