https://gcc.gnu.org/bugzilla/show_bug.cgi?id=66609
Kazumoto Kojima <kkojima at gcc dot gnu.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |kkojima at gcc dot gnu.org --- Comment #1 from Kazumoto Kojima <kkojima at gcc dot gnu.org> --- Created attachment 36246 --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=36246&action=edit patch > .long foo@PCREL-(.LPCS0+2-.) looks to be reasonable. It seems that sh backend shouldn't use UNSPEC_SYMOFF for that case in the first place. Does the patch attached work for you?