Config.in: disable PIC/PIE for microblaze
authorRomain Naour <romain.naour@gmail.com>
Sat, 12 Jun 2021 10:24:49 +0000 (12:24 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 25 Jul 2021 13:48:13 +0000 (15:48 +0200)
As reported by Toolchain-builder project [1], the system doesn't
boot when PIC/PIE is enabled for glibc based toolchain (the init
process hang).

Also, hardening features may not be wanted or possible for such
slow soft-core cpus [2].

Like for NiosII, disable BR2_PIC_PIE.

[1] https://gitlab.com/bootlin/toolchains-builder/-/pipelines/318038406
[2] http://lists.busybox.net/pipermail/buildroot/2021-June/312416.html

Signed-off-by: Romain Naour <romain.naour@gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Config.in

index a146ba0f437d6c2e515a3aed614b65a22ba48bf7..2ef5d407e426773f893ca7bd16f999f16c7fe78e 100644 (file)
--- a/Config.in
+++ b/Config.in
@@ -729,6 +729,8 @@ comment "Security Hardening Options"
 config BR2_PIC_PIE_ARCH_SUPPORTS
        bool
        default y
+       # Microblaze glibc toolchains don't work with PIC/PIE enabled
+       depends on !BR2_microblaze
        # Nios2 toolchains produce non working binaries with -fPIC
        depends on !BR2_nios2