This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: MIPS HAVE_32BIT_ADDRESSES bogon ?
- To: binutils at sources dot redhat dot com
- Subject: Re: MIPS HAVE_32BIT_ADDRESSES bogon ?
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- Date: Sat, 27 Oct 2001 09:12:21 +0200
- References: <yov5adye7yiw.fsf@broadcom.com>
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