From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <gentoo-commits+bounces-488071-garchives=archives.gentoo.org@lists.gentoo.org> Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id DAC3E13800E for <garchives@archives.gentoo.org>; Mon, 23 Jul 2012 10:47:28 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id D855CE0764; Mon, 23 Jul 2012 10:47:20 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) by pigeon.gentoo.org (Postfix) with ESMTP id ABE80E0764 for <gentoo-commits@lists.gentoo.org>; Mon, 23 Jul 2012 10:47:20 +0000 (UTC) Received: from hornbill.gentoo.org (hornbill.gentoo.org [94.100.119.163]) (using TLSv1 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 1DA551B42F1 for <gentoo-commits@lists.gentoo.org>; Mon, 23 Jul 2012 10:47:20 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by hornbill.gentoo.org (Postfix) with ESMTP id D70B5E5436 for <gentoo-commits@lists.gentoo.org>; Mon, 23 Jul 2012 10:47:18 +0000 (UTC) From: "Anthony G. Basile" <blueness@gentoo.org> To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Anthony G. Basile" <blueness@gentoo.org> Message-ID: <1343040430.02640d9d23cc4736e642600430b13406c33dba9e.blueness@gentoo> Subject: [gentoo-commits] proj/elfix:master commit in: src/ X-VCS-Repository: proj/elfix X-VCS-Files: src/fix-gnustack.c src/paxctl-ng.c X-VCS-Directories: src/ X-VCS-Committer: blueness X-VCS-Committer-Name: Anthony G. Basile X-VCS-Revision: 02640d9d23cc4736e642600430b13406c33dba9e X-VCS-Branch: master Date: Mon, 23 Jul 2012 10:47:18 +0000 (UTC) Precedence: bulk List-Post: <mailto:gentoo-commits@lists.gentoo.org> List-Help: <mailto:gentoo-commits+help@lists.gentoo.org> List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org> List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org> List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org> X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: aca2777c-ae5a-4812-8ca4-f9db0dafea2d X-Archives-Hash: 1597b7e9effad1621691e91e398cdbc4 commit: 02640d9d23cc4736e642600430b13406c33dba9e Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> AuthorDate: Mon Jul 23 10:47:10 2012 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Mon Jul 23 10:47:10 2012 +0000 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=02640d9d src/{fix-gnustack.c,paxctl-ng.c}: ELF_C_RDWR_MMAP -> ELF_C_RDWR for uclibc compat --- src/fix-gnustack.c | 2 +- src/paxctl-ng.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fix-gnustack.c b/src/fix-gnustack.c index 15e23e0..03da236 100644 --- a/src/fix-gnustack.c +++ b/src/fix-gnustack.c @@ -99,7 +99,7 @@ main( int argc, char *argv[]) { if((fd = open(f_name, O_RDWR)) < 0) error(EXIT_FAILURE, 0, "open() fail."); - if((elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL)) == NULL) + if((elf = elf_begin(fd, ELF_C_RDWR, NULL)) == NULL) error(EXIT_FAILURE, 0, "elf_begin() fail: %s", elf_errmsg(elf_errno())); } else diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c index 025ea24..4b7e6fb 100644 --- a/src/paxctl-ng.c +++ b/src/paxctl-ng.c @@ -216,7 +216,7 @@ get_pt_flags(int fd, int verbose) return pt_flags; } - if((elf = elf_begin(fd, ELF_C_READ_MMAP, NULL)) == NULL) + if((elf = elf_begin(fd, ELF_C_READ, NULL)) == NULL) { if(verbose) printf("\tELF ERROR: elf_begin() fail: %s\n", elf_errmsg(elf_errno())); @@ -460,7 +460,7 @@ set_pt_flags(int fd, uint16_t pt_flags, int verbose) return; } - if((elf = elf_begin(fd, ELF_C_RDWR_MMAP, NULL)) == NULL) + if((elf = elf_begin(fd, ELF_C_RDWR, NULL)) == NULL) { if(verbose) printf("\tELF ERROR: elf_begin() fail: %s\n", elf_errmsg(elf_errno()));