From f28f34e200bbadf0aea32110c72f7199e65fb0b9 Mon Sep 17 00:00:00 2001 From: Maxime Chevallier Date: Mon, 23 Jun 2025 13:51:01 +0200 Subject: [PATCH] package/linux-tools: rtla: Pass TARGET_LD to the make arguments In Linux v6.8, the rtla Makefile was rewritten : 01474dc706ca ("tools/rtla: Use tools/build makefiles to build rtla") The new Makefile uses default linker values, so the host linker being used to produce the final rtla binary. This results in the following error : ld: [...] trace.o: error adding symbols: file in wrong format Add LD=$(TARGET_LD) to the RTLA_MAKE_OPTS to fix rtla cross-compilation. Signed-off-by: Maxime Chevallier Reviewed-by: Giulio Benetti Signed-off-by: Julien Olivain --- package/linux-tools/linux-tool-rtla.mk.in | 1 + 1 file changed, 1 insertion(+) diff --git a/package/linux-tools/linux-tool-rtla.mk.in b/package/linux-tools/linux-tool-rtla.mk.in index 449371ddfe..d9bdcc3016 100644 --- a/package/linux-tools/linux-tool-rtla.mk.in +++ b/package/linux-tools/linux-tool-rtla.mk.in @@ -9,6 +9,7 @@ LINUX_TOOLS += rtla RTLA_DEPENDENCIES = host-pkgconf libtracefs RTLA_MAKE_OPTS = $(LINUX_MAKE_FLAGS) \ CC=$(TARGET_CC) \ + LD=$(TARGET_LD) \ EXTRA_CFLAGS="-D_GNU_SOURCE" \ LDFLAGS="$(TARGET_LDFLAGS)" \ PKG_CONFIG_PATH=$(STAGING_DIR)/usr/lib/pkgconfig