acinclude.m4 has a home-brewed rule to detect whether a target can support TLS. This rule incorrectly decides that NetBSD can support this. The result is that libgomp will not load, and faults with the error:
Unsupported relocation type 14 in non-PLT relocations
Rather than rolling its own rule, it should be using the rule in $(topsrcdir)/config/tls.m4 -- namely GCC_CHECK_TLS.
*** Bug 27179 has been marked as a duplicate of this bug. ***
This also effects sparc64-portbld-freebsd6.1 as described in PR 27179.
I understand that this might be affecting SPARC/Linux too, cf., http://gcc.gnu.org/ml/gcc/2006-04/msg00448.html
Subject: Bug 25865
Date: Tue Apr 25 20:58:25 2006
New Revision: 113256
* configure.ac: Use GCC_CHECK_TLS.
* acinclude.m4 (LIBGOMP_CHECK_TLS): Remove.
* Makefile.in, aclocal.m4, configure: Regenerate.
Fixed, or if not, moved the point of failure out of libgomp.