http://gcc.gnu.org/bugzilla/show_bug.cgi?id=56431
--- Comment #1 from Ian Lance Taylor <ian at airs dot com> 2013-02-27 14:54:22 UTC --- The reference to pthread_sigmask in generic-morestack.c is weak, and the code handles the weak reference correctly. It looks like gold is doing the right thing by emitting a weak reference. I don't understand why GNU ld is complaining about an undefined weak reference. As far as I can see, this is a GNU ld bug; it should be testing h->ref_regular_nonweak in the code that issues this "is defined in DSO" warning.