Gentoo Archives: gentoo-commits

From: "Anthony G. Basile" <blueness@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] proj/elfix:master commit in: src/
Date: Wed, 04 May 2011 02:15:12
Message-Id: af0ba40a9aeb5d5e735705755c4169e48e672478.blueness@gentoo
1 commit: af0ba40a9aeb5d5e735705755c4169e48e672478
2 Author: Anthony G. Basile <basile <AT> opensource <DOT> dyc <DOT> edu>
3 AuthorDate: Wed May 4 02:14:55 2011 +0000
4 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org>
5 CommitDate: Wed May 4 02:14:55 2011 +0000
6 URL: http://git.overlays.gentoo.org/gitweb/?p=proj/elfix.git;a=commit;h=af0ba40a
7
8 Cleaned out unnecessary call to get ehdr
9
10 ---
11 src/fix-gnustack.c | 4 ----
12 1 files changed, 0 insertions(+), 4 deletions(-)
13
14 diff --git a/src/fix-gnustack.c b/src/fix-gnustack.c
15 index 00a0c02..8315873 100644
16 --- a/src/fix-gnustack.c
17 +++ b/src/fix-gnustack.c
18 @@ -63,7 +63,6 @@ main( int argc, char *argv[])
19 size_t i, phnum;
20
21 Elf *elf;
22 - GElf_Ehdr ehdr;
23 GElf_Phdr phdr;
24
25 f_name = parse_cmd_args( argc, argv, &flagv );
26 @@ -89,9 +88,6 @@ main( int argc, char *argv[])
27 if(elf_kind(elf) != ELF_K_ELF)
28 error(EXIT_FAILURE, 0, "elf_kind() fail: this is not an elf file.");
29
30 - if(gelf_getehdr(elf,&ehdr) == NULL)
31 - error(EXIT_FAILURE, 0, "gelf_getehdr() fail: %s", elf_errmsg(-1));
32 -
33 elf_getphdrnum(elf, &phnum);
34 for(i=0; i<phnum; ++i)
35 {