diaphora icon indicating copy to clipboard operation
diaphora copied to clipboard

Will / Does diaphora supports HotColdSplitting Optimized Binaries

Open Naville opened this issue 4 years ago • 2 comments

Reference Basically it's a compiler optimization that splits out the "cold" basicblocks (BBs that rarely got actually executed) and split them into a separate function.

I'd assume this sort of splitting breaks Diaphora's analysis algorithms

Naville avatar Nov 04 '20 09:11 Naville

Uhm... Diaphora does nothing right now with cold basic blocks. I will research about them. Thanks for pointing it out!

joxeankoret avatar Nov 05 '20 16:11 joxeankoret

Ping. One idea at the top of my head is to allow generic inlining of whatever intermediate representation diaphora is currently using. From there the user should be able to config whether a function is to be inlined thus achieving whatever is required here

Naville avatar Mar 24 '21 06:03 Naville

I know this is an old issue but, does anyone have such binaries? I cannot find anywhere how to build them myself.

joxeankoret avatar Sep 30 '23 10:09 joxeankoret

I'm closing it for now as there is nothing I can see I should be doing here. Feel free to reopen if you have binaries to test.

joxeankoret avatar Oct 01 '23 08:10 joxeankoret

This seems to be heavily used on Darwin/*OS Kernel / SystemLibraries.

That being said, IDA themselves tried to implement one but didnt work well :(

Naville avatar Oct 03 '23 02:10 Naville