[Buildroot] [PATCH] Config.in: disable PIC/PIE for Nios2
peter at korsgaard.com
Thu Jun 10 08:26:27 UTC 2021
>>>>> "Romain" == Romain Naour <romain.naour at gmail.com> writes:
> Recently in Buildroot the option BR2_PIC_PIE has been enabled by default along
> with other hardening features . Since then the nios2 defconfig
> qemu_nios2_10m50_defconfig is failing to boot due to a segfault in init program:
> Run /init as init process
> with arguments:
> with environment:
> Failed to execute /init (error -12)
> See Buildroot build log and Qemu runtime test log in build artifacts .
> Analyzing one of the binary with strace show that the problem occur
> very early when starting the new process:
> # strace ./busybox
> execve("./busybox", ["./busybox"], 0x7f91ce90 /* 10 vars */) = -1 ENOMEM
> (Cannot allocate memory)
> +++ killed by SIGSEGV +++
> Several binutils/glibc/gcc version has been tested without any success.
> The issue has been reported to the glibc mailing list but it can be a linker
> or kernel bug .
> For the Buildroot 2021.05 release, disable BR2_PIC_PIE until the problem is
> found and fixed.
>  https://git.buildroot.net/buildroot/commit/?id=810ba387bec3c5b6904e8893fb4cb6f9d3717466
>  https://gitlab.com/buildroot.org/buildroot/-/jobs/1285145889
>  https://sourceware.org/pipermail/libc-alpha/2021-May/126912.html
> Signed-off-by: Romain Naour <romain.naour at gmail.com>
> Cc: Yann E. MORIN <yann.morin.1998 at free.fr>
Users might try to enable BR2_PIC_PIE on 2021.02.x as well, so committed
to 2021.02.x, thanks.
Bye, Peter Korsgaard
More information about the buildroot