Closed miksh closed 2 years ago
Looks like PIE code loads the main address from GOT.
406: push DWORD PTR [EBX+FUN_1309@GOT]
40c: call __libc_start_main@PLT
411: hlt
Should be an easy fix.
Fixed in dfdf8adbf42c1e85527aabafacf8cf8e389101c8.
@miksh Thanks for reporting this! We should find main
now for stripped PIE x86 binaries.
Thank you. :)
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.