Skip to content

Commit

Permalink
Force 5-byte JMP in x86 and x86-64
Browse files Browse the repository at this point in the history
  • Loading branch information
Evian-Zhang committed Aug 9, 2024
1 parent c12de5e commit 11068d6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/arch/x86_64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ macro_rules! arch_static_key_init_jmp_asm_template {
::core::concat!(
r#"
2:
jmp {0}
.byte 0x90,0x90,0x90
.byte 0xe9
.long ({0} - 4) - .
.pushsection "#,
$crate::os_static_key_sec_name_attr!(),
r#"
Expand Down

0 comments on commit 11068d6

Please sign in to comment.