From: Anas Nashif Date: Sun, 14 Oct 2012 04:09:08 +0000 (-0700) Subject: Assume executable libs X-Git-Tag: tznext/4.11.0.1.tizen20130304~41 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac65376374c18cd277da59e41ae60d5cf01cbee5;p=tools%2Flibrpm-tizen.git Assume executable libs --- diff --git a/tools/elfdeps.c b/tools/elfdeps.c index a140014c6..08e581c14 100644 --- a/tools/elfdeps.c +++ b/tools/elfdeps.c @@ -15,6 +15,7 @@ int filter_private = 0; int soname_only = 0; int fake_soname = 1; +int assume_exec = 0; typedef struct elfInfo_s { Elf *elf; @@ -235,7 +236,7 @@ static int processFile(const char *fn, int dtype) if (ehdr->e_type == ET_DYN || ehdr->e_type == ET_EXEC) { ei->marker = mkmarker(ehdr); ei->isDSO = (ehdr->e_type == ET_DYN); - ei->isExec = (st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)); + ei->isExec = assume_exec || (st.st_mode & (S_IXUSR|S_IXGRP|S_IXOTH)); processSections(ei); } @@ -292,6 +293,7 @@ int main(int argc, char *argv[]) { "filter-private", 0, POPT_ARG_VAL, &filter_private, -1, NULL, NULL }, { "soname-only", 0, POPT_ARG_VAL, &soname_only, -1, NULL, NULL }, { "no-fake-soname", 0, POPT_ARG_VAL, &fake_soname, 0, NULL, NULL }, + { "assume-exec", 0, POPT_ARG_VAL, &assume_exec, -1, NULL, NULL }, POPT_AUTOHELP POPT_TABLEEND };