Created attachment 1202949 [details] Add-support-for-MIPS.patch Description of problem: We are trying to bring Fedora to MIPS platform and this requires adding MIPS support to glibc SPEC. Upstream glibc has all the necessary bits, no extra patches are required. Actual results: Build fails because glibc SPEC is MIPS-unaware. Expected results: Build passes. Additional info: Attaching dist-git patch. It would be nice to have this in F25 as well.
Created attachment 1202950 [details] Add-support-for-MIPS.patch Fix typo in the original patch
Is there an upstream bug for this issue? +# Without -mrelax-pic-calls ld.so segfaults when built with -O3 +BuildFlags="-march=mips64r2 -mabi=64 -mrelax-pic-calls"
I have discussed this with Imagination Technologies (they did actually suggest the -mrelax-pic-calls) and they are tracking it internally, investigating whether glibc itself should be fixed or whether some GCC optimization failed. For yet unknown reasons 64-bit little-endian MIPS is the only target where '__builtin_memset' does not get inlined with -O3. The issue will be taken upstream if GCC is not to blame. The problem has already been addressed in 2002 though: https://www.sourceware.org/ml/libc-alpha/2002-02/msg00085.html
(In reply to Michal Toman from comment #3) > I have discussed this with Imagination Technologies (they did actually > suggest the -mrelax-pic-calls) and they are tracking it internally, > investigating whether glibc itself should be fixed or whether some GCC > optimization failed. For yet unknown reasons 64-bit little-endian MIPS is > the only target where '__builtin_memset' does not get inlined with -O3. The > issue will be taken upstream if GCC is not to blame. > > The problem has already been addressed in 2002 though: > https://www.sourceware.org/ml/libc-alpha/2002-02/msg00085.html Okay, please file an upstream bug for this issue. Thanks.