Skip to content

Commit 55850eb

Browse files
committed
tools/nolibc: arm: use clang-compatible asm syntax
The clang assembler rejects the current syntax. Switch to a syntax accepted by both GCC and clang. Acked-by: Willy Tarreau <w@1wt.eu> Link: https://lore.kernel.org/r/20240807-nolibc-llvm-v2-1-c20f2f5fc7c2@weissschuh.net Signed-off-by: Thomas Weißschuh <linux@weissschuh.net>
1 parent 754283c commit 55850eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

tools/include/nolibc/arch-arm.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188
void __attribute__((weak, noreturn, optimize("Os", "omit-frame-pointer"))) __no_stack_protector _start(void)
189189
{
190190
__asm__ volatile (
191-
"mov %r0, sp\n" /* save stack pointer to %r0, as arg1 of _start_c */
192-
"and ip, %r0, #-8\n" /* sp must be 8-byte aligned in the callee */
191+
"mov r0, sp\n" /* save stack pointer to %r0, as arg1 of _start_c */
192+
"and ip, r0, #-8\n" /* sp must be 8-byte aligned in the callee */
193193
"mov sp, ip\n"
194194
"bl _start_c\n" /* transfer to c runtime */
195195
);

0 commit comments

Comments
 (0)