authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-23 13:36:32+01:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2024-11-23 17:53:31+01:00
log2742ab4b5a6ebb317e19c89f1ebcb8b9a857a3c3
tree7f4ee9d1c79ed141a16a2aadd9c3ae0136124a0d
parent66a7c09defec1fe4f4f1751e36acc412e3ca8ea9

compiler-rt: Fix R_ARM_ABS32 relocation error in __clzsi2_thumb1().

Closes #22050.

1 files changed, 2 insertions(+), 2 deletions(-)

lib/compiler_rt/count0bits.zig+2-2
......@@ -73,13 +73,13 @@ fn __clzsi2_thumb1() callconv(.Naked) void {
7373 \\ subs r1, #4
7474 \\ movs r0, r2
7575 \\ 1:
76 \\ ldr r3, =LUT
76 \\ ldr r3, .lut
7777 \\ ldrb r0, [r3, r0]
7878 \\ subs r0, r1, r0
7979 \\ bx lr
8080 \\ .p2align 2
8181 \\ // Number of bits set in the 0-15 range
82 \\ LUT:
82 \\ .lut:
8383 \\ .byte 0,1,2,2,3,3,3,3,4,4,4,4,4,4,4,4
8484 );
8585