Created attachment 825469 [details] build log I suspect (but haven't confirmed) related to GCC+lld
Created attachment 825471 [details] emerge --info
Confirmed using default (GNU?) ld works.
I'm trying to reproduce this on amd64 and can't, even with the same gcc, CFLAGS, LDFLAGS, etc. From that, but moreso based on the name "_restfpr_31", I think this might be specific to PPC. You might be able to hide the issue by using -O2 and dropping the gnu-specific flags? But otherwise if you really want to get to the bottom of this you'll probably have to do some real debugging inside the source tree to see what's going wrong with ld.lld as opposed to ld.bfd (the default).