git clone https://garage44.eu/jeroen/pinnacle.git.. /programs/build.rs
//! Links programs at the address the kernel loads them to.
fn main() {
let dir = std::env::var("CARGO_MANIFEST_DIR").unwrap();
println!("cargo:rustc-link-arg=-T{dir}/link.ld");
// No RELRO: nothing relocates a program after the kernel loads it, and
// on a PC (whose GOT lies in .data) it would split .bss into a segment
// of its own, off a page boundary.
println!("cargo:rustc-link-arg=-znorelro");
println!("cargo:rerun-if-changed=link.ld");
}