HexHive / retrowrite

RetroWrite -- Retrofitting compiler passes through binary rewriting
Other
655 stars 78 forks source link

[Enhancement] can retrowrite support arm32 architecture? #46

Open wsxk opened 1 year ago

wsxk commented 1 year ago

Platform details Please detail the following:

I tried to port the retrowrite to the arm32 architecture,but it seems be a lot of questions. the firmware usually has no PIE, is it possible to achieve the arm32 retrowrite?

itewqq commented 1 year ago

@wsxk It's still an open problem to distinguish scalars and references for non-PIE binaries... Reassembly is hard, you can refer to this paper

Anyway I'm working on the exactly same target as you. The tool will be released soon (in ~1 month). Contact me if you're interested to this :)

wsxk commented 1 year ago

@wsxk It's still an open problem to distinguish scalars and references for non-PIE binaries... Reassembly is hard, you can refer to this paper

Anyway I'm working on the exactly same target as you. The tool will be released soon (in ~1 month). Contact me if you're interested to this :)

but if I want to make retrowrite appliable in arm32 firmware,I need to distinguish all the scalars and references so that the compiler can reassemble the asm to firmware that runs properly.

Hornos3 commented 7 months ago

@itewqq Could I please ask you about the progress of the compatibility of ARM32? Is there any problem you've met? How did you distinguish scalars and references? Thanks.

itewqq commented 7 months ago

@itewqq Could I please ask you about the progress of the compatibility of ARM32? Is there any problem you've met? How did you distinguish scalars and references? Thanks.

I've finished the job like 6 month ago, but my paper was rejected for weird reason so it's still not public lol. Anyway you can DM me and talk about it.

Hornos3 commented 7 months ago

@itewqq If convenient, could you please send me brief summaries of your solutions about this issue? My Email: hornos@hust.edu.cn, There's a lot of trouble for me to sign up in telegram lol