Skip to content

Commit

Permalink
Fix execstack flags
Browse files Browse the repository at this point in the history
  • Loading branch information
robalb committed Oct 16, 2024
1 parent e8de198 commit e0c26b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion blink/loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ static bool LoadElf(struct Machine *m, //
Read16(ehdr->phentsize) * i);
switch (Read32(phdr->type)) {
case PT_GNU_STACK_:
execstack = false;
execstack = Read32(phdr->flags) & PF_X_;
break;
case PT_LOAD_:
end = LoadElfLoadSegment(m, elf->execfn, ehdr, esize, phdr, end, &prot,
Expand Down

0 comments on commit e0c26b9

Please sign in to comment.