From 2742ab4b5a6ebb317e19c89f1ebcb8b9a857a3c3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alex=20R=C3=B8nne=20Petersen?= Date: Sat, 23 Nov 2024 13:36:32 +0100 Subject: [PATCH] compiler-rt: Fix R_ARM_ABS32 relocation error in __clzsi2_thumb1(). Closes #22050. --- lib/compiler_rt/count0bits.zig | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/compiler_rt/count0bits.zig b/lib/compiler_rt/count0bits.zig index 60da0390da..0045f5741f 100644 --- a/lib/compiler_rt/count0bits.zig +++ b/lib/compiler_rt/count0bits.zig @@ -73,13 +73,13 @@ fn __clzsi2_thumb1() callconv(.Naked) void { \\ subs r1, #4 \\ movs r0, r2 \\ 1: - \\ ldr r3, =LUT + \\ ldr r3, .lut \\ ldrb r0, [r3, r0] \\ subs r0, r1, r0 \\ bx lr \\ .p2align 2 \\ // Number of bits set in the 0-15 range - \\ LUT: + \\ .lut: \\ .byte 0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4 );