https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68712
--- Comment #1 from Andrew Pinski <pinskia at gcc dot gnu.org> --- Which target? What version of GCC? Can you show the output of linking with -v option? Can you show the readelf output of the executable too?