From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C764F138CBD for ; Tue, 10 Mar 2015 03:36:35 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6FFB4E09BE; Tue, 10 Mar 2015 03:36:33 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 23349E09BE for ; Tue, 10 Mar 2015 03:36:33 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id D7CC43409FB for ; Tue, 10 Mar 2015 03:36:31 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 27B19136C9 for ; Tue, 10 Mar 2015 03:36:25 +0000 (UTC) From: "Mike Frysinger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Mike Frysinger" Message-ID: <1425958551.52d761bc07f59eed70b71c862bdf8a389172e294.vapier@gentoo> Subject: [gentoo-commits] proj/pax-utils:master commit in: / X-VCS-Repository: proj/pax-utils X-VCS-Files: scanelf.c X-VCS-Directories: / X-VCS-Committer: vapier X-VCS-Committer-Name: Mike Frysinger X-VCS-Revision: 52d761bc07f59eed70b71c862bdf8a389172e294 X-VCS-Branch: master Date: Tue, 10 Mar 2015 03:36:25 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: baeea6e4-c763-45ed-bb70-106c92a84448 X-Archives-Hash: eecaeefedb29567a960e088f065c4e12 commit: 52d761bc07f59eed70b71c862bdf8a389172e294 Author: Mike Frysinger gentoo org> AuthorDate: Tue Mar 10 03:35:51 2015 +0000 Commit: Mike Frysinger gentoo org> CommitDate: Tue Mar 10 03:35:51 2015 +0000 URL: https://gitweb.gentoo.org/proj/pax-utils.git/commit/?id=52d761bc scanelf: respect QA_EXECSTACK for .note.GNU-stack sections URL: https://bugs.gentoo.org/539606 scanelf.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scanelf.c b/scanelf.c index 4db4c35..64c4fc8 100644 --- a/scanelf.c +++ b/scanelf.c @@ -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; \