nptl threads: Fix bug in using a weak variable.
nptl threads: Fix bug in using a weak variable.

In case __nptl_nthreads is not defined in the final binary then avoid
dereferencing the address since it's null. Anyway this means there is
no other thread and so we must exit.

	* libc/misc/internals/__uClibc_main.c (__uClibc_main): Handle case
	where &__nptl_nthreads is null.

Signed-off-by: Mickaël Guêné <fd4c850767532186e170673aca49b5c51d48c53c@st.com>
Signed-off-by: Christophe Lyon <0ec1b8ee85d9250d253c392c5d5101068ac5d5d3@st.com>

kraj/uclibc-ng,kraj/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,wbx-github/uclibc-ng,kraj/uclibc-ng,kraj/uclibc-ng