This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: Question: the differences between -mabi=xxx and -32/-64 in the mips gas
H . J . Lu wrote:
> On Tue, Aug 21, 2001 at 09:20:15PM +0200, Thiemo Seufer wrote:
> > H . J . Lu wrote:
> > > The -mabi=xxx swicth in the mips gas is not ducomented. What are the
> > > differences between -mabi=xxx and -32/-64, other than there are more
> > > options with -mabi=xxx?
> >
> > AFAICS there shouldn't be one. Coincidentally, I've just made this
> > patch which implies -64 for -mabi=64 and fixes also the handling
> > of -mabi=64 WRT -mgp{32,64} and -mfp32.
> >
>
> It still not right.
Right, my patch handled only the half.
> Do -32/-64 set mips_abi_string?
Currently not, and it makes no difference to -64. The way
mips_abi_string is used leads to
a set E_MIPS_ABI_O32 with -mabi=32,
a clear E_MIPS_ABI_O32 with -32.
I would say this is wrong behaviour, but is it really the right one
to set the flag in both cases?
I'll make an updated patch when this is answered.
Thiemo