pub fn require_aligned_load_segments(path: &Path) -> Result<()>Expand description
Require every PT_LOAD segment in the ELF at path to declare an
alignment of at least REQUIRED_LOAD_ALIGNMENT.
An unreadable or unparsable file is an error: a staged library that cannot be inspected cannot be trusted to load.
§Errors
Returns an error when the file cannot be read or parsed as ELF, or when
any PT_LOAD segment’s alignment is below the requirement.