This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: MIPS HAVE_32BIT_ADDRESSES bogon ?


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]