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: [PATCH] Fix distinction of 32/64bit addresses in MIPS gas


> Mailing-List: contact binutils-help@sourceware.cygnus.com; run by ezmlm
> List-Unsubscribe: <mailto:binutils-unsubscribe-geoffk=cygnus.com@sources.redhat.com>
> List-Subscribe: <mailto:binutils-subscribe@sources.redhat.com>
> List-Archive: <http://sources.redhat.com/ml/binutils/>
> List-Post: <mailto:binutils@sources.redhat.com>
> List-Help: <mailto:binutils-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
> Date: Fri, 31 Aug 2001 18:16:57 +0200
> Content-Disposition: inline
> User-Agent: Mutt/1.3.20i
> From: Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de>
> 
> Richard Sandiford wrote:
> > Thiemo Seufer <ica2_ts@csv.ica.uni-stuttgart.de> writes:
> > 
> > > we can't have 64bit addresses in a 32bit object file format,
> > 
> > I'm not sure what you mean.  I thought elf32 supported 64-bit addresses
> > through R_MIPS_64?
> 
> MIPS ELF32 has no R_MIPS_64, AFAIK it has no notion of 64bit
> entities at all.

Doesn't this work by R_MIPS_64 being a sign-extended 32-bit address?

You don't get real 64-bit addresses, but you can create 64-bit values
from 32-bit addresses, useful for a program running on a 64-bit chip
but being loaded in the 32-bit address space.

-- 
- Geoffrey Keating <geoffk@geoffk.org>


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