Fix load ELF64 and remove debug printf in binr/blob
This commit is contained in:
parent
dacede5ae9
commit
83259dbd1e
2 changed files with 4 additions and 4 deletions
|
|
@ -1,3 +1,5 @@
|
|||
/* radare - LGPL - Copyright 2012-2013 - pancake */
|
||||
|
||||
#include <stdio.h>
|
||||
#include <string.h>
|
||||
|
||||
|
|
@ -31,10 +33,8 @@ Main foo[] = {
|
|||
int main(int argc, char **argv) {
|
||||
int i=0;
|
||||
while (foo[i].name) {
|
||||
if (strstr (argv[0], foo[i].name)) {
|
||||
printf ("Using (%s)\n", foo[i].name);
|
||||
if (strstr (argv[0], foo[i].name))
|
||||
return foo[i].main (argc, argv);
|
||||
}
|
||||
i++;
|
||||
}
|
||||
for (i=0; foo[i].name; i++)
|
||||
|
|
|
|||
|
|
@ -287,7 +287,7 @@ static RList* fields(RBinArch *arch) {
|
|||
static int check(RBinArch *arch) {
|
||||
if (arch && arch->buf && arch->buf->buf)
|
||||
//if (!memcmp (arch->buf->buf, "\x7F\x45\x4c\x46\x01", 5))
|
||||
if (!memcmp (arch->buf->buf, "\x7F\x45\x4c\x46", 4))
|
||||
if (!memcmp (arch->buf->buf, "\x7F\x45\x4c\x46", 4) && arch->buf->buf[4] != 2)
|
||||
return R_TRUE;
|
||||
return R_FALSE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue