Re: [PATCH v2 3/3] tools/nolibc: x86_64: use local label in memcpy/memmove
From: Ammar Faizi
Date: Mon Aug 12 2024 - 20:15:33 EST
On Mon, Aug 12, 2024 at 10:50:19PM +0200, Thomas Weißschuh wrote:
> Compiling arch-x86_64.h with clang and binutils LD yields
> duplicate label errors:
>
> .../gcc-13.2.0-nolibc/x86_64-linux/bin/x86_64-linux-ld: error: LLVM gold plugin: <inline asm>:44:1: symbol '.Lbackward_copy' is already defined
> .Lbackward_copy:leaq -1(%rdi, %rcx, 1), %rdi
>
> Instead of a local symbol use a local label which can be defined
> multiple times and therefore avoids the error.
>
> Signed-off-by: Thomas Weißschuh <linux@xxxxxxxxxxxxxx>
> ---
Reviewed-by: Ammar Faizi <ammarfaizi2@xxxxxxxxxxx>
--
Ammar Faizi