Created attachment 210541 [details] patch ld.gold now works fine on powerpc64.
Created attachment 210542 [details] v2 Don't add -Wno-c++11-narrowing on powerpc64 elfv1.
Created attachment 210543 [details] v3 gold has issues with elfv1. Use it only on elfv2.
Created attachment 210544 [details] v4 Enable gold also on powerpc, seems to work. Base GCC can't build it so make it clang-only.
A commit references this bug: Author: pkubaj Date: Wed Jan 22 20:27:00 UTC 2020 New revision: 523841 URL: https://svnweb.freebsd.org/changeset/ports/523841 Log: devel/binutils: enable gold on powerpc64 and powerpc ld.gold now works fine on powerpc64, but only when compiled with clang. PR: 243194 Approved by: bapt (maintainer timeout) Changes: head/devel/binutils/Makefile
CC'ing jhibbits for testing powerpcspe.
Committed Wed Jan 22 20:27:00 UTC 2020 as r523841.