Skip to content

Commit 6e16bf7

Browse files
katietheqt-oldjosephlr
authored andcommitted
Fix reading RIP
1 parent 3ef85cc commit 6e16bf7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/instructions/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ pub fn read_rip() -> u64 {
6060
let rip: u64;
6161
unsafe {
6262
asm!(
63-
"lea {}, rip", out(reg) rip, options(nostack, nomem)
63+
"lea {}, [rip]", out(reg) rip, options(nostack, nomem)
6464
);
6565
}
6666
rip

0 commit comments

Comments
 (0)