![]() Summary: This patch handles 2 problems with LongJmp pass: 1. The pass should be executed before FinalizeFunctions, since the pass may add new entry points for the function, and the BinaryFunction::addEntryPoint has an assert "CurrentState == State::CFG" 2. Replaced shortJmp implementation with position-independent code. Currently we could handle PIC binaries with max +-4Gb offsets, the longJmp uses absolute addreses and could could be used only in non-PIE binaries. Vladislav Khmelevsky, Advanced Software Technology Lab, Huawei (cherry picked from FBD31416925) |
||
---|---|---|
bolt |