Skip to content

Commit 51f8a88

Browse files
committed
Fix relocation handling for control-flow recovery
1 parent 144e8ba commit 51f8a88

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/e9patch/e9CFR.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -377,7 +377,7 @@ void targetAnalysis(Binary *B)
377377
intptr_t offset = addrToOffset(phdrs, phnum, addr, /*x=*/false);
378378
if (offset < 0)
379379
continue;
380-
addr = *(intptr_t *)(data + offset) + rela[i].r_addend;
380+
addr = rela[i].r_addend;
381381
intptr_t target = addrToOffset(phdrs, phnum, addr);
382382
setTarget(targets, B->size, target);
383383
}

0 commit comments

Comments
 (0)