From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1R2Upf-0001Rk-6p for garchives@archives.gentoo.org; Sat, 10 Sep 2011 21:11:23 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 1794D21C159; Sat, 10 Sep 2011 21:11:15 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id C4D6921C145 for ; Sat, 10 Sep 2011 21:11:14 +0000 (UTC) Received: from pelican.gentoo.org (unknown [66.219.59.40]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3882E1B4010 for ; Sat, 10 Sep 2011 21:11:14 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by pelican.gentoo.org (Postfix) with ESMTP id 52C7480042 for ; Sat, 10 Sep 2011 21:11:13 +0000 (UTC) From: "Anthony G. Basile" To: gentoo-commits@lists.gentoo.org Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" Message-ID: Subject: [gentoo-commits] proj/elfix:master commit in: src/ X-VCS-Repository: proj/elfix X-VCS-Files: src/paxctl-ng.c X-VCS-Directories: src/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: d26443ff1b6cdb411dd4f7c195e4dc7824d5fcee Date: Sat, 10 Sep 2011 21:11:13 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: quoted-printable X-Archives-Salt: X-Archives-Hash: 8b84e8a578cd0581162a6ceb2166ea2d commit: d26443ff1b6cdb411dd4f7c195e4dc7824d5fcee Author: Anthony G. Basile gentoo org> AuthorDate: Sat Sep 10 21:11:06 2011 +0000 Commit: Anthony G. Basile gentoo org> CommitDate: Sat Sep 10 21:11:06 2011 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=3Dproj/elfix.git;a=3D= commit;h=3Dd26443ff src/paxctl-ng.c: remove create_flags option --- src/paxctl-ng.c | 112 ++++++++++++-------------------------------------= ------ 1 files changed, 24 insertions(+), 88 deletions(-) diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c index 0957e36..4a099ec 100644 --- a/src/paxctl-ng.c +++ b/src/paxctl-ng.c @@ -54,7 +54,6 @@ print_help(char *v) " : -x Disable RANDEXEC\t-X Enable RANDEXEC\n" " : -s Disable SEGMEXEC\t-X Enable SEGMEXEC\n" " : -z Default least secure\t-Z Default most secure\n" - " : -C Created PT_PAX_FLAGS program header\n" " : -h Print out this help\n", basename(v), basename(v) @@ -65,7 +64,7 @@ print_help(char *v) =20 =20 char * -parse_cmd_args( int c, char *v[], int *pax_flags, int *create_flag ) +parse_cmd_args( int c, char *v[], int *pax_flags ) { int i, oc; =20 @@ -73,7 +72,6 @@ parse_cmd_args( int c, char *v[], int *pax_flags, int *= create_flag ) error(EXIT_FAILURE, 0, "Usage: %s {[-pPeEmMrRxXsSzZC] ELFfile | [-h]}"= , v[0]); =20 *pax_flags =3D 0; - *create_flag =3D 0; while((oc =3D getopt(c, v,":pPeEmMrRxXsSzZCh")) !=3D -1) switch(oc) { @@ -105,9 +103,6 @@ parse_cmd_args( int c, char *v[], int *pax_flags, int= *create_flag ) break ; case 'Z': break; - case 'C': - *create_flag =3D 1; - break; case 'h': print_help(v[0]); break; @@ -139,112 +134,53 @@ no_pt_pax_flags(Elf *e) =20 =20 int -create_pt_pax_flags(Elf *e) -{ - size_t i, phnum; - GElf_Phdr phdr; - - elf_getphdrnum(e, &phnum); - for(i=3D0; i