https://gcc.gnu.org/bugzilla/show_bug.cgi?id=50928

--- Comment #12 from DJ Delorie <dj at redhat dot com> ---
The reloc bug is caused when gcc puts a JMP.A at the very end of .text and also
adds debug info; this puts a 3-byte reloc right at the end of a section
(m32c-as pads the last section if it's a code section, the debug info makes
.text not last) but BFD has no option for a non-power-of-two reloc in the HOWTO
table, so it thinks it's 4 bytes and thus extends past the end of the section.

I suspect the way to fix this is to handle that one reloc specially (the rest
are handled by generic reloc handlers), unless someone has an alternate idea?

Reply via email to