From cd2659ba042f89d287becec8f837b95b78be684a Mon Sep 17 00:00:00 2001 From: Dario Binacchi Date: Sat, 30 May 2026 14:55:56 +0200 Subject: [PATCH] package/babeld: disable for musl toolchains Building babeld with a musl toolchain fails with: ld: read-only segment has dynamic relocations This happens because babeld uses text relocations (textrels), which are not supported by the musl dynamic loader and would cause a runtime crash (segmentation fault). Since Buildroot passes '-ztext' to detect these unsafe relocations at build time, disable babeld entirely for musl configurations. Fixes: https://autobuild.buildroot.org/results/c75643713fd5f27fe063c226630680d26a8b9487/ Suggested-by: Thomas Petazzoni Signed-off-by: Dario Binacchi Signed-off-by: Thomas Petazzoni (cherry picked from commit a01c1258fe3e8d1403a5a8281257edf85123430b) Signed-off-by: Thomas Perale --- package/babeld/Config.in | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/package/babeld/Config.in b/package/babeld/Config.in index 80d2708230..0624621d0a 100644 --- a/package/babeld/Config.in +++ b/package/babeld/Config.in @@ -1,8 +1,14 @@ config BR2_PACKAGE_BABELD bool "babeld" depends on BR2_USE_MMU # fork() + # uses textrel + depends on !BR2_TOOLCHAIN_USES_MUSL help Babel is a loop-avoiding distance-vector routing protocol for IPv6 and IPv4 with fast convergence properties. https://www.irif.fr/~jch/software/babel/ + +comment "babeld needs a uClibc or glibc toolchain" + depends on BR2_USE_MMU + depends on BR2_TOOLCHAIN_USES_MUSL