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

generate_linker_script

Function generate_linker_script 

Source
pub fn generate_linker_script(target: &str) -> String
Expand description

Generate a basic VeridianOS linker script for the given target architecture.

The script defines entry points and section layout appropriate for each supported architecture:

  • x86_64: kernel mapped at 0xFFFFFFFF80100000 (higher-half)
  • aarch64: loaded at 0x40080000 (QEMU virt)
  • riscv64: loaded at 0x80200000 (OpenSBI payload)