[PATCH] COFFObjectFile imports fix for compressed binaries

Bandzi Michal via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 30 08:39:48 PDT 2016


COFFObjectFile import iterators do not work for some compressed binaries.
Before loading, binary contains two identical structures containing
imports: Look-up Table and Address Table. LLVM uses only Look-up
table which is often stripped by packers due to its redundancy.

Proposed solution in patch (attachment) adds Address Table as
fall-back option to read imports in case Look-up Table does not exist.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: compressed_imports.diff
Type: text/x-patch
Size: 1735 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160630/6714362c/attachment.bin>


More information about the llvm-commits mailing list