unwind-dw2.c is conditional on !USING_SJLJ_EXCEPTIONS, but unwind-pe.h is not. The latter uses _Unwind_GetTextRelBase, the former may or may not provide it. So, targets still SJLJ exceptions can't always link :-( (at least, 402 of my check-g++ cases failed because of this)