Skip to content

Commit 76f6755

Browse files
committed
arm: drop unnecessary immediate value sigil for 0x56465001 constant
in GNU assembly syntax, =[constant] is always an immediate value anyway. this fixes building on arm with clang. ref #78 ref termux/termux-packages#27605 Signed-off-by: Ariadne Conill <ariadne@ariadne.space>
1 parent 4c5b451 commit 76f6755

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

arch/arm/getcontext.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ FUNC(libucontext_getcontext)
3131
tst r0, #64
3232
pop {r0-r1,fp,lr}
3333
moveq r2, #0
34-
ldrne r2, =#0x56465001
34+
ldrne r2, =0x56465001
3535
str r2, [r0, #VFP_MAGIC_OFFSET]
3636
beq 1f
3737
#endif

arch/arm/setcontext.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ FUNC(libucontext_setcontext)
2020
#ifndef FORCE_HARD_FLOAT
2121
/* test for vfp magic number set by getcontext */
2222
ldr r2, [r0, #VFP_MAGIC_OFFSET]
23-
ldr r3, =#0x56465001
23+
ldr r3, =0x56465001
2424
cmp r2, r3
2525
bne 1f
2626
#endif

arch/arm/swapcontext.S

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ FUNC(libucontext_swapcontext)
2424
#ifndef FORCE_HARD_FLOAT
2525
/* test for vfp magic number, copy to other ucontext */
2626
ldr r3, [r1, #VFP_MAGIC_OFFSET]
27-
ldr r2, =#0x56465001
27+
ldr r2, =0x56465001
2828
str r3, [r0, #VFP_MAGIC_OFFSET]
2929
cmp r3, r2
3030
bne 1f

0 commit comments

Comments
 (0)