zig
zig copied to clipboard
Fix the ELF binaries for freestanding target created with self-hosted linker
The ELF specification (generic ABI) states that ``loadable process segments must have congruent values for p_vaddr and p_offset, modulo the page size''. Linux refuses to load binaries that don't meet this requirement (execve() fails with EINVAL). Ensures that output binaries always satisfy this condition.