avast / avast/retdec

PIC binaries that use different GetPC techniques/gadgets

Open
#273 1 comment 0 reactions 1 assignee Claimed by @PeterMatula View on GitHub
C-bin2llvmir enhancement T-PIC
Dominant language
C++
Stars
8.6k
Forks
1k
PR merge metrics
No merged PRs in 30d

Description

I've had trouble with a few PIC binaries (both ELF and the Mach-O equivalent) that use different GetPC techniques/gadgets (`call $+5;pop` as well as `get_pc_thunk`) that appear to cause trouble for retdec. I've attached two samples that demonstrate the problem. The Mach-O was compiled with clang, and the ELF was compiled with gcc.

[chall-bins.zip](https://github.com/avast-tl/retdec/files/1900430/chall-bins.zip)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.