https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #5 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (In reply to Andrew Pinski from comment #4) > (In reply to tt_1 from comment #3) > > maybe something went wrong with this patch: > > > > https://gcc.gnu.org/git/?p=gcc.git;a=commit; > > h=3633cc54284450433b81f0340483e15df1a49a3c > > > > its arm specific, and merges different implementations into one. > > > > But I'm not close to being an expert here. > > Right and I am still thinking there is a linker issue. > > Can you remove -Wl,--as-needed option from the command line and try again? The other one to try to remove is -Wl,-Bsymbolic-functions .