This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: PATCH: Fix the MIPS ISA ELF setting (Re: RedHat 7.1/mips update)
On Fri, Nov 02, 2001 at 12:19:42PM -0800, Eric M. Christopher wrote:
>
> > I have indicated it is not a compiler issue. I am talking about the
> > assembler here. Sure, it is nice to fix the compiler. But it is irrelevant.
> > The gcc command being used is
> >
> > # gcc -mips2 -Wa,-march=r4100 ....
>
> The problem at this point is that these two command lines:
Please don't mix gcc with gas. You don't have to use gcc to create a binary.
>
> gcc -mips2 -march=vr4100
I don't think we should allow this. We should issue a warning if not an
error.
> gcc -mips2 -Wa,-march=vr4100
Why should gcc care -Wa?
>
> Will cause widely different results. This, to my mind, is confusing and
gas and gcc happen to have same options. Yes, they may have slightly
different meanings. Please keep in mind that
1. For gcc, -mxxx means to generate asm code for xxx.
2. For gas, -mxxx means to accept asm code for xxx.
They have different meanings anyway. Should we allow
# as -mips2 -m4100
or something like that, but not
# as -mips2 -march=vr4100
> something I don't want to support. Of all of the solutions I've seen for
> this I prefer Chris's. If anyone else has any other solution I'd love to
> hear it.
I'd like to have a way to set EF_MIPS_ARCH and EF_MIPS_MACH fields
indepedently, as long as they are compatible.
FYI, the current binutils is broken for Linux/mips because of it. We need
a solution now.
H.J.