https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71151
--- Comment #21 from Senthil Kumar Selvaraj <saaadhu at gcc dot gnu.org> --- It occurs with "7.0.0 20160824 (experimental) (GCC)". Besides, the errors go away if I remove --relax, so I think it's a linker issue.