diff options
author | Mike Frysinger <vapier@gentoo.org> | 2015-03-09 23:35:51 -0400 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2015-03-09 23:35:51 -0400 |
commit | 52d761bc07f59eed70b71c862bdf8a389172e294 (patch) | |
tree | fb8bccf19386fe4fe4604cc14da86138e515c2f5 /scanelf.c | |
parent | README: update Fedora URL (diff) | |
download | pax-utils-52d761bc07f59eed70b71c862bdf8a389172e294.tar.gz pax-utils-52d761bc07f59eed70b71c862bdf8a389172e294.tar.bz2 pax-utils-52d761bc07f59eed70b71c862bdf8a389172e294.zip |
scanelf: respect QA_EXECSTACK for .note.GNU-stack sections
URL: https://bugs.gentoo.org/539606
Diffstat (limited to 'scanelf.c')
-rw-r--r-- | scanelf.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -475,6 +475,8 @@ static char *scanelf_file_phdr(elfobj *elf, char *found_phdr, char *found_relro, continue; \ if (!strcmp(elf->data + offset, NOTE_GNU_STACK)) { \ if (multi_stack++) warnf("%s: multiple .note.GNU-stack's !?", elf->filename); \ + if (file_matches_list(elf->filename, qa_execstack)) \ + continue; \ flags = EGET(shdr[i].sh_flags); \ if (be_quiet && ((flags & check_flags) != check_flags)) \ continue; \ |