https://gcc.gnu.org/bugzilla/show_bug.cgi?id=104725
--- Comment #2 from ro at CeBiTec dot Uni-Bielefeld.DE <ro at CeBiTec dot Uni-Bielefeld.DE> --- > --- Comment #1 from H.J. Lu <hjl.tools at gmail dot com> --- > It looks like Solaris linker doesn't support -mno-direct-extern-access. Highly unlikely, I'd say. > Did you try GNU linker? I do once in a week: when gld is in use, the tests do PASS on solaris > This patch limits tests to Linux: Seems quite sensible: GNU_PROPERTY_1_NEEDED is a GNU extension after all, so the test should be restricted to systems that support it. > BTW, does it fail on i686-pc-linux-gnu for you? No: the test PASSes for both x86_64-pc-linux-gnu -m32 and i686-pc-linux-gnu.