Closed AntonKukoba1 closed 4 years ago
Any chance you can share the binary with me so I can debug it?
Did you mean /bin/ps ?
yep I meant /bin/ps. I've used the one from linux mint 18 x64.
I fixed the crash (trying to dereference a NULL pointer) but the program will still not work as expected since it does not yet support 64-bit ELF as an input file. There are a few more changes that need to be made - but at least it doesn't crash now. I will have to first enable disassembly in 64-bit mode, then update the list of instructions that need to be delinked.
There is now some support for x86_64 ELF. It can recreate the symbols, create the relocations and outputs a single object file "source.o". However, this .o file cannot yet be successfully relinked because some of the relocations (of the the dynamic symbols) seem to be of the wrong type. I tested this on "/bin/ps" from Ubuntu 20.04 because that's what I have.
Yes it works now https://pastebin.com/CzmAC5yF thank you.
Tried to unlink ps binary into .o files: