Bad ELF header when mixing MIPS II with MIPS I

H . J . Lu hjl@lucon.org
Thu Jan 31 23:07:00 GMT 2002


On Thu, Jan 31, 2002 at 08:09:56PM -0800, Eric Christopher wrote:
> 
> > I agree with H.J. that the resulting executable should reflect the "largest"
> > ISA of all the objects that make up the executable.  Seems sort of logical,
> > really.
> > 
> 
> Ok. What I thought HJ was complaining was that he had two object files:
> 
> foo.o: Containing mipsI insns only
> crt0.o: Containing some mipsII insns
> 
> Each one had the flags for the particular ISA set (mipsI or mipsII).
> 
> He then linked them together and was surprised when the superset
> (mipsII) was given in the final executable...

No. Please read my post again. When linking them together, I got
MIPS I instead of MIPS II. I was expecting MIPS II.


H.J.



More information about the Binutils mailing list