interplane.Get Omega
Read in your language

physics-mv

FORGE: request-bound machine realization, providers and verification for AienOS. Host, simulated and GB10 hardware paths have separate evidence.

Brought by drakestapleton

branch main Branches Tags History

physics-mv / m3 / tests / kat.ld

23 lines · 894 bytes Raw Blame History
1/* kat.ld -- SHA-256 KAT image, loaded raw at 0x40200000 (QEMU puts the DTB at the RAM base 0x40000000 with -bios). */
2OUTPUT_FORMAT("elf64-littleaarch64")
3OUTPUT_ARCH(aarch64)
4ENTRY(_start)
5KAT_BASE = 0x40200000;
6KAT_LIMIT = 0x40270000 - 0x4000; /* image must stay below the 16 KiB stack */
7SECTIONS
8{
9 . = KAT_BASE;
10 .text : {
11 KEEP(*(.text.boot))
12 *(.text .text.*)
13 }
14 .rodata : ALIGN(8) { *(.rodata .rodata.*) }
15 .data : ALIGN(8) { *(.data .data.*) }
16 .bss : ALIGN(8) { *(.bss .bss.* COMMON) }
17 __kat_end = .;
18 /DISCARD/ : { *(.comment) *(.note*) *(.eh_frame*) }
19}
20ASSERT(SIZEOF(.data) == 0, "KAT: unexpected .data")
21ASSERT(SIZEOF(.bss) == 0, "KAT: unexpected .bss (raw image would not zero it)")
22ASSERT(__kat_end <= KAT_LIMIT, "KAT: image overlaps stack")
23ASSERT(SHA256_MAX_LEN <= 0x10000, "KAT: SHA256_MAX_LEN exceeds the 64 KiB PAT buffer")