Index: scanelf.c =================================================================== RCS file: /var/cvsroot/gentoo-projects/pax-utils/scanelf.c,v retrieving revision 1.143 diff -u -r1.143 scanelf.c --- scanelf.c 11 May 2006 05:44:22 -0000 1.143 +++ scanelf.c 13 May 2006 12:42:44 -0000 @@ -257,6 +257,8 @@ if (!show_phdr) return NULL; + if (file_matches_list(elf->filename, qa_execstack)) return NULL; + memcpy(ret, "--- --- ---\0", 12); shown = 0; @@ -274,11 +276,9 @@ for (i = 0; i < EGET(ehdr->e_phnum); ++i) { \ if (EGET(phdr[i].p_type) == PT_GNU_STACK) { \ if (multi_stack++) warnf("%s: multiple PT_GNU_STACK's !?", elf->filename); \ - if (!file_matches_list(elf->filename, qa_execstack)) {\ - found = found_phdr; \ - offset = 0; \ - check_flags = PF_X; \ - } else continue; \ + found = found_phdr; \ + offset = 0; \ + check_flags = PF_X; \ } else if (EGET(phdr[i].p_type) == PT_GNU_RELRO) { \ if (multi_relro++) warnf("%s: multiple PT_GNU_RELRO's !?", elf->filename); \ found = found_relro; \