Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Oct 2006 21:27:20 +0000
From:      John Birrell <jb@what-creek.com>
To:        Joseph Koshy <joseph.koshy@gmail.com>
Cc:        freebsd-arm@freebsd.org, freebsd-ppc@freebsd.org
Subject:   Re: Proposed elf header changes which affect PPC and ARM
Message-ID:  <20061004212719.GA82760@what-creek.com>
In-Reply-To: <20061004202004.GC82080@what-creek.com>
References:  <20061004035533.GA76969@what-creek.com> <84dead720610040844o5dc873bt7185e164b20d699@mail.gmail.com> <20061004202004.GC82080@what-creek.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 04, 2006 at 08:20:04PM +0000, John Birrell wrote:
> On Wed, Oct 04, 2006 at 09:14:26PM +0530, Joseph Koshy wrote:
> > >The patch: <http://people.freebsd.org/~jb/elf.patch>; moves
> > >all the relocation definitions for each arch from the machine/elf.h
> > >header to sys/elf_common.h.
> > 
> > What's the semantic difference between an 'Lword' and an 'Xword'?
> > 
> > + typedef uint64_t	Elf32_Lword;
> > 
> > and...
> > 
> >  typedef int32_t		Elf64_Sword;
> >  typedef int64_t		Elf64_Sxword;
> >  typedef uint32_t	Elf64_Word;
> > + typedef uint64_t	Elf64_Lword;
> >  typedef uint64_t	Elf64_Xword;
> 
> I'm not sure there is any. It's just something that OpenSolaris code
> expects.

I looked a bit further at this and I think that Lword probably changes
it's size on OpenSolaris to be 32 bits if the code is being compiled in
32 bit mode whereas Xword is always 64 bits.

--
John Birrell



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20061004212719.GA82760>