HexHive/retrowrite

[Enhancement] can retrowrite support arm32 architecture?

wsxk opened this issue · 5 comments

wsxk commented

Platform details
Please detail the following:

  • Architecture: arm32
  • Kernel or userspace: STM32 embeded decives
  • Compiler: arm-none-eabi-gcc
  • Language (if not obvious from compiler): c
  • OS: firmware

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?

@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

@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.

@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

@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.

@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