Description
However, I encountered another problem: "functions" that are called with
jalr rd, rs1, imm
usually end withjr rd
. Obviously, the control-flow is the target "function" is unresolved, sincerd
does not have defined value in the context of the function.As a matter of fact, this target "function" (ending with
jr rd
) is most probably just one or multiple basic blocks that are shared between multiple calling functions for space optimization.Is there any way to tell BN to treat these target "functions" as such ? (i.e. not functions, but basic blocks to reattach to different parent functions). Doing this manually would be the equivalent of "Append function tail" feature in IDA ; that would be great is BN would handle this automatically (BN usually has no problem with shared basic blocks IIRC)
Or maybe my patch is incomplete, and this is already handled.
Anyway, thanks in advance
Forwarded for @jeanmicheldeva (original message)