[Bug target/50928] m32c ICE building RTEMS
dj at redhat dot com
gcc-bugzilla@gcc.gnu.org
Tue Jan 20 21:36:00 GMT 2015
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?
More information about the Gcc-bugs
mailing list