Created attachment 456472 [details]
/usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../x86_64-pc-linux-gnu/bin/ld: error: strace-unwind.o: cannot make copy relocation for protected symbol '_UPT_accessors', defined in /usr/lib/gcc/x86_64-pc-linux-gnu/5.4.0/../../../../lib64/libunwind-ptrace.so
collect2: error: ld returned 1 exit status
make: *** [Makefile:1668: strace] Error 1
make: Leaving directory '/var/tmp/portage/dev-util/strace-4.15/work/strace-4.15'
Created attachment 456474 [details]
Same with 4.16 and 4.18.
Using ld.bfd works fine.
Also happens with 4.19.
Using ld.bfd works.
Created attachment 506764 [details, diff]
version 4.20 is affected too.
4.21 is still affected. It looks like the underlying problem will be fixed in libunwind 1.3: https://github.com/libunwind/libunwind/issues/58
I am able to link and use strace linked with the gold linker.
Here are the versions of relevant softwares on my system:
(In reply to Boris Staletic from comment #7)
> I am able to link and use strace linked with the gold linker.
> Here are the versions of relevant softwares on my system:
> - =dev-util/strace-4.22
> - =sys-libs/libunwind-1.2.1
> - =sys-devel/binutils-2.30-r2
I have exactly those versions, switched to gold and again got the original error (see $subject) when rebuilding strace.