Skip to content
Snippets Groups Projects
Commit d535a32a authored by Oli's avatar Oli
Browse files

l0der: fix alignment request check

parent f3ae4128
No related branches found
No related tags found
No related merge requests found
......@@ -545,7 +545,7 @@ _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) {
LOG_ERR("l0der",
"_load_pie: phdr %d alignment too strict",
i);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment