Hello,
Since Buildroot 2021.02 [1] an upstream gcc commit is reverted to allow booting the qemu_sparc_ss10_defconfig. The revert must be applied for gcc 8.4, 9.3 and 10.2 and any newer version.
upstream gcc commit: https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=0a83f1a441d7aaadecb368c237b6ee...
The commit has been introduced to fix the following bug: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=92095
The regression has been reported to gcc [2] but the gcc change may affect the ldso code or how the GOT register is handled with fPIC in uClibc-ng.
This part of the code seems fPIC friendly, it can be worse with the new default BR2_PIC_PIE option. So I would drop the sparc support while adding gcc 11 to avoid carrying non upstream patch forever in gcc package.
There is no problem for the sparc64 with a glibc toolchain (sparc64 for uClibc-ng is not currently available in Buildroot)
Help welcome.
Best regards, Romain
[1] https://git.buildroot.net/buildroot/commit/?id=4d16e6f5324f0285f51bfbb5a3503...