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've transformed a "hello-world" binary using Egalito.
The transforamtion indeed complete successfully. However, when I executed the command provided in the README, i.e.:
./etelf -m ../src/ex/hello hello && ./hello # this results in a segfault
It results in a segmentation fault...
I then used gdb to single step into the transformed hello binary, and found that the direct function call to puts@plt (within main) had not been correctly transformed, which causes the seg fault.
I'm using Ubuntu 20.04 and the matser branch of Egalito (I also tested the ubuntu-20.04 and the ssss branch but the transformed binary segfaults in both cases). However, when I tested the egalito-artefact (I download it from this website), the transformed hello binary works as expected.
Is this a bug, or could it be caused by my environment? Any suggestions or insights would be greatly appreciated.
Thanks in advance!
ps: I attached a transformed hello binary in the .zip format hello.zip (generated by egalito's ssss branch)
The text was updated successfully, but these errors were encountered:
Update:
I tested the old hello binary found in the egalito-artefact, and it can be transformed properly using the current master branch of Egalito.
Therefore, it seems that Egalito can only transform specific binaries. To make it work with newer binaries will likely require additional engineering efforts.
I've transformed a "hello-world" binary using Egalito.
The transforamtion indeed complete successfully. However, when I executed the command provided in the README, i.e.:
It results in a segmentation fault...
I then used gdb to single step into the transformed hello binary, and found that the direct function call to
puts@plt
(withinmain
) had not been correctly transformed, which causes the seg fault.I'm using Ubuntu 20.04 and the matser branch of Egalito (I also tested the ubuntu-20.04 and the ssss branch but the transformed binary segfaults in both cases). However, when I tested the egalito-artefact (I download it from this website), the transformed hello binary works as expected.
Is this a bug, or could it be caused by my environment? Any suggestions or insights would be greatly appreciated.
Thanks in advance!
ps: I attached a transformed hello binary in the .zip format hello.zip (generated by egalito's ssss branch)
The text was updated successfully, but these errors were encountered: