zig icon indicating copy to clipboard operation
zig copied to clipboard

Fix the ELF binaries for freestanding target created with self-hosted linker

Open alex14fr opened this issue 1 year ago • 0 comments

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.

alex14fr avatar Apr 23 '24 19:04 alex14fr