• etiennep's avatar
    Courgette: Extend pointer detection in x64. · 1560d9db
    etiennep authored
    These new instructions are now recognised in x64 RelFinder :
    MOV QWORD[rip+offset], reg
    MOV reg, DWORD[rip+offset]
    MOV DWORD[rip+offset], reg
    LEA reg, DWORD[rip+offset]
    MOV reg, WORD[rip+offset]
    MOV WORD[rip+offset], reg
    LEA reg, WORD[rip+offset]
    
    This reduces patch size by ~1% for x64 image files.
    
    BUG=623674
    
    Review-Url: https://codereview.chromium.org/2072093003
    Cr-Commit-Position: refs/heads/master@{#402517}
    1560d9db
rel32_finder_x64.cc 5.69 KB