From 9583c80eafc4f904a013713c084e9dc5e47c3675 Mon Sep 17 00:00:00 2001 From: K900 Date: Wed, 2 Oct 2024 00:48:14 +0300 Subject: [PATCH] Work around LLVM bug Rust 1.81 will refuse to compile this otherwise. See https://github.com/rust-lang/rust/issues/127937 --- src/arch.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/arch.rs b/src/arch.rs index 3040f86..bf14ce4 100644 --- a/src/arch.rs +++ b/src/arch.rs @@ -146,10 +146,10 @@ cfg_match! { "lea r10, [rip + {context}]", "mov r11, [r10 + {size} * 1]", // .env_entry "test r11, r11", - "jz 1f", + "jz 2f", "mov r10, [r10 + {size} * 2]", // .env_string "mov [r11], r10", - "1:", + "2:", "jmp [rip + {context}]", context = sym TRAMPOLINE_CONTEXT, size = const core::mem::size_of::<*const u8>(),