* [Buildroot] [PATCH v2 1/1] package/babeld: disable for musl toolchains
@ 2026-05-30 12:55 Dario Binacchi
2026-05-30 13:28 ` Thomas Petazzoni via buildroot
0 siblings, 1 reply; 2+ messages in thread
From: Dario Binacchi @ 2026-05-30 12:55 UTC (permalink / raw)
To: buildroot; +Cc: Dario Binacchi, linux-amarula, Thomas Petazzoni
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 <thomas.petazzoni@bootlin.com>
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
---
Changes v1 -> v2:
- Drop the initial approach of filtering LDFLAGS
- Disable the package entirely for MUSL toolchains since it requires textrels
package/babeld/Config.in | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/package/babeld/Config.in b/package/babeld/Config.in
index 80d27082306f..a39da7a8af07 100644
--- a/package/babeld/Config.in
+++ b/package/babeld/Config.in
@@ -1,8 +1,13 @@
config BR2_PACKAGE_BABELD
bool "babeld"
depends on BR2_USE_MMU # fork()
+ 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
--
2.43.0
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Buildroot] [PATCH v2 1/1] package/babeld: disable for musl toolchains
2026-05-30 12:55 [Buildroot] [PATCH v2 1/1] package/babeld: disable for musl toolchains Dario Binacchi
@ 2026-05-30 13:28 ` Thomas Petazzoni via buildroot
0 siblings, 0 replies; 2+ messages in thread
From: Thomas Petazzoni via buildroot @ 2026-05-30 13:28 UTC (permalink / raw)
To: Dario Binacchi; +Cc: buildroot, linux-amarula
On Sat, May 30, 2026 at 02:55:56PM +0200, Dario Binacchi wrote:
> 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 <thomas.petazzoni@bootlin.com>
> Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Applied to master, thanks!
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-05-30 13:28 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-30 12:55 [Buildroot] [PATCH v2 1/1] package/babeld: disable for musl toolchains Dario Binacchi
2026-05-30 13:28 ` Thomas Petazzoni via buildroot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox