You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to reassemble x86 binary with latest ddisasm (grammatech/ddisasm:1.5.2).
However, I could not recompile the reassembled code since ddisasm does not create main symbol.
I reassembled a toy program (hello.c) as follows.
$ cat hello.c
#include <stdio.h>
int main()
{
printf("hello world\n");
return 0;
}
$ gcc hello.c -m32 -o hello_32
$ strip hello_32
$ sudo docker run --rm -v /home/test/test/:/test grammatech/ddisasm:1.5.2 sh -c "ddisasm /test/hello_32 --asm /test/hello_32.s"
Building the initial gtirb representation (3ms)
Decoding the binary (5ms)
Disassembling (20ms)
Populating gtirb representation (5ms)
Computing intra-procedural SCCs (0ms)
Computing no return analysis (0ms)
Detecting additional functions (1ms)
Printing assembler (9ms)
I got the following errors.
$ gcc hello_32.s -m32
/usr/lib/gcc/x86_64-linux-gnu/7/../../../../lib32/Scrt1.o: In function `_start':
(.text+0x28): undefined reference to `main'
collect2: error: ld returned 1 exit status
I hope ddisasm fixes this bug soon.
The text was updated successfully, but these errors were encountered:
I am trying to reassemble x86 binary with latest ddisasm (grammatech/ddisasm:1.5.2).
However, I could not recompile the reassembled code since ddisasm does not create main symbol.
I reassembled a toy program (hello.c) as follows.
I got the following errors.
I hope ddisasm fixes this bug soon.
The text was updated successfully, but these errors were encountered: