MIPS HAVE_32BIT_ADDRESSES bogon ?

Thiemo Seufer ica2_ts@csv.ica.uni-stuttgart.de
Sat Oct 27 06:59:00 GMT 2001


cgd@broadcom.com wrote:
[snip]
> Note that if you compile with -membedded-pic -mlong64, the compiled
> code will consider ptrs, etc., to be 64 bits.  In general, the _only_
> thing stopping GP or the code itself from being relocated to a 64-bit
> address is this code which is caused by HAVE_32BIT_ADDRESSES being true.
> 
> 
> I'm wondering if maybe HAVE_32BIT_ADDRESSES should be defined as:
> 
> 	(HAVE_32BIT_GPRS
> 	 || ((bfd_arch_bits_per_address (stdoutput) == 32
> 	      || ! HAVE_64BIT_OBJECTS)
> 	     && mips_pic != EMBEDDED_PIC))

Does EMBEDDED_PIC _always_ have 64 bit addresses or only in combination
with -mlong64? If the latter, it's better to check for -mlong64 for this
purpose, an option which doesn't exist in gas yet.


Thiemo



More information about the Binutils mailing list