diff options
| author | ptitSeb <sebastien.chev@gmail.com> | 2021-03-26 14:00:02 +0100 |
|---|---|---|
| committer | ptitSeb <sebastien.chev@gmail.com> | 2021-03-26 14:00:02 +0100 |
| commit | c31aa8a78d3797417c8cf8e099dad66e59ca2910 (patch) | |
| tree | f86e8c924bb1dc345a8049d413392fa78d64d7dc /src | |
| parent | 648d99c9e65f8454320cb63fc323172d1687b50f (diff) | |
| download | box64-c31aa8a78d3797417c8cf8e099dad66e59ca2910.tar.gz box64-c31aa8a78d3797417c8cf8e099dad66e59ca2910.zip | |
Avoid to much much warning mesage when searching for a correct lib binary
Diffstat (limited to 'src')
| -rwxr-xr-x | src/elfs/elfparser.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/elfs/elfparser.c b/src/elfs/elfparser.c index b130a919..dcca49b3 100755 --- a/src/elfs/elfparser.c +++ b/src/elfs/elfparser.c @@ -71,8 +71,13 @@ elfheader_t* ParseElfHeader(FILE* f, const char* name, int exec) return NULL; } if(header.e_ident[EI_CLASS]!=ELFCLASS64) { + if(strstr(name, ".so")) { + // less naging on libs... + printf_log(LOG_DEBUG, "Not a 64bits ELF (%d)\n", header.e_ident[EI_CLASS]); + return NULL; + } if(header.e_ident[EI_CLASS]==ELFCLASS32) { - printf_log(LOG_INFO, "This is a 32bits ELF! box64 can only run 64bits ELF!\n"); + printf_log(LOG_INFO, "This is a 32bits ELF! box64 can only run 64bits ELF (%s)!\n", name); } else { printf_log(LOG_INFO, "Not a 64bits ELF (%d)\n", header.e_ident[EI_CLASS]); } |