mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-01-28 04:19:09 +00:00
[MachO] Fix typo in comment
The case the calculation works for is when r_length = 2.
This commit is contained in:
parent
4a8120ca9f
commit
72e096fd1e
@ -122,7 +122,7 @@ void X86_64::relocateOne(uint8_t *loc, const Reloc &r, uint64_t val) const {
|
||||
case X86_64_RELOC_GOT_LOAD:
|
||||
// These types are only used for pc-relative relocations, so offset by 4
|
||||
// since the RIP has advanced by 4 at this point. This is only valid when
|
||||
// r_length = 0, which is enforced by validateLength().
|
||||
// r_length = 2, which is enforced by validateLength().
|
||||
val -= 4;
|
||||
break;
|
||||
case X86_64_RELOC_UNSIGNED:
|
||||
|
Loading…
x
Reference in New Issue
Block a user