retrowrite icon indicating copy to clipboard operation
retrowrite copied to clipboard

[Enhancement] can retrowrite support arm32 architecture?

Open wsxk opened this issue 2 years ago • 5 comments

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 avatar Mar 15 '23 05:03 wsxk

@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 :)

itewqq avatar Mar 16 '23 08:03 itewqq

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

wsxk avatar Mar 16 '23 08:03 wsxk

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

Hornos3 avatar Nov 22 '23 07:11 Hornos3

@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 avatar Nov 22 '23 07:11 itewqq

@itewqq If convenient, could you please send me brief summaries of your solutions about this issue? My Email: [email protected], There's a lot of trouble for me to sign up in telegram lol

Hornos3 avatar Nov 28 '23 09:11 Hornos3