On Mon, 15 May 2017, Krister Walfridsson wrote:
I have committed the attached patch to make NetBSD handle -lgcc correctly for shared libraries.gcc/ChangeLog: PR target/80600 * config/netbsd.h (NETBSD_LIBGCC_SPEC): Always add -lgcc. libgcc/ChangeLog: PR target/80600 * config.host (*-*-netbsd*): Add t-slibgcc-libgcc to tmake_file.
Forgot to say: bootstrapped and tested on i386-unknown-netbsdelf6.1 and x86_64-unknown-netbsd6.1. /Krister