Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
elf: Fix elf program header verification logic
In the current ELF parser implementation, `verify_phdr` function returns an error when `p_vaddr` is not aligned. But since spec doesn't guarantee that `p_vaddr` must be aligned, fixed the check in our ELF parser. Also, a value of 0 or 1 for `p_align` means no alignment is required, so fix this check as well. Signed-off-by: Vijay Dhanraj <[email protected]> Signed-off-by: Joerg Roedel <[email protected]>
- Loading branch information