Open ScoreUnder opened 3 years ago
Hi, thanks for your report.
The problem here is that you are using C++ - and at the moment retrowrite doesn't support it (we support well behaved (i.e. compiled with a compiler) C PIE binaries and shared libraries and kernel modules at the moment). However, we are working on C++ support. I can't give an ETA publicly for when this will be released, but we'd like to do it as soon as we can :)
I'll leave this open and we'll post back once we have working C++ support you can use.
Background
Input file
hello.cpp
Repro
g++ -pie -o hello hello.cpp
./retro/bin/retrowrite hello hello.s
noting output:
g++ hello.s
fails with output:
It looks like it has generated some syntax that
as
doesn't like. Cleaning that up (not sure of the consequences but I just removed it), it then fails on an undefined label:.LC1160
seems to be necessary for something (otherwise the program segfaults at startup), but I can't tell what it needs to point to.