[LTO] Fix inconsistent architecture errors on the SPARC
Eric Botcazou
ebotcazou@adacore.com
Tue Mar 2 22:09:00 GMT 2010
As explained in http://sourceware.org/ml/binutils/2010-03/msg00012.html, we
can have inconsistent architecture errors on the SPARC in 32-bit mode with
GNU as when lto1 is loading object files.
SPARC maintainers are of the opinion that lto1 should allow mixing v8 and v8+
object files like the linker, hence the attached patch.
Tested on SPARC/Solaris 32-bit and 64-bit, OK for mainline?
2010-03-02 Eric Botcazou <ebotcazou@adacore.com>
* lto-elf.c (is_compatible_architecture): New static function.
(DEFINE_VALIDATE_EHDR): Use it to validate the architecture.
--
Eric Botcazou
-------------- next part --------------
A non-text attachment was scrubbed...
Name: sparc_lto.diff
Type: text/x-diff
Size: 1400 bytes
Desc: not available
URL: <http://gcc.gnu.org/pipermail/gcc-patches/attachments/20100302/44c1e70f/attachment.bin>
More information about the Gcc-patches
mailing list