From ab8962f7c44376819d74fe98d44aed2250450aa5 Mon Sep 17 00:00:00 2001 From: Tom Dohrmann Date: Sun, 14 Jul 2024 16:22:20 +0200 Subject: [PATCH] don't use label starting with `1` Starting with the latest nightly, this results in an error: error: avoid using labels containing only the digits `0` and `1` in inline assembly --> src/instructions/segmentation.rs:81:18 | 81 | "1:", | ^ use a different label that doesn't start with `0` or `1` | = note: an LLVM bug makes these labels ambiguous with a binary literal number = note: `#[deny(binary_asm_labels)]` on by default --- src/instructions/segmentation.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/instructions/segmentation.rs b/src/instructions/segmentation.rs index cf8b433d..7fb682c0 100644 --- a/src/instructions/segmentation.rs +++ b/src/instructions/segmentation.rs @@ -75,10 +75,10 @@ impl Segment for CS { unsafe { asm!( "push {sel}", - "lea {tmp}, [1f + rip]", + "lea {tmp}, [55f + rip]", "push {tmp}", "retfq", - "1:", + "55:", sel = in(reg) u64::from(sel.0), tmp = lateout(reg) _, options(preserves_flags),