From aa938fe6977dabc070d2da01b30f17b3aa3d4012 Mon Sep 17 00:00:00 2001 From: Fiona Klute Date: Sat, 25 Apr 2026 10:56:55 +0200 Subject: [PATCH] Revert "kmod: workaround for microblaze ld bug" This reverts commit 0d81107f021bf2a663f102bace1e3f9590641170. The bug the workaround is for was fixed in binutils 2.29.51 (first release listed in bfd/ChangeLog after the fix), which is by now far older than any version supported by Buildroot. Compile tested with qemu_microblazeel_mmu_defconfig plus BR2_PACKAGE_KMOD=y. Signed-off-by: Fiona Klute Signed-off-by: Marcus Hoffmann (cherry picked from commit 7653e616f96241b04586ecb4b612a219885d52dd) Signed-off-by: Thomas Perale --- package/kmod/kmod.mk | 6 ------ 1 file changed, 6 deletions(-) diff --git a/package/kmod/kmod.mk b/package/kmod/kmod.mk index cbf89bca9d..e1d88af18f 100644 --- a/package/kmod/kmod.mk +++ b/package/kmod/kmod.mk @@ -17,12 +17,6 @@ KMOD_LICENSE_FILES = libkmod/COPYING KMOD_CPE_ID_VENDOR = kernel -# --gc-sections triggers binutils ld segfault -# https://sourceware.org/bugzilla/show_bug.cgi?id=21180 -ifeq ($(BR2_microblaze),y) -KMOD_CONF_ENV += cc_cv_LDFLAGS__Wl___gc_sections=false -endif - # static linking not supported, see # https://git.kernel.org/cgit/utils/kernel/kmod/kmod.git/commit/?id=b7016153ec8 KMOD_CONF_OPTS = --disable-static --enable-shared