retdec icon indicating copy to clipboard operation
retdec copied to clipboard

Library function analysis problem

Open tower111 opened this issue 3 years ago • 1 comments

I found that there was an error in the parsing of the library function. The reason for the error was that retdec could not parse the jump from plt to got.

Finally I located the function, and its parsing result went wrong. I don't know how to fix it. https://github.com/avast/retdec/blob/f9ac9ec7e8af77bc14944ce2650c9bbcc84f6368/src/bin2llvmir/optimizations/decoder/decoder.cpp#L822

retdec parsing result

define i32 @function_11e94(i32 %arg1) local_unnamed_addr {
dec_label_pc_11e94:
  %0 = call i32 @function_e5933000(), !insn.addr !125
  ret i32 %0, !insn.addr !125
}

radare parsing result image

ida parsing result image

My tested file info

 ELF 32-bit LSB executable, ARM, EABI5 version 1 (SYSV), dynamically linked, interpreter /lib/ld-linux.so.3, for GNU/Linux 2.6.16, stripped  

It can be resolve? Thank you.

tower111 avatar May 04 '22 13:05 tower111

The save problem with you. But it seems this repo haven't been maintained for a long time. Did you find the solution for that?

damaoooo avatar Jan 13 '23 21:01 damaoooo