Commit 2a7e41fd authored by Rahix's avatar Rahix
Browse files

Merge 'l0der: fix alignment request check'

See merge request card10/firmware!293
parents 122d37e9 bb21bcaa
......@@ -545,7 +545,8 @@ _load_pie(int fd, int size, Elf32_Ehdr *hdr, struct l0dable_info *info)
if (phdr.p_type == PT_LOAD) {
// Check alignment request.
if ((phdr.p_vaddr % phdr.p_align) != 0) {
if ((phdr.p_offset % phdr.p_align) !=
(phdr.p_vaddr % phdr.p_align)) {
"_load_pie: phdr %d alignment too strict",
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment