https://gcc.gnu.org/bugzilla/show_bug.cgi?id=105601
--- Comment #4 from Andrew Pinski <pinskia at gcc dot gnu.org> --- (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?