Skip to content

Commit 1fe980c

Browse files
authored
Fix execstack flags (#176)
1 parent 5d2298b commit 1fe980c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

blink/loader.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ static bool LoadElf(struct Machine *m, //
417417
Read16(ehdr->phentsize) * i);
418418
switch (Read32(phdr->type)) {
419419
case PT_GNU_STACK_:
420-
execstack = false;
420+
execstack = Read32(phdr->flags) & PF_X_;
421421
break;
422422
case PT_LOAD_:
423423
end = LoadElfLoadSegment(m, elf->execfn, ehdr, esize, phdr, end, &prot,

0 commit comments

Comments
 (0)